[2025-01-06 00:00:05] Production.INFO: next invoice date [2025-01-06 00:00:05] Production.INFO: 2025-02-06 [2025-01-06 00:00:05] Production.INFO: getdaysdiff [2025-01-06 00:00:05] Production.INFO: +31 [2025-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (154,11,1,31,31,'RMScheduler',2025-01-06 00:00:05,1,0,,,0) [2025-01-06 00:00:05] Production.INFO: next invoice date [2025-01-06 00:00:05] Production.INFO: 2025-02-06 [2025-01-06 00:00:05] Production.INFO: getdaysdiff [2025-01-06 00:00:05] Production.INFO: +31 [2025-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (207,11,1,31,31,'RMScheduler',2025-01-06 00:00:05,0,0,,,0) [2025-01-06 00:00:05] Production.INFO: next invoice date [2025-01-06 00:00:05] Production.INFO: 2025-02-06 [2025-01-06 00:00:05] Production.INFO: getdaysdiff [2025-01-06 00:00:05] Production.INFO: +31 [2025-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (207,13,2,31,31,'RMScheduler',2025-01-06 00:00:05,0,0,,,0) [2025-01-06 00:00:05] Production.INFO: next invoice date [2025-01-06 00:00:05] Production.INFO: 2025-02-06 [2025-01-06 00:00:05] Production.INFO: getdaysdiff [2025-01-06 00:00:05] Production.INFO: +31 [2025-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (206,11,1,31,31,'RMScheduler',2025-01-06 00:00:05,0,0,,,0) [2025-01-06 00:00:05] Production.INFO: next invoice date [2025-01-06 00:00:05] Production.INFO: 2025-02-06 [2025-01-06 00:00:05] Production.INFO: getdaysdiff [2025-01-06 00:00:05] Production.INFO: +31 [2025-01-06 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (206,13,2,31,31,'RMScheduler',2025-01-06 00:00:05,0,0,,,0) [2025-01-06 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:00:06 [end_date_ymd] => 2025-01-06 00:00:06 [RateCDR] => 1 ) [2025-01-06 00: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-01-05 21:00:06' and `end` < '2025-01-06 00: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-01-06 00:00:20] Production.INFO: count ==675 [2025-01-06 00:00:21] Production.ERROR: pbx CDR StartTime 2025-01-05 21:00:06 - End Time 2025-01-06 00:00:06 [2025-01-06 00:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183744', 'tblTempUsageDetail_20' ) start [2025-01-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183744', 'tblTempUsageDetail_20' ) end [2025-01-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183744', 'tblTempVendorCDR_20' ) start [2025-01-06 00:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183744', 'tblTempVendorCDR_20' ) end [2025-01-06 00:00:21] Production.INFO: ProcessCDR(1,14183744,1,1,2) [2025-01-06 00:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183744', 'tblTempUsageDetail_20' ) start [2025-01-06 00:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183744', 'tblTempUsageDetail_20' ) end [2025-01-06 00:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:00:27] Production.INFO: ==15117== Releasing lock... [2025-01-06 00:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:00:27] Production.INFO: 34 MB #Memory Used# [2025-01-06 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:01:05 [end_date_ymd] => 2025-01-06 00:01:05 [RateCDR] => 1 ) [2025-01-06 00:01: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-01-05 21:01:05' and `end` < '2025-01-06 00:01: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-01-06 00:01:29] Production.INFO: count ==665 [2025-01-06 00:01:29] Production.ERROR: pbx CDR StartTime 2025-01-05 21:01:05 - End Time 2025-01-06 00:01:05 [2025-01-06 00:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183749', 'tblTempUsageDetail_20' ) start [2025-01-06 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183749', 'tblTempUsageDetail_20' ) end [2025-01-06 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183749', 'tblTempVendorCDR_20' ) start [2025-01-06 00:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183749', 'tblTempVendorCDR_20' ) end [2025-01-06 00:01:29] Production.INFO: ProcessCDR(1,14183749,1,1,2) [2025-01-06 00:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:01:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:01:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:01:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183749', 'tblTempUsageDetail_20' ) start [2025-01-06 00:01:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183749', 'tblTempUsageDetail_20' ) end [2025-01-06 00:01:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:01:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:01:32] Production.INFO: ==15226== Releasing lock... [2025-01-06 00:01:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:01:32] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:02:05 [end_date_ymd] => 2025-01-06 00:02:05 [RateCDR] => 1 ) [2025-01-06 00:02: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-01-05 21:02:05' and `end` < '2025-01-06 00:02: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-01-06 00:02:23] Production.INFO: count ==294 [2025-01-06 00:02:23] Production.ERROR: pbx CDR StartTime 2025-01-05 21:02:05 - End Time 2025-01-06 00:02:05 [2025-01-06 00:02:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183754', 'tblTempUsageDetail_20' ) start [2025-01-06 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183754', 'tblTempUsageDetail_20' ) end [2025-01-06 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183754', 'tblTempVendorCDR_20' ) start [2025-01-06 00:02:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183754', 'tblTempVendorCDR_20' ) end [2025-01-06 00:02:23] Production.INFO: ProcessCDR(1,14183754,1,1,2) [2025-01-06 00:02:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183754', 'tblTempUsageDetail_20' ) start [2025-01-06 00:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183754', 'tblTempUsageDetail_20' ) end [2025-01-06 00:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:02:26] Production.INFO: ==15318== Releasing lock... [2025-01-06 00:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:02:26] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:03:05 [end_date_ymd] => 2025-01-06 00:03:05 [RateCDR] => 1 ) [2025-01-06 00:03: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-01-05 21:03:05' and `end` < '2025-01-06 00:03: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-01-06 00:03:21] Production.INFO: count ==294 [2025-01-06 00:03:22] Production.ERROR: pbx CDR StartTime 2025-01-05 21:03:05 - End Time 2025-01-06 00:03:05 [2025-01-06 00:03:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183759', 'tblTempUsageDetail_20' ) start [2025-01-06 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183759', 'tblTempUsageDetail_20' ) end [2025-01-06 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183759', 'tblTempVendorCDR_20' ) start [2025-01-06 00:03:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183759', 'tblTempVendorCDR_20' ) end [2025-01-06 00:03:22] Production.INFO: ProcessCDR(1,14183759,1,1,2) [2025-01-06 00:03:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183759', 'tblTempUsageDetail_20' ) start [2025-01-06 00:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183759', 'tblTempUsageDetail_20' ) end [2025-01-06 00:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:03:25] Production.INFO: ==15406== Releasing lock... [2025-01-06 00:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:03:25] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:04:05 [end_date_ymd] => 2025-01-06 00:04:05 [RateCDR] => 1 ) [2025-01-06 00:04: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-01-05 21:04:05' and `end` < '2025-01-06 00:04: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-01-06 00:04:21] Production.INFO: count ==293 [2025-01-06 00:04:21] Production.ERROR: pbx CDR StartTime 2025-01-05 21:04:05 - End Time 2025-01-06 00:04:05 [2025-01-06 00:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183764', 'tblTempUsageDetail_20' ) start [2025-01-06 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183764', 'tblTempUsageDetail_20' ) end [2025-01-06 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183764', 'tblTempVendorCDR_20' ) start [2025-01-06 00:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183764', 'tblTempVendorCDR_20' ) end [2025-01-06 00:04:21] Production.INFO: ProcessCDR(1,14183764,1,1,2) [2025-01-06 00:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183764', 'tblTempUsageDetail_20' ) start [2025-01-06 00:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183764', 'tblTempUsageDetail_20' ) end [2025-01-06 00:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:04:24] Production.INFO: ==15491== Releasing lock... [2025-01-06 00:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:04:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:05:05 [end_date_ymd] => 2025-01-06 00:05:05 [RateCDR] => 1 ) [2025-01-06 00:05: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-01-05 21:05:05' and `end` < '2025-01-06 00:05: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-01-06 00:05:17] Production.INFO: count ==292 [2025-01-06 00:05:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:05:05 - End Time 2025-01-06 00:05:05 [2025-01-06 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183769', 'tblTempUsageDetail_20' ) start [2025-01-06 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183769', 'tblTempUsageDetail_20' ) end [2025-01-06 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183769', 'tblTempVendorCDR_20' ) start [2025-01-06 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183769', 'tblTempVendorCDR_20' ) end [2025-01-06 00:05:18] Production.INFO: ProcessCDR(1,14183769,1,1,2) [2025-01-06 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183769', 'tblTempUsageDetail_20' ) start [2025-01-06 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183769', 'tblTempUsageDetail_20' ) end [2025-01-06 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:05:21] Production.INFO: ==15620== Releasing lock... [2025-01-06 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:05:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:06:04 [end_date_ymd] => 2025-01-06 00:06:04 [RateCDR] => 1 ) [2025-01-06 00:06: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-01-05 21:06:04' and `end` < '2025-01-06 00:06: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-01-06 00:06:17] Production.INFO: count ==292 [2025-01-06 00:06:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:06:04 - End Time 2025-01-06 00:06:04 [2025-01-06 00:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183774', 'tblTempUsageDetail_20' ) start [2025-01-06 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183774', 'tblTempUsageDetail_20' ) end [2025-01-06 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183774', 'tblTempVendorCDR_20' ) start [2025-01-06 00:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183774', 'tblTempVendorCDR_20' ) end [2025-01-06 00:06:17] Production.INFO: ProcessCDR(1,14183774,1,1,2) [2025-01-06 00:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183774', 'tblTempUsageDetail_20' ) start [2025-01-06 00:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183774', 'tblTempUsageDetail_20' ) end [2025-01-06 00:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:06:20] Production.INFO: ==15705== Releasing lock... [2025-01-06 00:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:06:20] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:07:05 [end_date_ymd] => 2025-01-06 00:07:05 [RateCDR] => 1 ) [2025-01-06 00:07: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-01-05 21:07:05' and `end` < '2025-01-06 00:07: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-01-06 00:07:18] Production.INFO: count ==292 [2025-01-06 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:07:05 - End Time 2025-01-06 00:07:05 [2025-01-06 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183779', 'tblTempUsageDetail_20' ) start [2025-01-06 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183779', 'tblTempUsageDetail_20' ) end [2025-01-06 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183779', 'tblTempVendorCDR_20' ) start [2025-01-06 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183779', 'tblTempVendorCDR_20' ) end [2025-01-06 00:07:18] Production.INFO: ProcessCDR(1,14183779,1,1,2) [2025-01-06 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183779', 'tblTempUsageDetail_20' ) start [2025-01-06 00:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183779', 'tblTempUsageDetail_20' ) end [2025-01-06 00:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:07:21] Production.INFO: ==15794== Releasing lock... [2025-01-06 00:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:07:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:08:05 [end_date_ymd] => 2025-01-06 00:08:05 [RateCDR] => 1 ) [2025-01-06 00:08: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-01-05 21:08:05' and `end` < '2025-01-06 00:08: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-01-06 00:08:18] Production.INFO: count ==292 [2025-01-06 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:08:05 - End Time 2025-01-06 00:08:05 [2025-01-06 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183784', 'tblTempUsageDetail_20' ) start [2025-01-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183784', 'tblTempUsageDetail_20' ) end [2025-01-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183784', 'tblTempVendorCDR_20' ) start [2025-01-06 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183784', 'tblTempVendorCDR_20' ) end [2025-01-06 00:08:18] Production.INFO: ProcessCDR(1,14183784,1,1,2) [2025-01-06 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183784', 'tblTempUsageDetail_20' ) start [2025-01-06 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183784', 'tblTempUsageDetail_20' ) end [2025-01-06 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:08:21] Production.INFO: ==15877== Releasing lock... [2025-01-06 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:08:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:09:05 [end_date_ymd] => 2025-01-06 00:09:05 [RateCDR] => 1 ) [2025-01-06 00:09: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-01-05 21:09:05' and `end` < '2025-01-06 00:09: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-01-06 00:09:18] Production.INFO: count ==291 [2025-01-06 00:09:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:09:05 - End Time 2025-01-06 00:09:05 [2025-01-06 00:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183789', 'tblTempUsageDetail_20' ) start [2025-01-06 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183789', 'tblTempUsageDetail_20' ) end [2025-01-06 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183789', 'tblTempVendorCDR_20' ) start [2025-01-06 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183789', 'tblTempVendorCDR_20' ) end [2025-01-06 00:09:18] Production.INFO: ProcessCDR(1,14183789,1,1,2) [2025-01-06 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183789', 'tblTempUsageDetail_20' ) start [2025-01-06 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183789', 'tblTempUsageDetail_20' ) end [2025-01-06 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:09:21] Production.INFO: ==15964== Releasing lock... [2025-01-06 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:09:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:10:06 [end_date_ymd] => 2025-01-06 00:10:06 [RateCDR] => 1 ) [2025-01-06 00:10: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-01-05 21:10:06' and `end` < '2025-01-06 00:10: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-01-06 00:10:19] Production.INFO: count ==299 [2025-01-06 00:10:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:10:06 - End Time 2025-01-06 00:10:06 [2025-01-06 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183795', 'tblTempUsageDetail_20' ) start [2025-01-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183795', 'tblTempUsageDetail_20' ) end [2025-01-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183795', 'tblTempVendorCDR_20' ) start [2025-01-06 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183795', 'tblTempVendorCDR_20' ) end [2025-01-06 00:10:19] Production.INFO: ProcessCDR(1,14183795,1,1,2) [2025-01-06 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183795', 'tblTempUsageDetail_20' ) start [2025-01-06 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183795', 'tblTempUsageDetail_20' ) end [2025-01-06 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:10:22] Production.INFO: ==16050== Releasing lock... [2025-01-06 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:11:05 [end_date_ymd] => 2025-01-06 00:11:05 [RateCDR] => 1 ) [2025-01-06 00:11: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-01-05 21:11:05' and `end` < '2025-01-06 00:11: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-01-06 00:11:18] Production.INFO: count ==329 [2025-01-06 00:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:11:05 - End Time 2025-01-06 00:11:05 [2025-01-06 00:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183800', 'tblTempUsageDetail_20' ) start [2025-01-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183800', 'tblTempUsageDetail_20' ) end [2025-01-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183800', 'tblTempVendorCDR_20' ) start [2025-01-06 00:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183800', 'tblTempVendorCDR_20' ) end [2025-01-06 00:11:18] Production.INFO: ProcessCDR(1,14183800,1,1,2) [2025-01-06 00:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183800', 'tblTempUsageDetail_20' ) start [2025-01-06 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183800', 'tblTempUsageDetail_20' ) end [2025-01-06 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:11:22] Production.INFO: ==16136== Releasing lock... [2025-01-06 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:11:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:12:06 [end_date_ymd] => 2025-01-06 00:12:06 [RateCDR] => 1 ) [2025-01-06 00:12: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-01-05 21:12:06' and `end` < '2025-01-06 00:12: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-01-06 00:12:18] Production.INFO: count ==329 [2025-01-06 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:12:06 - End Time 2025-01-06 00:12:06 [2025-01-06 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183805', 'tblTempUsageDetail_20' ) start [2025-01-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183805', 'tblTempUsageDetail_20' ) end [2025-01-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183805', 'tblTempVendorCDR_20' ) start [2025-01-06 00:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183805', 'tblTempVendorCDR_20' ) end [2025-01-06 00:12:19] Production.INFO: ProcessCDR(1,14183805,1,1,2) [2025-01-06 00:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183805', 'tblTempUsageDetail_20' ) start [2025-01-06 00:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183805', 'tblTempUsageDetail_20' ) end [2025-01-06 00:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:12:22] Production.INFO: ==16219== Releasing lock... [2025-01-06 00:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:12:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:13:05 [end_date_ymd] => 2025-01-06 00:13:05 [RateCDR] => 1 ) [2025-01-06 00:13: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-01-05 21:13:05' and `end` < '2025-01-06 00:13: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-01-06 00:13:17] Production.INFO: count ==332 [2025-01-06 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:13:05 - End Time 2025-01-06 00:13:05 [2025-01-06 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183810', 'tblTempUsageDetail_20' ) start [2025-01-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183810', 'tblTempUsageDetail_20' ) end [2025-01-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183810', 'tblTempVendorCDR_20' ) start [2025-01-06 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183810', 'tblTempVendorCDR_20' ) end [2025-01-06 00:13:18] Production.INFO: ProcessCDR(1,14183810,1,1,2) [2025-01-06 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183810', 'tblTempUsageDetail_20' ) start [2025-01-06 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183810', 'tblTempUsageDetail_20' ) end [2025-01-06 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:13:21] Production.INFO: ==16299== Releasing lock... [2025-01-06 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:13:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:14:05 [end_date_ymd] => 2025-01-06 00:14:05 [RateCDR] => 1 ) [2025-01-06 00:14: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-01-05 21:14:05' and `end` < '2025-01-06 00:14: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-01-06 00:14:18] Production.INFO: count ==335 [2025-01-06 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:14:05 - End Time 2025-01-06 00:14:05 [2025-01-06 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183815', 'tblTempUsageDetail_20' ) start [2025-01-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183815', 'tblTempUsageDetail_20' ) end [2025-01-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183815', 'tblTempVendorCDR_20' ) start [2025-01-06 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183815', 'tblTempVendorCDR_20' ) end [2025-01-06 00:14:18] Production.INFO: ProcessCDR(1,14183815,1,1,2) [2025-01-06 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183815', 'tblTempUsageDetail_20' ) start [2025-01-06 00:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183815', 'tblTempUsageDetail_20' ) end [2025-01-06 00:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:14:22] Production.INFO: ==16384== Releasing lock... [2025-01-06 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:14:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:15:05 [end_date_ymd] => 2025-01-06 00:15:05 [RateCDR] => 1 ) [2025-01-06 00:15: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-01-05 21:15:05' and `end` < '2025-01-06 00:15: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-01-06 00:15:18] Production.INFO: count ==335 [2025-01-06 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:15:05 - End Time 2025-01-06 00:15:05 [2025-01-06 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183820', 'tblTempUsageDetail_20' ) start [2025-01-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183820', 'tblTempUsageDetail_20' ) end [2025-01-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183820', 'tblTempVendorCDR_20' ) start [2025-01-06 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183820', 'tblTempVendorCDR_20' ) end [2025-01-06 00:15:18] Production.INFO: ProcessCDR(1,14183820,1,1,2) [2025-01-06 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183820', 'tblTempUsageDetail_20' ) start [2025-01-06 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183820', 'tblTempUsageDetail_20' ) end [2025-01-06 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:15:21] Production.INFO: ==16466== Releasing lock... [2025-01-06 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:15:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:16:05 [end_date_ymd] => 2025-01-06 00:16:05 [RateCDR] => 1 ) [2025-01-06 00:16: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-01-05 21:16:05' and `end` < '2025-01-06 00:16: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-01-06 00:16:18] Production.INFO: count ==334 [2025-01-06 00:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:16:05 - End Time 2025-01-06 00:16:05 [2025-01-06 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183825', 'tblTempUsageDetail_20' ) start [2025-01-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183825', 'tblTempUsageDetail_20' ) end [2025-01-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183825', 'tblTempVendorCDR_20' ) start [2025-01-06 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183825', 'tblTempVendorCDR_20' ) end [2025-01-06 00:16:18] Production.INFO: ProcessCDR(1,14183825,1,1,2) [2025-01-06 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183825', 'tblTempUsageDetail_20' ) start [2025-01-06 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183825', 'tblTempUsageDetail_20' ) end [2025-01-06 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:16:21] Production.INFO: ==16544== Releasing lock... [2025-01-06 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:16:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-06 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:17:05 [end_date_ymd] => 2025-01-06 00:17:05 [RateCDR] => 1 ) [2025-01-06 00:17: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-01-05 21:17:05' and `end` < '2025-01-06 00:17: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-01-06 00:17:19] Production.INFO: count ==331 [2025-01-06 00:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:17:05 - End Time 2025-01-06 00:17:05 [2025-01-06 00:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183830', 'tblTempUsageDetail_20' ) start [2025-01-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183830', 'tblTempUsageDetail_20' ) end [2025-01-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183830', 'tblTempVendorCDR_20' ) start [2025-01-06 00:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183830', 'tblTempVendorCDR_20' ) end [2025-01-06 00:17:19] Production.INFO: ProcessCDR(1,14183830,1,1,2) [2025-01-06 00:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183830', 'tblTempUsageDetail_20' ) start [2025-01-06 00:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183830', 'tblTempUsageDetail_20' ) end [2025-01-06 00:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:17:22] Production.INFO: ==16623== Releasing lock... [2025-01-06 00:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:17:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:18:05 [end_date_ymd] => 2025-01-06 00:18:05 [RateCDR] => 1 ) [2025-01-06 00:18: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-01-05 21:18:05' and `end` < '2025-01-06 00:18: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-01-06 00:18:19] Production.INFO: count ==331 [2025-01-06 00:18:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:18:05 - End Time 2025-01-06 00:18:05 [2025-01-06 00:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183835', 'tblTempUsageDetail_20' ) start [2025-01-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183835', 'tblTempUsageDetail_20' ) end [2025-01-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183835', 'tblTempVendorCDR_20' ) start [2025-01-06 00:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183835', 'tblTempVendorCDR_20' ) end [2025-01-06 00:18:19] Production.INFO: ProcessCDR(1,14183835,1,1,2) [2025-01-06 00:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183835', 'tblTempUsageDetail_20' ) start [2025-01-06 00:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183835', 'tblTempUsageDetail_20' ) end [2025-01-06 00:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:18:22] Production.INFO: ==16711== Releasing lock... [2025-01-06 00:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:18:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 00:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:19:04 [end_date_ymd] => 2025-01-06 00:19:04 [RateCDR] => 1 ) [2025-01-06 00:19: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-01-05 21:19:04' and `end` < '2025-01-06 00:19: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-01-06 00:19:17] Production.INFO: count ==328 [2025-01-06 00:19:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:19:04 - End Time 2025-01-06 00:19:04 [2025-01-06 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183840', 'tblTempUsageDetail_20' ) start [2025-01-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183840', 'tblTempUsageDetail_20' ) end [2025-01-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183840', 'tblTempVendorCDR_20' ) start [2025-01-06 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183840', 'tblTempVendorCDR_20' ) end [2025-01-06 00:19:17] Production.INFO: ProcessCDR(1,14183840,1,1,2) [2025-01-06 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183840', 'tblTempUsageDetail_20' ) start [2025-01-06 00:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183840', 'tblTempUsageDetail_20' ) end [2025-01-06 00:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:19:20] Production.INFO: ==16787== Releasing lock... [2025-01-06 00:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 00:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:20:05 [end_date_ymd] => 2025-01-06 00:20:05 [RateCDR] => 1 ) [2025-01-06 00:20: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-01-05 21:20:05' and `end` < '2025-01-06 00:20: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-01-06 00:20:18] Production.INFO: count ==334 [2025-01-06 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:20:05 - End Time 2025-01-06 00:20:05 [2025-01-06 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183846', 'tblTempUsageDetail_20' ) start [2025-01-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183846', 'tblTempUsageDetail_20' ) end [2025-01-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183846', 'tblTempVendorCDR_20' ) start [2025-01-06 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183846', 'tblTempVendorCDR_20' ) end [2025-01-06 00:20:18] Production.INFO: ProcessCDR(1,14183846,1,1,2) [2025-01-06 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183846', 'tblTempUsageDetail_20' ) start [2025-01-06 00:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183846', 'tblTempUsageDetail_20' ) end [2025-01-06 00:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:20:21] Production.INFO: ==16868== Releasing lock... [2025-01-06 00:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:20:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-06 00:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:21:06 [end_date_ymd] => 2025-01-06 00:21:06 [RateCDR] => 1 ) [2025-01-06 00:21: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-01-05 21:21:06' and `end` < '2025-01-06 00:21: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-01-06 00:21:19] Production.INFO: count ==352 [2025-01-06 00:21:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:21:06 - End Time 2025-01-06 00:21:06 [2025-01-06 00:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183851', 'tblTempUsageDetail_20' ) start [2025-01-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183851', 'tblTempUsageDetail_20' ) end [2025-01-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183851', 'tblTempVendorCDR_20' ) start [2025-01-06 00:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183851', 'tblTempVendorCDR_20' ) end [2025-01-06 00:21:19] Production.INFO: ProcessCDR(1,14183851,1,1,2) [2025-01-06 00:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183851', 'tblTempUsageDetail_20' ) start [2025-01-06 00:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183851', 'tblTempUsageDetail_20' ) end [2025-01-06 00:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:21:22] Production.INFO: ==16990== Releasing lock... [2025-01-06 00:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:21:22] Production.INFO: 31.5 MB #Memory Used# [2025-01-06 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:22:05 [end_date_ymd] => 2025-01-06 00:22:05 [RateCDR] => 1 ) [2025-01-06 00:22: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-01-05 21:22:05' and `end` < '2025-01-06 00:22: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-01-06 00:22:18] Production.INFO: count ==348 [2025-01-06 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:22:05 - End Time 2025-01-06 00:22:05 [2025-01-06 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183856', 'tblTempUsageDetail_20' ) start [2025-01-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183856', 'tblTempUsageDetail_20' ) end [2025-01-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183856', 'tblTempVendorCDR_20' ) start [2025-01-06 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183856', 'tblTempVendorCDR_20' ) end [2025-01-06 00:22:18] Production.INFO: ProcessCDR(1,14183856,1,1,2) [2025-01-06 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183856', 'tblTempUsageDetail_20' ) start [2025-01-06 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183856', 'tblTempUsageDetail_20' ) end [2025-01-06 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:22:21] Production.INFO: ==17065== Releasing lock... [2025-01-06 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:23:05 [end_date_ymd] => 2025-01-06 00:23:05 [RateCDR] => 1 ) [2025-01-06 00:23: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-01-05 21:23:05' and `end` < '2025-01-06 00:23: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-01-06 00:23:18] Production.INFO: count ==346 [2025-01-06 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:23:05 - End Time 2025-01-06 00:23:05 [2025-01-06 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183861', 'tblTempUsageDetail_20' ) start [2025-01-06 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183861', 'tblTempUsageDetail_20' ) end [2025-01-06 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183861', 'tblTempVendorCDR_20' ) start [2025-01-06 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183861', 'tblTempVendorCDR_20' ) end [2025-01-06 00:23:18] Production.INFO: ProcessCDR(1,14183861,1,1,2) [2025-01-06 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183861', 'tblTempUsageDetail_20' ) start [2025-01-06 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183861', 'tblTempUsageDetail_20' ) end [2025-01-06 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:23:21] Production.INFO: ==17139== Releasing lock... [2025-01-06 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:23:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:24:04 [end_date_ymd] => 2025-01-06 00:24:04 [RateCDR] => 1 ) [2025-01-06 00:24: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-01-05 21:24:04' and `end` < '2025-01-06 00:24: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-01-06 00:24:17] Production.INFO: count ==292 [2025-01-06 00:24:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:24:04 - End Time 2025-01-06 00:24:04 [2025-01-06 00:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183866', 'tblTempUsageDetail_20' ) start [2025-01-06 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183866', 'tblTempUsageDetail_20' ) end [2025-01-06 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183866', 'tblTempVendorCDR_20' ) start [2025-01-06 00:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183866', 'tblTempVendorCDR_20' ) end [2025-01-06 00:24:17] Production.INFO: ProcessCDR(1,14183866,1,1,2) [2025-01-06 00:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:24:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183866', 'tblTempUsageDetail_20' ) start [2025-01-06 00:24:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183866', 'tblTempUsageDetail_20' ) end [2025-01-06 00:24:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:24:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:24:20] Production.INFO: ==17214== Releasing lock... [2025-01-06 00:24:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:24:20] Production.INFO: 31.5 MB #Memory Used# [2025-01-06 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:25:05 [end_date_ymd] => 2025-01-06 00:25:05 [RateCDR] => 1 ) [2025-01-06 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-01-05 21:25:05' and `end` < '2025-01-06 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-01-06 00:25:18] Production.INFO: count ==232 [2025-01-06 00:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:25:05 - End Time 2025-01-06 00:25:05 [2025-01-06 00:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183871', 'tblTempUsageDetail_20' ) start [2025-01-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183871', 'tblTempUsageDetail_20' ) end [2025-01-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183871', 'tblTempVendorCDR_20' ) start [2025-01-06 00:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183871', 'tblTempVendorCDR_20' ) end [2025-01-06 00:25:18] Production.INFO: ProcessCDR(1,14183871,1,1,2) [2025-01-06 00:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183871', 'tblTempUsageDetail_20' ) start [2025-01-06 00:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183871', 'tblTempUsageDetail_20' ) end [2025-01-06 00:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:25:22] Production.INFO: ==17286== Releasing lock... [2025-01-06 00:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:25:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-06 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:26:05 [end_date_ymd] => 2025-01-06 00:26:05 [RateCDR] => 1 ) [2025-01-06 00:26: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-01-05 21:26:05' and `end` < '2025-01-06 00:26: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-01-06 00:26:18] Production.INFO: count ==193 [2025-01-06 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:26:05 - End Time 2025-01-06 00:26:05 [2025-01-06 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183876', 'tblTempUsageDetail_20' ) start [2025-01-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183876', 'tblTempUsageDetail_20' ) end [2025-01-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183876', 'tblTempVendorCDR_20' ) start [2025-01-06 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183876', 'tblTempVendorCDR_20' ) end [2025-01-06 00:26:18] Production.INFO: ProcessCDR(1,14183876,1,1,2) [2025-01-06 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183876', 'tblTempUsageDetail_20' ) start [2025-01-06 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183876', 'tblTempUsageDetail_20' ) end [2025-01-06 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:26:21] Production.INFO: ==17373== Releasing lock... [2025-01-06 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:26:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-06 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:27:05 [end_date_ymd] => 2025-01-06 00:27:05 [RateCDR] => 1 ) [2025-01-06 00:27: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-01-05 21:27:05' and `end` < '2025-01-06 00:27: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-01-06 00:27:19] Production.INFO: count ==189 [2025-01-06 00:27:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:27:05 - End Time 2025-01-06 00:27:05 [2025-01-06 00:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183881', 'tblTempUsageDetail_20' ) start [2025-01-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183881', 'tblTempUsageDetail_20' ) end [2025-01-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183881', 'tblTempVendorCDR_20' ) start [2025-01-06 00:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183881', 'tblTempVendorCDR_20' ) end [2025-01-06 00:27:19] Production.INFO: ProcessCDR(1,14183881,1,1,2) [2025-01-06 00:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183881', 'tblTempUsageDetail_20' ) start [2025-01-06 00:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183881', 'tblTempUsageDetail_20' ) end [2025-01-06 00:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:27:22] Production.INFO: ==17452== Releasing lock... [2025-01-06 00:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:27:22] Production.INFO: 30 MB #Memory Used# [2025-01-06 00:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:28:04 [end_date_ymd] => 2025-01-06 00:28:04 [RateCDR] => 1 ) [2025-01-06 00:28: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-01-05 21:28:04' and `end` < '2025-01-06 00:28: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-01-06 00:28:18] Production.INFO: count ==187 [2025-01-06 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:28:04 - End Time 2025-01-06 00:28:04 [2025-01-06 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183886', 'tblTempUsageDetail_20' ) start [2025-01-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183886', 'tblTempUsageDetail_20' ) end [2025-01-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183886', 'tblTempVendorCDR_20' ) start [2025-01-06 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183886', 'tblTempVendorCDR_20' ) end [2025-01-06 00:28:18] Production.INFO: ProcessCDR(1,14183886,1,1,2) [2025-01-06 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183886', 'tblTempUsageDetail_20' ) start [2025-01-06 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183886', 'tblTempUsageDetail_20' ) end [2025-01-06 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:28:21] Production.INFO: ==17533== Releasing lock... [2025-01-06 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-06 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:29:05 [end_date_ymd] => 2025-01-06 00:29:05 [RateCDR] => 1 ) [2025-01-06 00:29: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-01-05 21:29:05' and `end` < '2025-01-06 00:29: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-01-06 00:29:17] Production.INFO: count ==188 [2025-01-06 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:29:05 - End Time 2025-01-06 00:29:05 [2025-01-06 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183891', 'tblTempUsageDetail_20' ) start [2025-01-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183891', 'tblTempUsageDetail_20' ) end [2025-01-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183891', 'tblTempVendorCDR_20' ) start [2025-01-06 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183891', 'tblTempVendorCDR_20' ) end [2025-01-06 00:29:17] Production.INFO: ProcessCDR(1,14183891,1,1,2) [2025-01-06 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183891', 'tblTempUsageDetail_20' ) start [2025-01-06 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183891', 'tblTempUsageDetail_20' ) end [2025-01-06 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:29:21] Production.INFO: ==17615== Releasing lock... [2025-01-06 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:29:21] Production.INFO: 30 MB #Memory Used# [2025-01-06 00:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:30:06 [end_date_ymd] => 2025-01-06 00:30:06 [RateCDR] => 1 ) [2025-01-06 00:30: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-01-05 21:30:06' and `end` < '2025-01-06 00:30: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-01-06 00:30:19] Production.INFO: count ==191 [2025-01-06 00:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:30:06 - End Time 2025-01-06 00:30:06 [2025-01-06 00:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183897', 'tblTempUsageDetail_20' ) start [2025-01-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183897', 'tblTempUsageDetail_20' ) end [2025-01-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183897', 'tblTempVendorCDR_20' ) start [2025-01-06 00:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183897', 'tblTempVendorCDR_20' ) end [2025-01-06 00:30:19] Production.INFO: ProcessCDR(1,14183897,1,1,2) [2025-01-06 00:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183897', 'tblTempUsageDetail_20' ) start [2025-01-06 00:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183897', 'tblTempUsageDetail_20' ) end [2025-01-06 00:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:30:22] Production.INFO: ==17697== Releasing lock... [2025-01-06 00:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:31:05 [end_date_ymd] => 2025-01-06 00:31:05 [RateCDR] => 1 ) [2025-01-06 00:31: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-01-05 21:31:05' and `end` < '2025-01-06 00:31: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-01-06 00:31:17] Production.INFO: count ==195 [2025-01-06 00:31:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:31:05 - End Time 2025-01-06 00:31:05 [2025-01-06 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183902', 'tblTempUsageDetail_20' ) start [2025-01-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183902', 'tblTempUsageDetail_20' ) end [2025-01-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183902', 'tblTempVendorCDR_20' ) start [2025-01-06 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183902', 'tblTempVendorCDR_20' ) end [2025-01-06 00:31:17] Production.INFO: ProcessCDR(1,14183902,1,1,2) [2025-01-06 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183902', 'tblTempUsageDetail_20' ) start [2025-01-06 00:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183902', 'tblTempUsageDetail_20' ) end [2025-01-06 00:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:31:20] Production.INFO: ==17781== Releasing lock... [2025-01-06 00:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:31:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:32:06 [end_date_ymd] => 2025-01-06 00:32:06 [RateCDR] => 1 ) [2025-01-06 00:32: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-01-05 21:32:06' and `end` < '2025-01-06 00:32: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-01-06 00:32:18] Production.INFO: count ==195 [2025-01-06 00:32:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:32:06 - End Time 2025-01-06 00:32:06 [2025-01-06 00:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183907', 'tblTempUsageDetail_20' ) start [2025-01-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183907', 'tblTempUsageDetail_20' ) end [2025-01-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183907', 'tblTempVendorCDR_20' ) start [2025-01-06 00:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183907', 'tblTempVendorCDR_20' ) end [2025-01-06 00:32:19] Production.INFO: ProcessCDR(1,14183907,1,1,2) [2025-01-06 00:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183907', 'tblTempUsageDetail_20' ) start [2025-01-06 00:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183907', 'tblTempUsageDetail_20' ) end [2025-01-06 00:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:32:22] Production.INFO: ==17860== Releasing lock... [2025-01-06 00:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:32:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:33:04 [end_date_ymd] => 2025-01-06 00:33:04 [RateCDR] => 1 ) [2025-01-06 00:33: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-01-05 21:33:04' and `end` < '2025-01-06 00:33: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-01-06 00:33:18] Production.INFO: count ==194 [2025-01-06 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:33:04 - End Time 2025-01-06 00:33:04 [2025-01-06 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183912', 'tblTempUsageDetail_20' ) start [2025-01-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183912', 'tblTempUsageDetail_20' ) end [2025-01-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183912', 'tblTempVendorCDR_20' ) start [2025-01-06 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183912', 'tblTempVendorCDR_20' ) end [2025-01-06 00:33:18] Production.INFO: ProcessCDR(1,14183912,1,1,2) [2025-01-06 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183912', 'tblTempUsageDetail_20' ) start [2025-01-06 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183912', 'tblTempUsageDetail_20' ) end [2025-01-06 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:33:21] Production.INFO: ==17941== Releasing lock... [2025-01-06 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:33:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:34:05 [end_date_ymd] => 2025-01-06 00:34:05 [RateCDR] => 1 ) [2025-01-06 00:34: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-01-05 21:34:05' and `end` < '2025-01-06 00:34: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-01-06 00:34:18] Production.INFO: count ==193 [2025-01-06 00:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:34:05 - End Time 2025-01-06 00:34:05 [2025-01-06 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183917', 'tblTempUsageDetail_20' ) start [2025-01-06 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183917', 'tblTempUsageDetail_20' ) end [2025-01-06 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183917', 'tblTempVendorCDR_20' ) start [2025-01-06 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183917', 'tblTempVendorCDR_20' ) end [2025-01-06 00:34:18] Production.INFO: ProcessCDR(1,14183917,1,1,2) [2025-01-06 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183917', 'tblTempUsageDetail_20' ) start [2025-01-06 00:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183917', 'tblTempUsageDetail_20' ) end [2025-01-06 00:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:34:21] Production.INFO: ==18020== Releasing lock... [2025-01-06 00:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:34:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:35:04 [end_date_ymd] => 2025-01-06 00:35:04 [RateCDR] => 1 ) [2025-01-06 00:35: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-01-05 21:35:04' and `end` < '2025-01-06 00:35: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-01-06 00:35:17] Production.INFO: count ==193 [2025-01-06 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:35:04 - End Time 2025-01-06 00:35:04 [2025-01-06 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183922', 'tblTempUsageDetail_20' ) start [2025-01-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183922', 'tblTempUsageDetail_20' ) end [2025-01-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183922', 'tblTempVendorCDR_20' ) start [2025-01-06 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183922', 'tblTempVendorCDR_20' ) end [2025-01-06 00:35:17] Production.INFO: ProcessCDR(1,14183922,1,1,2) [2025-01-06 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183922', 'tblTempUsageDetail_20' ) start [2025-01-06 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183922', 'tblTempUsageDetail_20' ) end [2025-01-06 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:35:20] Production.INFO: ==18099== Releasing lock... [2025-01-06 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:36:05 [end_date_ymd] => 2025-01-06 00:36:05 [RateCDR] => 1 ) [2025-01-06 00:36: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-01-05 21:36:05' and `end` < '2025-01-06 00:36: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-01-06 00:36:19] Production.INFO: count ==193 [2025-01-06 00:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:36:05 - End Time 2025-01-06 00:36:05 [2025-01-06 00:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183927', 'tblTempUsageDetail_20' ) start [2025-01-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183927', 'tblTempUsageDetail_20' ) end [2025-01-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183927', 'tblTempVendorCDR_20' ) start [2025-01-06 00:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183927', 'tblTempVendorCDR_20' ) end [2025-01-06 00:36:19] Production.INFO: ProcessCDR(1,14183927,1,1,2) [2025-01-06 00:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183927', 'tblTempUsageDetail_20' ) start [2025-01-06 00:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183927', 'tblTempUsageDetail_20' ) end [2025-01-06 00:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:36:22] Production.INFO: ==18219== Releasing lock... [2025-01-06 00:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:36:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:37:04 [end_date_ymd] => 2025-01-06 00:37:04 [RateCDR] => 1 ) [2025-01-06 00:37: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-01-05 21:37:04' and `end` < '2025-01-06 00:37: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-01-06 00:37:17] Production.INFO: count ==190 [2025-01-06 00:37:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:37:04 - End Time 2025-01-06 00:37:04 [2025-01-06 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183932', 'tblTempUsageDetail_20' ) start [2025-01-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183932', 'tblTempUsageDetail_20' ) end [2025-01-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183932', 'tblTempVendorCDR_20' ) start [2025-01-06 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183932', 'tblTempVendorCDR_20' ) end [2025-01-06 00:37:17] Production.INFO: ProcessCDR(1,14183932,1,1,2) [2025-01-06 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183932', 'tblTempUsageDetail_20' ) start [2025-01-06 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183932', 'tblTempUsageDetail_20' ) end [2025-01-06 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:37:20] Production.INFO: ==18296== Releasing lock... [2025-01-06 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:37:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-06 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:38:05 [end_date_ymd] => 2025-01-06 00:38:05 [RateCDR] => 1 ) [2025-01-06 00:38: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-01-05 21:38:05' and `end` < '2025-01-06 00:38: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-01-06 00:38:17] Production.INFO: count ==188 [2025-01-06 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:38:05 - End Time 2025-01-06 00:38:05 [2025-01-06 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183937', 'tblTempUsageDetail_20' ) start [2025-01-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183937', 'tblTempUsageDetail_20' ) end [2025-01-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183937', 'tblTempVendorCDR_20' ) start [2025-01-06 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183937', 'tblTempVendorCDR_20' ) end [2025-01-06 00:38:18] Production.INFO: ProcessCDR(1,14183937,1,1,2) [2025-01-06 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183937', 'tblTempUsageDetail_20' ) start [2025-01-06 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183937', 'tblTempUsageDetail_20' ) end [2025-01-06 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:38:21] Production.INFO: ==18367== Releasing lock... [2025-01-06 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-06 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:39:05 [end_date_ymd] => 2025-01-06 00:39:05 [RateCDR] => 1 ) [2025-01-06 00:39: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-01-05 21:39:05' and `end` < '2025-01-06 00:39: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-01-06 00:39:18] Production.INFO: count ==185 [2025-01-06 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:39:05 - End Time 2025-01-06 00:39:05 [2025-01-06 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183942', 'tblTempUsageDetail_20' ) start [2025-01-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183942', 'tblTempUsageDetail_20' ) end [2025-01-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183942', 'tblTempVendorCDR_20' ) start [2025-01-06 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183942', 'tblTempVendorCDR_20' ) end [2025-01-06 00:39:18] Production.INFO: ProcessCDR(1,14183942,1,1,2) [2025-01-06 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183942', 'tblTempUsageDetail_20' ) start [2025-01-06 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183942', 'tblTempUsageDetail_20' ) end [2025-01-06 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:39:21] Production.INFO: ==18439== Releasing lock... [2025-01-06 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:39:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:40:05 [end_date_ymd] => 2025-01-06 00:40:05 [RateCDR] => 1 ) [2025-01-06 00:40: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-01-05 21:40:05' and `end` < '2025-01-06 00:40: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-01-06 00:40:19] Production.INFO: count ==190 [2025-01-06 00:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:40:05 - End Time 2025-01-06 00:40:05 [2025-01-06 00:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183948', 'tblTempUsageDetail_20' ) start [2025-01-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183948', 'tblTempUsageDetail_20' ) end [2025-01-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183948', 'tblTempVendorCDR_20' ) start [2025-01-06 00:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183948', 'tblTempVendorCDR_20' ) end [2025-01-06 00:40:19] Production.INFO: ProcessCDR(1,14183948,1,1,2) [2025-01-06 00:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183948', 'tblTempUsageDetail_20' ) start [2025-01-06 00:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183948', 'tblTempUsageDetail_20' ) end [2025-01-06 00:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:40:23] Production.INFO: ==18515== Releasing lock... [2025-01-06 00:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:40:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-06 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:41:05 [end_date_ymd] => 2025-01-06 00:41:05 [RateCDR] => 1 ) [2025-01-06 00:41: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-01-05 21:41:05' and `end` < '2025-01-06 00:41: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-01-06 00:41:18] Production.INFO: count ==194 [2025-01-06 00:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:41:05 - End Time 2025-01-06 00:41:05 [2025-01-06 00:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183953', 'tblTempUsageDetail_20' ) start [2025-01-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183953', 'tblTempUsageDetail_20' ) end [2025-01-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183953', 'tblTempVendorCDR_20' ) start [2025-01-06 00:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183953', 'tblTempVendorCDR_20' ) end [2025-01-06 00:41:18] Production.INFO: ProcessCDR(1,14183953,1,1,2) [2025-01-06 00:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183953', 'tblTempUsageDetail_20' ) start [2025-01-06 00:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183953', 'tblTempUsageDetail_20' ) end [2025-01-06 00:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:41:21] Production.INFO: ==18590== Releasing lock... [2025-01-06 00:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:42:05 [end_date_ymd] => 2025-01-06 00:42:05 [RateCDR] => 1 ) [2025-01-06 00:42: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-01-05 21:42:05' and `end` < '2025-01-06 00:42: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-01-06 00:42:17] Production.INFO: count ==192 [2025-01-06 00:42:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:42:05 - End Time 2025-01-06 00:42:05 [2025-01-06 00:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183958', 'tblTempUsageDetail_20' ) start [2025-01-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183958', 'tblTempUsageDetail_20' ) end [2025-01-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183958', 'tblTempVendorCDR_20' ) start [2025-01-06 00:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183958', 'tblTempVendorCDR_20' ) end [2025-01-06 00:42:17] Production.INFO: ProcessCDR(1,14183958,1,1,2) [2025-01-06 00:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183958', 'tblTempUsageDetail_20' ) start [2025-01-06 00:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183958', 'tblTempUsageDetail_20' ) end [2025-01-06 00:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:42:21] Production.INFO: ==18666== Releasing lock... [2025-01-06 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:42:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:43:05 [end_date_ymd] => 2025-01-06 00:43:05 [RateCDR] => 1 ) [2025-01-06 00:43: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-01-05 21:43:05' and `end` < '2025-01-06 00:43: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-01-06 00:43:18] Production.INFO: count ==190 [2025-01-06 00:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:43:05 - End Time 2025-01-06 00:43:05 [2025-01-06 00:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183963', 'tblTempUsageDetail_20' ) start [2025-01-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183963', 'tblTempUsageDetail_20' ) end [2025-01-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183963', 'tblTempVendorCDR_20' ) start [2025-01-06 00:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183963', 'tblTempVendorCDR_20' ) end [2025-01-06 00:43:18] Production.INFO: ProcessCDR(1,14183963,1,1,2) [2025-01-06 00:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183963', 'tblTempUsageDetail_20' ) start [2025-01-06 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183963', 'tblTempUsageDetail_20' ) end [2025-01-06 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:43:21] Production.INFO: ==18738== Releasing lock... [2025-01-06 00:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:44:05 [end_date_ymd] => 2025-01-06 00:44:05 [RateCDR] => 1 ) [2025-01-06 00:44: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-01-05 21:44:05' and `end` < '2025-01-06 00:44: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-01-06 00:44:18] Production.INFO: count ==188 [2025-01-06 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:44:05 - End Time 2025-01-06 00:44:05 [2025-01-06 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183968', 'tblTempUsageDetail_20' ) start [2025-01-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183968', 'tblTempUsageDetail_20' ) end [2025-01-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183968', 'tblTempVendorCDR_20' ) start [2025-01-06 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183968', 'tblTempVendorCDR_20' ) end [2025-01-06 00:44:18] Production.INFO: ProcessCDR(1,14183968,1,1,2) [2025-01-06 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183968', 'tblTempUsageDetail_20' ) start [2025-01-06 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183968', 'tblTempUsageDetail_20' ) end [2025-01-06 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:44:21] Production.INFO: ==18813== Releasing lock... [2025-01-06 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:45:05 [end_date_ymd] => 2025-01-06 00:45:05 [RateCDR] => 1 ) [2025-01-06 00:45: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-01-05 21:45:05' and `end` < '2025-01-06 00:45: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-01-06 00:45:19] Production.INFO: count ==187 [2025-01-06 00:45:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:45:05 - End Time 2025-01-06 00:45:05 [2025-01-06 00:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183973', 'tblTempUsageDetail_20' ) start [2025-01-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183973', 'tblTempUsageDetail_20' ) end [2025-01-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183973', 'tblTempVendorCDR_20' ) start [2025-01-06 00:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183973', 'tblTempVendorCDR_20' ) end [2025-01-06 00:45:19] Production.INFO: ProcessCDR(1,14183973,1,1,2) [2025-01-06 00:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183973', 'tblTempUsageDetail_20' ) start [2025-01-06 00:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183973', 'tblTempUsageDetail_20' ) end [2025-01-06 00:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:45:22] Production.INFO: ==18884== Releasing lock... [2025-01-06 00:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:45:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:46:05 [end_date_ymd] => 2025-01-06 00:46:05 [RateCDR] => 1 ) [2025-01-06 00:46: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-01-05 21:46:05' and `end` < '2025-01-06 00:46: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-01-06 00:46:18] Production.INFO: count ==187 [2025-01-06 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:46:05 - End Time 2025-01-06 00:46:05 [2025-01-06 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183978', 'tblTempUsageDetail_20' ) start [2025-01-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183978', 'tblTempUsageDetail_20' ) end [2025-01-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183978', 'tblTempVendorCDR_20' ) start [2025-01-06 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183978', 'tblTempVendorCDR_20' ) end [2025-01-06 00:46:18] Production.INFO: ProcessCDR(1,14183978,1,1,2) [2025-01-06 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183978', 'tblTempUsageDetail_20' ) start [2025-01-06 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183978', 'tblTempUsageDetail_20' ) end [2025-01-06 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:46:21] Production.INFO: ==18954== Releasing lock... [2025-01-06 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:47:04 [end_date_ymd] => 2025-01-06 00:47:04 [RateCDR] => 1 ) [2025-01-06 00:47: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-01-05 21:47:04' and `end` < '2025-01-06 00:47: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-01-06 00:47:17] Production.INFO: count ==186 [2025-01-06 00:47:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:47:04 - End Time 2025-01-06 00:47:04 [2025-01-06 00:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183983', 'tblTempUsageDetail_20' ) start [2025-01-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183983', 'tblTempUsageDetail_20' ) end [2025-01-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183983', 'tblTempVendorCDR_20' ) start [2025-01-06 00:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183983', 'tblTempVendorCDR_20' ) end [2025-01-06 00:47:17] Production.INFO: ProcessCDR(1,14183983,1,1,2) [2025-01-06 00:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183983', 'tblTempUsageDetail_20' ) start [2025-01-06 00:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183983', 'tblTempUsageDetail_20' ) end [2025-01-06 00:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:47:20] Production.INFO: ==19027== Releasing lock... [2025-01-06 00:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:47:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:48:05 [end_date_ymd] => 2025-01-06 00:48:05 [RateCDR] => 1 ) [2025-01-06 00:48: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-01-05 21:48:05' and `end` < '2025-01-06 00:48: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-01-06 00:48:17] Production.INFO: count ==182 [2025-01-06 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:48:05 - End Time 2025-01-06 00:48:05 [2025-01-06 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183988', 'tblTempUsageDetail_20' ) start [2025-01-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183988', 'tblTempUsageDetail_20' ) end [2025-01-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183988', 'tblTempVendorCDR_20' ) start [2025-01-06 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183988', 'tblTempVendorCDR_20' ) end [2025-01-06 00:48:18] Production.INFO: ProcessCDR(1,14183988,1,1,2) [2025-01-06 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183988', 'tblTempUsageDetail_20' ) start [2025-01-06 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183988', 'tblTempUsageDetail_20' ) end [2025-01-06 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:48:21] Production.INFO: ==19099== Releasing lock... [2025-01-06 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:49:05 [end_date_ymd] => 2025-01-06 00:49:05 [RateCDR] => 1 ) [2025-01-06 00:49: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-01-05 21:49:05' and `end` < '2025-01-06 00:49: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-01-06 00:49:18] Production.INFO: count ==179 [2025-01-06 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:49:05 - End Time 2025-01-06 00:49:05 [2025-01-06 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183993', 'tblTempUsageDetail_20' ) start [2025-01-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183993', 'tblTempUsageDetail_20' ) end [2025-01-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183993', 'tblTempVendorCDR_20' ) start [2025-01-06 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183993', 'tblTempVendorCDR_20' ) end [2025-01-06 00:49:18] Production.INFO: ProcessCDR(1,14183993,1,1,2) [2025-01-06 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183993', 'tblTempUsageDetail_20' ) start [2025-01-06 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183993', 'tblTempUsageDetail_20' ) end [2025-01-06 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:49:22] Production.INFO: ==19171== Releasing lock... [2025-01-06 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:50:06 [end_date_ymd] => 2025-01-06 00:50:06 [RateCDR] => 1 ) [2025-01-06 00:50: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-01-05 21:50:06' and `end` < '2025-01-06 00:50: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-01-06 00:50:19] Production.INFO: count ==181 [2025-01-06 00:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:50:06 - End Time 2025-01-06 00:50:06 [2025-01-06 00:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183999', 'tblTempUsageDetail_20' ) start [2025-01-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14183999', 'tblTempUsageDetail_20' ) end [2025-01-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183999', 'tblTempVendorCDR_20' ) start [2025-01-06 00:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14183999', 'tblTempVendorCDR_20' ) end [2025-01-06 00:50:19] Production.INFO: ProcessCDR(1,14183999,1,1,2) [2025-01-06 00:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14183999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14183999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14183999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14183999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183999', 'tblTempUsageDetail_20' ) start [2025-01-06 00:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14183999', 'tblTempUsageDetail_20' ) end [2025-01-06 00:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:50:22] Production.INFO: ==19248== Releasing lock... [2025-01-06 00:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:51:05 [end_date_ymd] => 2025-01-06 00:51:05 [RateCDR] => 1 ) [2025-01-06 00:51: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-01-05 21:51:05' and `end` < '2025-01-06 00:51: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-01-06 00:51:17] Production.INFO: count ==180 [2025-01-06 00:51:17] Production.ERROR: pbx CDR StartTime 2025-01-05 21:51:05 - End Time 2025-01-06 00:51:05 [2025-01-06 00:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184004', 'tblTempUsageDetail_20' ) start [2025-01-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184004', 'tblTempUsageDetail_20' ) end [2025-01-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184004', 'tblTempVendorCDR_20' ) start [2025-01-06 00:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184004', 'tblTempVendorCDR_20' ) end [2025-01-06 00:51:17] Production.INFO: ProcessCDR(1,14184004,1,1,2) [2025-01-06 00:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184004', 'tblTempUsageDetail_20' ) start [2025-01-06 00:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184004', 'tblTempUsageDetail_20' ) end [2025-01-06 00:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:51:20] Production.INFO: ==19322== Releasing lock... [2025-01-06 00:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:51:20] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:52:05 [end_date_ymd] => 2025-01-06 00:52:05 [RateCDR] => 1 ) [2025-01-06 00:52: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-01-05 21:52:05' and `end` < '2025-01-06 00:52: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-01-06 00:52:18] Production.INFO: count ==180 [2025-01-06 00:52:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:52:05 - End Time 2025-01-06 00:52:05 [2025-01-06 00:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184009', 'tblTempUsageDetail_20' ) start [2025-01-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184009', 'tblTempUsageDetail_20' ) end [2025-01-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184009', 'tblTempVendorCDR_20' ) start [2025-01-06 00:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184009', 'tblTempVendorCDR_20' ) end [2025-01-06 00:52:18] Production.INFO: ProcessCDR(1,14184009,1,1,2) [2025-01-06 00:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184009', 'tblTempUsageDetail_20' ) start [2025-01-06 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184009', 'tblTempUsageDetail_20' ) end [2025-01-06 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:52:21] Production.INFO: ==19436== Releasing lock... [2025-01-06 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:53:05 [end_date_ymd] => 2025-01-06 00:53:05 [RateCDR] => 1 ) [2025-01-06 00:53: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-01-05 21:53:05' and `end` < '2025-01-06 00:53: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-01-06 00:53:18] Production.INFO: count ==179 [2025-01-06 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:53:05 - End Time 2025-01-06 00:53:05 [2025-01-06 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184014', 'tblTempUsageDetail_20' ) start [2025-01-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184014', 'tblTempUsageDetail_20' ) end [2025-01-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184014', 'tblTempVendorCDR_20' ) start [2025-01-06 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184014', 'tblTempVendorCDR_20' ) end [2025-01-06 00:53:18] Production.INFO: ProcessCDR(1,14184014,1,1,2) [2025-01-06 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184014', 'tblTempUsageDetail_20' ) start [2025-01-06 00:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184014', 'tblTempUsageDetail_20' ) end [2025-01-06 00:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:53:22] Production.INFO: ==19510== Releasing lock... [2025-01-06 00:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:54:06 [end_date_ymd] => 2025-01-06 00:54:06 [RateCDR] => 1 ) [2025-01-06 00:54: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-01-05 21:54:06' and `end` < '2025-01-06 00:54: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-01-06 00:54:18] Production.INFO: count ==176 [2025-01-06 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:54:06 - End Time 2025-01-06 00:54:06 [2025-01-06 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184019', 'tblTempUsageDetail_20' ) start [2025-01-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184019', 'tblTempUsageDetail_20' ) end [2025-01-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184019', 'tblTempVendorCDR_20' ) start [2025-01-06 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184019', 'tblTempVendorCDR_20' ) end [2025-01-06 00:54:18] Production.INFO: ProcessCDR(1,14184019,1,1,2) [2025-01-06 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184019', 'tblTempUsageDetail_20' ) start [2025-01-06 00:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184019', 'tblTempUsageDetail_20' ) end [2025-01-06 00:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:54:22] Production.INFO: ==19587== Releasing lock... [2025-01-06 00:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:54:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:55:06 [end_date_ymd] => 2025-01-06 00:55:06 [RateCDR] => 1 ) [2025-01-06 00:55: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-01-05 21:55:06' and `end` < '2025-01-06 00:55: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-01-06 00:55:18] Production.INFO: count ==176 [2025-01-06 00:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:55:06 - End Time 2025-01-06 00:55:06 [2025-01-06 00:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184024', 'tblTempUsageDetail_20' ) start [2025-01-06 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184024', 'tblTempUsageDetail_20' ) end [2025-01-06 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184024', 'tblTempVendorCDR_20' ) start [2025-01-06 00:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184024', 'tblTempVendorCDR_20' ) end [2025-01-06 00:55:18] Production.INFO: ProcessCDR(1,14184024,1,1,2) [2025-01-06 00:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184024', 'tblTempUsageDetail_20' ) start [2025-01-06 00:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184024', 'tblTempUsageDetail_20' ) end [2025-01-06 00:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:55:22] Production.INFO: ==19662== Releasing lock... [2025-01-06 00:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:55:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:56:05 [end_date_ymd] => 2025-01-06 00:56:05 [RateCDR] => 1 ) [2025-01-06 00:56: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-01-05 21:56:05' and `end` < '2025-01-06 00:56: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-01-06 00:56:20] Production.INFO: count ==176 [2025-01-06 00:56:20] Production.ERROR: pbx CDR StartTime 2025-01-05 21:56:05 - End Time 2025-01-06 00:56:05 [2025-01-06 00:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184029', 'tblTempUsageDetail_20' ) start [2025-01-06 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184029', 'tblTempUsageDetail_20' ) end [2025-01-06 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184029', 'tblTempVendorCDR_20' ) start [2025-01-06 00:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184029', 'tblTempVendorCDR_20' ) end [2025-01-06 00:56:20] Production.INFO: ProcessCDR(1,14184029,1,1,2) [2025-01-06 00:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184029', 'tblTempUsageDetail_20' ) start [2025-01-06 00:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184029', 'tblTempUsageDetail_20' ) end [2025-01-06 00:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:56:23] Production.INFO: ==19738== Releasing lock... [2025-01-06 00:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:56:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:57:04 [end_date_ymd] => 2025-01-06 00:57:04 [RateCDR] => 1 ) [2025-01-06 00:57: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-01-05 21:57:04' and `end` < '2025-01-06 00:57: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-01-06 00:57:19] Production.INFO: count ==176 [2025-01-06 00:57:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:57:04 - End Time 2025-01-06 00:57:04 [2025-01-06 00:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184034', 'tblTempUsageDetail_20' ) start [2025-01-06 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184034', 'tblTempUsageDetail_20' ) end [2025-01-06 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184034', 'tblTempVendorCDR_20' ) start [2025-01-06 00:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184034', 'tblTempVendorCDR_20' ) end [2025-01-06 00:57:19] Production.INFO: ProcessCDR(1,14184034,1,1,2) [2025-01-06 00:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184034', 'tblTempUsageDetail_20' ) start [2025-01-06 00:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184034', 'tblTempUsageDetail_20' ) end [2025-01-06 00:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:57:22] Production.INFO: ==19808== Releasing lock... [2025-01-06 00:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:58:05 [end_date_ymd] => 2025-01-06 00:58:05 [RateCDR] => 1 ) [2025-01-06 00:58: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-01-05 21:58:05' and `end` < '2025-01-06 00:58: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-01-06 00:58:19] Production.INFO: count ==176 [2025-01-06 00:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 21:58:05 - End Time 2025-01-06 00:58:05 [2025-01-06 00:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184039', 'tblTempUsageDetail_20' ) start [2025-01-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184039', 'tblTempUsageDetail_20' ) end [2025-01-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184039', 'tblTempVendorCDR_20' ) start [2025-01-06 00:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184039', 'tblTempVendorCDR_20' ) end [2025-01-06 00:58:19] Production.INFO: ProcessCDR(1,14184039,1,1,2) [2025-01-06 00:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184039', 'tblTempUsageDetail_20' ) start [2025-01-06 00:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184039', 'tblTempUsageDetail_20' ) end [2025-01-06 00:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:58:22] Production.INFO: ==19882== Releasing lock... [2025-01-06 00:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:58:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 21:59:05 [end_date_ymd] => 2025-01-06 00:59:05 [RateCDR] => 1 ) [2025-01-06 00:59: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-01-05 21:59:05' and `end` < '2025-01-06 00:59: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-01-06 00:59:18] Production.INFO: count ==175 [2025-01-06 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 21:59:05 - End Time 2025-01-06 00:59:05 [2025-01-06 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184044', 'tblTempUsageDetail_20' ) start [2025-01-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184044', 'tblTempUsageDetail_20' ) end [2025-01-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184044', 'tblTempVendorCDR_20' ) start [2025-01-06 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184044', 'tblTempVendorCDR_20' ) end [2025-01-06 00:59:18] Production.INFO: ProcessCDR(1,14184044,1,1,2) [2025-01-06 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184044', 'tblTempUsageDetail_20' ) start [2025-01-06 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184044', 'tblTempUsageDetail_20' ) end [2025-01-06 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 00:59:21] Production.INFO: ==19954== Releasing lock... [2025-01-06 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 00:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:00:06 [end_date_ymd] => 2025-01-06 01:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-05 22:00:06' and `end` < '2025-01-06 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-01-06 01:00:19] Production.INFO: count ==177 [2025-01-06 01:00:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:00:06 - End Time 2025-01-06 01:00:06 [2025-01-06 01:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184050', 'tblTempUsageDetail_20' ) start [2025-01-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184050', 'tblTempUsageDetail_20' ) end [2025-01-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184050', 'tblTempVendorCDR_20' ) start [2025-01-06 01:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184050', 'tblTempVendorCDR_20' ) end [2025-01-06 01:00:19] Production.INFO: ProcessCDR(1,14184050,1,1,2) [2025-01-06 01:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184050', 'tblTempUsageDetail_20' ) start [2025-01-06 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184050', 'tblTempUsageDetail_20' ) end [2025-01-06 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:00:22] Production.INFO: ==20028== Releasing lock... [2025-01-06 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:01:05 [end_date_ymd] => 2025-01-06 01:01:05 [RateCDR] => 1 ) [2025-01-06 01:01: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-01-05 22:01:05' and `end` < '2025-01-06 01:01: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-01-06 01:01:17] Production.INFO: count ==174 [2025-01-06 01:01:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:01:05 - End Time 2025-01-06 01:01:05 [2025-01-06 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184055', 'tblTempUsageDetail_20' ) start [2025-01-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184055', 'tblTempUsageDetail_20' ) end [2025-01-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184055', 'tblTempVendorCDR_20' ) start [2025-01-06 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184055', 'tblTempVendorCDR_20' ) end [2025-01-06 01:01:17] Production.INFO: ProcessCDR(1,14184055,1,1,2) [2025-01-06 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184055', 'tblTempUsageDetail_20' ) start [2025-01-06 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184055', 'tblTempUsageDetail_20' ) end [2025-01-06 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:01:21] Production.INFO: ==20117== Releasing lock... [2025-01-06 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:02:05 [end_date_ymd] => 2025-01-06 01:02:05 [RateCDR] => 1 ) [2025-01-06 01:02: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-01-05 22:02:05' and `end` < '2025-01-06 01:02: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-01-06 01:02:18] Production.INFO: count ==173 [2025-01-06 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:02:05 - End Time 2025-01-06 01:02:05 [2025-01-06 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184060', 'tblTempUsageDetail_20' ) start [2025-01-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184060', 'tblTempUsageDetail_20' ) end [2025-01-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184060', 'tblTempVendorCDR_20' ) start [2025-01-06 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184060', 'tblTempVendorCDR_20' ) end [2025-01-06 01:02:18] Production.INFO: ProcessCDR(1,14184060,1,1,2) [2025-01-06 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184060', 'tblTempUsageDetail_20' ) start [2025-01-06 01:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184060', 'tblTempUsageDetail_20' ) end [2025-01-06 01:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:02:22] Production.INFO: ==20188== Releasing lock... [2025-01-06 01:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:03:05 [end_date_ymd] => 2025-01-06 01:03:05 [RateCDR] => 1 ) [2025-01-06 01:03: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-01-05 22:03:05' and `end` < '2025-01-06 01:03: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-01-06 01:03:17] Production.INFO: count ==173 [2025-01-06 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:03:05 - End Time 2025-01-06 01:03:05 [2025-01-06 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184065', 'tblTempUsageDetail_20' ) start [2025-01-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184065', 'tblTempUsageDetail_20' ) end [2025-01-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184065', 'tblTempVendorCDR_20' ) start [2025-01-06 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184065', 'tblTempVendorCDR_20' ) end [2025-01-06 01:03:17] Production.INFO: ProcessCDR(1,14184065,1,1,2) [2025-01-06 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184065', 'tblTempUsageDetail_20' ) start [2025-01-06 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184065', 'tblTempUsageDetail_20' ) end [2025-01-06 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:03:21] Production.INFO: ==20263== Releasing lock... [2025-01-06 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:04:05 [end_date_ymd] => 2025-01-06 01:04:05 [RateCDR] => 1 ) [2025-01-06 01:04: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-01-05 22:04:05' and `end` < '2025-01-06 01:04: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-01-06 01:04:18] Production.INFO: count ==172 [2025-01-06 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:04:05 - End Time 2025-01-06 01:04:05 [2025-01-06 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184070', 'tblTempUsageDetail_20' ) start [2025-01-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184070', 'tblTempUsageDetail_20' ) end [2025-01-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184070', 'tblTempVendorCDR_20' ) start [2025-01-06 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184070', 'tblTempVendorCDR_20' ) end [2025-01-06 01:04:18] Production.INFO: ProcessCDR(1,14184070,1,1,2) [2025-01-06 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184070', 'tblTempUsageDetail_20' ) start [2025-01-06 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184070', 'tblTempUsageDetail_20' ) end [2025-01-06 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:04:21] Production.INFO: ==20335== Releasing lock... [2025-01-06 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:05:06 [end_date_ymd] => 2025-01-06 01:05:06 [RateCDR] => 1 ) [2025-01-06 01:05: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-01-05 22:05:06' and `end` < '2025-01-06 01:05: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-01-06 01:05:19] Production.INFO: count ==170 [2025-01-06 01:05:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:05:06 - End Time 2025-01-06 01:05:06 [2025-01-06 01:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184075', 'tblTempUsageDetail_20' ) start [2025-01-06 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184075', 'tblTempUsageDetail_20' ) end [2025-01-06 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184075', 'tblTempVendorCDR_20' ) start [2025-01-06 01:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184075', 'tblTempVendorCDR_20' ) end [2025-01-06 01:05:19] Production.INFO: ProcessCDR(1,14184075,1,1,2) [2025-01-06 01:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184075', 'tblTempUsageDetail_20' ) start [2025-01-06 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184075', 'tblTempUsageDetail_20' ) end [2025-01-06 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:05:22] Production.INFO: ==20408== Releasing lock... [2025-01-06 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:05:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:06:05 [end_date_ymd] => 2025-01-06 01:06:05 [RateCDR] => 1 ) [2025-01-06 01:06: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-01-05 22:06:05' and `end` < '2025-01-06 01:06: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-01-06 01:06:18] Production.INFO: count ==166 [2025-01-06 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:06:05 - End Time 2025-01-06 01:06:05 [2025-01-06 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184080', 'tblTempUsageDetail_20' ) start [2025-01-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184080', 'tblTempUsageDetail_20' ) end [2025-01-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184080', 'tblTempVendorCDR_20' ) start [2025-01-06 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184080', 'tblTempVendorCDR_20' ) end [2025-01-06 01:06:18] Production.INFO: ProcessCDR(1,14184080,1,1,2) [2025-01-06 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184080', 'tblTempUsageDetail_20' ) start [2025-01-06 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184080', 'tblTempUsageDetail_20' ) end [2025-01-06 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:06:21] Production.INFO: ==20482== Releasing lock... [2025-01-06 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:06:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:07:05 [end_date_ymd] => 2025-01-06 01:07:05 [RateCDR] => 1 ) [2025-01-06 01:07: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-01-05 22:07:05' and `end` < '2025-01-06 01:07: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-01-06 01:07:18] Production.INFO: count ==164 [2025-01-06 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:07:05 - End Time 2025-01-06 01:07:05 [2025-01-06 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184085', 'tblTempUsageDetail_20' ) start [2025-01-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184085', 'tblTempUsageDetail_20' ) end [2025-01-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184085', 'tblTempVendorCDR_20' ) start [2025-01-06 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184085', 'tblTempVendorCDR_20' ) end [2025-01-06 01:07:18] Production.INFO: ProcessCDR(1,14184085,1,1,2) [2025-01-06 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184085', 'tblTempUsageDetail_20' ) start [2025-01-06 01:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184085', 'tblTempUsageDetail_20' ) end [2025-01-06 01:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:07:21] Production.INFO: ==20597== Releasing lock... [2025-01-06 01:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:08:05 [end_date_ymd] => 2025-01-06 01:08:05 [RateCDR] => 1 ) [2025-01-06 01:08: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-01-05 22:08:05' and `end` < '2025-01-06 01:08: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-01-06 01:08:18] Production.INFO: count ==163 [2025-01-06 01:08:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:08:05 - End Time 2025-01-06 01:08:05 [2025-01-06 01:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184090', 'tblTempUsageDetail_20' ) start [2025-01-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184090', 'tblTempUsageDetail_20' ) end [2025-01-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184090', 'tblTempVendorCDR_20' ) start [2025-01-06 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184090', 'tblTempVendorCDR_20' ) end [2025-01-06 01:08:18] Production.INFO: ProcessCDR(1,14184090,1,1,2) [2025-01-06 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184090', 'tblTempUsageDetail_20' ) start [2025-01-06 01:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184090', 'tblTempUsageDetail_20' ) end [2025-01-06 01:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:08:21] Production.INFO: ==20673== Releasing lock... [2025-01-06 01:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:09:06 [end_date_ymd] => 2025-01-06 01:09:06 [RateCDR] => 1 ) [2025-01-06 01:09: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-01-05 22:09:06' and `end` < '2025-01-06 01:09: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-01-06 01:09:20] Production.INFO: count ==163 [2025-01-06 01:09:20] Production.ERROR: pbx CDR StartTime 2025-01-05 22:09:06 - End Time 2025-01-06 01:09:06 [2025-01-06 01:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184095', 'tblTempUsageDetail_20' ) start [2025-01-06 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184095', 'tblTempUsageDetail_20' ) end [2025-01-06 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184095', 'tblTempVendorCDR_20' ) start [2025-01-06 01:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184095', 'tblTempVendorCDR_20' ) end [2025-01-06 01:09:20] Production.INFO: ProcessCDR(1,14184095,1,1,2) [2025-01-06 01:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184095', 'tblTempUsageDetail_20' ) start [2025-01-06 01:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184095', 'tblTempUsageDetail_20' ) end [2025-01-06 01:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:09:24] Production.INFO: ==20748== Releasing lock... [2025-01-06 01:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:09:24] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:10:06 [end_date_ymd] => 2025-01-06 01:10:06 [RateCDR] => 1 ) [2025-01-06 01:10: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-01-05 22:10:06' and `end` < '2025-01-06 01:10: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-01-06 01:10:20] Production.INFO: count ==165 [2025-01-06 01:10:20] Production.ERROR: pbx CDR StartTime 2025-01-05 22:10:06 - End Time 2025-01-06 01:10:06 [2025-01-06 01:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184101', 'tblTempUsageDetail_20' ) start [2025-01-06 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184101', 'tblTempUsageDetail_20' ) end [2025-01-06 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184101', 'tblTempVendorCDR_20' ) start [2025-01-06 01:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184101', 'tblTempVendorCDR_20' ) end [2025-01-06 01:10:20] Production.INFO: ProcessCDR(1,14184101,1,1,2) [2025-01-06 01:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184101', 'tblTempUsageDetail_20' ) start [2025-01-06 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184101', 'tblTempUsageDetail_20' ) end [2025-01-06 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:10:23] Production.INFO: ==20823== Releasing lock... [2025-01-06 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:10:23] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:11:06 [end_date_ymd] => 2025-01-06 01:11:06 [RateCDR] => 1 ) [2025-01-06 01:11: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-01-05 22:11:06' and `end` < '2025-01-06 01:11: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-01-06 01:11:18] Production.INFO: count ==163 [2025-01-06 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:11:06 - End Time 2025-01-06 01:11:06 [2025-01-06 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184106', 'tblTempUsageDetail_20' ) start [2025-01-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184106', 'tblTempUsageDetail_20' ) end [2025-01-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184106', 'tblTempVendorCDR_20' ) start [2025-01-06 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184106', 'tblTempVendorCDR_20' ) end [2025-01-06 01:11:18] Production.INFO: ProcessCDR(1,14184106,1,1,2) [2025-01-06 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184106', 'tblTempUsageDetail_20' ) start [2025-01-06 01:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184106', 'tblTempUsageDetail_20' ) end [2025-01-06 01:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:11:22] Production.INFO: ==20898== Releasing lock... [2025-01-06 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:11:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:12:05 [end_date_ymd] => 2025-01-06 01:12:05 [RateCDR] => 1 ) [2025-01-06 01:12: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-01-05 22:12:05' and `end` < '2025-01-06 01:12: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-01-06 01:12:17] Production.INFO: count ==162 [2025-01-06 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:12:05 - End Time 2025-01-06 01:12:05 [2025-01-06 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184111', 'tblTempUsageDetail_20' ) start [2025-01-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184111', 'tblTempUsageDetail_20' ) end [2025-01-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184111', 'tblTempVendorCDR_20' ) start [2025-01-06 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184111', 'tblTempVendorCDR_20' ) end [2025-01-06 01:12:18] Production.INFO: ProcessCDR(1,14184111,1,1,2) [2025-01-06 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184111', 'tblTempUsageDetail_20' ) start [2025-01-06 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184111', 'tblTempUsageDetail_20' ) end [2025-01-06 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:12:21] Production.INFO: ==20969== Releasing lock... [2025-01-06 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:13:05 [end_date_ymd] => 2025-01-06 01:13:05 [RateCDR] => 1 ) [2025-01-06 01:13: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-01-05 22:13:05' and `end` < '2025-01-06 01:13: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-01-06 01:13:19] Production.INFO: count ==159 [2025-01-06 01:13:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:13:05 - End Time 2025-01-06 01:13:05 [2025-01-06 01:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184116', 'tblTempUsageDetail_20' ) start [2025-01-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184116', 'tblTempUsageDetail_20' ) end [2025-01-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184116', 'tblTempVendorCDR_20' ) start [2025-01-06 01:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184116', 'tblTempVendorCDR_20' ) end [2025-01-06 01:13:19] Production.INFO: ProcessCDR(1,14184116,1,1,2) [2025-01-06 01:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184116', 'tblTempUsageDetail_20' ) start [2025-01-06 01:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184116', 'tblTempUsageDetail_20' ) end [2025-01-06 01:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:13:22] Production.INFO: ==21043== Releasing lock... [2025-01-06 01:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:13:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:14:05 [end_date_ymd] => 2025-01-06 01:14:05 [RateCDR] => 1 ) [2025-01-06 01:14: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-01-05 22:14:05' and `end` < '2025-01-06 01:14: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-01-06 01:14:19] Production.INFO: count ==159 [2025-01-06 01:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:14:05 - End Time 2025-01-06 01:14:05 [2025-01-06 01:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184121', 'tblTempUsageDetail_20' ) start [2025-01-06 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184121', 'tblTempUsageDetail_20' ) end [2025-01-06 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184121', 'tblTempVendorCDR_20' ) start [2025-01-06 01:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184121', 'tblTempVendorCDR_20' ) end [2025-01-06 01:14:19] Production.INFO: ProcessCDR(1,14184121,1,1,2) [2025-01-06 01:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184121', 'tblTempUsageDetail_20' ) start [2025-01-06 01:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184121', 'tblTempUsageDetail_20' ) end [2025-01-06 01:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:14:22] Production.INFO: ==21115== Releasing lock... [2025-01-06 01:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:14:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:15:06 [end_date_ymd] => 2025-01-06 01:15:06 [RateCDR] => 1 ) [2025-01-06 01:15: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-01-05 22:15:06' and `end` < '2025-01-06 01:15: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-01-06 01:15:19] Production.INFO: count ==159 [2025-01-06 01:15:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:15:06 - End Time 2025-01-06 01:15:06 [2025-01-06 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184126', 'tblTempUsageDetail_20' ) start [2025-01-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184126', 'tblTempUsageDetail_20' ) end [2025-01-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184126', 'tblTempVendorCDR_20' ) start [2025-01-06 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184126', 'tblTempVendorCDR_20' ) end [2025-01-06 01:15:19] Production.INFO: ProcessCDR(1,14184126,1,1,2) [2025-01-06 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184126', 'tblTempUsageDetail_20' ) start [2025-01-06 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184126', 'tblTempUsageDetail_20' ) end [2025-01-06 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:15:22] Production.INFO: ==21188== Releasing lock... [2025-01-06 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:15:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:16:05 [end_date_ymd] => 2025-01-06 01:16:05 [RateCDR] => 1 ) [2025-01-06 01:16: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-01-05 22:16:05' and `end` < '2025-01-06 01:16: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-01-06 01:16:18] Production.INFO: count ==158 [2025-01-06 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:16:05 - End Time 2025-01-06 01:16:05 [2025-01-06 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184131', 'tblTempUsageDetail_20' ) start [2025-01-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184131', 'tblTempUsageDetail_20' ) end [2025-01-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184131', 'tblTempVendorCDR_20' ) start [2025-01-06 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184131', 'tblTempVendorCDR_20' ) end [2025-01-06 01:16:18] Production.INFO: ProcessCDR(1,14184131,1,1,2) [2025-01-06 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184131', 'tblTempUsageDetail_20' ) start [2025-01-06 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184131', 'tblTempUsageDetail_20' ) end [2025-01-06 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:16:21] Production.INFO: ==21262== Releasing lock... [2025-01-06 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:16:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:17:05 [end_date_ymd] => 2025-01-06 01:17:05 [RateCDR] => 1 ) [2025-01-06 01:17: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-01-05 22:17:05' and `end` < '2025-01-06 01:17: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-01-06 01:17:19] Production.INFO: count ==156 [2025-01-06 01:17:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:17:05 - End Time 2025-01-06 01:17:05 [2025-01-06 01:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184136', 'tblTempUsageDetail_20' ) start [2025-01-06 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184136', 'tblTempUsageDetail_20' ) end [2025-01-06 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184136', 'tblTempVendorCDR_20' ) start [2025-01-06 01:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184136', 'tblTempVendorCDR_20' ) end [2025-01-06 01:17:19] Production.INFO: ProcessCDR(1,14184136,1,1,2) [2025-01-06 01:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184136', 'tblTempUsageDetail_20' ) start [2025-01-06 01:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184136', 'tblTempUsageDetail_20' ) end [2025-01-06 01:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:17:22] Production.INFO: ==21333== Releasing lock... [2025-01-06 01:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:17:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:18:05 [end_date_ymd] => 2025-01-06 01:18:05 [RateCDR] => 1 ) [2025-01-06 01:18: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-01-05 22:18:05' and `end` < '2025-01-06 01:18: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-01-06 01:18:17] Production.INFO: count ==155 [2025-01-06 01:18:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:18:05 - End Time 2025-01-06 01:18:05 [2025-01-06 01:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184141', 'tblTempUsageDetail_20' ) start [2025-01-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184141', 'tblTempUsageDetail_20' ) end [2025-01-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184141', 'tblTempVendorCDR_20' ) start [2025-01-06 01:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184141', 'tblTempVendorCDR_20' ) end [2025-01-06 01:18:17] Production.INFO: ProcessCDR(1,14184141,1,1,2) [2025-01-06 01:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184141', 'tblTempUsageDetail_20' ) start [2025-01-06 01:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184141', 'tblTempUsageDetail_20' ) end [2025-01-06 01:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:18:20] Production.INFO: ==21405== Releasing lock... [2025-01-06 01:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:18:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:19:05 [end_date_ymd] => 2025-01-06 01:19:05 [RateCDR] => 1 ) [2025-01-06 01:19: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-01-05 22:19:05' and `end` < '2025-01-06 01:19: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-01-06 01:19:18] Production.INFO: count ==155 [2025-01-06 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:19:05 - End Time 2025-01-06 01:19:05 [2025-01-06 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184146', 'tblTempUsageDetail_20' ) start [2025-01-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184146', 'tblTempUsageDetail_20' ) end [2025-01-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184146', 'tblTempVendorCDR_20' ) start [2025-01-06 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184146', 'tblTempVendorCDR_20' ) end [2025-01-06 01:19:18] Production.INFO: ProcessCDR(1,14184146,1,1,2) [2025-01-06 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184146', 'tblTempUsageDetail_20' ) start [2025-01-06 01:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184146', 'tblTempUsageDetail_20' ) end [2025-01-06 01:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:19:21] Production.INFO: ==21483== Releasing lock... [2025-01-06 01:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:19:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:20:06 [end_date_ymd] => 2025-01-06 01:20:06 [RateCDR] => 1 ) [2025-01-06 01:20: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-01-05 22:20:06' and `end` < '2025-01-06 01:20: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-01-06 01:20:18] Production.INFO: count ==157 [2025-01-06 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:20:06 - End Time 2025-01-06 01:20:06 [2025-01-06 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184152', 'tblTempUsageDetail_20' ) start [2025-01-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184152', 'tblTempUsageDetail_20' ) end [2025-01-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184152', 'tblTempVendorCDR_20' ) start [2025-01-06 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184152', 'tblTempVendorCDR_20' ) end [2025-01-06 01:20:18] Production.INFO: ProcessCDR(1,14184152,1,1,2) [2025-01-06 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184152', 'tblTempUsageDetail_20' ) start [2025-01-06 01:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184152', 'tblTempUsageDetail_20' ) end [2025-01-06 01:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:20:22] Production.INFO: ==21556== Releasing lock... [2025-01-06 01:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:20:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:21:05 [end_date_ymd] => 2025-01-06 01:21:05 [RateCDR] => 1 ) [2025-01-06 01:21: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-01-05 22:21:05' and `end` < '2025-01-06 01:21: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-01-06 01:21:18] Production.INFO: count ==157 [2025-01-06 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:21:05 - End Time 2025-01-06 01:21:05 [2025-01-06 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184157', 'tblTempUsageDetail_20' ) start [2025-01-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184157', 'tblTempUsageDetail_20' ) end [2025-01-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184157', 'tblTempVendorCDR_20' ) start [2025-01-06 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184157', 'tblTempVendorCDR_20' ) end [2025-01-06 01:21:18] Production.INFO: ProcessCDR(1,14184157,1,1,2) [2025-01-06 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184157', 'tblTempUsageDetail_20' ) start [2025-01-06 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184157', 'tblTempUsageDetail_20' ) end [2025-01-06 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:21:21] Production.INFO: ==21633== Releasing lock... [2025-01-06 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:22:05 [end_date_ymd] => 2025-01-06 01:22:05 [RateCDR] => 1 ) [2025-01-06 01:22: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-01-05 22:22:05' and `end` < '2025-01-06 01:22: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-01-06 01:22:18] Production.INFO: count ==157 [2025-01-06 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:22:05 - End Time 2025-01-06 01:22:05 [2025-01-06 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184162', 'tblTempUsageDetail_20' ) start [2025-01-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184162', 'tblTempUsageDetail_20' ) end [2025-01-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184162', 'tblTempVendorCDR_20' ) start [2025-01-06 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184162', 'tblTempVendorCDR_20' ) end [2025-01-06 01:22:18] Production.INFO: ProcessCDR(1,14184162,1,1,2) [2025-01-06 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184162', 'tblTempUsageDetail_20' ) start [2025-01-06 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184162', 'tblTempUsageDetail_20' ) end [2025-01-06 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:22:21] Production.INFO: ==21707== Releasing lock... [2025-01-06 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:23:05 [end_date_ymd] => 2025-01-06 01:23:05 [RateCDR] => 1 ) [2025-01-06 01:23: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-01-05 22:23:05' and `end` < '2025-01-06 01:23: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-01-06 01:23:19] Production.INFO: count ==156 [2025-01-06 01:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:23:05 - End Time 2025-01-06 01:23:05 [2025-01-06 01:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184167', 'tblTempUsageDetail_20' ) start [2025-01-06 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184167', 'tblTempUsageDetail_20' ) end [2025-01-06 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184167', 'tblTempVendorCDR_20' ) start [2025-01-06 01:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184167', 'tblTempVendorCDR_20' ) end [2025-01-06 01:23:19] Production.INFO: ProcessCDR(1,14184167,1,1,2) [2025-01-06 01:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184167', 'tblTempUsageDetail_20' ) start [2025-01-06 01:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184167', 'tblTempUsageDetail_20' ) end [2025-01-06 01:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:23:22] Production.INFO: ==21823== Releasing lock... [2025-01-06 01:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:24:06 [end_date_ymd] => 2025-01-06 01:24:06 [RateCDR] => 1 ) [2025-01-06 01:24: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-01-05 22:24:06' and `end` < '2025-01-06 01:24: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-01-06 01:24:18] Production.INFO: count ==156 [2025-01-06 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:24:06 - End Time 2025-01-06 01:24:06 [2025-01-06 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184172', 'tblTempUsageDetail_20' ) start [2025-01-06 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184172', 'tblTempUsageDetail_20' ) end [2025-01-06 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184172', 'tblTempVendorCDR_20' ) start [2025-01-06 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184172', 'tblTempVendorCDR_20' ) end [2025-01-06 01:24:18] Production.INFO: ProcessCDR(1,14184172,1,1,2) [2025-01-06 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184172', 'tblTempUsageDetail_20' ) start [2025-01-06 01:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184172', 'tblTempUsageDetail_20' ) end [2025-01-06 01:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:24:22] Production.INFO: ==21898== Releasing lock... [2025-01-06 01:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:25:05 [end_date_ymd] => 2025-01-06 01:25:05 [RateCDR] => 1 ) [2025-01-06 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-01-05 22:25:05' and `end` < '2025-01-06 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-01-06 01:25:18] Production.INFO: count ==156 [2025-01-06 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:25:05 - End Time 2025-01-06 01:25:05 [2025-01-06 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184177', 'tblTempUsageDetail_20' ) start [2025-01-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184177', 'tblTempUsageDetail_20' ) end [2025-01-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184177', 'tblTempVendorCDR_20' ) start [2025-01-06 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184177', 'tblTempVendorCDR_20' ) end [2025-01-06 01:25:18] Production.INFO: ProcessCDR(1,14184177,1,1,2) [2025-01-06 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184177', 'tblTempUsageDetail_20' ) start [2025-01-06 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184177', 'tblTempUsageDetail_20' ) end [2025-01-06 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:25:21] Production.INFO: ==21968== Releasing lock... [2025-01-06 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:26:06 [end_date_ymd] => 2025-01-06 01:26:06 [RateCDR] => 1 ) [2025-01-06 01:26: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-01-05 22:26:06' and `end` < '2025-01-06 01:26: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-01-06 01:26:20] Production.INFO: count ==153 [2025-01-06 01:26:20] Production.ERROR: pbx CDR StartTime 2025-01-05 22:26:06 - End Time 2025-01-06 01:26:06 [2025-01-06 01:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184182', 'tblTempUsageDetail_20' ) start [2025-01-06 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184182', 'tblTempUsageDetail_20' ) end [2025-01-06 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184182', 'tblTempVendorCDR_20' ) start [2025-01-06 01:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184182', 'tblTempVendorCDR_20' ) end [2025-01-06 01:26:20] Production.INFO: ProcessCDR(1,14184182,1,1,2) [2025-01-06 01:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184182', 'tblTempUsageDetail_20' ) start [2025-01-06 01:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184182', 'tblTempUsageDetail_20' ) end [2025-01-06 01:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:26:23] Production.INFO: ==22037== Releasing lock... [2025-01-06 01:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:26:23] Production.INFO: 29 MB #Memory Used# [2025-01-06 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:27:05 [end_date_ymd] => 2025-01-06 01:27:05 [RateCDR] => 1 ) [2025-01-06 01:27: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-01-05 22:27:05' and `end` < '2025-01-06 01:27: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-01-06 01:27:18] Production.INFO: count ==153 [2025-01-06 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:27:05 - End Time 2025-01-06 01:27:05 [2025-01-06 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184187', 'tblTempUsageDetail_20' ) start [2025-01-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184187', 'tblTempUsageDetail_20' ) end [2025-01-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184187', 'tblTempVendorCDR_20' ) start [2025-01-06 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184187', 'tblTempVendorCDR_20' ) end [2025-01-06 01:27:18] Production.INFO: ProcessCDR(1,14184187,1,1,2) [2025-01-06 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184187', 'tblTempUsageDetail_20' ) start [2025-01-06 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184187', 'tblTempUsageDetail_20' ) end [2025-01-06 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:27:21] Production.INFO: ==22107== Releasing lock... [2025-01-06 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:28:04 [end_date_ymd] => 2025-01-06 01:28:04 [RateCDR] => 1 ) [2025-01-06 01:28: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-01-05 22:28:04' and `end` < '2025-01-06 01:28: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-01-06 01:28:19] Production.INFO: count ==152 [2025-01-06 01:28:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:28:04 - End Time 2025-01-06 01:28:04 [2025-01-06 01:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184192', 'tblTempUsageDetail_20' ) start [2025-01-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184192', 'tblTempUsageDetail_20' ) end [2025-01-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184192', 'tblTempVendorCDR_20' ) start [2025-01-06 01:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184192', 'tblTempVendorCDR_20' ) end [2025-01-06 01:28:19] Production.INFO: ProcessCDR(1,14184192,1,1,2) [2025-01-06 01:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184192', 'tblTempUsageDetail_20' ) start [2025-01-06 01:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184192', 'tblTempUsageDetail_20' ) end [2025-01-06 01:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:28:22] Production.INFO: ==22177== Releasing lock... [2025-01-06 01:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:28:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:29:05 [end_date_ymd] => 2025-01-06 01:29:05 [RateCDR] => 1 ) [2025-01-06 01:29: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-01-05 22:29:05' and `end` < '2025-01-06 01:29: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-01-06 01:29:19] Production.INFO: count ==152 [2025-01-06 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:29:05 - End Time 2025-01-06 01:29:05 [2025-01-06 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184197', 'tblTempUsageDetail_20' ) start [2025-01-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184197', 'tblTempUsageDetail_20' ) end [2025-01-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184197', 'tblTempVendorCDR_20' ) start [2025-01-06 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184197', 'tblTempVendorCDR_20' ) end [2025-01-06 01:29:19] Production.INFO: ProcessCDR(1,14184197,1,1,2) [2025-01-06 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184197', 'tblTempUsageDetail_20' ) start [2025-01-06 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184197', 'tblTempUsageDetail_20' ) end [2025-01-06 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:29:22] Production.INFO: ==22249== Releasing lock... [2025-01-06 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:30:06 [end_date_ymd] => 2025-01-06 01:30:06 [RateCDR] => 1 ) [2025-01-06 01:30: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-01-05 22:30:06' and `end` < '2025-01-06 01:30: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-01-06 01:30:19] Production.INFO: count ==163 [2025-01-06 01:30:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:30:06 - End Time 2025-01-06 01:30:06 [2025-01-06 01:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184203', 'tblTempUsageDetail_20' ) start [2025-01-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184203', 'tblTempUsageDetail_20' ) end [2025-01-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184203', 'tblTempVendorCDR_20' ) start [2025-01-06 01:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184203', 'tblTempVendorCDR_20' ) end [2025-01-06 01:30:19] Production.INFO: ProcessCDR(1,14184203,1,1,2) [2025-01-06 01:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184203', 'tblTempUsageDetail_20' ) start [2025-01-06 01:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184203', 'tblTempUsageDetail_20' ) end [2025-01-06 01:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:30:22] Production.INFO: ==22323== Releasing lock... [2025-01-06 01:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:30:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:31:05 [end_date_ymd] => 2025-01-06 01:31:05 [RateCDR] => 1 ) [2025-01-06 01:31: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-01-05 22:31:05' and `end` < '2025-01-06 01:31: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-01-06 01:31:19] Production.INFO: count ==173 [2025-01-06 01:31:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:31:05 - End Time 2025-01-06 01:31:05 [2025-01-06 01:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184208', 'tblTempUsageDetail_20' ) start [2025-01-06 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184208', 'tblTempUsageDetail_20' ) end [2025-01-06 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184208', 'tblTempVendorCDR_20' ) start [2025-01-06 01:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184208', 'tblTempVendorCDR_20' ) end [2025-01-06 01:31:19] Production.INFO: ProcessCDR(1,14184208,1,1,2) [2025-01-06 01:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184208', 'tblTempUsageDetail_20' ) start [2025-01-06 01:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184208', 'tblTempUsageDetail_20' ) end [2025-01-06 01:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:31:22] Production.INFO: ==22399== Releasing lock... [2025-01-06 01:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:31:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:32:05 [end_date_ymd] => 2025-01-06 01:32:05 [RateCDR] => 1 ) [2025-01-06 01:32: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-01-05 22:32:05' and `end` < '2025-01-06 01:32: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-01-06 01:32:18] Production.INFO: count ==173 [2025-01-06 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:32:05 - End Time 2025-01-06 01:32:05 [2025-01-06 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184213', 'tblTempUsageDetail_20' ) start [2025-01-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184213', 'tblTempUsageDetail_20' ) end [2025-01-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184213', 'tblTempVendorCDR_20' ) start [2025-01-06 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184213', 'tblTempVendorCDR_20' ) end [2025-01-06 01:32:18] Production.INFO: ProcessCDR(1,14184213,1,1,2) [2025-01-06 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184213', 'tblTempUsageDetail_20' ) start [2025-01-06 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184213', 'tblTempUsageDetail_20' ) end [2025-01-06 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:32:21] Production.INFO: ==22468== Releasing lock... [2025-01-06 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:33:05 [end_date_ymd] => 2025-01-06 01:33:05 [RateCDR] => 1 ) [2025-01-06 01:33: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-01-05 22:33:05' and `end` < '2025-01-06 01:33: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-01-06 01:33:17] Production.INFO: count ==173 [2025-01-06 01:33:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:33:05 - End Time 2025-01-06 01:33:05 [2025-01-06 01:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184218', 'tblTempUsageDetail_20' ) start [2025-01-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184218', 'tblTempUsageDetail_20' ) end [2025-01-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184218', 'tblTempVendorCDR_20' ) start [2025-01-06 01:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184218', 'tblTempVendorCDR_20' ) end [2025-01-06 01:33:17] Production.INFO: ProcessCDR(1,14184218,1,1,2) [2025-01-06 01:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184218', 'tblTempUsageDetail_20' ) start [2025-01-06 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184218', 'tblTempUsageDetail_20' ) end [2025-01-06 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:33:21] Production.INFO: ==22538== Releasing lock... [2025-01-06 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:34:05 [end_date_ymd] => 2025-01-06 01:34:05 [RateCDR] => 1 ) [2025-01-06 01:34: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-01-05 22:34:05' and `end` < '2025-01-06 01:34: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-01-06 01:34:19] Production.INFO: count ==173 [2025-01-06 01:34:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:34:05 - End Time 2025-01-06 01:34:05 [2025-01-06 01:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184223', 'tblTempUsageDetail_20' ) start [2025-01-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184223', 'tblTempUsageDetail_20' ) end [2025-01-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184223', 'tblTempVendorCDR_20' ) start [2025-01-06 01:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184223', 'tblTempVendorCDR_20' ) end [2025-01-06 01:34:19] Production.INFO: ProcessCDR(1,14184223,1,1,2) [2025-01-06 01:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184223', 'tblTempUsageDetail_20' ) start [2025-01-06 01:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184223', 'tblTempUsageDetail_20' ) end [2025-01-06 01:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:34:22] Production.INFO: ==22611== Releasing lock... [2025-01-06 01:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:34:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:35:05 [end_date_ymd] => 2025-01-06 01:35:05 [RateCDR] => 1 ) [2025-01-06 01:35: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-01-05 22:35:05' and `end` < '2025-01-06 01:35: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-01-06 01:35:19] Production.INFO: count ==173 [2025-01-06 01:35:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:35:05 - End Time 2025-01-06 01:35:05 [2025-01-06 01:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184228', 'tblTempUsageDetail_20' ) start [2025-01-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184228', 'tblTempUsageDetail_20' ) end [2025-01-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184228', 'tblTempVendorCDR_20' ) start [2025-01-06 01:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184228', 'tblTempVendorCDR_20' ) end [2025-01-06 01:35:19] Production.INFO: ProcessCDR(1,14184228,1,1,2) [2025-01-06 01:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184228', 'tblTempUsageDetail_20' ) start [2025-01-06 01:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184228', 'tblTempUsageDetail_20' ) end [2025-01-06 01:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:35:22] Production.INFO: ==22683== Releasing lock... [2025-01-06 01:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:35:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:36:05 [end_date_ymd] => 2025-01-06 01:36:05 [RateCDR] => 1 ) [2025-01-06 01:36: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-01-05 22:36:05' and `end` < '2025-01-06 01:36: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-01-06 01:36:19] Production.INFO: count ==173 [2025-01-06 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:36:05 - End Time 2025-01-06 01:36:05 [2025-01-06 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184233', 'tblTempUsageDetail_20' ) start [2025-01-06 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184233', 'tblTempUsageDetail_20' ) end [2025-01-06 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184233', 'tblTempVendorCDR_20' ) start [2025-01-06 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184233', 'tblTempVendorCDR_20' ) end [2025-01-06 01:36:19] Production.INFO: ProcessCDR(1,14184233,1,1,2) [2025-01-06 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184233', 'tblTempUsageDetail_20' ) start [2025-01-06 01:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184233', 'tblTempUsageDetail_20' ) end [2025-01-06 01:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:36:23] Production.INFO: ==22756== Releasing lock... [2025-01-06 01:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:36:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:37:05 [end_date_ymd] => 2025-01-06 01:37:05 [RateCDR] => 1 ) [2025-01-06 01:37: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-01-05 22:37:05' and `end` < '2025-01-06 01:37: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-01-06 01:37:18] Production.INFO: count ==173 [2025-01-06 01:37:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:37:05 - End Time 2025-01-06 01:37:05 [2025-01-06 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184238', 'tblTempUsageDetail_20' ) start [2025-01-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184238', 'tblTempUsageDetail_20' ) end [2025-01-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184238', 'tblTempVendorCDR_20' ) start [2025-01-06 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184238', 'tblTempVendorCDR_20' ) end [2025-01-06 01:37:18] Production.INFO: ProcessCDR(1,14184238,1,1,2) [2025-01-06 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184238', 'tblTempUsageDetail_20' ) start [2025-01-06 01:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184238', 'tblTempUsageDetail_20' ) end [2025-01-06 01:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:37:21] Production.INFO: ==22832== Releasing lock... [2025-01-06 01:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:38:04 [end_date_ymd] => 2025-01-06 01:38:04 [RateCDR] => 1 ) [2025-01-06 01:38: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-01-05 22:38:04' and `end` < '2025-01-06 01:38: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-01-06 01:38:18] Production.INFO: count ==173 [2025-01-06 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:38:04 - End Time 2025-01-06 01:38:04 [2025-01-06 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184243', 'tblTempUsageDetail_20' ) start [2025-01-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184243', 'tblTempUsageDetail_20' ) end [2025-01-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184243', 'tblTempVendorCDR_20' ) start [2025-01-06 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184243', 'tblTempVendorCDR_20' ) end [2025-01-06 01:38:18] Production.INFO: ProcessCDR(1,14184243,1,1,2) [2025-01-06 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184243', 'tblTempUsageDetail_20' ) start [2025-01-06 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184243', 'tblTempUsageDetail_20' ) end [2025-01-06 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:38:21] Production.INFO: ==22903== Releasing lock... [2025-01-06 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:38:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:39:05 [end_date_ymd] => 2025-01-06 01:39:05 [RateCDR] => 1 ) [2025-01-06 01:39: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-01-05 22:39:05' and `end` < '2025-01-06 01:39: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-01-06 01:39:19] Production.INFO: count ==172 [2025-01-06 01:39:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:39:05 - End Time 2025-01-06 01:39:05 [2025-01-06 01:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184248', 'tblTempUsageDetail_20' ) start [2025-01-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184248', 'tblTempUsageDetail_20' ) end [2025-01-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184248', 'tblTempVendorCDR_20' ) start [2025-01-06 01:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184248', 'tblTempVendorCDR_20' ) end [2025-01-06 01:39:19] Production.INFO: ProcessCDR(1,14184248,1,1,2) [2025-01-06 01:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184248', 'tblTempUsageDetail_20' ) start [2025-01-06 01:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184248', 'tblTempUsageDetail_20' ) end [2025-01-06 01:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:39:22] Production.INFO: ==23016== Releasing lock... [2025-01-06 01:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:39:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:40:05 [end_date_ymd] => 2025-01-06 01:40:05 [RateCDR] => 1 ) [2025-01-06 01:40: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-01-05 22:40:05' and `end` < '2025-01-06 01:40: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-01-06 01:40:18] Production.INFO: count ==175 [2025-01-06 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:40:05 - End Time 2025-01-06 01:40:05 [2025-01-06 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184254', 'tblTempUsageDetail_20' ) start [2025-01-06 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184254', 'tblTempUsageDetail_20' ) end [2025-01-06 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184254', 'tblTempVendorCDR_20' ) start [2025-01-06 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184254', 'tblTempVendorCDR_20' ) end [2025-01-06 01:40:18] Production.INFO: ProcessCDR(1,14184254,1,1,2) [2025-01-06 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184254', 'tblTempUsageDetail_20' ) start [2025-01-06 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184254', 'tblTempUsageDetail_20' ) end [2025-01-06 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:40:21] Production.INFO: ==23090== Releasing lock... [2025-01-06 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:41:05 [end_date_ymd] => 2025-01-06 01:41:05 [RateCDR] => 1 ) [2025-01-06 01:41: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-01-05 22:41:05' and `end` < '2025-01-06 01:41: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-01-06 01:41:18] Production.INFO: count ==174 [2025-01-06 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:41:05 - End Time 2025-01-06 01:41:05 [2025-01-06 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184259', 'tblTempUsageDetail_20' ) start [2025-01-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184259', 'tblTempUsageDetail_20' ) end [2025-01-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184259', 'tblTempVendorCDR_20' ) start [2025-01-06 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184259', 'tblTempVendorCDR_20' ) end [2025-01-06 01:41:18] Production.INFO: ProcessCDR(1,14184259,1,1,2) [2025-01-06 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184259', 'tblTempUsageDetail_20' ) start [2025-01-06 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184259', 'tblTempUsageDetail_20' ) end [2025-01-06 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:41:21] Production.INFO: ==23164== Releasing lock... [2025-01-06 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:42:05 [end_date_ymd] => 2025-01-06 01:42:05 [RateCDR] => 1 ) [2025-01-06 01:42: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-01-05 22:42:05' and `end` < '2025-01-06 01:42: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-01-06 01:42:18] Production.INFO: count ==173 [2025-01-06 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:42:05 - End Time 2025-01-06 01:42:05 [2025-01-06 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184264', 'tblTempUsageDetail_20' ) start [2025-01-06 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184264', 'tblTempUsageDetail_20' ) end [2025-01-06 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184264', 'tblTempVendorCDR_20' ) start [2025-01-06 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184264', 'tblTempVendorCDR_20' ) end [2025-01-06 01:42:18] Production.INFO: ProcessCDR(1,14184264,1,1,2) [2025-01-06 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184264', 'tblTempUsageDetail_20' ) start [2025-01-06 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184264', 'tblTempUsageDetail_20' ) end [2025-01-06 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:42:21] Production.INFO: ==23253== Releasing lock... [2025-01-06 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:43:06 [end_date_ymd] => 2025-01-06 01:43:06 [RateCDR] => 1 ) [2025-01-06 01:43: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-01-05 22:43:06' and `end` < '2025-01-06 01:43: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-01-06 01:43:19] Production.INFO: count ==173 [2025-01-06 01:43:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:43:06 - End Time 2025-01-06 01:43:06 [2025-01-06 01:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184269', 'tblTempUsageDetail_20' ) start [2025-01-06 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184269', 'tblTempUsageDetail_20' ) end [2025-01-06 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184269', 'tblTempVendorCDR_20' ) start [2025-01-06 01:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184269', 'tblTempVendorCDR_20' ) end [2025-01-06 01:43:19] Production.INFO: ProcessCDR(1,14184269,1,1,2) [2025-01-06 01:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184269', 'tblTempUsageDetail_20' ) start [2025-01-06 01:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184269', 'tblTempUsageDetail_20' ) end [2025-01-06 01:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:43:22] Production.INFO: ==23363== Releasing lock... [2025-01-06 01:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:43:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:44:05 [end_date_ymd] => 2025-01-06 01:44:05 [RateCDR] => 1 ) [2025-01-06 01:44: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-01-05 22:44:05' and `end` < '2025-01-06 01:44: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-01-06 01:44:19] Production.INFO: count ==176 [2025-01-06 01:44:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:44:05 - End Time 2025-01-06 01:44:05 [2025-01-06 01:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184274', 'tblTempUsageDetail_20' ) start [2025-01-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184274', 'tblTempUsageDetail_20' ) end [2025-01-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184274', 'tblTempVendorCDR_20' ) start [2025-01-06 01:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184274', 'tblTempVendorCDR_20' ) end [2025-01-06 01:44:19] Production.INFO: ProcessCDR(1,14184274,1,1,2) [2025-01-06 01:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184274', 'tblTempUsageDetail_20' ) start [2025-01-06 01:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184274', 'tblTempUsageDetail_20' ) end [2025-01-06 01:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:44:22] Production.INFO: ==23471== Releasing lock... [2025-01-06 01:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:44:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:45:05 [end_date_ymd] => 2025-01-06 01:45:05 [RateCDR] => 1 ) [2025-01-06 01:45: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-01-05 22:45:05' and `end` < '2025-01-06 01:45: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-01-06 01:45:18] Production.INFO: count ==176 [2025-01-06 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:45:05 - End Time 2025-01-06 01:45:05 [2025-01-06 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184279', 'tblTempUsageDetail_20' ) start [2025-01-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184279', 'tblTempUsageDetail_20' ) end [2025-01-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184279', 'tblTempVendorCDR_20' ) start [2025-01-06 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184279', 'tblTempVendorCDR_20' ) end [2025-01-06 01:45:18] Production.INFO: ProcessCDR(1,14184279,1,1,2) [2025-01-06 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184279', 'tblTempUsageDetail_20' ) start [2025-01-06 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184279', 'tblTempUsageDetail_20' ) end [2025-01-06 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:45:21] Production.INFO: ==23586== Releasing lock... [2025-01-06 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:46:04 [end_date_ymd] => 2025-01-06 01:46:04 [RateCDR] => 1 ) [2025-01-06 01:46: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-01-05 22:46:04' and `end` < '2025-01-06 01:46: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-01-06 01:46:18] Production.INFO: count ==174 [2025-01-06 01:46:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:46:04 - End Time 2025-01-06 01:46:04 [2025-01-06 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184284', 'tblTempUsageDetail_20' ) start [2025-01-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184284', 'tblTempUsageDetail_20' ) end [2025-01-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184284', 'tblTempVendorCDR_20' ) start [2025-01-06 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184284', 'tblTempVendorCDR_20' ) end [2025-01-06 01:46:18] Production.INFO: ProcessCDR(1,14184284,1,1,2) [2025-01-06 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184284', 'tblTempUsageDetail_20' ) start [2025-01-06 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184284', 'tblTempUsageDetail_20' ) end [2025-01-06 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:46:21] Production.INFO: ==23696== Releasing lock... [2025-01-06 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:47:05 [end_date_ymd] => 2025-01-06 01:47:05 [RateCDR] => 1 ) [2025-01-06 01:47: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-01-05 22:47:05' and `end` < '2025-01-06 01:47: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-01-06 01:47:18] Production.INFO: count ==171 [2025-01-06 01:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:47:05 - End Time 2025-01-06 01:47:05 [2025-01-06 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184289', 'tblTempUsageDetail_20' ) start [2025-01-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184289', 'tblTempUsageDetail_20' ) end [2025-01-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184289', 'tblTempVendorCDR_20' ) start [2025-01-06 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184289', 'tblTempVendorCDR_20' ) end [2025-01-06 01:47:18] Production.INFO: ProcessCDR(1,14184289,1,1,2) [2025-01-06 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184289', 'tblTempUsageDetail_20' ) start [2025-01-06 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184289', 'tblTempUsageDetail_20' ) end [2025-01-06 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:47:21] Production.INFO: ==23808== Releasing lock... [2025-01-06 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:48:05 [end_date_ymd] => 2025-01-06 01:48:05 [RateCDR] => 1 ) [2025-01-06 01:48: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-01-05 22:48:05' and `end` < '2025-01-06 01:48: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-01-06 01:48:17] Production.INFO: count ==170 [2025-01-06 01:48:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:48:05 - End Time 2025-01-06 01:48:05 [2025-01-06 01:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184294', 'tblTempUsageDetail_20' ) start [2025-01-06 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184294', 'tblTempUsageDetail_20' ) end [2025-01-06 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184294', 'tblTempVendorCDR_20' ) start [2025-01-06 01:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184294', 'tblTempVendorCDR_20' ) end [2025-01-06 01:48:17] Production.INFO: ProcessCDR(1,14184294,1,1,2) [2025-01-06 01:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184294', 'tblTempUsageDetail_20' ) start [2025-01-06 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184294', 'tblTempUsageDetail_20' ) end [2025-01-06 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:48:21] Production.INFO: ==23923== Releasing lock... [2025-01-06 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:49:05 [end_date_ymd] => 2025-01-06 01:49:05 [RateCDR] => 1 ) [2025-01-06 01:49: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-01-05 22:49:05' and `end` < '2025-01-06 01:49: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-01-06 01:49:18] Production.INFO: count ==170 [2025-01-06 01:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:49:05 - End Time 2025-01-06 01:49:05 [2025-01-06 01:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184299', 'tblTempUsageDetail_20' ) start [2025-01-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184299', 'tblTempUsageDetail_20' ) end [2025-01-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184299', 'tblTempVendorCDR_20' ) start [2025-01-06 01:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184299', 'tblTempVendorCDR_20' ) end [2025-01-06 01:49:18] Production.INFO: ProcessCDR(1,14184299,1,1,2) [2025-01-06 01:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184299', 'tblTempUsageDetail_20' ) start [2025-01-06 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184299', 'tblTempUsageDetail_20' ) end [2025-01-06 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:49:22] Production.INFO: ==24038== Releasing lock... [2025-01-06 01:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:49:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:50:06 [end_date_ymd] => 2025-01-06 01:50:06 [RateCDR] => 1 ) [2025-01-06 01:50: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-01-05 22:50:06' and `end` < '2025-01-06 01:50: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-01-06 01:50:19] Production.INFO: count ==178 [2025-01-06 01:50:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:50:06 - End Time 2025-01-06 01:50:06 [2025-01-06 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184305', 'tblTempUsageDetail_20' ) start [2025-01-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184305', 'tblTempUsageDetail_20' ) end [2025-01-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184305', 'tblTempVendorCDR_20' ) start [2025-01-06 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184305', 'tblTempVendorCDR_20' ) end [2025-01-06 01:50:19] Production.INFO: ProcessCDR(1,14184305,1,1,2) [2025-01-06 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184305', 'tblTempUsageDetail_20' ) start [2025-01-06 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184305', 'tblTempUsageDetail_20' ) end [2025-01-06 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:50:22] Production.INFO: ==24161== Releasing lock... [2025-01-06 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:51:04 [end_date_ymd] => 2025-01-06 01:51:04 [RateCDR] => 1 ) [2025-01-06 01:51: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-01-05 22:51:04' and `end` < '2025-01-06 01:51: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-01-06 01:51:17] Production.INFO: count ==178 [2025-01-06 01:51:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:51:04 - End Time 2025-01-06 01:51:04 [2025-01-06 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184310', 'tblTempUsageDetail_20' ) start [2025-01-06 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184310', 'tblTempUsageDetail_20' ) end [2025-01-06 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184310', 'tblTempVendorCDR_20' ) start [2025-01-06 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184310', 'tblTempVendorCDR_20' ) end [2025-01-06 01:51:17] Production.INFO: ProcessCDR(1,14184310,1,1,2) [2025-01-06 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184310', 'tblTempUsageDetail_20' ) start [2025-01-06 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184310', 'tblTempUsageDetail_20' ) end [2025-01-06 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:51:20] Production.INFO: ==24276== Releasing lock... [2025-01-06 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:52:05 [end_date_ymd] => 2025-01-06 01:52:05 [RateCDR] => 1 ) [2025-01-06 01:52: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-01-05 22:52:05' and `end` < '2025-01-06 01:52: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-01-06 01:52:19] Production.INFO: count ==178 [2025-01-06 01:52:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:52:05 - End Time 2025-01-06 01:52:05 [2025-01-06 01:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184315', 'tblTempUsageDetail_20' ) start [2025-01-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184315', 'tblTempUsageDetail_20' ) end [2025-01-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184315', 'tblTempVendorCDR_20' ) start [2025-01-06 01:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184315', 'tblTempVendorCDR_20' ) end [2025-01-06 01:52:19] Production.INFO: ProcessCDR(1,14184315,1,1,2) [2025-01-06 01:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184315', 'tblTempUsageDetail_20' ) start [2025-01-06 01:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184315', 'tblTempUsageDetail_20' ) end [2025-01-06 01:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:52:22] Production.INFO: ==24386== Releasing lock... [2025-01-06 01:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:53:05 [end_date_ymd] => 2025-01-06 01:53:05 [RateCDR] => 1 ) [2025-01-06 01:53: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-01-05 22:53:05' and `end` < '2025-01-06 01:53: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-01-06 01:53:18] Production.INFO: count ==178 [2025-01-06 01:53:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:53:05 - End Time 2025-01-06 01:53:05 [2025-01-06 01:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184320', 'tblTempUsageDetail_20' ) start [2025-01-06 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184320', 'tblTempUsageDetail_20' ) end [2025-01-06 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184320', 'tblTempVendorCDR_20' ) start [2025-01-06 01:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184320', 'tblTempVendorCDR_20' ) end [2025-01-06 01:53:18] Production.INFO: ProcessCDR(1,14184320,1,1,2) [2025-01-06 01:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184320', 'tblTempUsageDetail_20' ) start [2025-01-06 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184320', 'tblTempUsageDetail_20' ) end [2025-01-06 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:53:21] Production.INFO: ==24496== Releasing lock... [2025-01-06 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:54:06 [end_date_ymd] => 2025-01-06 01:54:06 [RateCDR] => 1 ) [2025-01-06 01:54: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-01-05 22:54:06' and `end` < '2025-01-06 01:54: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-01-06 01:54:19] Production.INFO: count ==177 [2025-01-06 01:54:19] Production.ERROR: pbx CDR StartTime 2025-01-05 22:54:06 - End Time 2025-01-06 01:54:06 [2025-01-06 01:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184325', 'tblTempUsageDetail_20' ) start [2025-01-06 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184325', 'tblTempUsageDetail_20' ) end [2025-01-06 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184325', 'tblTempVendorCDR_20' ) start [2025-01-06 01:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184325', 'tblTempVendorCDR_20' ) end [2025-01-06 01:54:19] Production.INFO: ProcessCDR(1,14184325,1,1,2) [2025-01-06 01:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184325', 'tblTempUsageDetail_20' ) start [2025-01-06 01:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184325', 'tblTempUsageDetail_20' ) end [2025-01-06 01:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:54:23] Production.INFO: ==24650== Releasing lock... [2025-01-06 01:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:54:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:55:05 [end_date_ymd] => 2025-01-06 01:55:05 [RateCDR] => 1 ) [2025-01-06 01:55: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-01-05 22:55:05' and `end` < '2025-01-06 01:55: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-01-06 01:55:18] Production.INFO: count ==176 [2025-01-06 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:55:05 - End Time 2025-01-06 01:55:05 [2025-01-06 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184330', 'tblTempUsageDetail_20' ) start [2025-01-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184330', 'tblTempUsageDetail_20' ) end [2025-01-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184330', 'tblTempVendorCDR_20' ) start [2025-01-06 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184330', 'tblTempVendorCDR_20' ) end [2025-01-06 01:55:18] Production.INFO: ProcessCDR(1,14184330,1,1,2) [2025-01-06 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184330', 'tblTempUsageDetail_20' ) start [2025-01-06 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184330', 'tblTempUsageDetail_20' ) end [2025-01-06 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:55:21] Production.INFO: ==24765== Releasing lock... [2025-01-06 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:56:05 [end_date_ymd] => 2025-01-06 01:56:05 [RateCDR] => 1 ) [2025-01-06 01:56: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-01-05 22:56:05' and `end` < '2025-01-06 01:56: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-01-06 01:56:18] Production.INFO: count ==176 [2025-01-06 01:56:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:56:05 - End Time 2025-01-06 01:56:05 [2025-01-06 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184335', 'tblTempUsageDetail_20' ) start [2025-01-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184335', 'tblTempUsageDetail_20' ) end [2025-01-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184335', 'tblTempVendorCDR_20' ) start [2025-01-06 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184335', 'tblTempVendorCDR_20' ) end [2025-01-06 01:56:18] Production.INFO: ProcessCDR(1,14184335,1,1,2) [2025-01-06 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184335', 'tblTempUsageDetail_20' ) start [2025-01-06 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184335', 'tblTempUsageDetail_20' ) end [2025-01-06 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:56:21] Production.INFO: ==24848== Releasing lock... [2025-01-06 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:57:04 [end_date_ymd] => 2025-01-06 01:57:04 [RateCDR] => 1 ) [2025-01-06 01:57: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-01-05 22:57:04' and `end` < '2025-01-06 01:57: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-01-06 01:57:18] Production.INFO: count ==176 [2025-01-06 01:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:57:04 - End Time 2025-01-06 01:57:04 [2025-01-06 01:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184340', 'tblTempUsageDetail_20' ) start [2025-01-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184340', 'tblTempUsageDetail_20' ) end [2025-01-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184340', 'tblTempVendorCDR_20' ) start [2025-01-06 01:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184340', 'tblTempVendorCDR_20' ) end [2025-01-06 01:57:18] Production.INFO: ProcessCDR(1,14184340,1,1,2) [2025-01-06 01:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184340', 'tblTempUsageDetail_20' ) start [2025-01-06 01:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184340', 'tblTempUsageDetail_20' ) end [2025-01-06 01:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:57:23] Production.INFO: ==24925== Releasing lock... [2025-01-06 01:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:57:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:58:05 [end_date_ymd] => 2025-01-06 01:58:05 [RateCDR] => 1 ) [2025-01-06 01:58: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-01-05 22:58:05' and `end` < '2025-01-06 01:58: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-01-06 01:58:18] Production.INFO: count ==177 [2025-01-06 01:58:18] Production.ERROR: pbx CDR StartTime 2025-01-05 22:58:05 - End Time 2025-01-06 01:58:05 [2025-01-06 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184345', 'tblTempUsageDetail_20' ) start [2025-01-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184345', 'tblTempUsageDetail_20' ) end [2025-01-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184345', 'tblTempVendorCDR_20' ) start [2025-01-06 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184345', 'tblTempVendorCDR_20' ) end [2025-01-06 01:58:18] Production.INFO: ProcessCDR(1,14184345,1,1,2) [2025-01-06 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184345', 'tblTempUsageDetail_20' ) start [2025-01-06 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184345', 'tblTempUsageDetail_20' ) end [2025-01-06 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:58:22] Production.INFO: ==25004== Releasing lock... [2025-01-06 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 01:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 22:59:04 [end_date_ymd] => 2025-01-06 01:59:04 [RateCDR] => 1 ) [2025-01-06 01:59: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-01-05 22:59:04' and `end` < '2025-01-06 01:59: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-01-06 01:59:17] Production.INFO: count ==176 [2025-01-06 01:59:17] Production.ERROR: pbx CDR StartTime 2025-01-05 22:59:04 - End Time 2025-01-06 01:59:04 [2025-01-06 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184350', 'tblTempUsageDetail_20' ) start [2025-01-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184350', 'tblTempUsageDetail_20' ) end [2025-01-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184350', 'tblTempVendorCDR_20' ) start [2025-01-06 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184350', 'tblTempVendorCDR_20' ) end [2025-01-06 01:59:17] Production.INFO: ProcessCDR(1,14184350,1,1,2) [2025-01-06 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184350', 'tblTempUsageDetail_20' ) start [2025-01-06 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184350', 'tblTempUsageDetail_20' ) end [2025-01-06 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 01:59:22] Production.INFO: ==25082== Releasing lock... [2025-01-06 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 01:59:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:00:06 [end_date_ymd] => 2025-01-06 02:00:06 [RateCDR] => 1 ) [2025-01-06 02:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-05 23:00:06' and `end` < '2025-01-06 02:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 02:00:18] Production.INFO: count ==186 [2025-01-06 02:00:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:00:06 - End Time 2025-01-06 02:00:06 [2025-01-06 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184355', 'tblTempUsageDetail_20' ) start [2025-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184355', 'tblTempUsageDetail_20' ) end [2025-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184355', 'tblTempVendorCDR_20' ) start [2025-01-06 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184355', 'tblTempVendorCDR_20' ) end [2025-01-06 02:00:18] Production.INFO: ProcessCDR(1,14184355,1,1,2) [2025-01-06 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184355', 'tblTempUsageDetail_20' ) start [2025-01-06 02:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184355', 'tblTempUsageDetail_20' ) end [2025-01-06 02:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:00:21] Production.INFO: ==25164== Releasing lock... [2025-01-06 02:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:01:05 [end_date_ymd] => 2025-01-06 02:01:05 [RateCDR] => 1 ) [2025-01-06 02:01: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-01-05 23:01:05' and `end` < '2025-01-06 02:01: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-01-06 02:01:18] Production.INFO: count ==205 [2025-01-06 02:01:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:01:05 - End Time 2025-01-06 02:01:05 [2025-01-06 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184361', 'tblTempUsageDetail_20' ) start [2025-01-06 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184361', 'tblTempUsageDetail_20' ) end [2025-01-06 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184361', 'tblTempVendorCDR_20' ) start [2025-01-06 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184361', 'tblTempVendorCDR_20' ) end [2025-01-06 02:01:18] Production.INFO: ProcessCDR(1,14184361,1,1,2) [2025-01-06 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184361', 'tblTempUsageDetail_20' ) start [2025-01-06 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184361', 'tblTempUsageDetail_20' ) end [2025-01-06 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:01:23] Production.INFO: ==25346== Releasing lock... [2025-01-06 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:01:23] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:02:05 [end_date_ymd] => 2025-01-06 02:02:05 [RateCDR] => 1 ) [2025-01-06 02:02: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-01-05 23:02:05' and `end` < '2025-01-06 02:02: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-01-06 02:02:18] Production.INFO: count ==205 [2025-01-06 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:02:05 - End Time 2025-01-06 02:02:05 [2025-01-06 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184366', 'tblTempUsageDetail_20' ) start [2025-01-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184366', 'tblTempUsageDetail_20' ) end [2025-01-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184366', 'tblTempVendorCDR_20' ) start [2025-01-06 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184366', 'tblTempVendorCDR_20' ) end [2025-01-06 02:02:18] Production.INFO: ProcessCDR(1,14184366,1,1,2) [2025-01-06 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184366', 'tblTempUsageDetail_20' ) start [2025-01-06 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184366', 'tblTempUsageDetail_20' ) end [2025-01-06 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:02:21] Production.INFO: ==25426== Releasing lock... [2025-01-06 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:03:05 [end_date_ymd] => 2025-01-06 02:03:05 [RateCDR] => 1 ) [2025-01-06 02:03: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-01-05 23:03:05' and `end` < '2025-01-06 02:03: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-01-06 02:03:19] Production.INFO: count ==206 [2025-01-06 02:03:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:03:05 - End Time 2025-01-06 02:03:05 [2025-01-06 02:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184371', 'tblTempUsageDetail_20' ) start [2025-01-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184371', 'tblTempUsageDetail_20' ) end [2025-01-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184371', 'tblTempVendorCDR_20' ) start [2025-01-06 02:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184371', 'tblTempVendorCDR_20' ) end [2025-01-06 02:03:19] Production.INFO: ProcessCDR(1,14184371,1,1,2) [2025-01-06 02:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184371', 'tblTempUsageDetail_20' ) start [2025-01-06 02:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184371', 'tblTempUsageDetail_20' ) end [2025-01-06 02:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:03:22] Production.INFO: ==25504== Releasing lock... [2025-01-06 02:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:03:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:04:05 [end_date_ymd] => 2025-01-06 02:04:05 [RateCDR] => 1 ) [2025-01-06 02:04: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-01-05 23:04:05' and `end` < '2025-01-06 02:04: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-01-06 02:04:20] Production.INFO: count ==206 [2025-01-06 02:04:20] Production.ERROR: pbx CDR StartTime 2025-01-05 23:04:05 - End Time 2025-01-06 02:04:05 [2025-01-06 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184376', 'tblTempUsageDetail_20' ) start [2025-01-06 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184376', 'tblTempUsageDetail_20' ) end [2025-01-06 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184376', 'tblTempVendorCDR_20' ) start [2025-01-06 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184376', 'tblTempVendorCDR_20' ) end [2025-01-06 02:04:20] Production.INFO: ProcessCDR(1,14184376,1,1,2) [2025-01-06 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184376', 'tblTempUsageDetail_20' ) start [2025-01-06 02:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184376', 'tblTempUsageDetail_20' ) end [2025-01-06 02:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:04:23] Production.INFO: ==25583== Releasing lock... [2025-01-06 02:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:04:23] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:05:04 [end_date_ymd] => 2025-01-06 02:05:04 [RateCDR] => 1 ) [2025-01-06 02:05: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-01-05 23:05:04' and `end` < '2025-01-06 02:05: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-01-06 02:05:19] Production.INFO: count ==207 [2025-01-06 02:05:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:05:04 - End Time 2025-01-06 02:05:04 [2025-01-06 02:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184381', 'tblTempUsageDetail_20' ) start [2025-01-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184381', 'tblTempUsageDetail_20' ) end [2025-01-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184381', 'tblTempVendorCDR_20' ) start [2025-01-06 02:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184381', 'tblTempVendorCDR_20' ) end [2025-01-06 02:05:19] Production.INFO: ProcessCDR(1,14184381,1,1,2) [2025-01-06 02:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184381', 'tblTempUsageDetail_20' ) start [2025-01-06 02:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184381', 'tblTempUsageDetail_20' ) end [2025-01-06 02:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:05:22] Production.INFO: ==25662== Releasing lock... [2025-01-06 02:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:05:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:06:05 [end_date_ymd] => 2025-01-06 02:06:05 [RateCDR] => 1 ) [2025-01-06 02:06: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-01-05 23:06:05' and `end` < '2025-01-06 02:06: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-01-06 02:06:19] Production.INFO: count ==206 [2025-01-06 02:06:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:06:05 - End Time 2025-01-06 02:06:05 [2025-01-06 02:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184386', 'tblTempUsageDetail_20' ) start [2025-01-06 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184386', 'tblTempUsageDetail_20' ) end [2025-01-06 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184386', 'tblTempVendorCDR_20' ) start [2025-01-06 02:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184386', 'tblTempVendorCDR_20' ) end [2025-01-06 02:06:19] Production.INFO: ProcessCDR(1,14184386,1,1,2) [2025-01-06 02:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184386', 'tblTempUsageDetail_20' ) start [2025-01-06 02:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184386', 'tblTempUsageDetail_20' ) end [2025-01-06 02:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:06:22] Production.INFO: ==25743== Releasing lock... [2025-01-06 02:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:07:05 [end_date_ymd] => 2025-01-06 02:07:05 [RateCDR] => 1 ) [2025-01-06 02:07: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-01-05 23:07:05' and `end` < '2025-01-06 02:07: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-01-06 02:07:18] Production.INFO: count ==206 [2025-01-06 02:07:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:07:05 - End Time 2025-01-06 02:07:05 [2025-01-06 02:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184391', 'tblTempUsageDetail_20' ) start [2025-01-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184391', 'tblTempUsageDetail_20' ) end [2025-01-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184391', 'tblTempVendorCDR_20' ) start [2025-01-06 02:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184391', 'tblTempVendorCDR_20' ) end [2025-01-06 02:07:18] Production.INFO: ProcessCDR(1,14184391,1,1,2) [2025-01-06 02:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184391', 'tblTempUsageDetail_20' ) start [2025-01-06 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184391', 'tblTempUsageDetail_20' ) end [2025-01-06 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:07:21] Production.INFO: ==25817== Releasing lock... [2025-01-06 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:07:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:08:05 [end_date_ymd] => 2025-01-06 02:08:05 [RateCDR] => 1 ) [2025-01-06 02:08: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-01-05 23:08:05' and `end` < '2025-01-06 02:08: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-01-06 02:08:17] Production.INFO: count ==206 [2025-01-06 02:08:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:08:05 - End Time 2025-01-06 02:08:05 [2025-01-06 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184396', 'tblTempUsageDetail_20' ) start [2025-01-06 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184396', 'tblTempUsageDetail_20' ) end [2025-01-06 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184396', 'tblTempVendorCDR_20' ) start [2025-01-06 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184396', 'tblTempVendorCDR_20' ) end [2025-01-06 02:08:17] Production.INFO: ProcessCDR(1,14184396,1,1,2) [2025-01-06 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184396', 'tblTempUsageDetail_20' ) start [2025-01-06 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184396', 'tblTempUsageDetail_20' ) end [2025-01-06 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:08:21] Production.INFO: ==25889== Releasing lock... [2025-01-06 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:09:05 [end_date_ymd] => 2025-01-06 02:09:05 [RateCDR] => 1 ) [2025-01-06 02:09: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-01-05 23:09:05' and `end` < '2025-01-06 02:09: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-01-06 02:09:19] Production.INFO: count ==206 [2025-01-06 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:09:05 - End Time 2025-01-06 02:09:05 [2025-01-06 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184401', 'tblTempUsageDetail_20' ) start [2025-01-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184401', 'tblTempUsageDetail_20' ) end [2025-01-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184401', 'tblTempVendorCDR_20' ) start [2025-01-06 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184401', 'tblTempVendorCDR_20' ) end [2025-01-06 02:09:19] Production.INFO: ProcessCDR(1,14184401,1,1,2) [2025-01-06 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184401', 'tblTempUsageDetail_20' ) start [2025-01-06 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184401', 'tblTempUsageDetail_20' ) end [2025-01-06 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:09:22] Production.INFO: ==25964== Releasing lock... [2025-01-06 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:09:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:10:05 [end_date_ymd] => 2025-01-06 02:10:05 [RateCDR] => 1 ) [2025-01-06 02:10: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-01-05 23:10:05' and `end` < '2025-01-06 02:10: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-01-06 02:10:18] Production.INFO: count ==212 [2025-01-06 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:10:05 - End Time 2025-01-06 02:10:05 [2025-01-06 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184407', 'tblTempUsageDetail_20' ) start [2025-01-06 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184407', 'tblTempUsageDetail_20' ) end [2025-01-06 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184407', 'tblTempVendorCDR_20' ) start [2025-01-06 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184407', 'tblTempVendorCDR_20' ) end [2025-01-06 02:10:18] Production.INFO: ProcessCDR(1,14184407,1,1,2) [2025-01-06 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184407', 'tblTempUsageDetail_20' ) start [2025-01-06 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184407', 'tblTempUsageDetail_20' ) end [2025-01-06 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:10:21] Production.INFO: ==26079== Releasing lock... [2025-01-06 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:10:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:11:06 [end_date_ymd] => 2025-01-06 02:11:06 [RateCDR] => 1 ) [2025-01-06 02:11: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-01-05 23:11:06' and `end` < '2025-01-06 02:11: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-01-06 02:11:18] Production.INFO: count ==216 [2025-01-06 02:11:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:11:06 - End Time 2025-01-06 02:11:06 [2025-01-06 02:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184412', 'tblTempUsageDetail_20' ) start [2025-01-06 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184412', 'tblTempUsageDetail_20' ) end [2025-01-06 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184412', 'tblTempVendorCDR_20' ) start [2025-01-06 02:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184412', 'tblTempVendorCDR_20' ) end [2025-01-06 02:11:18] Production.INFO: ProcessCDR(1,14184412,1,1,2) [2025-01-06 02:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184412', 'tblTempUsageDetail_20' ) start [2025-01-06 02:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184412', 'tblTempUsageDetail_20' ) end [2025-01-06 02:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:11:21] Production.INFO: ==26156== Releasing lock... [2025-01-06 02:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:12:05 [end_date_ymd] => 2025-01-06 02:12:05 [RateCDR] => 1 ) [2025-01-06 02:12: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-01-05 23:12:05' and `end` < '2025-01-06 02:12: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-01-06 02:12:17] Production.INFO: count ==216 [2025-01-06 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:12:05 - End Time 2025-01-06 02:12:05 [2025-01-06 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184417', 'tblTempUsageDetail_20' ) start [2025-01-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184417', 'tblTempUsageDetail_20' ) end [2025-01-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184417', 'tblTempVendorCDR_20' ) start [2025-01-06 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184417', 'tblTempVendorCDR_20' ) end [2025-01-06 02:12:18] Production.INFO: ProcessCDR(1,14184417,1,1,2) [2025-01-06 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184417', 'tblTempUsageDetail_20' ) start [2025-01-06 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184417', 'tblTempUsageDetail_20' ) end [2025-01-06 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:12:21] Production.INFO: ==26234== Releasing lock... [2025-01-06 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:12:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:13:05 [end_date_ymd] => 2025-01-06 02:13:05 [RateCDR] => 1 ) [2025-01-06 02:13: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-01-05 23:13:05' and `end` < '2025-01-06 02:13: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-01-06 02:13:18] Production.INFO: count ==226 [2025-01-06 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:13:05 - End Time 2025-01-06 02:13:05 [2025-01-06 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184422', 'tblTempUsageDetail_20' ) start [2025-01-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184422', 'tblTempUsageDetail_20' ) end [2025-01-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184422', 'tblTempVendorCDR_20' ) start [2025-01-06 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184422', 'tblTempVendorCDR_20' ) end [2025-01-06 02:13:18] Production.INFO: ProcessCDR(1,14184422,1,1,2) [2025-01-06 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184422', 'tblTempUsageDetail_20' ) start [2025-01-06 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184422', 'tblTempUsageDetail_20' ) end [2025-01-06 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:13:21] Production.INFO: ==26319== Releasing lock... [2025-01-06 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:14:04 [end_date_ymd] => 2025-01-06 02:14:04 [RateCDR] => 1 ) [2025-01-06 02:14: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-01-05 23:14:04' and `end` < '2025-01-06 02:14: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-01-06 02:14:19] Production.INFO: count ==226 [2025-01-06 02:14:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:14:04 - End Time 2025-01-06 02:14:04 [2025-01-06 02:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184427', 'tblTempUsageDetail_20' ) start [2025-01-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184427', 'tblTempUsageDetail_20' ) end [2025-01-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184427', 'tblTempVendorCDR_20' ) start [2025-01-06 02:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184427', 'tblTempVendorCDR_20' ) end [2025-01-06 02:14:19] Production.INFO: ProcessCDR(1,14184427,1,1,2) [2025-01-06 02:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184427', 'tblTempUsageDetail_20' ) start [2025-01-06 02:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184427', 'tblTempUsageDetail_20' ) end [2025-01-06 02:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:14:22] Production.INFO: ==26403== Releasing lock... [2025-01-06 02:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:15:05 [end_date_ymd] => 2025-01-06 02:15:05 [RateCDR] => 1 ) [2025-01-06 02:15: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-01-05 23:15:05' and `end` < '2025-01-06 02:15: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-01-06 02:15:17] Production.INFO: count ==224 [2025-01-06 02:15:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:15:05 - End Time 2025-01-06 02:15:05 [2025-01-06 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184432', 'tblTempUsageDetail_20' ) start [2025-01-06 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184432', 'tblTempUsageDetail_20' ) end [2025-01-06 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184432', 'tblTempVendorCDR_20' ) start [2025-01-06 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184432', 'tblTempVendorCDR_20' ) end [2025-01-06 02:15:17] Production.INFO: ProcessCDR(1,14184432,1,1,2) [2025-01-06 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184432', 'tblTempUsageDetail_20' ) start [2025-01-06 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184432', 'tblTempUsageDetail_20' ) end [2025-01-06 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:15:21] Production.INFO: ==26488== Releasing lock... [2025-01-06 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:16:05 [end_date_ymd] => 2025-01-06 02:16:05 [RateCDR] => 1 ) [2025-01-06 02:16: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-01-05 23:16:05' and `end` < '2025-01-06 02:16: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-01-06 02:16:19] Production.INFO: count ==223 [2025-01-06 02:16:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:16:05 - End Time 2025-01-06 02:16:05 [2025-01-06 02:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184437', 'tblTempUsageDetail_20' ) start [2025-01-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184437', 'tblTempUsageDetail_20' ) end [2025-01-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184437', 'tblTempVendorCDR_20' ) start [2025-01-06 02:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184437', 'tblTempVendorCDR_20' ) end [2025-01-06 02:16:19] Production.INFO: ProcessCDR(1,14184437,1,1,2) [2025-01-06 02:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184437', 'tblTempUsageDetail_20' ) start [2025-01-06 02:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184437', 'tblTempUsageDetail_20' ) end [2025-01-06 02:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:16:22] Production.INFO: ==26577== Releasing lock... [2025-01-06 02:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:16:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:17:05 [end_date_ymd] => 2025-01-06 02:17:05 [RateCDR] => 1 ) [2025-01-06 02:17: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-01-05 23:17:05' and `end` < '2025-01-06 02:17: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-01-06 02:17:18] Production.INFO: count ==222 [2025-01-06 02:17:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:17:05 - End Time 2025-01-06 02:17:05 [2025-01-06 02:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184442', 'tblTempUsageDetail_20' ) start [2025-01-06 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184442', 'tblTempUsageDetail_20' ) end [2025-01-06 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184442', 'tblTempVendorCDR_20' ) start [2025-01-06 02:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184442', 'tblTempVendorCDR_20' ) end [2025-01-06 02:17:19] Production.INFO: ProcessCDR(1,14184442,1,1,2) [2025-01-06 02:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184442', 'tblTempUsageDetail_20' ) start [2025-01-06 02:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184442', 'tblTempUsageDetail_20' ) end [2025-01-06 02:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:17:22] Production.INFO: ==26664== Releasing lock... [2025-01-06 02:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:18:04 [end_date_ymd] => 2025-01-06 02:18:04 [RateCDR] => 1 ) [2025-01-06 02:18: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-01-05 23:18:04' and `end` < '2025-01-06 02:18: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-01-06 02:18:17] Production.INFO: count ==222 [2025-01-06 02:18:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:18:04 - End Time 2025-01-06 02:18:04 [2025-01-06 02:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184447', 'tblTempUsageDetail_20' ) start [2025-01-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184447', 'tblTempUsageDetail_20' ) end [2025-01-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184447', 'tblTempVendorCDR_20' ) start [2025-01-06 02:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184447', 'tblTempVendorCDR_20' ) end [2025-01-06 02:18:17] Production.INFO: ProcessCDR(1,14184447,1,1,2) [2025-01-06 02:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184447', 'tblTempUsageDetail_20' ) start [2025-01-06 02:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184447', 'tblTempUsageDetail_20' ) end [2025-01-06 02:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:18:20] Production.INFO: ==26748== Releasing lock... [2025-01-06 02:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:18:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:19:05 [end_date_ymd] => 2025-01-06 02:19:05 [RateCDR] => 1 ) [2025-01-06 02:19: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-01-05 23:19:05' and `end` < '2025-01-06 02:19: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-01-06 02:19:18] Production.INFO: count ==222 [2025-01-06 02:19:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:19:05 - End Time 2025-01-06 02:19:05 [2025-01-06 02:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184452', 'tblTempUsageDetail_20' ) start [2025-01-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184452', 'tblTempUsageDetail_20' ) end [2025-01-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184452', 'tblTempVendorCDR_20' ) start [2025-01-06 02:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184452', 'tblTempVendorCDR_20' ) end [2025-01-06 02:19:18] Production.INFO: ProcessCDR(1,14184452,1,1,2) [2025-01-06 02:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184452', 'tblTempUsageDetail_20' ) start [2025-01-06 02:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184452', 'tblTempUsageDetail_20' ) end [2025-01-06 02:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:19:22] Production.INFO: ==26828== Releasing lock... [2025-01-06 02:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:19:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:20:06 [end_date_ymd] => 2025-01-06 02:20:06 [RateCDR] => 1 ) [2025-01-06 02:20: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-01-05 23:20:06' and `end` < '2025-01-06 02:20: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-01-06 02:20:19] Production.INFO: count ==231 [2025-01-06 02:20:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:20:06 - End Time 2025-01-06 02:20:06 [2025-01-06 02:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184458', 'tblTempUsageDetail_20' ) start [2025-01-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184458', 'tblTempUsageDetail_20' ) end [2025-01-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184458', 'tblTempVendorCDR_20' ) start [2025-01-06 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184458', 'tblTempVendorCDR_20' ) end [2025-01-06 02:20:19] Production.INFO: ProcessCDR(1,14184458,1,1,2) [2025-01-06 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184458', 'tblTempUsageDetail_20' ) start [2025-01-06 02:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184458', 'tblTempUsageDetail_20' ) end [2025-01-06 02:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:20:23] Production.INFO: ==26905== Releasing lock... [2025-01-06 02:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:20:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:21:04 [end_date_ymd] => 2025-01-06 02:21:04 [RateCDR] => 1 ) [2025-01-06 02:21: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-01-05 23:21:04' and `end` < '2025-01-06 02:21: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-01-06 02:21:17] Production.INFO: count ==245 [2025-01-06 02:21:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:21:04 - End Time 2025-01-06 02:21:04 [2025-01-06 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184463', 'tblTempUsageDetail_20' ) start [2025-01-06 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184463', 'tblTempUsageDetail_20' ) end [2025-01-06 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184463', 'tblTempVendorCDR_20' ) start [2025-01-06 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184463', 'tblTempVendorCDR_20' ) end [2025-01-06 02:21:17] Production.INFO: ProcessCDR(1,14184463,1,1,2) [2025-01-06 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184463', 'tblTempUsageDetail_20' ) start [2025-01-06 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184463', 'tblTempUsageDetail_20' ) end [2025-01-06 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:21:20] Production.INFO: ==26983== Releasing lock... [2025-01-06 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:21:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:22:04 [end_date_ymd] => 2025-01-06 02:22:04 [RateCDR] => 1 ) [2025-01-06 02:22: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-01-05 23:22:04' and `end` < '2025-01-06 02:22: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-01-06 02:22:18] Production.INFO: count ==245 [2025-01-06 02:22:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:22:04 - End Time 2025-01-06 02:22:04 [2025-01-06 02:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184464', 'tblTempUsageDetail_20' ) start [2025-01-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184464', 'tblTempUsageDetail_20' ) end [2025-01-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184464', 'tblTempVendorCDR_20' ) start [2025-01-06 02:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184464', 'tblTempVendorCDR_20' ) end [2025-01-06 02:22:18] Production.INFO: ProcessCDR(1,14184464,1,1,2) [2025-01-06 02:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184464', 'tblTempUsageDetail_20' ) start [2025-01-06 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184464', 'tblTempUsageDetail_20' ) end [2025-01-06 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:22:21] Production.INFO: ==27054== Releasing lock... [2025-01-06 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:23:05 [end_date_ymd] => 2025-01-06 02:23:05 [RateCDR] => 1 ) [2025-01-06 02:23: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-01-05 23:23:05' and `end` < '2025-01-06 02:23: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-01-06 02:23:19] Production.INFO: count ==246 [2025-01-06 02:23:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:23:05 - End Time 2025-01-06 02:23:05 [2025-01-06 02:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184473', 'tblTempUsageDetail_20' ) start [2025-01-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184473', 'tblTempUsageDetail_20' ) end [2025-01-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184473', 'tblTempVendorCDR_20' ) start [2025-01-06 02:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184473', 'tblTempVendorCDR_20' ) end [2025-01-06 02:23:19] Production.INFO: ProcessCDR(1,14184473,1,1,2) [2025-01-06 02:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184473', 'tblTempUsageDetail_20' ) start [2025-01-06 02:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184473', 'tblTempUsageDetail_20' ) end [2025-01-06 02:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:23:23] Production.INFO: ==27125== Releasing lock... [2025-01-06 02:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:23:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:24:06 [end_date_ymd] => 2025-01-06 02:24:06 [RateCDR] => 1 ) [2025-01-06 02:24: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-01-05 23:24:06' and `end` < '2025-01-06 02:24: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-01-06 02:24:18] Production.INFO: count ==246 [2025-01-06 02:24:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:24:06 - End Time 2025-01-06 02:24:06 [2025-01-06 02:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184478', 'tblTempUsageDetail_20' ) start [2025-01-06 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184478', 'tblTempUsageDetail_20' ) end [2025-01-06 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184478', 'tblTempVendorCDR_20' ) start [2025-01-06 02:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184478', 'tblTempVendorCDR_20' ) end [2025-01-06 02:24:18] Production.INFO: ProcessCDR(1,14184478,1,1,2) [2025-01-06 02:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184478', 'tblTempUsageDetail_20' ) start [2025-01-06 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184478', 'tblTempUsageDetail_20' ) end [2025-01-06 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:24:21] Production.INFO: ==27197== Releasing lock... [2025-01-06 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:24:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:25:04 [end_date_ymd] => 2025-01-06 02:25:04 [RateCDR] => 1 ) [2025-01-06 02: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-01-05 23:25:04' and `end` < '2025-01-06 02: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-01-06 02:25:17] Production.INFO: count ==246 [2025-01-06 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:25:04 - End Time 2025-01-06 02:25:04 [2025-01-06 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184483', 'tblTempUsageDetail_20' ) start [2025-01-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184483', 'tblTempUsageDetail_20' ) end [2025-01-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184483', 'tblTempVendorCDR_20' ) start [2025-01-06 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184483', 'tblTempVendorCDR_20' ) end [2025-01-06 02:25:17] Production.INFO: ProcessCDR(1,14184483,1,1,2) [2025-01-06 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184483', 'tblTempUsageDetail_20' ) start [2025-01-06 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184483', 'tblTempUsageDetail_20' ) end [2025-01-06 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:25:20] Production.INFO: ==27306== Releasing lock... [2025-01-06 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:25:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:26:05 [end_date_ymd] => 2025-01-06 02:26:05 [RateCDR] => 1 ) [2025-01-06 02:26: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-01-05 23:26:05' and `end` < '2025-01-06 02:26: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-01-06 02:26:18] Production.INFO: count ==246 [2025-01-06 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:26:05 - End Time 2025-01-06 02:26:05 [2025-01-06 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184488', 'tblTempUsageDetail_20' ) start [2025-01-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184488', 'tblTempUsageDetail_20' ) end [2025-01-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184488', 'tblTempVendorCDR_20' ) start [2025-01-06 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184488', 'tblTempVendorCDR_20' ) end [2025-01-06 02:26:18] Production.INFO: ProcessCDR(1,14184488,1,1,2) [2025-01-06 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184488', 'tblTempUsageDetail_20' ) start [2025-01-06 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184488', 'tblTempUsageDetail_20' ) end [2025-01-06 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:26:21] Production.INFO: ==27383== Releasing lock... [2025-01-06 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:27:05 [end_date_ymd] => 2025-01-06 02:27:05 [RateCDR] => 1 ) [2025-01-06 02:27: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-01-05 23:27:05' and `end` < '2025-01-06 02:27: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-01-06 02:27:17] Production.INFO: count ==246 [2025-01-06 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:27:05 - End Time 2025-01-06 02:27:05 [2025-01-06 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184493', 'tblTempUsageDetail_20' ) start [2025-01-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184493', 'tblTempUsageDetail_20' ) end [2025-01-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184493', 'tblTempVendorCDR_20' ) start [2025-01-06 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184493', 'tblTempVendorCDR_20' ) end [2025-01-06 02:27:18] Production.INFO: ProcessCDR(1,14184493,1,1,2) [2025-01-06 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184493', 'tblTempUsageDetail_20' ) start [2025-01-06 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184493', 'tblTempUsageDetail_20' ) end [2025-01-06 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:27:21] Production.INFO: ==27454== Releasing lock... [2025-01-06 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:28:05 [end_date_ymd] => 2025-01-06 02:28:05 [RateCDR] => 1 ) [2025-01-06 02:28: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-01-05 23:28:05' and `end` < '2025-01-06 02:28: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-01-06 02:28:18] Production.INFO: count ==244 [2025-01-06 02:28:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:28:05 - End Time 2025-01-06 02:28:05 [2025-01-06 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184498', 'tblTempUsageDetail_20' ) start [2025-01-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184498', 'tblTempUsageDetail_20' ) end [2025-01-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184498', 'tblTempVendorCDR_20' ) start [2025-01-06 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184498', 'tblTempVendorCDR_20' ) end [2025-01-06 02:28:18] Production.INFO: ProcessCDR(1,14184498,1,1,2) [2025-01-06 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184498', 'tblTempUsageDetail_20' ) start [2025-01-06 02:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184498', 'tblTempUsageDetail_20' ) end [2025-01-06 02:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:28:22] Production.INFO: ==27525== Releasing lock... [2025-01-06 02:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:28:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:29:04 [end_date_ymd] => 2025-01-06 02:29:04 [RateCDR] => 1 ) [2025-01-06 02:29: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-01-05 23:29:04' and `end` < '2025-01-06 02:29: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-01-06 02:29:18] Production.INFO: count ==243 [2025-01-06 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:29:04 - End Time 2025-01-06 02:29:04 [2025-01-06 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184503', 'tblTempUsageDetail_20' ) start [2025-01-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184503', 'tblTempUsageDetail_20' ) end [2025-01-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184503', 'tblTempVendorCDR_20' ) start [2025-01-06 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184503', 'tblTempVendorCDR_20' ) end [2025-01-06 02:29:18] Production.INFO: ProcessCDR(1,14184503,1,1,2) [2025-01-06 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184503', 'tblTempUsageDetail_20' ) start [2025-01-06 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184503', 'tblTempUsageDetail_20' ) end [2025-01-06 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:29:21] Production.INFO: ==27600== Releasing lock... [2025-01-06 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:29:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:30:05 [end_date_ymd] => 2025-01-06 02:30:05 [RateCDR] => 1 ) [2025-01-06 02:30: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-01-05 23:30:05' and `end` < '2025-01-06 02:30: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-01-06 02:30:18] Production.INFO: count ==249 [2025-01-06 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:30:05 - End Time 2025-01-06 02:30:05 [2025-01-06 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184508', 'tblTempUsageDetail_20' ) start [2025-01-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184508', 'tblTempUsageDetail_20' ) end [2025-01-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184508', 'tblTempVendorCDR_20' ) start [2025-01-06 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184508', 'tblTempVendorCDR_20' ) end [2025-01-06 02:30:18] Production.INFO: ProcessCDR(1,14184508,1,1,2) [2025-01-06 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184508', 'tblTempUsageDetail_20' ) start [2025-01-06 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184508', 'tblTempUsageDetail_20' ) end [2025-01-06 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:30:21] Production.INFO: ==27674== Releasing lock... [2025-01-06 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:30:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:31:05 [end_date_ymd] => 2025-01-06 02:31:05 [RateCDR] => 1 ) [2025-01-06 02:31: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-01-05 23:31:05' and `end` < '2025-01-06 02:31: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-01-06 02:31:18] Production.INFO: count ==249 [2025-01-06 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:31:05 - End Time 2025-01-06 02:31:05 [2025-01-06 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184514', 'tblTempUsageDetail_20' ) start [2025-01-06 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184514', 'tblTempUsageDetail_20' ) end [2025-01-06 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184514', 'tblTempVendorCDR_20' ) start [2025-01-06 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184514', 'tblTempVendorCDR_20' ) end [2025-01-06 02:31:18] Production.INFO: ProcessCDR(1,14184514,1,1,2) [2025-01-06 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184514', 'tblTempUsageDetail_20' ) start [2025-01-06 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184514', 'tblTempUsageDetail_20' ) end [2025-01-06 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:31:21] Production.INFO: ==27749== Releasing lock... [2025-01-06 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:32:05 [end_date_ymd] => 2025-01-06 02:32:05 [RateCDR] => 1 ) [2025-01-06 02:32: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-01-05 23:32:05' and `end` < '2025-01-06 02:32: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-01-06 02:32:17] Production.INFO: count ==249 [2025-01-06 02:32:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:32:05 - End Time 2025-01-06 02:32:05 [2025-01-06 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184519', 'tblTempUsageDetail_20' ) start [2025-01-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184519', 'tblTempUsageDetail_20' ) end [2025-01-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184519', 'tblTempVendorCDR_20' ) start [2025-01-06 02:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184519', 'tblTempVendorCDR_20' ) end [2025-01-06 02:32:18] Production.INFO: ProcessCDR(1,14184519,1,1,2) [2025-01-06 02:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184519', 'tblTempUsageDetail_20' ) start [2025-01-06 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184519', 'tblTempUsageDetail_20' ) end [2025-01-06 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:32:21] Production.INFO: ==27828== Releasing lock... [2025-01-06 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:33:05 [end_date_ymd] => 2025-01-06 02:33:05 [RateCDR] => 1 ) [2025-01-06 02:33: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-01-05 23:33:05' and `end` < '2025-01-06 02:33: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-01-06 02:33:18] Production.INFO: count ==249 [2025-01-06 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:33:05 - End Time 2025-01-06 02:33:05 [2025-01-06 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184524', 'tblTempUsageDetail_20' ) start [2025-01-06 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184524', 'tblTempUsageDetail_20' ) end [2025-01-06 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184524', 'tblTempVendorCDR_20' ) start [2025-01-06 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184524', 'tblTempVendorCDR_20' ) end [2025-01-06 02:33:18] Production.INFO: ProcessCDR(1,14184524,1,1,2) [2025-01-06 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184524', 'tblTempUsageDetail_20' ) start [2025-01-06 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184524', 'tblTempUsageDetail_20' ) end [2025-01-06 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:33:21] Production.INFO: ==27901== Releasing lock... [2025-01-06 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:33:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:34:05 [end_date_ymd] => 2025-01-06 02:34:05 [RateCDR] => 1 ) [2025-01-06 02:34: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-01-05 23:34:05' and `end` < '2025-01-06 02:34: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-01-06 02:34:18] Production.INFO: count ==249 [2025-01-06 02:34:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:34:05 - End Time 2025-01-06 02:34:05 [2025-01-06 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184529', 'tblTempUsageDetail_20' ) start [2025-01-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184529', 'tblTempUsageDetail_20' ) end [2025-01-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184529', 'tblTempVendorCDR_20' ) start [2025-01-06 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184529', 'tblTempVendorCDR_20' ) end [2025-01-06 02:34:18] Production.INFO: ProcessCDR(1,14184529,1,1,2) [2025-01-06 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184529', 'tblTempUsageDetail_20' ) start [2025-01-06 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184529', 'tblTempUsageDetail_20' ) end [2025-01-06 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:34:22] Production.INFO: ==27970== Releasing lock... [2025-01-06 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:34:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:35:05 [end_date_ymd] => 2025-01-06 02:35:05 [RateCDR] => 1 ) [2025-01-06 02:35: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-01-05 23:35:05' and `end` < '2025-01-06 02:35: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-01-06 02:35:18] Production.INFO: count ==249 [2025-01-06 02:35:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:35:05 - End Time 2025-01-06 02:35:05 [2025-01-06 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184534', 'tblTempUsageDetail_20' ) start [2025-01-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184534', 'tblTempUsageDetail_20' ) end [2025-01-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184534', 'tblTempVendorCDR_20' ) start [2025-01-06 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184534', 'tblTempVendorCDR_20' ) end [2025-01-06 02:35:18] Production.INFO: ProcessCDR(1,14184534,1,1,2) [2025-01-06 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184534', 'tblTempUsageDetail_20' ) start [2025-01-06 02:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184534', 'tblTempUsageDetail_20' ) end [2025-01-06 02:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:35:21] Production.INFO: ==28041== Releasing lock... [2025-01-06 02:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:35:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:36:05 [end_date_ymd] => 2025-01-06 02:36:05 [RateCDR] => 1 ) [2025-01-06 02:36: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-01-05 23:36:05' and `end` < '2025-01-06 02:36: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-01-06 02:36:17] Production.INFO: count ==249 [2025-01-06 02:36:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:36:05 - End Time 2025-01-06 02:36:05 [2025-01-06 02:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184539', 'tblTempUsageDetail_20' ) start [2025-01-06 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184539', 'tblTempUsageDetail_20' ) end [2025-01-06 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184539', 'tblTempVendorCDR_20' ) start [2025-01-06 02:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184539', 'tblTempVendorCDR_20' ) end [2025-01-06 02:36:17] Production.INFO: ProcessCDR(1,14184539,1,1,2) [2025-01-06 02:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184539', 'tblTempUsageDetail_20' ) start [2025-01-06 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184539', 'tblTempUsageDetail_20' ) end [2025-01-06 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:36:21] Production.INFO: ==28115== Releasing lock... [2025-01-06 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:37:05 [end_date_ymd] => 2025-01-06 02:37:05 [RateCDR] => 1 ) [2025-01-06 02:37: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-01-05 23:37:05' and `end` < '2025-01-06 02:37: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-01-06 02:37:18] Production.INFO: count ==249 [2025-01-06 02:37:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:37:05 - End Time 2025-01-06 02:37:05 [2025-01-06 02:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184544', 'tblTempUsageDetail_20' ) start [2025-01-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184544', 'tblTempUsageDetail_20' ) end [2025-01-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184544', 'tblTempVendorCDR_20' ) start [2025-01-06 02:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184544', 'tblTempVendorCDR_20' ) end [2025-01-06 02:37:19] Production.INFO: ProcessCDR(1,14184544,1,1,2) [2025-01-06 02:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184544', 'tblTempUsageDetail_20' ) start [2025-01-06 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184544', 'tblTempUsageDetail_20' ) end [2025-01-06 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:37:22] Production.INFO: ==28185== Releasing lock... [2025-01-06 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:37:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:38:04 [end_date_ymd] => 2025-01-06 02:38:04 [RateCDR] => 1 ) [2025-01-06 02:38: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-01-05 23:38:04' and `end` < '2025-01-06 02:38: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-01-06 02:38:17] Production.INFO: count ==249 [2025-01-06 02:38:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:38:04 - End Time 2025-01-06 02:38:04 [2025-01-06 02:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184549', 'tblTempUsageDetail_20' ) start [2025-01-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184549', 'tblTempUsageDetail_20' ) end [2025-01-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184549', 'tblTempVendorCDR_20' ) start [2025-01-06 02:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184549', 'tblTempVendorCDR_20' ) end [2025-01-06 02:38:17] Production.INFO: ProcessCDR(1,14184549,1,1,2) [2025-01-06 02:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184549', 'tblTempUsageDetail_20' ) start [2025-01-06 02:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184549', 'tblTempUsageDetail_20' ) end [2025-01-06 02:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:38:20] Production.INFO: ==28256== Releasing lock... [2025-01-06 02:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:38:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:39:05 [end_date_ymd] => 2025-01-06 02:39:05 [RateCDR] => 1 ) [2025-01-06 02:39: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-01-05 23:39:05' and `end` < '2025-01-06 02:39: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-01-06 02:39:18] Production.INFO: count ==249 [2025-01-06 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:39:05 - End Time 2025-01-06 02:39:05 [2025-01-06 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184554', 'tblTempUsageDetail_20' ) start [2025-01-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184554', 'tblTempUsageDetail_20' ) end [2025-01-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184554', 'tblTempVendorCDR_20' ) start [2025-01-06 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184554', 'tblTempVendorCDR_20' ) end [2025-01-06 02:39:18] Production.INFO: ProcessCDR(1,14184554,1,1,2) [2025-01-06 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184554', 'tblTempUsageDetail_20' ) start [2025-01-06 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184554', 'tblTempUsageDetail_20' ) end [2025-01-06 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:39:21] Production.INFO: ==28327== Releasing lock... [2025-01-06 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:39:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:40:06 [end_date_ymd] => 2025-01-06 02:40:06 [RateCDR] => 1 ) [2025-01-06 02:40: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-01-05 23:40:06' and `end` < '2025-01-06 02:40: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-01-06 02:40:19] Production.INFO: count ==253 [2025-01-06 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:40:06 - End Time 2025-01-06 02:40:06 [2025-01-06 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184560', 'tblTempUsageDetail_20' ) start [2025-01-06 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184560', 'tblTempUsageDetail_20' ) end [2025-01-06 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184560', 'tblTempVendorCDR_20' ) start [2025-01-06 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184560', 'tblTempVendorCDR_20' ) end [2025-01-06 02:40:19] Production.INFO: ProcessCDR(1,14184560,1,1,2) [2025-01-06 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184560', 'tblTempUsageDetail_20' ) start [2025-01-06 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184560', 'tblTempUsageDetail_20' ) end [2025-01-06 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:40:22] Production.INFO: ==28401== Releasing lock... [2025-01-06 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:40:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:41:05 [end_date_ymd] => 2025-01-06 02:41:05 [RateCDR] => 1 ) [2025-01-06 02:41: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-01-05 23:41:05' and `end` < '2025-01-06 02:41: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-01-06 02:41:18] Production.INFO: count ==253 [2025-01-06 02:41:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:41:05 - End Time 2025-01-06 02:41:05 [2025-01-06 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184565', 'tblTempUsageDetail_20' ) start [2025-01-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184565', 'tblTempUsageDetail_20' ) end [2025-01-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184565', 'tblTempVendorCDR_20' ) start [2025-01-06 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184565', 'tblTempVendorCDR_20' ) end [2025-01-06 02:41:18] Production.INFO: ProcessCDR(1,14184565,1,1,2) [2025-01-06 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184565', 'tblTempUsageDetail_20' ) start [2025-01-06 02:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184565', 'tblTempUsageDetail_20' ) end [2025-01-06 02:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:41:21] Production.INFO: ==28515== Releasing lock... [2025-01-06 02:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:41:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:42:04 [end_date_ymd] => 2025-01-06 02:42:04 [RateCDR] => 1 ) [2025-01-06 02:42: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-01-05 23:42:04' and `end` < '2025-01-06 02:42: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-01-06 02:42:18] Production.INFO: count ==253 [2025-01-06 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:42:04 - End Time 2025-01-06 02:42:04 [2025-01-06 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184570', 'tblTempUsageDetail_20' ) start [2025-01-06 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184570', 'tblTempUsageDetail_20' ) end [2025-01-06 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184570', 'tblTempVendorCDR_20' ) start [2025-01-06 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184570', 'tblTempVendorCDR_20' ) end [2025-01-06 02:42:18] Production.INFO: ProcessCDR(1,14184570,1,1,2) [2025-01-06 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184570', 'tblTempUsageDetail_20' ) start [2025-01-06 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184570', 'tblTempUsageDetail_20' ) end [2025-01-06 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:42:21] Production.INFO: ==28587== Releasing lock... [2025-01-06 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:42:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:43:05 [end_date_ymd] => 2025-01-06 02:43:05 [RateCDR] => 1 ) [2025-01-06 02:43: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-01-05 23:43:05' and `end` < '2025-01-06 02:43: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-01-06 02:43:18] Production.INFO: count ==252 [2025-01-06 02:43:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:43:05 - End Time 2025-01-06 02:43:05 [2025-01-06 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184575', 'tblTempUsageDetail_20' ) start [2025-01-06 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184575', 'tblTempUsageDetail_20' ) end [2025-01-06 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184575', 'tblTempVendorCDR_20' ) start [2025-01-06 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184575', 'tblTempVendorCDR_20' ) end [2025-01-06 02:43:18] Production.INFO: ProcessCDR(1,14184575,1,1,2) [2025-01-06 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184575', 'tblTempUsageDetail_20' ) start [2025-01-06 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184575', 'tblTempUsageDetail_20' ) end [2025-01-06 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:43:21] Production.INFO: ==28661== Releasing lock... [2025-01-06 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:43:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:44:06 [end_date_ymd] => 2025-01-06 02:44:06 [RateCDR] => 1 ) [2025-01-06 02:44: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-01-05 23:44:06' and `end` < '2025-01-06 02:44: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-01-06 02:44:18] Production.INFO: count ==252 [2025-01-06 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:44:06 - End Time 2025-01-06 02:44:06 [2025-01-06 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184580', 'tblTempUsageDetail_20' ) start [2025-01-06 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184580', 'tblTempUsageDetail_20' ) end [2025-01-06 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184580', 'tblTempVendorCDR_20' ) start [2025-01-06 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184580', 'tblTempVendorCDR_20' ) end [2025-01-06 02:44:18] Production.INFO: ProcessCDR(1,14184580,1,1,2) [2025-01-06 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184580', 'tblTempUsageDetail_20' ) start [2025-01-06 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184580', 'tblTempUsageDetail_20' ) end [2025-01-06 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:44:21] Production.INFO: ==28732== Releasing lock... [2025-01-06 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:44:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:45:04 [end_date_ymd] => 2025-01-06 02:45:04 [RateCDR] => 1 ) [2025-01-06 02:45: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-01-05 23:45:04' and `end` < '2025-01-06 02:45: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-01-06 02:45:17] Production.INFO: count ==252 [2025-01-06 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:45:04 - End Time 2025-01-06 02:45:04 [2025-01-06 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184585', 'tblTempUsageDetail_20' ) start [2025-01-06 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184585', 'tblTempUsageDetail_20' ) end [2025-01-06 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184585', 'tblTempVendorCDR_20' ) start [2025-01-06 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184585', 'tblTempVendorCDR_20' ) end [2025-01-06 02:45:17] Production.INFO: ProcessCDR(1,14184585,1,1,2) [2025-01-06 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184585', 'tblTempUsageDetail_20' ) start [2025-01-06 02:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184585', 'tblTempUsageDetail_20' ) end [2025-01-06 02:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:45:20] Production.INFO: ==28806== Releasing lock... [2025-01-06 02:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:45:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:46:06 [end_date_ymd] => 2025-01-06 02:46:06 [RateCDR] => 1 ) [2025-01-06 02:46: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-01-05 23:46:06' and `end` < '2025-01-06 02:46: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-01-06 02:46:19] Production.INFO: count ==252 [2025-01-06 02:46:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:46:06 - End Time 2025-01-06 02:46:06 [2025-01-06 02:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184590', 'tblTempUsageDetail_20' ) start [2025-01-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184590', 'tblTempUsageDetail_20' ) end [2025-01-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184590', 'tblTempVendorCDR_20' ) start [2025-01-06 02:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184590', 'tblTempVendorCDR_20' ) end [2025-01-06 02:46:19] Production.INFO: ProcessCDR(1,14184590,1,1,2) [2025-01-06 02:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184590', 'tblTempUsageDetail_20' ) start [2025-01-06 02:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184590', 'tblTempUsageDetail_20' ) end [2025-01-06 02:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:46:22] Production.INFO: ==28880== Releasing lock... [2025-01-06 02:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:46:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:47:04 [end_date_ymd] => 2025-01-06 02:47:04 [RateCDR] => 1 ) [2025-01-06 02:47: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-01-05 23:47:04' and `end` < '2025-01-06 02:47: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-01-06 02:47:18] Production.INFO: count ==250 [2025-01-06 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:47:04 - End Time 2025-01-06 02:47:04 [2025-01-06 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184595', 'tblTempUsageDetail_20' ) start [2025-01-06 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184595', 'tblTempUsageDetail_20' ) end [2025-01-06 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184595', 'tblTempVendorCDR_20' ) start [2025-01-06 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184595', 'tblTempVendorCDR_20' ) end [2025-01-06 02:47:18] Production.INFO: ProcessCDR(1,14184595,1,1,2) [2025-01-06 02:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184595', 'tblTempUsageDetail_20' ) start [2025-01-06 02:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184595', 'tblTempUsageDetail_20' ) end [2025-01-06 02:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:47:21] Production.INFO: ==28960== Releasing lock... [2025-01-06 02:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:48:05 [end_date_ymd] => 2025-01-06 02:48:05 [RateCDR] => 1 ) [2025-01-06 02:48: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-01-05 23:48:05' and `end` < '2025-01-06 02:48: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-01-06 02:48:19] Production.INFO: count ==250 [2025-01-06 02:48:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:48:05 - End Time 2025-01-06 02:48:05 [2025-01-06 02:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184600', 'tblTempUsageDetail_20' ) start [2025-01-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184600', 'tblTempUsageDetail_20' ) end [2025-01-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184600', 'tblTempVendorCDR_20' ) start [2025-01-06 02:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184600', 'tblTempVendorCDR_20' ) end [2025-01-06 02:48:19] Production.INFO: ProcessCDR(1,14184600,1,1,2) [2025-01-06 02:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184600', 'tblTempUsageDetail_20' ) start [2025-01-06 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184600', 'tblTempUsageDetail_20' ) end [2025-01-06 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:48:22] Production.INFO: ==29031== Releasing lock... [2025-01-06 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:48:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:49:05 [end_date_ymd] => 2025-01-06 02:49:05 [RateCDR] => 1 ) [2025-01-06 02:49: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-01-05 23:49:05' and `end` < '2025-01-06 02:49: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-01-06 02:49:18] Production.INFO: count ==249 [2025-01-06 02:49:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:49:05 - End Time 2025-01-06 02:49:05 [2025-01-06 02:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184605', 'tblTempUsageDetail_20' ) start [2025-01-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184605', 'tblTempUsageDetail_20' ) end [2025-01-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184605', 'tblTempVendorCDR_20' ) start [2025-01-06 02:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184605', 'tblTempVendorCDR_20' ) end [2025-01-06 02:49:18] Production.INFO: ProcessCDR(1,14184605,1,1,2) [2025-01-06 02:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184605', 'tblTempUsageDetail_20' ) start [2025-01-06 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184605', 'tblTempUsageDetail_20' ) end [2025-01-06 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:49:21] Production.INFO: ==29102== Releasing lock... [2025-01-06 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:49:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:50:05 [end_date_ymd] => 2025-01-06 02:50:05 [RateCDR] => 1 ) [2025-01-06 02:50: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-01-05 23:50:05' and `end` < '2025-01-06 02:50: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-01-06 02:50:18] Production.INFO: count ==249 [2025-01-06 02:50:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:50:05 - End Time 2025-01-06 02:50:05 [2025-01-06 02:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184611', 'tblTempUsageDetail_20' ) start [2025-01-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184611', 'tblTempUsageDetail_20' ) end [2025-01-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184611', 'tblTempVendorCDR_20' ) start [2025-01-06 02:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184611', 'tblTempVendorCDR_20' ) end [2025-01-06 02:50:18] Production.INFO: ProcessCDR(1,14184611,1,1,2) [2025-01-06 02:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184611', 'tblTempUsageDetail_20' ) start [2025-01-06 02:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184611', 'tblTempUsageDetail_20' ) end [2025-01-06 02:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:50:21] Production.INFO: ==29174== Releasing lock... [2025-01-06 02:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:50:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:51:04 [end_date_ymd] => 2025-01-06 02:51:04 [RateCDR] => 1 ) [2025-01-06 02:51: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-01-05 23:51:04' and `end` < '2025-01-06 02:51: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-01-06 02:51:18] Production.INFO: count ==248 [2025-01-06 02:51:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:51:04 - End Time 2025-01-06 02:51:04 [2025-01-06 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184616', 'tblTempUsageDetail_20' ) start [2025-01-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184616', 'tblTempUsageDetail_20' ) end [2025-01-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184616', 'tblTempVendorCDR_20' ) start [2025-01-06 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184616', 'tblTempVendorCDR_20' ) end [2025-01-06 02:51:18] Production.INFO: ProcessCDR(1,14184616,1,1,2) [2025-01-06 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184616', 'tblTempUsageDetail_20' ) start [2025-01-06 02:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184616', 'tblTempUsageDetail_20' ) end [2025-01-06 02:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:51:21] Production.INFO: ==29248== Releasing lock... [2025-01-06 02:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:52:04 [end_date_ymd] => 2025-01-06 02:52:04 [RateCDR] => 1 ) [2025-01-06 02:52: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-01-05 23:52:04' and `end` < '2025-01-06 02:52: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-01-06 02:52:17] Production.INFO: count ==248 [2025-01-06 02:52:17] Production.ERROR: pbx CDR StartTime 2025-01-05 23:52:04 - End Time 2025-01-06 02:52:04 [2025-01-06 02:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184621', 'tblTempUsageDetail_20' ) start [2025-01-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184621', 'tblTempUsageDetail_20' ) end [2025-01-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184621', 'tblTempVendorCDR_20' ) start [2025-01-06 02:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184621', 'tblTempVendorCDR_20' ) end [2025-01-06 02:52:17] Production.INFO: ProcessCDR(1,14184621,1,1,2) [2025-01-06 02:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184621', 'tblTempUsageDetail_20' ) start [2025-01-06 02:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184621', 'tblTempUsageDetail_20' ) end [2025-01-06 02:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:52:20] Production.INFO: ==29319== Releasing lock... [2025-01-06 02:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:52:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:53:05 [end_date_ymd] => 2025-01-06 02:53:05 [RateCDR] => 1 ) [2025-01-06 02:53: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-01-05 23:53:05' and `end` < '2025-01-06 02:53: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-01-06 02:53:19] Production.INFO: count ==245 [2025-01-06 02:53:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:53:05 - End Time 2025-01-06 02:53:05 [2025-01-06 02:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184626', 'tblTempUsageDetail_20' ) start [2025-01-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184626', 'tblTempUsageDetail_20' ) end [2025-01-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184626', 'tblTempVendorCDR_20' ) start [2025-01-06 02:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184626', 'tblTempVendorCDR_20' ) end [2025-01-06 02:53:19] Production.INFO: ProcessCDR(1,14184626,1,1,2) [2025-01-06 02:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184626', 'tblTempUsageDetail_20' ) start [2025-01-06 02:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184626', 'tblTempUsageDetail_20' ) end [2025-01-06 02:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:53:22] Production.INFO: ==29392== Releasing lock... [2025-01-06 02:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:53:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:54:06 [end_date_ymd] => 2025-01-06 02:54:06 [RateCDR] => 1 ) [2025-01-06 02:54: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-01-05 23:54:06' and `end` < '2025-01-06 02:54: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-01-06 02:54:20] Production.INFO: count ==241 [2025-01-06 02:54:20] Production.ERROR: pbx CDR StartTime 2025-01-05 23:54:06 - End Time 2025-01-06 02:54:06 [2025-01-06 02:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184631', 'tblTempUsageDetail_20' ) start [2025-01-06 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184631', 'tblTempUsageDetail_20' ) end [2025-01-06 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184631', 'tblTempVendorCDR_20' ) start [2025-01-06 02:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184631', 'tblTempVendorCDR_20' ) end [2025-01-06 02:54:20] Production.INFO: ProcessCDR(1,14184631,1,1,2) [2025-01-06 02:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184631', 'tblTempUsageDetail_20' ) start [2025-01-06 02:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184631', 'tblTempUsageDetail_20' ) end [2025-01-06 02:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:54:23] Production.INFO: ==29463== Releasing lock... [2025-01-06 02:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:54:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:55:05 [end_date_ymd] => 2025-01-06 02:55:05 [RateCDR] => 1 ) [2025-01-06 02:55: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-01-05 23:55:05' and `end` < '2025-01-06 02:55: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-01-06 02:55:18] Production.INFO: count ==240 [2025-01-06 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:55:05 - End Time 2025-01-06 02:55:05 [2025-01-06 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184636', 'tblTempUsageDetail_20' ) start [2025-01-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184636', 'tblTempUsageDetail_20' ) end [2025-01-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184636', 'tblTempVendorCDR_20' ) start [2025-01-06 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184636', 'tblTempVendorCDR_20' ) end [2025-01-06 02:55:18] Production.INFO: ProcessCDR(1,14184636,1,1,2) [2025-01-06 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184636', 'tblTempUsageDetail_20' ) start [2025-01-06 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184636', 'tblTempUsageDetail_20' ) end [2025-01-06 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:55:21] Production.INFO: ==29535== Releasing lock... [2025-01-06 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:56:05 [end_date_ymd] => 2025-01-06 02:56:05 [RateCDR] => 1 ) [2025-01-06 02:56: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-01-05 23:56:05' and `end` < '2025-01-06 02:56: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-01-06 02:56:19] Production.INFO: count ==240 [2025-01-06 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:56:05 - End Time 2025-01-06 02:56:05 [2025-01-06 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184641', 'tblTempUsageDetail_20' ) start [2025-01-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184641', 'tblTempUsageDetail_20' ) end [2025-01-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184641', 'tblTempVendorCDR_20' ) start [2025-01-06 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184641', 'tblTempVendorCDR_20' ) end [2025-01-06 02:56:19] Production.INFO: ProcessCDR(1,14184641,1,1,2) [2025-01-06 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184641', 'tblTempUsageDetail_20' ) start [2025-01-06 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184641', 'tblTempUsageDetail_20' ) end [2025-01-06 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:56:22] Production.INFO: ==29605== Releasing lock... [2025-01-06 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:57:05 [end_date_ymd] => 2025-01-06 02:57:05 [RateCDR] => 1 ) [2025-01-06 02:57: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-01-05 23:57:05' and `end` < '2025-01-06 02:57: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-01-06 02:57:18] Production.INFO: count ==240 [2025-01-06 02:57:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:57:05 - End Time 2025-01-06 02:57:05 [2025-01-06 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184646', 'tblTempUsageDetail_20' ) start [2025-01-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184646', 'tblTempUsageDetail_20' ) end [2025-01-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184646', 'tblTempVendorCDR_20' ) start [2025-01-06 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184646', 'tblTempVendorCDR_20' ) end [2025-01-06 02:57:18] Production.INFO: ProcessCDR(1,14184646,1,1,2) [2025-01-06 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184646', 'tblTempUsageDetail_20' ) start [2025-01-06 02:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184646', 'tblTempUsageDetail_20' ) end [2025-01-06 02:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:57:21] Production.INFO: ==29715== Releasing lock... [2025-01-06 02:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:57:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:58:05 [end_date_ymd] => 2025-01-06 02:58:05 [RateCDR] => 1 ) [2025-01-06 02:58: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-01-05 23:58:05' and `end` < '2025-01-06 02:58: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-01-06 02:58:19] Production.INFO: count ==240 [2025-01-06 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-05 23:58:05 - End Time 2025-01-06 02:58:05 [2025-01-06 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184651', 'tblTempUsageDetail_20' ) start [2025-01-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184651', 'tblTempUsageDetail_20' ) end [2025-01-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184651', 'tblTempVendorCDR_20' ) start [2025-01-06 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184651', 'tblTempVendorCDR_20' ) end [2025-01-06 02:58:19] Production.INFO: ProcessCDR(1,14184651,1,1,2) [2025-01-06 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184651', 'tblTempUsageDetail_20' ) start [2025-01-06 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184651', 'tblTempUsageDetail_20' ) end [2025-01-06 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:58:23] Production.INFO: ==29791== Releasing lock... [2025-01-06 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:58:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-05 23:59:05 [end_date_ymd] => 2025-01-06 02:59:05 [RateCDR] => 1 ) [2025-01-06 02:59: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-01-05 23:59:05' and `end` < '2025-01-06 02:59: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-01-06 02:59:18] Production.INFO: count ==240 [2025-01-06 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-05 23:59:05 - End Time 2025-01-06 02:59:05 [2025-01-06 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184656', 'tblTempUsageDetail_20' ) start [2025-01-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184656', 'tblTempUsageDetail_20' ) end [2025-01-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184656', 'tblTempVendorCDR_20' ) start [2025-01-06 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184656', 'tblTempVendorCDR_20' ) end [2025-01-06 02:59:18] Production.INFO: ProcessCDR(1,14184656,1,1,2) [2025-01-06 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184656', 'tblTempUsageDetail_20' ) start [2025-01-06 02:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184656', 'tblTempUsageDetail_20' ) end [2025-01-06 02:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 02:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 02:59:21] Production.INFO: ==29861== Releasing lock... [2025-01-06 02:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 02:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:00:06 [end_date_ymd] => 2025-01-06 03:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 00:00:06' and `end` < '2025-01-06 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-01-06 03:00:20] Production.INFO: count ==242 [2025-01-06 03:00:20] Production.ERROR: pbx CDR StartTime 2025-01-06 00:00:06 - End Time 2025-01-06 03:00:06 [2025-01-06 03:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184662', 'tblTempUsageDetail_20' ) start [2025-01-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184662', 'tblTempUsageDetail_20' ) end [2025-01-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184662', 'tblTempVendorCDR_20' ) start [2025-01-06 03:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184662', 'tblTempVendorCDR_20' ) end [2025-01-06 03:00:20] Production.INFO: ProcessCDR(1,14184662,1,1,2) [2025-01-06 03:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184662', 'tblTempUsageDetail_20' ) start [2025-01-06 03:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184662', 'tblTempUsageDetail_20' ) end [2025-01-06 03:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:00:23] Production.INFO: ==29941== Releasing lock... [2025-01-06 03:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:00:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:01:05 [end_date_ymd] => 2025-01-06 03:01:05 [RateCDR] => 1 ) [2025-01-06 03:01: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-01-06 00:01:05' and `end` < '2025-01-06 03:01: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-01-06 03:01:18] Production.INFO: count ==242 [2025-01-06 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:01:05 - End Time 2025-01-06 03:01:05 [2025-01-06 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184667', 'tblTempUsageDetail_20' ) start [2025-01-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184667', 'tblTempUsageDetail_20' ) end [2025-01-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184667', 'tblTempVendorCDR_20' ) start [2025-01-06 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184667', 'tblTempVendorCDR_20' ) end [2025-01-06 03:01:18] Production.INFO: ProcessCDR(1,14184667,1,1,2) [2025-01-06 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184667', 'tblTempUsageDetail_20' ) start [2025-01-06 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184667', 'tblTempUsageDetail_20' ) end [2025-01-06 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:01:21] Production.INFO: ==30025== Releasing lock... [2025-01-06 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:01:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:02:05 [end_date_ymd] => 2025-01-06 03:02:05 [RateCDR] => 1 ) [2025-01-06 03:02: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-01-06 00:02:05' and `end` < '2025-01-06 03:02: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-01-06 03:02:19] Production.INFO: count ==242 [2025-01-06 03:02:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:02:05 - End Time 2025-01-06 03:02:05 [2025-01-06 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184672', 'tblTempUsageDetail_20' ) start [2025-01-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184672', 'tblTempUsageDetail_20' ) end [2025-01-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184672', 'tblTempVendorCDR_20' ) start [2025-01-06 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184672', 'tblTempVendorCDR_20' ) end [2025-01-06 03:02:19] Production.INFO: ProcessCDR(1,14184672,1,1,2) [2025-01-06 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184672', 'tblTempUsageDetail_20' ) start [2025-01-06 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184672', 'tblTempUsageDetail_20' ) end [2025-01-06 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:02:22] Production.INFO: ==30172== Releasing lock... [2025-01-06 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:02:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:03:05 [end_date_ymd] => 2025-01-06 03:03:05 [RateCDR] => 1 ) [2025-01-06 03:03: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-01-06 00:03:05' and `end` < '2025-01-06 03:03: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-01-06 03:03:19] Production.INFO: count ==242 [2025-01-06 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:03:05 - End Time 2025-01-06 03:03:05 [2025-01-06 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184677', 'tblTempUsageDetail_20' ) start [2025-01-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184677', 'tblTempUsageDetail_20' ) end [2025-01-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184677', 'tblTempVendorCDR_20' ) start [2025-01-06 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184677', 'tblTempVendorCDR_20' ) end [2025-01-06 03:03:19] Production.INFO: ProcessCDR(1,14184677,1,1,2) [2025-01-06 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184677', 'tblTempUsageDetail_20' ) start [2025-01-06 03:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184677', 'tblTempUsageDetail_20' ) end [2025-01-06 03:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:03:22] Production.INFO: ==30244== Releasing lock... [2025-01-06 03:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:03:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:04:05 [end_date_ymd] => 2025-01-06 03:04:05 [RateCDR] => 1 ) [2025-01-06 03:04: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-01-06 00:04:05' and `end` < '2025-01-06 03:04: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-01-06 03:04:20] Production.INFO: count ==242 [2025-01-06 03:04:20] Production.ERROR: pbx CDR StartTime 2025-01-06 00:04:05 - End Time 2025-01-06 03:04:05 [2025-01-06 03:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184682', 'tblTempUsageDetail_20' ) start [2025-01-06 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184682', 'tblTempUsageDetail_20' ) end [2025-01-06 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184682', 'tblTempVendorCDR_20' ) start [2025-01-06 03:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184682', 'tblTempVendorCDR_20' ) end [2025-01-06 03:04:20] Production.INFO: ProcessCDR(1,14184682,1,1,2) [2025-01-06 03:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184682', 'tblTempUsageDetail_20' ) start [2025-01-06 03:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184682', 'tblTempUsageDetail_20' ) end [2025-01-06 03:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:04:23] Production.INFO: ==30312== Releasing lock... [2025-01-06 03:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:04:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:05:05 [end_date_ymd] => 2025-01-06 03:05:05 [RateCDR] => 1 ) [2025-01-06 03:05: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-01-06 00:05:05' and `end` < '2025-01-06 03:05: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-01-06 03:05:17] Production.INFO: count ==242 [2025-01-06 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:05:05 - End Time 2025-01-06 03:05:05 [2025-01-06 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184687', 'tblTempUsageDetail_20' ) start [2025-01-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184687', 'tblTempUsageDetail_20' ) end [2025-01-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184687', 'tblTempVendorCDR_20' ) start [2025-01-06 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184687', 'tblTempVendorCDR_20' ) end [2025-01-06 03:05:17] Production.INFO: ProcessCDR(1,14184687,1,1,2) [2025-01-06 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184687', 'tblTempUsageDetail_20' ) start [2025-01-06 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184687', 'tblTempUsageDetail_20' ) end [2025-01-06 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:05:21] Production.INFO: ==30420== Releasing lock... [2025-01-06 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:05:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:06:05 [end_date_ymd] => 2025-01-06 03:06:05 [RateCDR] => 1 ) [2025-01-06 03:06: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-01-06 00:06:05' and `end` < '2025-01-06 03:06: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-01-06 03:06:19] Production.INFO: count ==242 [2025-01-06 03:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:06:05 - End Time 2025-01-06 03:06:05 [2025-01-06 03:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184692', 'tblTempUsageDetail_20' ) start [2025-01-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184692', 'tblTempUsageDetail_20' ) end [2025-01-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184692', 'tblTempVendorCDR_20' ) start [2025-01-06 03:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184692', 'tblTempVendorCDR_20' ) end [2025-01-06 03:06:19] Production.INFO: ProcessCDR(1,14184692,1,1,2) [2025-01-06 03:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184692', 'tblTempUsageDetail_20' ) start [2025-01-06 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184692', 'tblTempUsageDetail_20' ) end [2025-01-06 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:06:22] Production.INFO: ==30530== Releasing lock... [2025-01-06 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:06:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:07:05 [end_date_ymd] => 2025-01-06 03:07:05 [RateCDR] => 1 ) [2025-01-06 03:07: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-01-06 00:07:05' and `end` < '2025-01-06 03:07: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-01-06 03:07:18] Production.INFO: count ==242 [2025-01-06 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:07:05 - End Time 2025-01-06 03:07:05 [2025-01-06 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184697', 'tblTempUsageDetail_20' ) start [2025-01-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184697', 'tblTempUsageDetail_20' ) end [2025-01-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184697', 'tblTempVendorCDR_20' ) start [2025-01-06 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184697', 'tblTempVendorCDR_20' ) end [2025-01-06 03:07:18] Production.INFO: ProcessCDR(1,14184697,1,1,2) [2025-01-06 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184697', 'tblTempUsageDetail_20' ) start [2025-01-06 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184697', 'tblTempUsageDetail_20' ) end [2025-01-06 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:07:21] Production.INFO: ==30599== Releasing lock... [2025-01-06 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:08:05 [end_date_ymd] => 2025-01-06 03:08:05 [RateCDR] => 1 ) [2025-01-06 03:08: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-01-06 00:08:05' and `end` < '2025-01-06 03:08: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-01-06 03:08:18] Production.INFO: count ==242 [2025-01-06 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:08:05 - End Time 2025-01-06 03:08:05 [2025-01-06 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184702', 'tblTempUsageDetail_20' ) start [2025-01-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184702', 'tblTempUsageDetail_20' ) end [2025-01-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184702', 'tblTempVendorCDR_20' ) start [2025-01-06 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184702', 'tblTempVendorCDR_20' ) end [2025-01-06 03:08:18] Production.INFO: ProcessCDR(1,14184702,1,1,2) [2025-01-06 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184702', 'tblTempUsageDetail_20' ) start [2025-01-06 03:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184702', 'tblTempUsageDetail_20' ) end [2025-01-06 03:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:08:21] Production.INFO: ==30670== Releasing lock... [2025-01-06 03:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:08:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:09:05 [end_date_ymd] => 2025-01-06 03:09:05 [RateCDR] => 1 ) [2025-01-06 03:09: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-01-06 00:09:05' and `end` < '2025-01-06 03:09: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-01-06 03:09:18] Production.INFO: count ==242 [2025-01-06 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:09:05 - End Time 2025-01-06 03:09:05 [2025-01-06 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184707', 'tblTempUsageDetail_20' ) start [2025-01-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184707', 'tblTempUsageDetail_20' ) end [2025-01-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184707', 'tblTempVendorCDR_20' ) start [2025-01-06 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184707', 'tblTempVendorCDR_20' ) end [2025-01-06 03:09:18] Production.INFO: ProcessCDR(1,14184707,1,1,2) [2025-01-06 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184707', 'tblTempUsageDetail_20' ) start [2025-01-06 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184707', 'tblTempUsageDetail_20' ) end [2025-01-06 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:09:21] Production.INFO: ==30818== Releasing lock... [2025-01-06 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:09:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:10:06 [end_date_ymd] => 2025-01-06 03:10:06 [RateCDR] => 1 ) [2025-01-06 03:10: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-01-06 00:10:06' and `end` < '2025-01-06 03:10: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-01-06 03:10:19] Production.INFO: count ==235 [2025-01-06 03:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:10:06 - End Time 2025-01-06 03:10:06 [2025-01-06 03:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184713', 'tblTempUsageDetail_20' ) start [2025-01-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184713', 'tblTempUsageDetail_20' ) end [2025-01-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184713', 'tblTempVendorCDR_20' ) start [2025-01-06 03:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184713', 'tblTempVendorCDR_20' ) end [2025-01-06 03:10:19] Production.INFO: ProcessCDR(1,14184713,1,1,2) [2025-01-06 03:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184713', 'tblTempUsageDetail_20' ) start [2025-01-06 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184713', 'tblTempUsageDetail_20' ) end [2025-01-06 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:10:22] Production.INFO: ==30888== Releasing lock... [2025-01-06 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:10:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 03:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:11:04 [end_date_ymd] => 2025-01-06 03:11:04 [RateCDR] => 1 ) [2025-01-06 03:11: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-01-06 00:11:04' and `end` < '2025-01-06 03:11: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-01-06 03:11:19] Production.INFO: count ==205 [2025-01-06 03:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:11:04 - End Time 2025-01-06 03:11:04 [2025-01-06 03:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184718', 'tblTempUsageDetail_20' ) start [2025-01-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184718', 'tblTempUsageDetail_20' ) end [2025-01-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184718', 'tblTempVendorCDR_20' ) start [2025-01-06 03:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184718', 'tblTempVendorCDR_20' ) end [2025-01-06 03:11:19] Production.INFO: ProcessCDR(1,14184718,1,1,2) [2025-01-06 03:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184718', 'tblTempUsageDetail_20' ) start [2025-01-06 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184718', 'tblTempUsageDetail_20' ) end [2025-01-06 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:11:22] Production.INFO: ==30959== Releasing lock... [2025-01-06 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:11:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:12:05 [end_date_ymd] => 2025-01-06 03:12:05 [RateCDR] => 1 ) [2025-01-06 03:12: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-01-06 00:12:05' and `end` < '2025-01-06 03:12: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-01-06 03:12:19] Production.INFO: count ==205 [2025-01-06 03:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:12:05 - End Time 2025-01-06 03:12:05 [2025-01-06 03:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184723', 'tblTempUsageDetail_20' ) start [2025-01-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184723', 'tblTempUsageDetail_20' ) end [2025-01-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184723', 'tblTempVendorCDR_20' ) start [2025-01-06 03:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184723', 'tblTempVendorCDR_20' ) end [2025-01-06 03:12:19] Production.INFO: ProcessCDR(1,14184723,1,1,2) [2025-01-06 03:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184723', 'tblTempUsageDetail_20' ) start [2025-01-06 03:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184723', 'tblTempUsageDetail_20' ) end [2025-01-06 03:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:12:22] Production.INFO: ==31066== Releasing lock... [2025-01-06 03:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:12:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:13:05 [end_date_ymd] => 2025-01-06 03:13:05 [RateCDR] => 1 ) [2025-01-06 03:13: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-01-06 00:13:05' and `end` < '2025-01-06 03:13: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-01-06 03:13:19] Production.INFO: count ==205 [2025-01-06 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:13:05 - End Time 2025-01-06 03:13:05 [2025-01-06 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184728', 'tblTempUsageDetail_20' ) start [2025-01-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184728', 'tblTempUsageDetail_20' ) end [2025-01-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184728', 'tblTempVendorCDR_20' ) start [2025-01-06 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184728', 'tblTempVendorCDR_20' ) end [2025-01-06 03:13:19] Production.INFO: ProcessCDR(1,14184728,1,1,2) [2025-01-06 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184728', 'tblTempUsageDetail_20' ) start [2025-01-06 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184728', 'tblTempUsageDetail_20' ) end [2025-01-06 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:13:22] Production.INFO: ==31217== Releasing lock... [2025-01-06 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:13:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:14:05 [end_date_ymd] => 2025-01-06 03:14:05 [RateCDR] => 1 ) [2025-01-06 03:14: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-01-06 00:14:05' and `end` < '2025-01-06 03:14: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-01-06 03:14:18] Production.INFO: count ==202 [2025-01-06 03:14:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:14:05 - End Time 2025-01-06 03:14:05 [2025-01-06 03:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184733', 'tblTempUsageDetail_20' ) start [2025-01-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184733', 'tblTempUsageDetail_20' ) end [2025-01-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184733', 'tblTempVendorCDR_20' ) start [2025-01-06 03:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184733', 'tblTempVendorCDR_20' ) end [2025-01-06 03:14:18] Production.INFO: ProcessCDR(1,14184733,1,1,2) [2025-01-06 03:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184733', 'tblTempUsageDetail_20' ) start [2025-01-06 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184733', 'tblTempUsageDetail_20' ) end [2025-01-06 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:14:21] Production.INFO: ==31297== Releasing lock... [2025-01-06 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:14:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:15:05 [end_date_ymd] => 2025-01-06 03:15:05 [RateCDR] => 1 ) [2025-01-06 03:15: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-01-06 00:15:05' and `end` < '2025-01-06 03:15: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-01-06 03:15:18] Production.INFO: count ==202 [2025-01-06 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:15:05 - End Time 2025-01-06 03:15:05 [2025-01-06 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184738', 'tblTempUsageDetail_20' ) start [2025-01-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184738', 'tblTempUsageDetail_20' ) end [2025-01-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184738', 'tblTempVendorCDR_20' ) start [2025-01-06 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184738', 'tblTempVendorCDR_20' ) end [2025-01-06 03:15:18] Production.INFO: ProcessCDR(1,14184738,1,1,2) [2025-01-06 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184738', 'tblTempUsageDetail_20' ) start [2025-01-06 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184738', 'tblTempUsageDetail_20' ) end [2025-01-06 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:15:21] Production.INFO: ==31368== Releasing lock... [2025-01-06 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:15:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:16:04 [end_date_ymd] => 2025-01-06 03:16:04 [RateCDR] => 1 ) [2025-01-06 03:16: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-01-06 00:16:04' and `end` < '2025-01-06 03:16: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-01-06 03:16:18] Production.INFO: count ==202 [2025-01-06 03:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:16:04 - End Time 2025-01-06 03:16:04 [2025-01-06 03:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184743', 'tblTempUsageDetail_20' ) start [2025-01-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184743', 'tblTempUsageDetail_20' ) end [2025-01-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184743', 'tblTempVendorCDR_20' ) start [2025-01-06 03:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184743', 'tblTempVendorCDR_20' ) end [2025-01-06 03:16:18] Production.INFO: ProcessCDR(1,14184743,1,1,2) [2025-01-06 03:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184743', 'tblTempUsageDetail_20' ) start [2025-01-06 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184743', 'tblTempUsageDetail_20' ) end [2025-01-06 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:16:21] Production.INFO: ==31456== Releasing lock... [2025-01-06 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:17:05 [end_date_ymd] => 2025-01-06 03:17:05 [RateCDR] => 1 ) [2025-01-06 03:17: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-01-06 00:17:05' and `end` < '2025-01-06 03:17: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-01-06 03:17:18] Production.INFO: count ==202 [2025-01-06 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:17:05 - End Time 2025-01-06 03:17:05 [2025-01-06 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184748', 'tblTempUsageDetail_20' ) start [2025-01-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184748', 'tblTempUsageDetail_20' ) end [2025-01-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184748', 'tblTempVendorCDR_20' ) start [2025-01-06 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184748', 'tblTempVendorCDR_20' ) end [2025-01-06 03:17:18] Production.INFO: ProcessCDR(1,14184748,1,1,2) [2025-01-06 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184748', 'tblTempUsageDetail_20' ) start [2025-01-06 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184748', 'tblTempUsageDetail_20' ) end [2025-01-06 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:17:21] Production.INFO: ==31630== Releasing lock... [2025-01-06 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:17:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:18:05 [end_date_ymd] => 2025-01-06 03:18:05 [RateCDR] => 1 ) [2025-01-06 03:18: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-01-06 00:18:05' and `end` < '2025-01-06 03:18: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-01-06 03:18:20] Production.INFO: count ==202 [2025-01-06 03:18:20] Production.ERROR: pbx CDR StartTime 2025-01-06 00:18:05 - End Time 2025-01-06 03:18:05 [2025-01-06 03:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184753', 'tblTempUsageDetail_20' ) start [2025-01-06 03:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184753', 'tblTempUsageDetail_20' ) end [2025-01-06 03:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184753', 'tblTempVendorCDR_20' ) start [2025-01-06 03:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184753', 'tblTempVendorCDR_20' ) end [2025-01-06 03:18:20] Production.INFO: ProcessCDR(1,14184753,1,1,2) [2025-01-06 03:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184753', 'tblTempUsageDetail_20' ) start [2025-01-06 03:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184753', 'tblTempUsageDetail_20' ) end [2025-01-06 03:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:18:23] Production.INFO: ==31727== Releasing lock... [2025-01-06 03:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:18:23] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:19:05 [end_date_ymd] => 2025-01-06 03:19:05 [RateCDR] => 1 ) [2025-01-06 03:19: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-01-06 00:19:05' and `end` < '2025-01-06 03:19: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-01-06 03:19:17] Production.INFO: count ==202 [2025-01-06 03:19:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:19:05 - End Time 2025-01-06 03:19:05 [2025-01-06 03:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184758', 'tblTempUsageDetail_20' ) start [2025-01-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184758', 'tblTempUsageDetail_20' ) end [2025-01-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184758', 'tblTempVendorCDR_20' ) start [2025-01-06 03:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184758', 'tblTempVendorCDR_20' ) end [2025-01-06 03:19:17] Production.INFO: ProcessCDR(1,14184758,1,1,2) [2025-01-06 03:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184758', 'tblTempUsageDetail_20' ) start [2025-01-06 03:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184758', 'tblTempUsageDetail_20' ) end [2025-01-06 03:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:19:20] Production.INFO: ==31828== Releasing lock... [2025-01-06 03:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:20:05 [end_date_ymd] => 2025-01-06 03:20:05 [RateCDR] => 1 ) [2025-01-06 03:20: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-01-06 00:20:05' and `end` < '2025-01-06 03:20: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-01-06 03:20:18] Production.INFO: count ==198 [2025-01-06 03:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:20:05 - End Time 2025-01-06 03:20:05 [2025-01-06 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184763', 'tblTempUsageDetail_20' ) start [2025-01-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184763', 'tblTempUsageDetail_20' ) end [2025-01-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184763', 'tblTempVendorCDR_20' ) start [2025-01-06 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184763', 'tblTempVendorCDR_20' ) end [2025-01-06 03:20:18] Production.INFO: ProcessCDR(1,14184763,1,1,2) [2025-01-06 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184763', 'tblTempUsageDetail_20' ) start [2025-01-06 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184763', 'tblTempUsageDetail_20' ) end [2025-01-06 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:20:21] Production.INFO: ==31943== Releasing lock... [2025-01-06 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:21:04 [end_date_ymd] => 2025-01-06 03:21:04 [RateCDR] => 1 ) [2025-01-06 03:21: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-01-06 00:21:04' and `end` < '2025-01-06 03:21: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-01-06 03:21:17] Production.INFO: count ==180 [2025-01-06 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:21:04 - End Time 2025-01-06 03:21:04 [2025-01-06 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184769', 'tblTempUsageDetail_20' ) start [2025-01-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184769', 'tblTempUsageDetail_20' ) end [2025-01-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184769', 'tblTempVendorCDR_20' ) start [2025-01-06 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184769', 'tblTempVendorCDR_20' ) end [2025-01-06 03:21:17] Production.INFO: ProcessCDR(1,14184769,1,1,2) [2025-01-06 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184769', 'tblTempUsageDetail_20' ) start [2025-01-06 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184769', 'tblTempUsageDetail_20' ) end [2025-01-06 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:21:20] Production.INFO: ==32064== Releasing lock... [2025-01-06 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:21:20] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:22:05 [end_date_ymd] => 2025-01-06 03:22:05 [RateCDR] => 1 ) [2025-01-06 03:22: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-01-06 00:22:05' and `end` < '2025-01-06 03:22: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-01-06 03:22:19] Production.INFO: count ==180 [2025-01-06 03:22:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:22:05 - End Time 2025-01-06 03:22:05 [2025-01-06 03:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184774', 'tblTempUsageDetail_20' ) start [2025-01-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184774', 'tblTempUsageDetail_20' ) end [2025-01-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184774', 'tblTempVendorCDR_20' ) start [2025-01-06 03:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184774', 'tblTempVendorCDR_20' ) end [2025-01-06 03:22:19] Production.INFO: ProcessCDR(1,14184774,1,1,2) [2025-01-06 03:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184774', 'tblTempUsageDetail_20' ) start [2025-01-06 03:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184774', 'tblTempUsageDetail_20' ) end [2025-01-06 03:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:22:22] Production.INFO: ==32159== Releasing lock... [2025-01-06 03:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:22:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:23:05 [end_date_ymd] => 2025-01-06 03:23:05 [RateCDR] => 1 ) [2025-01-06 03:23: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-01-06 00:23:05' and `end` < '2025-01-06 03:23: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-01-06 03:23:18] Production.INFO: count ==180 [2025-01-06 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:23:05 - End Time 2025-01-06 03:23:05 [2025-01-06 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184779', 'tblTempUsageDetail_20' ) start [2025-01-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184779', 'tblTempUsageDetail_20' ) end [2025-01-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184779', 'tblTempVendorCDR_20' ) start [2025-01-06 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184779', 'tblTempVendorCDR_20' ) end [2025-01-06 03:23:18] Production.INFO: ProcessCDR(1,14184779,1,1,2) [2025-01-06 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184779', 'tblTempUsageDetail_20' ) start [2025-01-06 03:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184779', 'tblTempUsageDetail_20' ) end [2025-01-06 03:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:23:22] Production.INFO: ==32256== Releasing lock... [2025-01-06 03:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:23:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:24:05 [end_date_ymd] => 2025-01-06 03:24:05 [RateCDR] => 1 ) [2025-01-06 03:24: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-01-06 00:24:05' and `end` < '2025-01-06 03:24: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-01-06 03:24:18] Production.INFO: count ==180 [2025-01-06 03:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:24:05 - End Time 2025-01-06 03:24:05 [2025-01-06 03:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184784', 'tblTempUsageDetail_20' ) start [2025-01-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184784', 'tblTempUsageDetail_20' ) end [2025-01-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184784', 'tblTempVendorCDR_20' ) start [2025-01-06 03:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184784', 'tblTempVendorCDR_20' ) end [2025-01-06 03:24:18] Production.INFO: ProcessCDR(1,14184784,1,1,2) [2025-01-06 03:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184784', 'tblTempUsageDetail_20' ) start [2025-01-06 03:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184784', 'tblTempUsageDetail_20' ) end [2025-01-06 03:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:24:22] Production.INFO: ==32355== Releasing lock... [2025-01-06 03:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:24:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:25:05 [end_date_ymd] => 2025-01-06 03:25:05 [RateCDR] => 1 ) [2025-01-06 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-01-06 00:25:05' and `end` < '2025-01-06 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-01-06 03:25:18] Production.INFO: count ==178 [2025-01-06 03:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:25:05 - End Time 2025-01-06 03:25:05 [2025-01-06 03:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184789', 'tblTempUsageDetail_20' ) start [2025-01-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184789', 'tblTempUsageDetail_20' ) end [2025-01-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184789', 'tblTempVendorCDR_20' ) start [2025-01-06 03:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184789', 'tblTempVendorCDR_20' ) end [2025-01-06 03:25:18] Production.INFO: ProcessCDR(1,14184789,1,1,2) [2025-01-06 03:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184789', 'tblTempUsageDetail_20' ) start [2025-01-06 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184789', 'tblTempUsageDetail_20' ) end [2025-01-06 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:25:21] Production.INFO: ==32452== Releasing lock... [2025-01-06 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:25:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:26:05 [end_date_ymd] => 2025-01-06 03:26:05 [RateCDR] => 1 ) [2025-01-06 03:26: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-01-06 00:26:05' and `end` < '2025-01-06 03:26: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-01-06 03:26:18] Production.INFO: count ==178 [2025-01-06 03:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:26:05 - End Time 2025-01-06 03:26:05 [2025-01-06 03:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184794', 'tblTempUsageDetail_20' ) start [2025-01-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184794', 'tblTempUsageDetail_20' ) end [2025-01-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184794', 'tblTempVendorCDR_20' ) start [2025-01-06 03:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184794', 'tblTempVendorCDR_20' ) end [2025-01-06 03:26:18] Production.INFO: ProcessCDR(1,14184794,1,1,2) [2025-01-06 03:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184794', 'tblTempUsageDetail_20' ) start [2025-01-06 03:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184794', 'tblTempUsageDetail_20' ) end [2025-01-06 03:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:26:21] Production.INFO: ==32552== Releasing lock... [2025-01-06 03:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:26:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:27:05 [end_date_ymd] => 2025-01-06 03:27:05 [RateCDR] => 1 ) [2025-01-06 03:27: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-01-06 00:27:05' and `end` < '2025-01-06 03:27: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-01-06 03:27:18] Production.INFO: count ==178 [2025-01-06 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:27:05 - End Time 2025-01-06 03:27:05 [2025-01-06 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184799', 'tblTempUsageDetail_20' ) start [2025-01-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184799', 'tblTempUsageDetail_20' ) end [2025-01-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184799', 'tblTempVendorCDR_20' ) start [2025-01-06 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184799', 'tblTempVendorCDR_20' ) end [2025-01-06 03:27:18] Production.INFO: ProcessCDR(1,14184799,1,1,2) [2025-01-06 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184799', 'tblTempUsageDetail_20' ) start [2025-01-06 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184799', 'tblTempUsageDetail_20' ) end [2025-01-06 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:27:21] Production.INFO: ==32654== Releasing lock... [2025-01-06 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:28:04 [end_date_ymd] => 2025-01-06 03:28:04 [RateCDR] => 1 ) [2025-01-06 03:28: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-01-06 00:28:04' and `end` < '2025-01-06 03:28: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-01-06 03:28:18] Production.INFO: count ==177 [2025-01-06 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:28:04 - End Time 2025-01-06 03:28:04 [2025-01-06 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184804', 'tblTempUsageDetail_20' ) start [2025-01-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184804', 'tblTempUsageDetail_20' ) end [2025-01-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184804', 'tblTempVendorCDR_20' ) start [2025-01-06 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184804', 'tblTempVendorCDR_20' ) end [2025-01-06 03:28:18] Production.INFO: ProcessCDR(1,14184804,1,1,2) [2025-01-06 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184804', 'tblTempUsageDetail_20' ) start [2025-01-06 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184804', 'tblTempUsageDetail_20' ) end [2025-01-06 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:28:21] Production.INFO: ==32753== Releasing lock... [2025-01-06 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:28:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:29:05 [end_date_ymd] => 2025-01-06 03:29:05 [RateCDR] => 1 ) [2025-01-06 03:29: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-01-06 00:29:05' and `end` < '2025-01-06 03:29: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-01-06 03:29:19] Production.INFO: count ==177 [2025-01-06 03:29:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:29:05 - End Time 2025-01-06 03:29:05 [2025-01-06 03:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184809', 'tblTempUsageDetail_20' ) start [2025-01-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184809', 'tblTempUsageDetail_20' ) end [2025-01-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184809', 'tblTempVendorCDR_20' ) start [2025-01-06 03:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184809', 'tblTempVendorCDR_20' ) end [2025-01-06 03:29:19] Production.INFO: ProcessCDR(1,14184809,1,1,2) [2025-01-06 03:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184809', 'tblTempUsageDetail_20' ) start [2025-01-06 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184809', 'tblTempUsageDetail_20' ) end [2025-01-06 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:29:22] Production.INFO: ==405== Releasing lock... [2025-01-06 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:29:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:30:06 [end_date_ymd] => 2025-01-06 03:30:06 [RateCDR] => 1 ) [2025-01-06 03:30: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-01-06 00:30:06' and `end` < '2025-01-06 03:30: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-01-06 03:30:19] Production.INFO: count ==171 [2025-01-06 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:30:06 - End Time 2025-01-06 03:30:06 [2025-01-06 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184815', 'tblTempUsageDetail_20' ) start [2025-01-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184815', 'tblTempUsageDetail_20' ) end [2025-01-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184815', 'tblTempVendorCDR_20' ) start [2025-01-06 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184815', 'tblTempVendorCDR_20' ) end [2025-01-06 03:30:19] Production.INFO: ProcessCDR(1,14184815,1,1,2) [2025-01-06 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184815', 'tblTempUsageDetail_20' ) start [2025-01-06 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184815', 'tblTempUsageDetail_20' ) end [2025-01-06 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:30:22] Production.INFO: ==512== Releasing lock... [2025-01-06 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:31:04 [end_date_ymd] => 2025-01-06 03:31:04 [RateCDR] => 1 ) [2025-01-06 03:31: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-01-06 00:31:04' and `end` < '2025-01-06 03:31: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-01-06 03:31:18] Production.INFO: count ==167 [2025-01-06 03:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:31:04 - End Time 2025-01-06 03:31:04 [2025-01-06 03:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184820', 'tblTempUsageDetail_20' ) start [2025-01-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184820', 'tblTempUsageDetail_20' ) end [2025-01-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184820', 'tblTempVendorCDR_20' ) start [2025-01-06 03:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184820', 'tblTempVendorCDR_20' ) end [2025-01-06 03:31:18] Production.INFO: ProcessCDR(1,14184820,1,1,2) [2025-01-06 03:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184820', 'tblTempUsageDetail_20' ) start [2025-01-06 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184820', 'tblTempUsageDetail_20' ) end [2025-01-06 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:31:21] Production.INFO: ==617== Releasing lock... [2025-01-06 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:31:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:32:05 [end_date_ymd] => 2025-01-06 03:32:05 [RateCDR] => 1 ) [2025-01-06 03:32: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-01-06 00:32:05' and `end` < '2025-01-06 03:32: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-01-06 03:32:18] Production.INFO: count ==167 [2025-01-06 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:32:05 - End Time 2025-01-06 03:32:05 [2025-01-06 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184825', 'tblTempUsageDetail_20' ) start [2025-01-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184825', 'tblTempUsageDetail_20' ) end [2025-01-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184825', 'tblTempVendorCDR_20' ) start [2025-01-06 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184825', 'tblTempVendorCDR_20' ) end [2025-01-06 03:32:18] Production.INFO: ProcessCDR(1,14184825,1,1,2) [2025-01-06 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184825', 'tblTempUsageDetail_20' ) start [2025-01-06 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184825', 'tblTempUsageDetail_20' ) end [2025-01-06 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:32:22] Production.INFO: ==784== Releasing lock... [2025-01-06 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:32:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:33:04 [end_date_ymd] => 2025-01-06 03:33:04 [RateCDR] => 1 ) [2025-01-06 03:33: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-01-06 00:33:04' and `end` < '2025-01-06 03:33: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-01-06 03:33:18] Production.INFO: count ==167 [2025-01-06 03:33:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:33:04 - End Time 2025-01-06 03:33:04 [2025-01-06 03:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184830', 'tblTempUsageDetail_20' ) start [2025-01-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184830', 'tblTempUsageDetail_20' ) end [2025-01-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184830', 'tblTempVendorCDR_20' ) start [2025-01-06 03:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184830', 'tblTempVendorCDR_20' ) end [2025-01-06 03:33:18] Production.INFO: ProcessCDR(1,14184830,1,1,2) [2025-01-06 03:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184830', 'tblTempUsageDetail_20' ) start [2025-01-06 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184830', 'tblTempUsageDetail_20' ) end [2025-01-06 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:33:21] Production.INFO: ==878== Releasing lock... [2025-01-06 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:34:05 [end_date_ymd] => 2025-01-06 03:34:05 [RateCDR] => 1 ) [2025-01-06 03:34: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-01-06 00:34:05' and `end` < '2025-01-06 03:34: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-01-06 03:34:19] Production.INFO: count ==167 [2025-01-06 03:34:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:34:05 - End Time 2025-01-06 03:34:05 [2025-01-06 03:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184835', 'tblTempUsageDetail_20' ) start [2025-01-06 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184835', 'tblTempUsageDetail_20' ) end [2025-01-06 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184835', 'tblTempVendorCDR_20' ) start [2025-01-06 03:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184835', 'tblTempVendorCDR_20' ) end [2025-01-06 03:34:19] Production.INFO: ProcessCDR(1,14184835,1,1,2) [2025-01-06 03:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184835', 'tblTempUsageDetail_20' ) start [2025-01-06 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184835', 'tblTempUsageDetail_20' ) end [2025-01-06 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:34:22] Production.INFO: ==948== Releasing lock... [2025-01-06 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:34:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:35:05 [end_date_ymd] => 2025-01-06 03:35:05 [RateCDR] => 1 ) [2025-01-06 03:35: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-01-06 00:35:05' and `end` < '2025-01-06 03:35: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-01-06 03:35:17] Production.INFO: count ==167 [2025-01-06 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:35:05 - End Time 2025-01-06 03:35:05 [2025-01-06 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184840', 'tblTempUsageDetail_20' ) start [2025-01-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184840', 'tblTempUsageDetail_20' ) end [2025-01-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184840', 'tblTempVendorCDR_20' ) start [2025-01-06 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184840', 'tblTempVendorCDR_20' ) end [2025-01-06 03:35:17] Production.INFO: ProcessCDR(1,14184840,1,1,2) [2025-01-06 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184840', 'tblTempUsageDetail_20' ) start [2025-01-06 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184840', 'tblTempUsageDetail_20' ) end [2025-01-06 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:35:20] Production.INFO: ==1023== Releasing lock... [2025-01-06 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:35:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:36:04 [end_date_ymd] => 2025-01-06 03:36:04 [RateCDR] => 1 ) [2025-01-06 03:36: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-01-06 00:36:04' and `end` < '2025-01-06 03:36: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-01-06 03:36:18] Production.INFO: count ==167 [2025-01-06 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:36:04 - End Time 2025-01-06 03:36:04 [2025-01-06 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184845', 'tblTempUsageDetail_20' ) start [2025-01-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184845', 'tblTempUsageDetail_20' ) end [2025-01-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184845', 'tblTempVendorCDR_20' ) start [2025-01-06 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184845', 'tblTempVendorCDR_20' ) end [2025-01-06 03:36:18] Production.INFO: ProcessCDR(1,14184845,1,1,2) [2025-01-06 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184845', 'tblTempUsageDetail_20' ) start [2025-01-06 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184845', 'tblTempUsageDetail_20' ) end [2025-01-06 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:36:21] Production.INFO: ==1094== Releasing lock... [2025-01-06 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:37:05 [end_date_ymd] => 2025-01-06 03:37:05 [RateCDR] => 1 ) [2025-01-06 03:37: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-01-06 00:37:05' and `end` < '2025-01-06 03:37: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-01-06 03:37:19] Production.INFO: count ==167 [2025-01-06 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:37:05 - End Time 2025-01-06 03:37:05 [2025-01-06 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184850', 'tblTempUsageDetail_20' ) start [2025-01-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184850', 'tblTempUsageDetail_20' ) end [2025-01-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184850', 'tblTempVendorCDR_20' ) start [2025-01-06 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184850', 'tblTempVendorCDR_20' ) end [2025-01-06 03:37:19] Production.INFO: ProcessCDR(1,14184850,1,1,2) [2025-01-06 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184850', 'tblTempUsageDetail_20' ) start [2025-01-06 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184850', 'tblTempUsageDetail_20' ) end [2025-01-06 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:37:22] Production.INFO: ==1169== Releasing lock... [2025-01-06 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:37:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:38:04 [end_date_ymd] => 2025-01-06 03:38:04 [RateCDR] => 1 ) [2025-01-06 03:38: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-01-06 00:38:04' and `end` < '2025-01-06 03:38: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-01-06 03:38:18] Production.INFO: count ==167 [2025-01-06 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:38:04 - End Time 2025-01-06 03:38:04 [2025-01-06 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184855', 'tblTempUsageDetail_20' ) start [2025-01-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184855', 'tblTempUsageDetail_20' ) end [2025-01-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184855', 'tblTempVendorCDR_20' ) start [2025-01-06 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184855', 'tblTempVendorCDR_20' ) end [2025-01-06 03:38:18] Production.INFO: ProcessCDR(1,14184855,1,1,2) [2025-01-06 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184855', 'tblTempUsageDetail_20' ) start [2025-01-06 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184855', 'tblTempUsageDetail_20' ) end [2025-01-06 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:38:21] Production.INFO: ==1246== Releasing lock... [2025-01-06 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:38:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:39:04 [end_date_ymd] => 2025-01-06 03:39:04 [RateCDR] => 1 ) [2025-01-06 03:39: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-01-06 00:39:04' and `end` < '2025-01-06 03:39: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-01-06 03:39:18] Production.INFO: count ==167 [2025-01-06 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:39:04 - End Time 2025-01-06 03:39:04 [2025-01-06 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184860', 'tblTempUsageDetail_20' ) start [2025-01-06 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184860', 'tblTempUsageDetail_20' ) end [2025-01-06 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184860', 'tblTempVendorCDR_20' ) start [2025-01-06 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184860', 'tblTempVendorCDR_20' ) end [2025-01-06 03:39:18] Production.INFO: ProcessCDR(1,14184860,1,1,2) [2025-01-06 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184860', 'tblTempUsageDetail_20' ) start [2025-01-06 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184860', 'tblTempUsageDetail_20' ) end [2025-01-06 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:39:21] Production.INFO: ==1323== Releasing lock... [2025-01-06 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:40:05 [end_date_ymd] => 2025-01-06 03:40:05 [RateCDR] => 1 ) [2025-01-06 03:40: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-01-06 00:40:05' and `end` < '2025-01-06 03:40: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-01-06 03:40:19] Production.INFO: count ==163 [2025-01-06 03:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:40:05 - End Time 2025-01-06 03:40:05 [2025-01-06 03:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184866', 'tblTempUsageDetail_20' ) start [2025-01-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184866', 'tblTempUsageDetail_20' ) end [2025-01-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184866', 'tblTempVendorCDR_20' ) start [2025-01-06 03:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184866', 'tblTempVendorCDR_20' ) end [2025-01-06 03:40:19] Production.INFO: ProcessCDR(1,14184866,1,1,2) [2025-01-06 03:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184866', 'tblTempUsageDetail_20' ) start [2025-01-06 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184866', 'tblTempUsageDetail_20' ) end [2025-01-06 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:40:22] Production.INFO: ==1399== Releasing lock... [2025-01-06 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:41:04 [end_date_ymd] => 2025-01-06 03:41:04 [RateCDR] => 1 ) [2025-01-06 03:41: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-01-06 00:41:04' and `end` < '2025-01-06 03:41: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-01-06 03:41:17] Production.INFO: count ==157 [2025-01-06 03:41:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:41:04 - End Time 2025-01-06 03:41:04 [2025-01-06 03:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184871', 'tblTempUsageDetail_20' ) start [2025-01-06 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184871', 'tblTempUsageDetail_20' ) end [2025-01-06 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184871', 'tblTempVendorCDR_20' ) start [2025-01-06 03:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184871', 'tblTempVendorCDR_20' ) end [2025-01-06 03:41:17] Production.INFO: ProcessCDR(1,14184871,1,1,2) [2025-01-06 03:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184871', 'tblTempUsageDetail_20' ) start [2025-01-06 03:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184871', 'tblTempUsageDetail_20' ) end [2025-01-06 03:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:41:20] Production.INFO: ==1476== Releasing lock... [2025-01-06 03:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:42:05 [end_date_ymd] => 2025-01-06 03:42:05 [RateCDR] => 1 ) [2025-01-06 03:42: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-01-06 00:42:05' and `end` < '2025-01-06 03:42: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-01-06 03:42:19] Production.INFO: count ==157 [2025-01-06 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:42:05 - End Time 2025-01-06 03:42:05 [2025-01-06 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184876', 'tblTempUsageDetail_20' ) start [2025-01-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184876', 'tblTempUsageDetail_20' ) end [2025-01-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184876', 'tblTempVendorCDR_20' ) start [2025-01-06 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184876', 'tblTempVendorCDR_20' ) end [2025-01-06 03:42:19] Production.INFO: ProcessCDR(1,14184876,1,1,2) [2025-01-06 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184876', 'tblTempUsageDetail_20' ) start [2025-01-06 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184876', 'tblTempUsageDetail_20' ) end [2025-01-06 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:42:22] Production.INFO: ==1585== Releasing lock... [2025-01-06 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:42:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:43:04 [end_date_ymd] => 2025-01-06 03:43:04 [RateCDR] => 1 ) [2025-01-06 03:43: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-01-06 00:43:04' and `end` < '2025-01-06 03:43: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-01-06 03:43:19] Production.INFO: count ==157 [2025-01-06 03:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:43:04 - End Time 2025-01-06 03:43:04 [2025-01-06 03:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184881', 'tblTempUsageDetail_20' ) start [2025-01-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184881', 'tblTempUsageDetail_20' ) end [2025-01-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184881', 'tblTempVendorCDR_20' ) start [2025-01-06 03:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184881', 'tblTempVendorCDR_20' ) end [2025-01-06 03:43:19] Production.INFO: ProcessCDR(1,14184881,1,1,2) [2025-01-06 03:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184881', 'tblTempUsageDetail_20' ) start [2025-01-06 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184881', 'tblTempUsageDetail_20' ) end [2025-01-06 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:43:22] Production.INFO: ==1656== Releasing lock... [2025-01-06 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:43:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:44:05 [end_date_ymd] => 2025-01-06 03:44:05 [RateCDR] => 1 ) [2025-01-06 03:44: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-01-06 00:44:05' and `end` < '2025-01-06 03:44: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-01-06 03:44:18] Production.INFO: count ==157 [2025-01-06 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:44:05 - End Time 2025-01-06 03:44:05 [2025-01-06 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184886', 'tblTempUsageDetail_20' ) start [2025-01-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184886', 'tblTempUsageDetail_20' ) end [2025-01-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184886', 'tblTempVendorCDR_20' ) start [2025-01-06 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184886', 'tblTempVendorCDR_20' ) end [2025-01-06 03:44:18] Production.INFO: ProcessCDR(1,14184886,1,1,2) [2025-01-06 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184886', 'tblTempUsageDetail_20' ) start [2025-01-06 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184886', 'tblTempUsageDetail_20' ) end [2025-01-06 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:44:21] Production.INFO: ==1726== Releasing lock... [2025-01-06 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:45:05 [end_date_ymd] => 2025-01-06 03:45:05 [RateCDR] => 1 ) [2025-01-06 03:45: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-01-06 00:45:05' and `end` < '2025-01-06 03:45: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-01-06 03:45:18] Production.INFO: count ==157 [2025-01-06 03:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:45:05 - End Time 2025-01-06 03:45:05 [2025-01-06 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184891', 'tblTempUsageDetail_20' ) start [2025-01-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184891', 'tblTempUsageDetail_20' ) end [2025-01-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184891', 'tblTempVendorCDR_20' ) start [2025-01-06 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184891', 'tblTempVendorCDR_20' ) end [2025-01-06 03:45:18] Production.INFO: ProcessCDR(1,14184891,1,1,2) [2025-01-06 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184891', 'tblTempUsageDetail_20' ) start [2025-01-06 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184891', 'tblTempUsageDetail_20' ) end [2025-01-06 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:45:21] Production.INFO: ==1801== Releasing lock... [2025-01-06 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:46:05 [end_date_ymd] => 2025-01-06 03:46:05 [RateCDR] => 1 ) [2025-01-06 03:46: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-01-06 00:46:05' and `end` < '2025-01-06 03:46: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-01-06 03:46:17] Production.INFO: count ==157 [2025-01-06 03:46:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:46:05 - End Time 2025-01-06 03:46:05 [2025-01-06 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184896', 'tblTempUsageDetail_20' ) start [2025-01-06 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184896', 'tblTempUsageDetail_20' ) end [2025-01-06 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184896', 'tblTempVendorCDR_20' ) start [2025-01-06 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184896', 'tblTempVendorCDR_20' ) end [2025-01-06 03:46:17] Production.INFO: ProcessCDR(1,14184896,1,1,2) [2025-01-06 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184896', 'tblTempUsageDetail_20' ) start [2025-01-06 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184896', 'tblTempUsageDetail_20' ) end [2025-01-06 03:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:46:20] Production.INFO: ==1875== Releasing lock... [2025-01-06 03:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:46:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:47:05 [end_date_ymd] => 2025-01-06 03:47:05 [RateCDR] => 1 ) [2025-01-06 03:47: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-01-06 00:47:05' and `end` < '2025-01-06 03:47: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-01-06 03:47:18] Production.INFO: count ==157 [2025-01-06 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:47:05 - End Time 2025-01-06 03:47:05 [2025-01-06 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184901', 'tblTempUsageDetail_20' ) start [2025-01-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184901', 'tblTempUsageDetail_20' ) end [2025-01-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184901', 'tblTempVendorCDR_20' ) start [2025-01-06 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184901', 'tblTempVendorCDR_20' ) end [2025-01-06 03:47:18] Production.INFO: ProcessCDR(1,14184901,1,1,2) [2025-01-06 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184901', 'tblTempUsageDetail_20' ) start [2025-01-06 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184901', 'tblTempUsageDetail_20' ) end [2025-01-06 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:47:21] Production.INFO: ==1948== Releasing lock... [2025-01-06 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:48:04 [end_date_ymd] => 2025-01-06 03:48:04 [RateCDR] => 1 ) [2025-01-06 03:48: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-01-06 00:48:04' and `end` < '2025-01-06 03:48: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-01-06 03:48:18] Production.INFO: count ==157 [2025-01-06 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:48:04 - End Time 2025-01-06 03:48:04 [2025-01-06 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184906', 'tblTempUsageDetail_20' ) start [2025-01-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184906', 'tblTempUsageDetail_20' ) end [2025-01-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184906', 'tblTempVendorCDR_20' ) start [2025-01-06 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184906', 'tblTempVendorCDR_20' ) end [2025-01-06 03:48:18] Production.INFO: ProcessCDR(1,14184906,1,1,2) [2025-01-06 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184906', 'tblTempUsageDetail_20' ) start [2025-01-06 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184906', 'tblTempUsageDetail_20' ) end [2025-01-06 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:48:21] Production.INFO: ==2057== Releasing lock... [2025-01-06 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:49:05 [end_date_ymd] => 2025-01-06 03:49:05 [RateCDR] => 1 ) [2025-01-06 03:49: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-01-06 00:49:05' and `end` < '2025-01-06 03:49: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-01-06 03:49:18] Production.INFO: count ==157 [2025-01-06 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:49:05 - End Time 2025-01-06 03:49:05 [2025-01-06 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184911', 'tblTempUsageDetail_20' ) start [2025-01-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184911', 'tblTempUsageDetail_20' ) end [2025-01-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184911', 'tblTempVendorCDR_20' ) start [2025-01-06 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184911', 'tblTempVendorCDR_20' ) end [2025-01-06 03:49:18] Production.INFO: ProcessCDR(1,14184911,1,1,2) [2025-01-06 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184911', 'tblTempUsageDetail_20' ) start [2025-01-06 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184911', 'tblTempUsageDetail_20' ) end [2025-01-06 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:49:21] Production.INFO: ==2128== Releasing lock... [2025-01-06 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:50:06 [end_date_ymd] => 2025-01-06 03:50:06 [RateCDR] => 1 ) [2025-01-06 03:50: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-01-06 00:50:06' and `end` < '2025-01-06 03:50: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-01-06 03:50:20] Production.INFO: count ==157 [2025-01-06 03:50:20] Production.ERROR: pbx CDR StartTime 2025-01-06 00:50:06 - End Time 2025-01-06 03:50:06 [2025-01-06 03:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184917', 'tblTempUsageDetail_20' ) start [2025-01-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184917', 'tblTempUsageDetail_20' ) end [2025-01-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184917', 'tblTempVendorCDR_20' ) start [2025-01-06 03:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184917', 'tblTempVendorCDR_20' ) end [2025-01-06 03:50:20] Production.INFO: ProcessCDR(1,14184917,1,1,2) [2025-01-06 03:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184917', 'tblTempUsageDetail_20' ) start [2025-01-06 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184917', 'tblTempUsageDetail_20' ) end [2025-01-06 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:50:23] Production.INFO: ==2204== Releasing lock... [2025-01-06 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:50:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:51:05 [end_date_ymd] => 2025-01-06 03:51:05 [RateCDR] => 1 ) [2025-01-06 03:51: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-01-06 00:51:05' and `end` < '2025-01-06 03:51: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-01-06 03:51:18] Production.INFO: count ==157 [2025-01-06 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:51:05 - End Time 2025-01-06 03:51:05 [2025-01-06 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184922', 'tblTempUsageDetail_20' ) start [2025-01-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184922', 'tblTempUsageDetail_20' ) end [2025-01-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184922', 'tblTempVendorCDR_20' ) start [2025-01-06 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184922', 'tblTempVendorCDR_20' ) end [2025-01-06 03:51:18] Production.INFO: ProcessCDR(1,14184922,1,1,2) [2025-01-06 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184922', 'tblTempUsageDetail_20' ) start [2025-01-06 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184922', 'tblTempUsageDetail_20' ) end [2025-01-06 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:51:21] Production.INFO: ==2276== Releasing lock... [2025-01-06 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:51:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:52:05 [end_date_ymd] => 2025-01-06 03:52:05 [RateCDR] => 1 ) [2025-01-06 03:52: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-01-06 00:52:05' and `end` < '2025-01-06 03:52: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-01-06 03:52:19] Production.INFO: count ==157 [2025-01-06 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:52:05 - End Time 2025-01-06 03:52:05 [2025-01-06 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184927', 'tblTempUsageDetail_20' ) start [2025-01-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184927', 'tblTempUsageDetail_20' ) end [2025-01-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184927', 'tblTempVendorCDR_20' ) start [2025-01-06 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184927', 'tblTempVendorCDR_20' ) end [2025-01-06 03:52:19] Production.INFO: ProcessCDR(1,14184927,1,1,2) [2025-01-06 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184927', 'tblTempUsageDetail_20' ) start [2025-01-06 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184927', 'tblTempUsageDetail_20' ) end [2025-01-06 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:52:22] Production.INFO: ==2347== Releasing lock... [2025-01-06 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:53:04 [end_date_ymd] => 2025-01-06 03:53:04 [RateCDR] => 1 ) [2025-01-06 03:53: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-01-06 00:53:04' and `end` < '2025-01-06 03:53: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-01-06 03:53:17] Production.INFO: count ==157 [2025-01-06 03:53:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:53:04 - End Time 2025-01-06 03:53:04 [2025-01-06 03:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184932', 'tblTempUsageDetail_20' ) start [2025-01-06 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184932', 'tblTempUsageDetail_20' ) end [2025-01-06 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184932', 'tblTempVendorCDR_20' ) start [2025-01-06 03:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184932', 'tblTempVendorCDR_20' ) end [2025-01-06 03:53:17] Production.INFO: ProcessCDR(1,14184932,1,1,2) [2025-01-06 03:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184932', 'tblTempUsageDetail_20' ) start [2025-01-06 03:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184932', 'tblTempUsageDetail_20' ) end [2025-01-06 03:53:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:53:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:53:20] Production.INFO: ==2435== Releasing lock... [2025-01-06 03:53:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:53:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:54:05 [end_date_ymd] => 2025-01-06 03:54:05 [RateCDR] => 1 ) [2025-01-06 03:54: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-01-06 00:54:05' and `end` < '2025-01-06 03:54: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-01-06 03:54:18] Production.INFO: count ==157 [2025-01-06 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:54:05 - End Time 2025-01-06 03:54:05 [2025-01-06 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184937', 'tblTempUsageDetail_20' ) start [2025-01-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184937', 'tblTempUsageDetail_20' ) end [2025-01-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184937', 'tblTempVendorCDR_20' ) start [2025-01-06 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184937', 'tblTempVendorCDR_20' ) end [2025-01-06 03:54:18] Production.INFO: ProcessCDR(1,14184937,1,1,2) [2025-01-06 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184937', 'tblTempUsageDetail_20' ) start [2025-01-06 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184937', 'tblTempUsageDetail_20' ) end [2025-01-06 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:54:21] Production.INFO: ==2532== Releasing lock... [2025-01-06 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:54:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:55:04 [end_date_ymd] => 2025-01-06 03:55:04 [RateCDR] => 1 ) [2025-01-06 03:55: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-01-06 00:55:04' and `end` < '2025-01-06 03:55: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-01-06 03:55:17] Production.INFO: count ==154 [2025-01-06 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:55:04 - End Time 2025-01-06 03:55:04 [2025-01-06 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184942', 'tblTempUsageDetail_20' ) start [2025-01-06 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184942', 'tblTempUsageDetail_20' ) end [2025-01-06 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184942', 'tblTempVendorCDR_20' ) start [2025-01-06 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184942', 'tblTempVendorCDR_20' ) end [2025-01-06 03:55:17] Production.INFO: ProcessCDR(1,14184942,1,1,2) [2025-01-06 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184942', 'tblTempUsageDetail_20' ) start [2025-01-06 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184942', 'tblTempUsageDetail_20' ) end [2025-01-06 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:55:20] Production.INFO: ==2629== Releasing lock... [2025-01-06 03:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:55:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:56:05 [end_date_ymd] => 2025-01-06 03:56:05 [RateCDR] => 1 ) [2025-01-06 03:56: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-01-06 00:56:05' and `end` < '2025-01-06 03:56: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-01-06 03:56:17] Production.INFO: count ==154 [2025-01-06 03:56:17] Production.ERROR: pbx CDR StartTime 2025-01-06 00:56:05 - End Time 2025-01-06 03:56:05 [2025-01-06 03:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184947', 'tblTempUsageDetail_20' ) start [2025-01-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184947', 'tblTempUsageDetail_20' ) end [2025-01-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184947', 'tblTempVendorCDR_20' ) start [2025-01-06 03:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184947', 'tblTempVendorCDR_20' ) end [2025-01-06 03:56:17] Production.INFO: ProcessCDR(1,14184947,1,1,2) [2025-01-06 03:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184947', 'tblTempUsageDetail_20' ) start [2025-01-06 03:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184947', 'tblTempUsageDetail_20' ) end [2025-01-06 03:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:56:20] Production.INFO: ==2737== Releasing lock... [2025-01-06 03:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:56:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:57:05 [end_date_ymd] => 2025-01-06 03:57:05 [RateCDR] => 1 ) [2025-01-06 03:57: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-01-06 00:57:05' and `end` < '2025-01-06 03:57: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-01-06 03:57:18] Production.INFO: count ==154 [2025-01-06 03:57:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:57:05 - End Time 2025-01-06 03:57:05 [2025-01-06 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184952', 'tblTempUsageDetail_20' ) start [2025-01-06 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184952', 'tblTempUsageDetail_20' ) end [2025-01-06 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184952', 'tblTempVendorCDR_20' ) start [2025-01-06 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184952', 'tblTempVendorCDR_20' ) end [2025-01-06 03:57:18] Production.INFO: ProcessCDR(1,14184952,1,1,2) [2025-01-06 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184952', 'tblTempUsageDetail_20' ) start [2025-01-06 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184952', 'tblTempUsageDetail_20' ) end [2025-01-06 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:57:21] Production.INFO: ==2848== Releasing lock... [2025-01-06 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:57:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:58:05 [end_date_ymd] => 2025-01-06 03:58:05 [RateCDR] => 1 ) [2025-01-06 03:58: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-01-06 00:58:05' and `end` < '2025-01-06 03:58: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-01-06 03:58:19] Production.INFO: count ==154 [2025-01-06 03:58:19] Production.ERROR: pbx CDR StartTime 2025-01-06 00:58:05 - End Time 2025-01-06 03:58:05 [2025-01-06 03:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184957', 'tblTempUsageDetail_20' ) start [2025-01-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184957', 'tblTempUsageDetail_20' ) end [2025-01-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184957', 'tblTempVendorCDR_20' ) start [2025-01-06 03:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184957', 'tblTempVendorCDR_20' ) end [2025-01-06 03:58:19] Production.INFO: ProcessCDR(1,14184957,1,1,2) [2025-01-06 03:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184957', 'tblTempUsageDetail_20' ) start [2025-01-06 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184957', 'tblTempUsageDetail_20' ) end [2025-01-06 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:58:22] Production.INFO: ==2964== Releasing lock... [2025-01-06 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 00:59:05 [end_date_ymd] => 2025-01-06 03:59:05 [RateCDR] => 1 ) [2025-01-06 03:59: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-01-06 00:59:05' and `end` < '2025-01-06 03:59: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-01-06 03:59:18] Production.INFO: count ==154 [2025-01-06 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-06 00:59:05 - End Time 2025-01-06 03:59:05 [2025-01-06 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184962', 'tblTempUsageDetail_20' ) start [2025-01-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184962', 'tblTempUsageDetail_20' ) end [2025-01-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184962', 'tblTempVendorCDR_20' ) start [2025-01-06 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184962', 'tblTempVendorCDR_20' ) end [2025-01-06 03:59:18] Production.INFO: ProcessCDR(1,14184962,1,1,2) [2025-01-06 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184962', 'tblTempUsageDetail_20' ) start [2025-01-06 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184962', 'tblTempUsageDetail_20' ) end [2025-01-06 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 03:59:21] Production.INFO: ==3075== Releasing lock... [2025-01-06 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 03:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:00:05 [end_date_ymd] => 2025-01-06 04:00:05 [RateCDR] => 1 ) [2025-01-06 04: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-01-06 01:00:05' and `end` < '2025-01-06 04: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-01-06 04:00:18] Production.INFO: count ==154 [2025-01-06 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:00:05 - End Time 2025-01-06 04:00:05 [2025-01-06 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184969', 'tblTempUsageDetail_20' ) start [2025-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184969', 'tblTempUsageDetail_20' ) end [2025-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184969', 'tblTempVendorCDR_20' ) start [2025-01-06 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184969', 'tblTempVendorCDR_20' ) end [2025-01-06 04:00:18] Production.INFO: ProcessCDR(1,14184969,1,1,2) [2025-01-06 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184969', 'tblTempUsageDetail_20' ) start [2025-01-06 04:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184969', 'tblTempUsageDetail_20' ) end [2025-01-06 04:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:00:21] Production.INFO: ==3211== Releasing lock... [2025-01-06 04:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:00:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:01:05 [end_date_ymd] => 2025-01-06 04:01:05 [RateCDR] => 1 ) [2025-01-06 04:01: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-01-06 01:01:05' and `end` < '2025-01-06 04:01: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-01-06 04:01:18] Production.INFO: count ==154 [2025-01-06 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:01:05 - End Time 2025-01-06 04:01:05 [2025-01-06 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184974', 'tblTempUsageDetail_20' ) start [2025-01-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184974', 'tblTempUsageDetail_20' ) end [2025-01-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184974', 'tblTempVendorCDR_20' ) start [2025-01-06 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184974', 'tblTempVendorCDR_20' ) end [2025-01-06 04:01:18] Production.INFO: ProcessCDR(1,14184974,1,1,2) [2025-01-06 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184974', 'tblTempUsageDetail_20' ) start [2025-01-06 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184974', 'tblTempUsageDetail_20' ) end [2025-01-06 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:01:21] Production.INFO: ==3340== Releasing lock... [2025-01-06 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:01:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:02:05 [end_date_ymd] => 2025-01-06 04:02:05 [RateCDR] => 1 ) [2025-01-06 04:02: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-01-06 01:02:05' and `end` < '2025-01-06 04:02: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-01-06 04:02:17] Production.INFO: count ==154 [2025-01-06 04:02:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:02:05 - End Time 2025-01-06 04:02:05 [2025-01-06 04:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184979', 'tblTempUsageDetail_20' ) start [2025-01-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184979', 'tblTempUsageDetail_20' ) end [2025-01-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184979', 'tblTempVendorCDR_20' ) start [2025-01-06 04:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184979', 'tblTempVendorCDR_20' ) end [2025-01-06 04:02:17] Production.INFO: ProcessCDR(1,14184979,1,1,2) [2025-01-06 04:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184979', 'tblTempUsageDetail_20' ) start [2025-01-06 04:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184979', 'tblTempUsageDetail_20' ) end [2025-01-06 04:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:02:20] Production.INFO: ==3446== Releasing lock... [2025-01-06 04:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:02:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:03:05 [end_date_ymd] => 2025-01-06 04:03:05 [RateCDR] => 1 ) [2025-01-06 04:03: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-01-06 01:03:05' and `end` < '2025-01-06 04:03: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-01-06 04:03:18] Production.INFO: count ==154 [2025-01-06 04:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:03:05 - End Time 2025-01-06 04:03:05 [2025-01-06 04:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184984', 'tblTempUsageDetail_20' ) start [2025-01-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184984', 'tblTempUsageDetail_20' ) end [2025-01-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184984', 'tblTempVendorCDR_20' ) start [2025-01-06 04:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184984', 'tblTempVendorCDR_20' ) end [2025-01-06 04:03:18] Production.INFO: ProcessCDR(1,14184984,1,1,2) [2025-01-06 04:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184984', 'tblTempUsageDetail_20' ) start [2025-01-06 04:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184984', 'tblTempUsageDetail_20' ) end [2025-01-06 04:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:03:21] Production.INFO: ==3590== Releasing lock... [2025-01-06 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:03:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:04:05 [end_date_ymd] => 2025-01-06 04:04:05 [RateCDR] => 1 ) [2025-01-06 04:04: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-01-06 01:04:05' and `end` < '2025-01-06 04:04: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-01-06 04:04:19] Production.INFO: count ==154 [2025-01-06 04:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:04:05 - End Time 2025-01-06 04:04:05 [2025-01-06 04:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184989', 'tblTempUsageDetail_20' ) start [2025-01-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184989', 'tblTempUsageDetail_20' ) end [2025-01-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184989', 'tblTempVendorCDR_20' ) start [2025-01-06 04:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184989', 'tblTempVendorCDR_20' ) end [2025-01-06 04:04:19] Production.INFO: ProcessCDR(1,14184989,1,1,2) [2025-01-06 04:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184989', 'tblTempUsageDetail_20' ) start [2025-01-06 04:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184989', 'tblTempUsageDetail_20' ) end [2025-01-06 04:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:04:22] Production.INFO: ==3707== Releasing lock... [2025-01-06 04:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:04:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:05:05 [end_date_ymd] => 2025-01-06 04:05:05 [RateCDR] => 1 ) [2025-01-06 04:05: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-01-06 01:05:05' and `end` < '2025-01-06 04:05: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-01-06 04:05:19] Production.INFO: count ==154 [2025-01-06 04:05:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:05:05 - End Time 2025-01-06 04:05:05 [2025-01-06 04:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184994', 'tblTempUsageDetail_20' ) start [2025-01-06 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184994', 'tblTempUsageDetail_20' ) end [2025-01-06 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184994', 'tblTempVendorCDR_20' ) start [2025-01-06 04:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184994', 'tblTempVendorCDR_20' ) end [2025-01-06 04:05:19] Production.INFO: ProcessCDR(1,14184994,1,1,2) [2025-01-06 04:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184994', 'tblTempUsageDetail_20' ) start [2025-01-06 04:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184994', 'tblTempUsageDetail_20' ) end [2025-01-06 04:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:05:21] Production.INFO: ==3815== Releasing lock... [2025-01-06 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:06:05 [end_date_ymd] => 2025-01-06 04:06:05 [RateCDR] => 1 ) [2025-01-06 04:06: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-01-06 01:06:05' and `end` < '2025-01-06 04:06: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-01-06 04:06:17] Production.INFO: count ==154 [2025-01-06 04:06:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:06:05 - End Time 2025-01-06 04:06:05 [2025-01-06 04:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184999', 'tblTempUsageDetail_20' ) start [2025-01-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14184999', 'tblTempUsageDetail_20' ) end [2025-01-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184999', 'tblTempVendorCDR_20' ) start [2025-01-06 04:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14184999', 'tblTempVendorCDR_20' ) end [2025-01-06 04:06:17] Production.INFO: ProcessCDR(1,14184999,1,1,2) [2025-01-06 04:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14184999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14184999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14184999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14184999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184999', 'tblTempUsageDetail_20' ) start [2025-01-06 04:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14184999', 'tblTempUsageDetail_20' ) end [2025-01-06 04:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:06:20] Production.INFO: ==3921== Releasing lock... [2025-01-06 04:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:06:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:07:06 [end_date_ymd] => 2025-01-06 04:07:06 [RateCDR] => 1 ) [2025-01-06 04:07: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-01-06 01:07:06' and `end` < '2025-01-06 04:07: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-01-06 04:07:18] Production.INFO: count ==154 [2025-01-06 04:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:07:06 - End Time 2025-01-06 04:07:06 [2025-01-06 04:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185004', 'tblTempUsageDetail_20' ) start [2025-01-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185004', 'tblTempUsageDetail_20' ) end [2025-01-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185004', 'tblTempVendorCDR_20' ) start [2025-01-06 04:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185004', 'tblTempVendorCDR_20' ) end [2025-01-06 04:07:18] Production.INFO: ProcessCDR(1,14185004,1,1,2) [2025-01-06 04:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185004', 'tblTempUsageDetail_20' ) start [2025-01-06 04:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185004', 'tblTempUsageDetail_20' ) end [2025-01-06 04:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:07:21] Production.INFO: ==4038== Releasing lock... [2025-01-06 04:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:07:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:08:05 [end_date_ymd] => 2025-01-06 04:08:05 [RateCDR] => 1 ) [2025-01-06 04:08: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-01-06 01:08:05' and `end` < '2025-01-06 04:08: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-01-06 04:08:17] Production.INFO: count ==154 [2025-01-06 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:08:05 - End Time 2025-01-06 04:08:05 [2025-01-06 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185009', 'tblTempUsageDetail_20' ) start [2025-01-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185009', 'tblTempUsageDetail_20' ) end [2025-01-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185009', 'tblTempVendorCDR_20' ) start [2025-01-06 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185009', 'tblTempVendorCDR_20' ) end [2025-01-06 04:08:17] Production.INFO: ProcessCDR(1,14185009,1,1,2) [2025-01-06 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185009', 'tblTempUsageDetail_20' ) start [2025-01-06 04:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185009', 'tblTempUsageDetail_20' ) end [2025-01-06 04:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:08:20] Production.INFO: ==4150== Releasing lock... [2025-01-06 04:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:08:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:09:06 [end_date_ymd] => 2025-01-06 04:09:06 [RateCDR] => 1 ) [2025-01-06 04:09: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-01-06 01:09:06' and `end` < '2025-01-06 04:09: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-01-06 04:09:18] Production.INFO: count ==154 [2025-01-06 04:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:09:06 - End Time 2025-01-06 04:09:06 [2025-01-06 04:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185014', 'tblTempUsageDetail_20' ) start [2025-01-06 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185014', 'tblTempUsageDetail_20' ) end [2025-01-06 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185014', 'tblTempVendorCDR_20' ) start [2025-01-06 04:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185014', 'tblTempVendorCDR_20' ) end [2025-01-06 04:09:19] Production.INFO: ProcessCDR(1,14185014,1,1,2) [2025-01-06 04:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185014', 'tblTempUsageDetail_20' ) start [2025-01-06 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185014', 'tblTempUsageDetail_20' ) end [2025-01-06 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:09:22] Production.INFO: ==4261== Releasing lock... [2025-01-06 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:09:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:10:05 [end_date_ymd] => 2025-01-06 04:10:05 [RateCDR] => 1 ) [2025-01-06 04:10: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-01-06 01:10:05' and `end` < '2025-01-06 04:10: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-01-06 04:10:18] Production.INFO: count ==153 [2025-01-06 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:10:05 - End Time 2025-01-06 04:10:05 [2025-01-06 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185019', 'tblTempUsageDetail_20' ) start [2025-01-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185019', 'tblTempUsageDetail_20' ) end [2025-01-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185019', 'tblTempVendorCDR_20' ) start [2025-01-06 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185019', 'tblTempVendorCDR_20' ) end [2025-01-06 04:10:18] Production.INFO: ProcessCDR(1,14185019,1,1,2) [2025-01-06 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185019', 'tblTempUsageDetail_20' ) start [2025-01-06 04:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185019', 'tblTempUsageDetail_20' ) end [2025-01-06 04:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:10:21] Production.INFO: ==4377== Releasing lock... [2025-01-06 04:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:10:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:11:05 [end_date_ymd] => 2025-01-06 04:11:05 [RateCDR] => 1 ) [2025-01-06 04:11: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-01-06 01:11:05' and `end` < '2025-01-06 04:11: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-01-06 04:11:18] Production.INFO: count ==153 [2025-01-06 04:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:11:05 - End Time 2025-01-06 04:11:05 [2025-01-06 04:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185025', 'tblTempUsageDetail_20' ) start [2025-01-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185025', 'tblTempUsageDetail_20' ) end [2025-01-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185025', 'tblTempVendorCDR_20' ) start [2025-01-06 04:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185025', 'tblTempVendorCDR_20' ) end [2025-01-06 04:11:18] Production.INFO: ProcessCDR(1,14185025,1,1,2) [2025-01-06 04:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185025', 'tblTempUsageDetail_20' ) start [2025-01-06 04:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185025', 'tblTempUsageDetail_20' ) end [2025-01-06 04:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:11:21] Production.INFO: ==4486== Releasing lock... [2025-01-06 04:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:11:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:12:05 [end_date_ymd] => 2025-01-06 04:12:05 [RateCDR] => 1 ) [2025-01-06 04:12: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-01-06 01:12:05' and `end` < '2025-01-06 04:12: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-01-06 04:12:18] Production.INFO: count ==153 [2025-01-06 04:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:12:05 - End Time 2025-01-06 04:12:05 [2025-01-06 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185030', 'tblTempUsageDetail_20' ) start [2025-01-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185030', 'tblTempUsageDetail_20' ) end [2025-01-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185030', 'tblTempVendorCDR_20' ) start [2025-01-06 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185030', 'tblTempVendorCDR_20' ) end [2025-01-06 04:12:18] Production.INFO: ProcessCDR(1,14185030,1,1,2) [2025-01-06 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185030', 'tblTempUsageDetail_20' ) start [2025-01-06 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185030', 'tblTempUsageDetail_20' ) end [2025-01-06 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:12:21] Production.INFO: ==4600== Releasing lock... [2025-01-06 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:12:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:13:05 [end_date_ymd] => 2025-01-06 04:13:05 [RateCDR] => 1 ) [2025-01-06 04:13: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-01-06 01:13:05' and `end` < '2025-01-06 04:13: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-01-06 04:13:19] Production.INFO: count ==153 [2025-01-06 04:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:13:05 - End Time 2025-01-06 04:13:05 [2025-01-06 04:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185035', 'tblTempUsageDetail_20' ) start [2025-01-06 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185035', 'tblTempUsageDetail_20' ) end [2025-01-06 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185035', 'tblTempVendorCDR_20' ) start [2025-01-06 04:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185035', 'tblTempVendorCDR_20' ) end [2025-01-06 04:13:19] Production.INFO: ProcessCDR(1,14185035,1,1,2) [2025-01-06 04:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185035', 'tblTempUsageDetail_20' ) start [2025-01-06 04:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185035', 'tblTempUsageDetail_20' ) end [2025-01-06 04:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:13:22] Production.INFO: ==4706== Releasing lock... [2025-01-06 04:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:13:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:14:05 [end_date_ymd] => 2025-01-06 04:14:05 [RateCDR] => 1 ) [2025-01-06 04:14: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-01-06 01:14:05' and `end` < '2025-01-06 04:14: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-01-06 04:14:18] Production.INFO: count ==153 [2025-01-06 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:14:05 - End Time 2025-01-06 04:14:05 [2025-01-06 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185040', 'tblTempUsageDetail_20' ) start [2025-01-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185040', 'tblTempUsageDetail_20' ) end [2025-01-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185040', 'tblTempVendorCDR_20' ) start [2025-01-06 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185040', 'tblTempVendorCDR_20' ) end [2025-01-06 04:14:18] Production.INFO: ProcessCDR(1,14185040,1,1,2) [2025-01-06 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185040', 'tblTempUsageDetail_20' ) start [2025-01-06 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185040', 'tblTempUsageDetail_20' ) end [2025-01-06 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:14:21] Production.INFO: ==4817== Releasing lock... [2025-01-06 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:14:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:15:05 [end_date_ymd] => 2025-01-06 04:15:05 [RateCDR] => 1 ) [2025-01-06 04:15: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-01-06 01:15:05' and `end` < '2025-01-06 04:15: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-01-06 04:15:18] Production.INFO: count ==153 [2025-01-06 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:15:05 - End Time 2025-01-06 04:15:05 [2025-01-06 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185045', 'tblTempUsageDetail_20' ) start [2025-01-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185045', 'tblTempUsageDetail_20' ) end [2025-01-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185045', 'tblTempVendorCDR_20' ) start [2025-01-06 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185045', 'tblTempVendorCDR_20' ) end [2025-01-06 04:15:18] Production.INFO: ProcessCDR(1,14185045,1,1,2) [2025-01-06 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185045', 'tblTempUsageDetail_20' ) start [2025-01-06 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185045', 'tblTempUsageDetail_20' ) end [2025-01-06 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:15:21] Production.INFO: ==4928== Releasing lock... [2025-01-06 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:15:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:16:04 [end_date_ymd] => 2025-01-06 04:16:04 [RateCDR] => 1 ) [2025-01-06 04:16: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-01-06 01:16:04' and `end` < '2025-01-06 04:16: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-01-06 04:16:18] Production.INFO: count ==153 [2025-01-06 04:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:16:04 - End Time 2025-01-06 04:16:04 [2025-01-06 04:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185050', 'tblTempUsageDetail_20' ) start [2025-01-06 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185050', 'tblTempUsageDetail_20' ) end [2025-01-06 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185050', 'tblTempVendorCDR_20' ) start [2025-01-06 04:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185050', 'tblTempVendorCDR_20' ) end [2025-01-06 04:16:18] Production.INFO: ProcessCDR(1,14185050,1,1,2) [2025-01-06 04:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185050', 'tblTempUsageDetail_20' ) start [2025-01-06 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185050', 'tblTempUsageDetail_20' ) end [2025-01-06 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:16:21] Production.INFO: ==5032== Releasing lock... [2025-01-06 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:16:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:17:05 [end_date_ymd] => 2025-01-06 04:17:05 [RateCDR] => 1 ) [2025-01-06 04:17: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-01-06 01:17:05' and `end` < '2025-01-06 04:17: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-01-06 04:17:19] Production.INFO: count ==153 [2025-01-06 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:17:05 - End Time 2025-01-06 04:17:05 [2025-01-06 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185055', 'tblTempUsageDetail_20' ) start [2025-01-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185055', 'tblTempUsageDetail_20' ) end [2025-01-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185055', 'tblTempVendorCDR_20' ) start [2025-01-06 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185055', 'tblTempVendorCDR_20' ) end [2025-01-06 04:17:19] Production.INFO: ProcessCDR(1,14185055,1,1,2) [2025-01-06 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185055', 'tblTempUsageDetail_20' ) start [2025-01-06 04:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185055', 'tblTempUsageDetail_20' ) end [2025-01-06 04:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:17:23] Production.INFO: ==5146== Releasing lock... [2025-01-06 04:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:17:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:18:05 [end_date_ymd] => 2025-01-06 04:18:05 [RateCDR] => 1 ) [2025-01-06 04:18: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-01-06 01:18:05' and `end` < '2025-01-06 04:18: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-01-06 04:18:18] Production.INFO: count ==153 [2025-01-06 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:18:05 - End Time 2025-01-06 04:18:05 [2025-01-06 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185060', 'tblTempUsageDetail_20' ) start [2025-01-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185060', 'tblTempUsageDetail_20' ) end [2025-01-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185060', 'tblTempVendorCDR_20' ) start [2025-01-06 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185060', 'tblTempVendorCDR_20' ) end [2025-01-06 04:18:18] Production.INFO: ProcessCDR(1,14185060,1,1,2) [2025-01-06 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185060', 'tblTempUsageDetail_20' ) start [2025-01-06 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185060', 'tblTempUsageDetail_20' ) end [2025-01-06 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:18:21] Production.INFO: ==5268== Releasing lock... [2025-01-06 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:18:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:19:05 [end_date_ymd] => 2025-01-06 04:19:05 [RateCDR] => 1 ) [2025-01-06 04:19: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-01-06 01:19:05' and `end` < '2025-01-06 04:19: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-01-06 04:19:17] Production.INFO: count ==153 [2025-01-06 04:19:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:19:05 - End Time 2025-01-06 04:19:05 [2025-01-06 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185065', 'tblTempUsageDetail_20' ) start [2025-01-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185065', 'tblTempUsageDetail_20' ) end [2025-01-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185065', 'tblTempVendorCDR_20' ) start [2025-01-06 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185065', 'tblTempVendorCDR_20' ) end [2025-01-06 04:19:17] Production.INFO: ProcessCDR(1,14185065,1,1,2) [2025-01-06 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185065', 'tblTempUsageDetail_20' ) start [2025-01-06 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185065', 'tblTempUsageDetail_20' ) end [2025-01-06 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:19:20] Production.INFO: ==5420== Releasing lock... [2025-01-06 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:19:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:20:06 [end_date_ymd] => 2025-01-06 04:20:06 [RateCDR] => 1 ) [2025-01-06 04:20: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-01-06 01:20:06' and `end` < '2025-01-06 04:20: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-01-06 04:20:18] Production.INFO: count ==153 [2025-01-06 04:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:20:06 - End Time 2025-01-06 04:20:06 [2025-01-06 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185071', 'tblTempUsageDetail_20' ) start [2025-01-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185071', 'tblTempUsageDetail_20' ) end [2025-01-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185071', 'tblTempVendorCDR_20' ) start [2025-01-06 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185071', 'tblTempVendorCDR_20' ) end [2025-01-06 04:20:18] Production.INFO: ProcessCDR(1,14185071,1,1,2) [2025-01-06 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185071', 'tblTempUsageDetail_20' ) start [2025-01-06 04:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185071', 'tblTempUsageDetail_20' ) end [2025-01-06 04:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:20:21] Production.INFO: ==5526== Releasing lock... [2025-01-06 04:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:20:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:21:05 [end_date_ymd] => 2025-01-06 04:21:05 [RateCDR] => 1 ) [2025-01-06 04:21: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-01-06 01:21:05' and `end` < '2025-01-06 04:21: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-01-06 04:21:17] Production.INFO: count ==153 [2025-01-06 04:21:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:21:05 - End Time 2025-01-06 04:21:05 [2025-01-06 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185076', 'tblTempUsageDetail_20' ) start [2025-01-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185076', 'tblTempUsageDetail_20' ) end [2025-01-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185076', 'tblTempVendorCDR_20' ) start [2025-01-06 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185076', 'tblTempVendorCDR_20' ) end [2025-01-06 04:21:17] Production.INFO: ProcessCDR(1,14185076,1,1,2) [2025-01-06 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185076', 'tblTempUsageDetail_20' ) start [2025-01-06 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185076', 'tblTempUsageDetail_20' ) end [2025-01-06 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:21:20] Production.INFO: ==5638== Releasing lock... [2025-01-06 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:21:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:22:05 [end_date_ymd] => 2025-01-06 04:22:05 [RateCDR] => 1 ) [2025-01-06 04:22: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-01-06 01:22:05' and `end` < '2025-01-06 04:22: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-01-06 04:22:18] Production.INFO: count ==153 [2025-01-06 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:22:05 - End Time 2025-01-06 04:22:05 [2025-01-06 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185081', 'tblTempUsageDetail_20' ) start [2025-01-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185081', 'tblTempUsageDetail_20' ) end [2025-01-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185081', 'tblTempVendorCDR_20' ) start [2025-01-06 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185081', 'tblTempVendorCDR_20' ) end [2025-01-06 04:22:18] Production.INFO: ProcessCDR(1,14185081,1,1,2) [2025-01-06 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185081', 'tblTempUsageDetail_20' ) start [2025-01-06 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185081', 'tblTempUsageDetail_20' ) end [2025-01-06 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:22:21] Production.INFO: ==5748== Releasing lock... [2025-01-06 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:22:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:23:05 [end_date_ymd] => 2025-01-06 04:23:05 [RateCDR] => 1 ) [2025-01-06 04:23: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-01-06 01:23:05' and `end` < '2025-01-06 04:23: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-01-06 04:23:18] Production.INFO: count ==153 [2025-01-06 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:23:05 - End Time 2025-01-06 04:23:05 [2025-01-06 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185086', 'tblTempUsageDetail_20' ) start [2025-01-06 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185086', 'tblTempUsageDetail_20' ) end [2025-01-06 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185086', 'tblTempVendorCDR_20' ) start [2025-01-06 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185086', 'tblTempVendorCDR_20' ) end [2025-01-06 04:23:18] Production.INFO: ProcessCDR(1,14185086,1,1,2) [2025-01-06 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185086', 'tblTempUsageDetail_20' ) start [2025-01-06 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185086', 'tblTempUsageDetail_20' ) end [2025-01-06 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:23:21] Production.INFO: ==5866== Releasing lock... [2025-01-06 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:23:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:24:05 [end_date_ymd] => 2025-01-06 04:24:05 [RateCDR] => 1 ) [2025-01-06 04:24: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-01-06 01:24:05' and `end` < '2025-01-06 04:24: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-01-06 04:24:18] Production.INFO: count ==153 [2025-01-06 04:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:24:05 - End Time 2025-01-06 04:24:05 [2025-01-06 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185091', 'tblTempUsageDetail_20' ) start [2025-01-06 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185091', 'tblTempUsageDetail_20' ) end [2025-01-06 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185091', 'tblTempVendorCDR_20' ) start [2025-01-06 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185091', 'tblTempVendorCDR_20' ) end [2025-01-06 04:24:18] Production.INFO: ProcessCDR(1,14185091,1,1,2) [2025-01-06 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185091', 'tblTempUsageDetail_20' ) start [2025-01-06 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185091', 'tblTempUsageDetail_20' ) end [2025-01-06 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:24:21] Production.INFO: ==5976== Releasing lock... [2025-01-06 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:24:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:25:04 [end_date_ymd] => 2025-01-06 04:25:04 [RateCDR] => 1 ) [2025-01-06 04: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-01-06 01:25:04' and `end` < '2025-01-06 04: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-01-06 04:25:19] Production.INFO: count ==153 [2025-01-06 04:25:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:25:04 - End Time 2025-01-06 04:25:04 [2025-01-06 04:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185096', 'tblTempUsageDetail_20' ) start [2025-01-06 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185096', 'tblTempUsageDetail_20' ) end [2025-01-06 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185096', 'tblTempVendorCDR_20' ) start [2025-01-06 04:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185096', 'tblTempVendorCDR_20' ) end [2025-01-06 04:25:19] Production.INFO: ProcessCDR(1,14185096,1,1,2) [2025-01-06 04:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185096', 'tblTempUsageDetail_20' ) start [2025-01-06 04:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185096', 'tblTempUsageDetail_20' ) end [2025-01-06 04:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:25:22] Production.INFO: ==6075== Releasing lock... [2025-01-06 04:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:25:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:26:05 [end_date_ymd] => 2025-01-06 04:26:05 [RateCDR] => 1 ) [2025-01-06 04:26: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-01-06 01:26:05' and `end` < '2025-01-06 04:26: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-01-06 04:26:18] Production.INFO: count ==153 [2025-01-06 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:26:05 - End Time 2025-01-06 04:26:05 [2025-01-06 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185101', 'tblTempUsageDetail_20' ) start [2025-01-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185101', 'tblTempUsageDetail_20' ) end [2025-01-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185101', 'tblTempVendorCDR_20' ) start [2025-01-06 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185101', 'tblTempVendorCDR_20' ) end [2025-01-06 04:26:18] Production.INFO: ProcessCDR(1,14185101,1,1,2) [2025-01-06 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185101', 'tblTempUsageDetail_20' ) start [2025-01-06 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185101', 'tblTempUsageDetail_20' ) end [2025-01-06 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:26:21] Production.INFO: ==6183== Releasing lock... [2025-01-06 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:26:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:27:04 [end_date_ymd] => 2025-01-06 04:27:04 [RateCDR] => 1 ) [2025-01-06 04:27: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-01-06 01:27:04' and `end` < '2025-01-06 04:27: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-01-06 04:27:17] Production.INFO: count ==151 [2025-01-06 04:27:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:27:04 - End Time 2025-01-06 04:27:04 [2025-01-06 04:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185106', 'tblTempUsageDetail_20' ) start [2025-01-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185106', 'tblTempUsageDetail_20' ) end [2025-01-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185106', 'tblTempVendorCDR_20' ) start [2025-01-06 04:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185106', 'tblTempVendorCDR_20' ) end [2025-01-06 04:27:17] Production.INFO: ProcessCDR(1,14185106,1,1,2) [2025-01-06 04:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185106', 'tblTempUsageDetail_20' ) start [2025-01-06 04:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185106', 'tblTempUsageDetail_20' ) end [2025-01-06 04:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:27:20] Production.INFO: ==6290== Releasing lock... [2025-01-06 04:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:27:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:28:05 [end_date_ymd] => 2025-01-06 04:28:05 [RateCDR] => 1 ) [2025-01-06 04:28: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-01-06 01:28:05' and `end` < '2025-01-06 04:28: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-01-06 04:28:18] Production.INFO: count ==151 [2025-01-06 04:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:28:05 - End Time 2025-01-06 04:28:05 [2025-01-06 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185111', 'tblTempUsageDetail_20' ) start [2025-01-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185111', 'tblTempUsageDetail_20' ) end [2025-01-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185111', 'tblTempVendorCDR_20' ) start [2025-01-06 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185111', 'tblTempVendorCDR_20' ) end [2025-01-06 04:28:18] Production.INFO: ProcessCDR(1,14185111,1,1,2) [2025-01-06 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185111', 'tblTempUsageDetail_20' ) start [2025-01-06 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185111', 'tblTempUsageDetail_20' ) end [2025-01-06 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:28:21] Production.INFO: ==6398== Releasing lock... [2025-01-06 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:28:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:29:05 [end_date_ymd] => 2025-01-06 04:29:05 [RateCDR] => 1 ) [2025-01-06 04:29: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-01-06 01:29:05' and `end` < '2025-01-06 04:29: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-01-06 04:29:18] Production.INFO: count ==151 [2025-01-06 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:29:05 - End Time 2025-01-06 04:29:05 [2025-01-06 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185116', 'tblTempUsageDetail_20' ) start [2025-01-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185116', 'tblTempUsageDetail_20' ) end [2025-01-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185116', 'tblTempVendorCDR_20' ) start [2025-01-06 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185116', 'tblTempVendorCDR_20' ) end [2025-01-06 04:29:18] Production.INFO: ProcessCDR(1,14185116,1,1,2) [2025-01-06 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185116', 'tblTempUsageDetail_20' ) start [2025-01-06 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185116', 'tblTempUsageDetail_20' ) end [2025-01-06 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:29:21] Production.INFO: ==6512== Releasing lock... [2025-01-06 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:29:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:30:06 [end_date_ymd] => 2025-01-06 04:30:06 [RateCDR] => 1 ) [2025-01-06 04:30: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-01-06 01:30:06' and `end` < '2025-01-06 04:30: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-01-06 04:30:18] Production.INFO: count ==146 [2025-01-06 04:30:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:30:06 - End Time 2025-01-06 04:30:06 [2025-01-06 04:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185123', 'tblTempUsageDetail_20' ) start [2025-01-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185123', 'tblTempUsageDetail_20' ) end [2025-01-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185123', 'tblTempVendorCDR_20' ) start [2025-01-06 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185123', 'tblTempVendorCDR_20' ) end [2025-01-06 04:30:19] Production.INFO: ProcessCDR(1,14185123,1,1,2) [2025-01-06 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185123,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185123,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185123', 'tblTempUsageDetail_20' ) start [2025-01-06 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185123', 'tblTempUsageDetail_20' ) end [2025-01-06 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:30:22] Production.INFO: ==6624== Releasing lock... [2025-01-06 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:30:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:31:05 [end_date_ymd] => 2025-01-06 04:31:05 [RateCDR] => 1 ) [2025-01-06 04:31: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-01-06 01:31:05' and `end` < '2025-01-06 04:31: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-01-06 04:31:19] Production.INFO: count ==136 [2025-01-06 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:31:05 - End Time 2025-01-06 04:31:05 [2025-01-06 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185128', 'tblTempUsageDetail_20' ) start [2025-01-06 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185128', 'tblTempUsageDetail_20' ) end [2025-01-06 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185128', 'tblTempVendorCDR_20' ) start [2025-01-06 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185128', 'tblTempVendorCDR_20' ) end [2025-01-06 04:31:19] Production.INFO: ProcessCDR(1,14185128,1,1,2) [2025-01-06 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185128', 'tblTempUsageDetail_20' ) start [2025-01-06 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185128', 'tblTempUsageDetail_20' ) end [2025-01-06 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:31:22] Production.INFO: ==6817== Releasing lock... [2025-01-06 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:31:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:32:05 [end_date_ymd] => 2025-01-06 04:32:05 [RateCDR] => 1 ) [2025-01-06 04:32: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-01-06 01:32:05' and `end` < '2025-01-06 04:32: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-01-06 04:32:18] Production.INFO: count ==136 [2025-01-06 04:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:32:05 - End Time 2025-01-06 04:32:05 [2025-01-06 04:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185133', 'tblTempUsageDetail_20' ) start [2025-01-06 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185133', 'tblTempUsageDetail_20' ) end [2025-01-06 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185133', 'tblTempVendorCDR_20' ) start [2025-01-06 04:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185133', 'tblTempVendorCDR_20' ) end [2025-01-06 04:32:18] Production.INFO: ProcessCDR(1,14185133,1,1,2) [2025-01-06 04:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185133', 'tblTempUsageDetail_20' ) start [2025-01-06 04:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185133', 'tblTempUsageDetail_20' ) end [2025-01-06 04:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:32:21] Production.INFO: ==6930== Releasing lock... [2025-01-06 04:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:32:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:33:05 [end_date_ymd] => 2025-01-06 04:33:05 [RateCDR] => 1 ) [2025-01-06 04:33: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-01-06 01:33:05' and `end` < '2025-01-06 04:33: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-01-06 04:33:17] Production.INFO: count ==136 [2025-01-06 04:33:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:33:05 - End Time 2025-01-06 04:33:05 [2025-01-06 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185138', 'tblTempUsageDetail_20' ) start [2025-01-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185138', 'tblTempUsageDetail_20' ) end [2025-01-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185138', 'tblTempVendorCDR_20' ) start [2025-01-06 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185138', 'tblTempVendorCDR_20' ) end [2025-01-06 04:33:18] Production.INFO: ProcessCDR(1,14185138,1,1,2) [2025-01-06 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185138', 'tblTempUsageDetail_20' ) start [2025-01-06 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185138', 'tblTempUsageDetail_20' ) end [2025-01-06 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:33:21] Production.INFO: ==7042== Releasing lock... [2025-01-06 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:33:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:34:04 [end_date_ymd] => 2025-01-06 04:34:04 [RateCDR] => 1 ) [2025-01-06 04:34: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-01-06 01:34:04' and `end` < '2025-01-06 04:34: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-01-06 04:34:17] Production.INFO: count ==136 [2025-01-06 04:34:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:34:04 - End Time 2025-01-06 04:34:04 [2025-01-06 04:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185143', 'tblTempUsageDetail_20' ) start [2025-01-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185143', 'tblTempUsageDetail_20' ) end [2025-01-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185143', 'tblTempVendorCDR_20' ) start [2025-01-06 04:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185143', 'tblTempVendorCDR_20' ) end [2025-01-06 04:34:17] Production.INFO: ProcessCDR(1,14185143,1,1,2) [2025-01-06 04:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185143', 'tblTempUsageDetail_20' ) start [2025-01-06 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185143', 'tblTempUsageDetail_20' ) end [2025-01-06 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:34:20] Production.INFO: ==7184== Releasing lock... [2025-01-06 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:34:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:35:05 [end_date_ymd] => 2025-01-06 04:35:05 [RateCDR] => 1 ) [2025-01-06 04:35: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-01-06 01:35:05' and `end` < '2025-01-06 04:35: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-01-06 04:35:19] Production.INFO: count ==136 [2025-01-06 04:35:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:35:05 - End Time 2025-01-06 04:35:05 [2025-01-06 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185148', 'tblTempUsageDetail_20' ) start [2025-01-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185148', 'tblTempUsageDetail_20' ) end [2025-01-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185148', 'tblTempVendorCDR_20' ) start [2025-01-06 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185148', 'tblTempVendorCDR_20' ) end [2025-01-06 04:35:19] Production.INFO: ProcessCDR(1,14185148,1,1,2) [2025-01-06 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185148', 'tblTempUsageDetail_20' ) start [2025-01-06 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185148', 'tblTempUsageDetail_20' ) end [2025-01-06 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:35:22] Production.INFO: ==7290== Releasing lock... [2025-01-06 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:35:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:36:05 [end_date_ymd] => 2025-01-06 04:36:05 [RateCDR] => 1 ) [2025-01-06 04:36: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-01-06 01:36:05' and `end` < '2025-01-06 04:36: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-01-06 04:36:18] Production.INFO: count ==136 [2025-01-06 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:36:05 - End Time 2025-01-06 04:36:05 [2025-01-06 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185153', 'tblTempUsageDetail_20' ) start [2025-01-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185153', 'tblTempUsageDetail_20' ) end [2025-01-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185153', 'tblTempVendorCDR_20' ) start [2025-01-06 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185153', 'tblTempVendorCDR_20' ) end [2025-01-06 04:36:18] Production.INFO: ProcessCDR(1,14185153,1,1,2) [2025-01-06 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185153', 'tblTempUsageDetail_20' ) start [2025-01-06 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185153', 'tblTempUsageDetail_20' ) end [2025-01-06 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:36:21] Production.INFO: ==7401== Releasing lock... [2025-01-06 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:36:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:37:05 [end_date_ymd] => 2025-01-06 04:37:05 [RateCDR] => 1 ) [2025-01-06 04:37: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-01-06 01:37:05' and `end` < '2025-01-06 04:37: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-01-06 04:37:18] Production.INFO: count ==136 [2025-01-06 04:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:37:05 - End Time 2025-01-06 04:37:05 [2025-01-06 04:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185158', 'tblTempUsageDetail_20' ) start [2025-01-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185158', 'tblTempUsageDetail_20' ) end [2025-01-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185158', 'tblTempVendorCDR_20' ) start [2025-01-06 04:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185158', 'tblTempVendorCDR_20' ) end [2025-01-06 04:37:18] Production.INFO: ProcessCDR(1,14185158,1,1,2) [2025-01-06 04:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185158', 'tblTempUsageDetail_20' ) start [2025-01-06 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185158', 'tblTempUsageDetail_20' ) end [2025-01-06 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:37:21] Production.INFO: ==7512== Releasing lock... [2025-01-06 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:37:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:38:04 [end_date_ymd] => 2025-01-06 04:38:04 [RateCDR] => 1 ) [2025-01-06 04:38: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-01-06 01:38:04' and `end` < '2025-01-06 04:38: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-01-06 04:38:17] Production.INFO: count ==136 [2025-01-06 04:38:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:38:04 - End Time 2025-01-06 04:38:04 [2025-01-06 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185163', 'tblTempUsageDetail_20' ) start [2025-01-06 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185163', 'tblTempUsageDetail_20' ) end [2025-01-06 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185163', 'tblTempVendorCDR_20' ) start [2025-01-06 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185163', 'tblTempVendorCDR_20' ) end [2025-01-06 04:38:17] Production.INFO: ProcessCDR(1,14185163,1,1,2) [2025-01-06 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185163', 'tblTempUsageDetail_20' ) start [2025-01-06 04:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185163', 'tblTempUsageDetail_20' ) end [2025-01-06 04:38:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:38:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:38:20] Production.INFO: ==7607== Releasing lock... [2025-01-06 04:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:38:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:39:05 [end_date_ymd] => 2025-01-06 04:39:05 [RateCDR] => 1 ) [2025-01-06 04:39: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-01-06 01:39:05' and `end` < '2025-01-06 04:39: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-01-06 04:39:17] Production.INFO: count ==136 [2025-01-06 04:39:17] Production.ERROR: pbx CDR StartTime 2025-01-06 01:39:05 - End Time 2025-01-06 04:39:05 [2025-01-06 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185168', 'tblTempUsageDetail_20' ) start [2025-01-06 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185168', 'tblTempUsageDetail_20' ) end [2025-01-06 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185168', 'tblTempVendorCDR_20' ) start [2025-01-06 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185168', 'tblTempVendorCDR_20' ) end [2025-01-06 04:39:17] Production.INFO: ProcessCDR(1,14185168,1,1,2) [2025-01-06 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185168', 'tblTempUsageDetail_20' ) start [2025-01-06 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185168', 'tblTempUsageDetail_20' ) end [2025-01-06 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:39:21] Production.INFO: ==7705== Releasing lock... [2025-01-06 04:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:39:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:40:06 [end_date_ymd] => 2025-01-06 04:40:06 [RateCDR] => 1 ) [2025-01-06 04:40: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-01-06 01:40:06' and `end` < '2025-01-06 04:40: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-01-06 04:40:19] Production.INFO: count ==132 [2025-01-06 04:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:40:06 - End Time 2025-01-06 04:40:06 [2025-01-06 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185173', 'tblTempUsageDetail_20' ) start [2025-01-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185173', 'tblTempUsageDetail_20' ) end [2025-01-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185173', 'tblTempVendorCDR_20' ) start [2025-01-06 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185173', 'tblTempVendorCDR_20' ) end [2025-01-06 04:40:19] Production.INFO: ProcessCDR(1,14185173,1,1,2) [2025-01-06 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185173', 'tblTempUsageDetail_20' ) start [2025-01-06 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185173', 'tblTempUsageDetail_20' ) end [2025-01-06 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:40:22] Production.INFO: ==7809== Releasing lock... [2025-01-06 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:40:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:41:04 [end_date_ymd] => 2025-01-06 04:41:04 [RateCDR] => 1 ) [2025-01-06 04:41: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-01-06 01:41:04' and `end` < '2025-01-06 04:41: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-01-06 04:41:18] Production.INFO: count ==132 [2025-01-06 04:41:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:41:04 - End Time 2025-01-06 04:41:04 [2025-01-06 04:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185179', 'tblTempUsageDetail_20' ) start [2025-01-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185179', 'tblTempUsageDetail_20' ) end [2025-01-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185179', 'tblTempVendorCDR_20' ) start [2025-01-06 04:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185179', 'tblTempVendorCDR_20' ) end [2025-01-06 04:41:18] Production.INFO: ProcessCDR(1,14185179,1,1,2) [2025-01-06 04:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185179', 'tblTempUsageDetail_20' ) start [2025-01-06 04:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185179', 'tblTempUsageDetail_20' ) end [2025-01-06 04:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:41:21] Production.INFO: ==7903== Releasing lock... [2025-01-06 04:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:41:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:42:05 [end_date_ymd] => 2025-01-06 04:42:05 [RateCDR] => 1 ) [2025-01-06 04:42: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-01-06 01:42:05' and `end` < '2025-01-06 04:42: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-01-06 04:42:18] Production.INFO: count ==132 [2025-01-06 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:42:05 - End Time 2025-01-06 04:42:05 [2025-01-06 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185184', 'tblTempUsageDetail_20' ) start [2025-01-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185184', 'tblTempUsageDetail_20' ) end [2025-01-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185184', 'tblTempVendorCDR_20' ) start [2025-01-06 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185184', 'tblTempVendorCDR_20' ) end [2025-01-06 04:42:18] Production.INFO: ProcessCDR(1,14185184,1,1,2) [2025-01-06 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185184', 'tblTempUsageDetail_20' ) start [2025-01-06 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185184', 'tblTempUsageDetail_20' ) end [2025-01-06 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:42:21] Production.INFO: ==8000== Releasing lock... [2025-01-06 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:43:04 [end_date_ymd] => 2025-01-06 04:43:04 [RateCDR] => 1 ) [2025-01-06 04:43: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-01-06 01:43:04' and `end` < '2025-01-06 04:43: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-01-06 04:43:18] Production.INFO: count ==132 [2025-01-06 04:43:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:43:04 - End Time 2025-01-06 04:43:04 [2025-01-06 04:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185189', 'tblTempUsageDetail_20' ) start [2025-01-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185189', 'tblTempUsageDetail_20' ) end [2025-01-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185189', 'tblTempVendorCDR_20' ) start [2025-01-06 04:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185189', 'tblTempVendorCDR_20' ) end [2025-01-06 04:43:18] Production.INFO: ProcessCDR(1,14185189,1,1,2) [2025-01-06 04:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185189', 'tblTempUsageDetail_20' ) start [2025-01-06 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185189', 'tblTempUsageDetail_20' ) end [2025-01-06 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:43:21] Production.INFO: ==8095== Releasing lock... [2025-01-06 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:43:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:44:05 [end_date_ymd] => 2025-01-06 04:44:05 [RateCDR] => 1 ) [2025-01-06 04:44: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-01-06 01:44:05' and `end` < '2025-01-06 04:44: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-01-06 04:44:18] Production.INFO: count ==129 [2025-01-06 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:44:05 - End Time 2025-01-06 04:44:05 [2025-01-06 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185194', 'tblTempUsageDetail_20' ) start [2025-01-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185194', 'tblTempUsageDetail_20' ) end [2025-01-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185194', 'tblTempVendorCDR_20' ) start [2025-01-06 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185194', 'tblTempVendorCDR_20' ) end [2025-01-06 04:44:18] Production.INFO: ProcessCDR(1,14185194,1,1,2) [2025-01-06 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185194', 'tblTempUsageDetail_20' ) start [2025-01-06 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185194', 'tblTempUsageDetail_20' ) end [2025-01-06 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:44:21] Production.INFO: ==8188== Releasing lock... [2025-01-06 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:45:05 [end_date_ymd] => 2025-01-06 04:45:05 [RateCDR] => 1 ) [2025-01-06 04:45: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-01-06 01:45:05' and `end` < '2025-01-06 04:45: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-01-06 04:45:18] Production.INFO: count ==129 [2025-01-06 04:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 01:45:05 - End Time 2025-01-06 04:45:05 [2025-01-06 04:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185199', 'tblTempUsageDetail_20' ) start [2025-01-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185199', 'tblTempUsageDetail_20' ) end [2025-01-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185199', 'tblTempVendorCDR_20' ) start [2025-01-06 04:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185199', 'tblTempVendorCDR_20' ) end [2025-01-06 04:45:18] Production.INFO: ProcessCDR(1,14185199,1,1,2) [2025-01-06 04:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185199', 'tblTempUsageDetail_20' ) start [2025-01-06 04:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185199', 'tblTempUsageDetail_20' ) end [2025-01-06 04:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:45:21] Production.INFO: ==8271== Releasing lock... [2025-01-06 04:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:45:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:46:05 [end_date_ymd] => 2025-01-06 04:46:05 [RateCDR] => 1 ) [2025-01-06 04:46: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-01-06 01:46:05' and `end` < '2025-01-06 04:46: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-01-06 04:46:26] Production.INFO: count ==129 [2025-01-06 04:46:26] Production.ERROR: pbx CDR StartTime 2025-01-06 01:46:05 - End Time 2025-01-06 04:46:05 [2025-01-06 04:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185204', 'tblTempUsageDetail_20' ) start [2025-01-06 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185204', 'tblTempUsageDetail_20' ) end [2025-01-06 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185204', 'tblTempVendorCDR_20' ) start [2025-01-06 04:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185204', 'tblTempVendorCDR_20' ) end [2025-01-06 04:46:26] Production.INFO: ProcessCDR(1,14185204,1,1,2) [2025-01-06 04:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:46:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:46:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:46:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185204', 'tblTempUsageDetail_20' ) start [2025-01-06 04:46:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185204', 'tblTempUsageDetail_20' ) end [2025-01-06 04:46:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:46:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:46:29] Production.INFO: ==8364== Releasing lock... [2025-01-06 04:46:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:46:29] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:47:05 [end_date_ymd] => 2025-01-06 04:47:05 [RateCDR] => 1 ) [2025-01-06 04:47: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-01-06 01:47:05' and `end` < '2025-01-06 04:47: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-01-06 04:47:21] Production.INFO: count ==129 [2025-01-06 04:47:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:47:05 - End Time 2025-01-06 04:47:05 [2025-01-06 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185209', 'tblTempUsageDetail_20' ) start [2025-01-06 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185209', 'tblTempUsageDetail_20' ) end [2025-01-06 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185209', 'tblTempVendorCDR_20' ) start [2025-01-06 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185209', 'tblTempVendorCDR_20' ) end [2025-01-06 04:47:21] Production.INFO: ProcessCDR(1,14185209,1,1,2) [2025-01-06 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185209', 'tblTempUsageDetail_20' ) start [2025-01-06 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185209', 'tblTempUsageDetail_20' ) end [2025-01-06 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:47:24] Production.INFO: ==8448== Releasing lock... [2025-01-06 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:47:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:48:05 [end_date_ymd] => 2025-01-06 04:48:05 [RateCDR] => 1 ) [2025-01-06 04:48: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-01-06 01:48:05' and `end` < '2025-01-06 04:48: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-01-06 04:48:20] Production.INFO: count ==129 [2025-01-06 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-06 01:48:05 - End Time 2025-01-06 04:48:05 [2025-01-06 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185214', 'tblTempUsageDetail_20' ) start [2025-01-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185214', 'tblTempUsageDetail_20' ) end [2025-01-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185214', 'tblTempVendorCDR_20' ) start [2025-01-06 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185214', 'tblTempVendorCDR_20' ) end [2025-01-06 04:48:20] Production.INFO: ProcessCDR(1,14185214,1,1,2) [2025-01-06 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185214', 'tblTempUsageDetail_20' ) start [2025-01-06 04:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185214', 'tblTempUsageDetail_20' ) end [2025-01-06 04:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:48:24] Production.INFO: ==8554== Releasing lock... [2025-01-06 04:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:48:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:49:05 [end_date_ymd] => 2025-01-06 04:49:05 [RateCDR] => 1 ) [2025-01-06 04:49: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-01-06 01:49:05' and `end` < '2025-01-06 04:49: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-01-06 04:49:20] Production.INFO: count ==129 [2025-01-06 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-06 01:49:05 - End Time 2025-01-06 04:49:05 [2025-01-06 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185219', 'tblTempUsageDetail_20' ) start [2025-01-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185219', 'tblTempUsageDetail_20' ) end [2025-01-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185219', 'tblTempVendorCDR_20' ) start [2025-01-06 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185219', 'tblTempVendorCDR_20' ) end [2025-01-06 04:49:20] Production.INFO: ProcessCDR(1,14185219,1,1,2) [2025-01-06 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185219', 'tblTempUsageDetail_20' ) start [2025-01-06 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185219', 'tblTempUsageDetail_20' ) end [2025-01-06 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:49:23] Production.INFO: ==8680== Releasing lock... [2025-01-06 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:49:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 04:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:50:05 [end_date_ymd] => 2025-01-06 04:50:05 [RateCDR] => 1 ) [2025-01-06 04:50: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-01-06 01:50:05' and `end` < '2025-01-06 04:50: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-01-06 04:50:21] Production.INFO: count ==125 [2025-01-06 04:50:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:50:05 - End Time 2025-01-06 04:50:05 [2025-01-06 04:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185225', 'tblTempUsageDetail_20' ) start [2025-01-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185225', 'tblTempUsageDetail_20' ) end [2025-01-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185225', 'tblTempVendorCDR_20' ) start [2025-01-06 04:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185225', 'tblTempVendorCDR_20' ) end [2025-01-06 04:50:21] Production.INFO: ProcessCDR(1,14185225,1,1,2) [2025-01-06 04:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185225', 'tblTempUsageDetail_20' ) start [2025-01-06 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185225', 'tblTempUsageDetail_20' ) end [2025-01-06 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:50:25] Production.INFO: ==8827== Releasing lock... [2025-01-06 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:50:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:51:05 [end_date_ymd] => 2025-01-06 04:51:05 [RateCDR] => 1 ) [2025-01-06 04:51: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-01-06 01:51:05' and `end` < '2025-01-06 04:51: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-01-06 04:51:19] Production.INFO: count ==123 [2025-01-06 04:51:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:51:05 - End Time 2025-01-06 04:51:05 [2025-01-06 04:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185230', 'tblTempUsageDetail_20' ) start [2025-01-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185230', 'tblTempUsageDetail_20' ) end [2025-01-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185230', 'tblTempVendorCDR_20' ) start [2025-01-06 04:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185230', 'tblTempVendorCDR_20' ) end [2025-01-06 04:51:19] Production.INFO: ProcessCDR(1,14185230,1,1,2) [2025-01-06 04:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185230', 'tblTempUsageDetail_20' ) start [2025-01-06 04:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185230', 'tblTempUsageDetail_20' ) end [2025-01-06 04:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:51:22] Production.INFO: ==8905== Releasing lock... [2025-01-06 04:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:51:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:52:05 [end_date_ymd] => 2025-01-06 04:52:05 [RateCDR] => 1 ) [2025-01-06 04:52: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-01-06 01:52:05' and `end` < '2025-01-06 04:52: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-01-06 04:52:21] Production.INFO: count ==123 [2025-01-06 04:52:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:52:05 - End Time 2025-01-06 04:52:05 [2025-01-06 04:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185235', 'tblTempUsageDetail_20' ) start [2025-01-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185235', 'tblTempUsageDetail_20' ) end [2025-01-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185235', 'tblTempVendorCDR_20' ) start [2025-01-06 04:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185235', 'tblTempVendorCDR_20' ) end [2025-01-06 04:52:21] Production.INFO: ProcessCDR(1,14185235,1,1,2) [2025-01-06 04:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185235', 'tblTempUsageDetail_20' ) start [2025-01-06 04:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185235', 'tblTempUsageDetail_20' ) end [2025-01-06 04:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:52:24] Production.INFO: ==8989== Releasing lock... [2025-01-06 04:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:52:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:53:04 [end_date_ymd] => 2025-01-06 04:53:04 [RateCDR] => 1 ) [2025-01-06 04:53: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-01-06 01:53:04' and `end` < '2025-01-06 04:53: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-01-06 04:53:20] Production.INFO: count ==123 [2025-01-06 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-06 01:53:04 - End Time 2025-01-06 04:53:04 [2025-01-06 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185240', 'tblTempUsageDetail_20' ) start [2025-01-06 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185240', 'tblTempUsageDetail_20' ) end [2025-01-06 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185240', 'tblTempVendorCDR_20' ) start [2025-01-06 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185240', 'tblTempVendorCDR_20' ) end [2025-01-06 04:53:20] Production.INFO: ProcessCDR(1,14185240,1,1,2) [2025-01-06 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185240', 'tblTempUsageDetail_20' ) start [2025-01-06 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185240', 'tblTempUsageDetail_20' ) end [2025-01-06 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:53:23] Production.INFO: ==9061== Releasing lock... [2025-01-06 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:53:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:54:05 [end_date_ymd] => 2025-01-06 04:54:05 [RateCDR] => 1 ) [2025-01-06 04:54: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-01-06 01:54:05' and `end` < '2025-01-06 04:54: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-01-06 04:54:21] Production.INFO: count ==122 [2025-01-06 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:54:05 - End Time 2025-01-06 04:54:05 [2025-01-06 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185245', 'tblTempUsageDetail_20' ) start [2025-01-06 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185245', 'tblTempUsageDetail_20' ) end [2025-01-06 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185245', 'tblTempVendorCDR_20' ) start [2025-01-06 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185245', 'tblTempVendorCDR_20' ) end [2025-01-06 04:54:21] Production.INFO: ProcessCDR(1,14185245,1,1,2) [2025-01-06 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185245', 'tblTempUsageDetail_20' ) start [2025-01-06 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185245', 'tblTempUsageDetail_20' ) end [2025-01-06 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:54:24] Production.INFO: ==9141== Releasing lock... [2025-01-06 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:54:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:55:04 [end_date_ymd] => 2025-01-06 04:55:04 [RateCDR] => 1 ) [2025-01-06 04:55: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-01-06 01:55:04' and `end` < '2025-01-06 04:55: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-01-06 04:55:19] Production.INFO: count ==122 [2025-01-06 04:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 01:55:04 - End Time 2025-01-06 04:55:04 [2025-01-06 04:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185250', 'tblTempUsageDetail_20' ) start [2025-01-06 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185250', 'tblTempUsageDetail_20' ) end [2025-01-06 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185250', 'tblTempVendorCDR_20' ) start [2025-01-06 04:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185250', 'tblTempVendorCDR_20' ) end [2025-01-06 04:55:19] Production.INFO: ProcessCDR(1,14185250,1,1,2) [2025-01-06 04:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185250', 'tblTempUsageDetail_20' ) start [2025-01-06 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185250', 'tblTempUsageDetail_20' ) end [2025-01-06 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:55:22] Production.INFO: ==9219== Releasing lock... [2025-01-06 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:56:05 [end_date_ymd] => 2025-01-06 04:56:05 [RateCDR] => 1 ) [2025-01-06 04:56: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-01-06 01:56:05' and `end` < '2025-01-06 04:56: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-01-06 04:56:22] Production.INFO: count ==122 [2025-01-06 04:56:22] Production.ERROR: pbx CDR StartTime 2025-01-06 01:56:05 - End Time 2025-01-06 04:56:05 [2025-01-06 04:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185255', 'tblTempUsageDetail_20' ) start [2025-01-06 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185255', 'tblTempUsageDetail_20' ) end [2025-01-06 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185255', 'tblTempVendorCDR_20' ) start [2025-01-06 04:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185255', 'tblTempVendorCDR_20' ) end [2025-01-06 04:56:22] Production.INFO: ProcessCDR(1,14185255,1,1,2) [2025-01-06 04:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185255', 'tblTempUsageDetail_20' ) start [2025-01-06 04:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185255', 'tblTempUsageDetail_20' ) end [2025-01-06 04:56:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:56:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:56:25] Production.INFO: ==9296== Releasing lock... [2025-01-06 04:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:56:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:57:06 [end_date_ymd] => 2025-01-06 04:57:06 [RateCDR] => 1 ) [2025-01-06 04:57: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-01-06 01:57:06' and `end` < '2025-01-06 04:57: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-01-06 04:57:21] Production.INFO: count ==119 [2025-01-06 04:57:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:57:06 - End Time 2025-01-06 04:57:06 [2025-01-06 04:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185260', 'tblTempUsageDetail_20' ) start [2025-01-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185260', 'tblTempUsageDetail_20' ) end [2025-01-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185260', 'tblTempVendorCDR_20' ) start [2025-01-06 04:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185260', 'tblTempVendorCDR_20' ) end [2025-01-06 04:57:21] Production.INFO: ProcessCDR(1,14185260,1,1,2) [2025-01-06 04:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185260', 'tblTempUsageDetail_20' ) start [2025-01-06 04:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185260', 'tblTempUsageDetail_20' ) end [2025-01-06 04:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:57:25] Production.INFO: ==9383== Releasing lock... [2025-01-06 04:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:57:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:58:05 [end_date_ymd] => 2025-01-06 04:58:05 [RateCDR] => 1 ) [2025-01-06 04:58: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-01-06 01:58:05' and `end` < '2025-01-06 04:58: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-01-06 04:58:21] Production.INFO: count ==118 [2025-01-06 04:58:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:58:05 - End Time 2025-01-06 04:58:05 [2025-01-06 04:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185265', 'tblTempUsageDetail_20' ) start [2025-01-06 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185265', 'tblTempUsageDetail_20' ) end [2025-01-06 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185265', 'tblTempVendorCDR_20' ) start [2025-01-06 04:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185265', 'tblTempVendorCDR_20' ) end [2025-01-06 04:58:21] Production.INFO: ProcessCDR(1,14185265,1,1,2) [2025-01-06 04:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185265', 'tblTempUsageDetail_20' ) start [2025-01-06 04:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185265', 'tblTempUsageDetail_20' ) end [2025-01-06 04:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:58:24] Production.INFO: ==9461== Releasing lock... [2025-01-06 04:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:58:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 01:59:05 [end_date_ymd] => 2025-01-06 04:59:05 [RateCDR] => 1 ) [2025-01-06 04:59: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-01-06 01:59:05' and `end` < '2025-01-06 04:59: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-01-06 04:59:21] Production.INFO: count ==115 [2025-01-06 04:59:21] Production.ERROR: pbx CDR StartTime 2025-01-06 01:59:05 - End Time 2025-01-06 04:59:05 [2025-01-06 04:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185270', 'tblTempUsageDetail_20' ) start [2025-01-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185270', 'tblTempUsageDetail_20' ) end [2025-01-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185270', 'tblTempVendorCDR_20' ) start [2025-01-06 04:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185270', 'tblTempVendorCDR_20' ) end [2025-01-06 04:59:21] Production.INFO: ProcessCDR(1,14185270,1,1,2) [2025-01-06 04:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 04:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185270', 'tblTempUsageDetail_20' ) start [2025-01-06 04:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185270', 'tblTempUsageDetail_20' ) end [2025-01-06 04:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 04:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 04:59:24] Production.INFO: ==9538== Releasing lock... [2025-01-06 04:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 04:59:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:00:06 [end_date_ymd] => 2025-01-06 05:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 02:00:06' and `end` < '2025-01-06 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-01-06 05:00:22] Production.INFO: count ==106 [2025-01-06 05:00:22] Production.ERROR: pbx CDR StartTime 2025-01-06 02:00:06 - End Time 2025-01-06 05:00:06 [2025-01-06 05:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185276', 'tblTempUsageDetail_20' ) start [2025-01-06 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185276', 'tblTempUsageDetail_20' ) end [2025-01-06 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185276', 'tblTempVendorCDR_20' ) start [2025-01-06 05:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185276', 'tblTempVendorCDR_20' ) end [2025-01-06 05:00:22] Production.INFO: ProcessCDR(1,14185276,1,1,2) [2025-01-06 05:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185276', 'tblTempUsageDetail_20' ) start [2025-01-06 05:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185276', 'tblTempUsageDetail_20' ) end [2025-01-06 05:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:00:25] Production.INFO: ==9627== Releasing lock... [2025-01-06 05:00:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:00:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 05:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:01:06 [end_date_ymd] => 2025-01-06 05:01:06 [RateCDR] => 1 ) [2025-01-06 05:01: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-01-06 02:01:06' and `end` < '2025-01-06 05:01: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-01-06 05:01:20] Production.INFO: count ==88 [2025-01-06 05:01:20] Production.ERROR: pbx CDR StartTime 2025-01-06 02:01:06 - End Time 2025-01-06 05:01:06 [2025-01-06 05:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185281', 'tblTempUsageDetail_20' ) start [2025-01-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185281', 'tblTempUsageDetail_20' ) end [2025-01-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185281', 'tblTempVendorCDR_20' ) start [2025-01-06 05:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185281', 'tblTempVendorCDR_20' ) end [2025-01-06 05:01:20] Production.INFO: ProcessCDR(1,14185281,1,1,2) [2025-01-06 05:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185281', 'tblTempUsageDetail_20' ) start [2025-01-06 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185281', 'tblTempUsageDetail_20' ) end [2025-01-06 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:01:23] Production.INFO: ==9729== Releasing lock... [2025-01-06 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:01:23] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:02:06 [end_date_ymd] => 2025-01-06 05:02:06 [RateCDR] => 1 ) [2025-01-06 05:02: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-01-06 02:02:06' and `end` < '2025-01-06 05:02: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-01-06 05:02:20] Production.INFO: count ==87 [2025-01-06 05:02:20] Production.ERROR: pbx CDR StartTime 2025-01-06 02:02:06 - End Time 2025-01-06 05:02:06 [2025-01-06 05:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185286', 'tblTempUsageDetail_20' ) start [2025-01-06 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185286', 'tblTempUsageDetail_20' ) end [2025-01-06 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185286', 'tblTempVendorCDR_20' ) start [2025-01-06 05:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185286', 'tblTempVendorCDR_20' ) end [2025-01-06 05:02:20] Production.INFO: ProcessCDR(1,14185286,1,1,2) [2025-01-06 05:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185286', 'tblTempUsageDetail_20' ) start [2025-01-06 05:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185286', 'tblTempUsageDetail_20' ) end [2025-01-06 05:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:02:24] Production.INFO: ==9818== Releasing lock... [2025-01-06 05:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:02:24] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:03:05 [end_date_ymd] => 2025-01-06 05:03:05 [RateCDR] => 1 ) [2025-01-06 05:03: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-01-06 02:03:05' and `end` < '2025-01-06 05:03: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-01-06 05:03:18] Production.INFO: count ==84 [2025-01-06 05:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:03:05 - End Time 2025-01-06 05:03:05 [2025-01-06 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185291', 'tblTempUsageDetail_20' ) start [2025-01-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185291', 'tblTempUsageDetail_20' ) end [2025-01-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185291', 'tblTempVendorCDR_20' ) start [2025-01-06 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185291', 'tblTempVendorCDR_20' ) end [2025-01-06 05:03:18] Production.INFO: ProcessCDR(1,14185291,1,1,2) [2025-01-06 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185291', 'tblTempUsageDetail_20' ) start [2025-01-06 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185291', 'tblTempUsageDetail_20' ) end [2025-01-06 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:03:21] Production.INFO: ==9898== Releasing lock... [2025-01-06 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:03:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:04:05 [end_date_ymd] => 2025-01-06 05:04:05 [RateCDR] => 1 ) [2025-01-06 05:04: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-01-06 02:04:05' and `end` < '2025-01-06 05:04: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-01-06 05:04:19] Production.INFO: count ==84 [2025-01-06 05:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:04:05 - End Time 2025-01-06 05:04:05 [2025-01-06 05:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185296', 'tblTempUsageDetail_20' ) start [2025-01-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185296', 'tblTempUsageDetail_20' ) end [2025-01-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185296', 'tblTempVendorCDR_20' ) start [2025-01-06 05:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185296', 'tblTempVendorCDR_20' ) end [2025-01-06 05:04:19] Production.INFO: ProcessCDR(1,14185296,1,1,2) [2025-01-06 05:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185296', 'tblTempUsageDetail_20' ) start [2025-01-06 05:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185296', 'tblTempUsageDetail_20' ) end [2025-01-06 05:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:04:22] Production.INFO: ==9984== Releasing lock... [2025-01-06 05:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:04:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:05:05 [end_date_ymd] => 2025-01-06 05:05:05 [RateCDR] => 1 ) [2025-01-06 05:05: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-01-06 02:05:05' and `end` < '2025-01-06 05:05: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-01-06 05:05:18] Production.INFO: count ==81 [2025-01-06 05:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:05:05 - End Time 2025-01-06 05:05:05 [2025-01-06 05:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185301', 'tblTempUsageDetail_20' ) start [2025-01-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185301', 'tblTempUsageDetail_20' ) end [2025-01-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185301', 'tblTempVendorCDR_20' ) start [2025-01-06 05:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185301', 'tblTempVendorCDR_20' ) end [2025-01-06 05:05:18] Production.INFO: ProcessCDR(1,14185301,1,1,2) [2025-01-06 05:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185301', 'tblTempUsageDetail_20' ) start [2025-01-06 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185301', 'tblTempUsageDetail_20' ) end [2025-01-06 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:05:21] Production.INFO: ==10071== Releasing lock... [2025-01-06 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:05:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:06:05 [end_date_ymd] => 2025-01-06 05:06:05 [RateCDR] => 1 ) [2025-01-06 05:06: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-01-06 02:06:05' and `end` < '2025-01-06 05:06: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-01-06 05:06:47] Production.INFO: count ==79 [2025-01-06 05:06:47] Production.ERROR: pbx CDR StartTime 2025-01-06 02:06:05 - End Time 2025-01-06 05:06:05 [2025-01-06 05:06:47] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:06:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185306', 'tblTempUsageDetail_20' ) start [2025-01-06 05:06:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185306', 'tblTempUsageDetail_20' ) end [2025-01-06 05:06:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185306', 'tblTempVendorCDR_20' ) start [2025-01-06 05:06:47] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185306', 'tblTempVendorCDR_20' ) end [2025-01-06 05:06:47] Production.INFO: ProcessCDR(1,14185306,1,1,2) [2025-01-06 05:06:47] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:06:48] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:06:48] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:06:51] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185306', 'tblTempUsageDetail_20' ) start [2025-01-06 05:06:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185306', 'tblTempUsageDetail_20' ) end [2025-01-06 05:06:51] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:06:51] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:06:51] Production.INFO: ==10196== Releasing lock... [2025-01-06 05:06:51] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:06:51] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:07:05 [end_date_ymd] => 2025-01-06 05:07:05 [RateCDR] => 1 ) [2025-01-06 05:07: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-01-06 02:07:05' and `end` < '2025-01-06 05:07: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-01-06 05:07:21] Production.INFO: count ==78 [2025-01-06 05:07:21] Production.ERROR: pbx CDR StartTime 2025-01-06 02:07:05 - End Time 2025-01-06 05:07:05 [2025-01-06 05:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185311', 'tblTempUsageDetail_20' ) start [2025-01-06 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185311', 'tblTempUsageDetail_20' ) end [2025-01-06 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185311', 'tblTempVendorCDR_20' ) start [2025-01-06 05:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185311', 'tblTempVendorCDR_20' ) end [2025-01-06 05:07:21] Production.INFO: ProcessCDR(1,14185311,1,1,2) [2025-01-06 05:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185311', 'tblTempUsageDetail_20' ) start [2025-01-06 05:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185311', 'tblTempUsageDetail_20' ) end [2025-01-06 05:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:07:24] Production.INFO: ==10275== Releasing lock... [2025-01-06 05:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:07:24] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:08:05 [end_date_ymd] => 2025-01-06 05:08:05 [RateCDR] => 1 ) [2025-01-06 05:08: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-01-06 02:08:05' and `end` < '2025-01-06 05:08: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-01-06 05:08:18] Production.INFO: count ==78 [2025-01-06 05:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:08:05 - End Time 2025-01-06 05:08:05 [2025-01-06 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185316', 'tblTempUsageDetail_20' ) start [2025-01-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185316', 'tblTempUsageDetail_20' ) end [2025-01-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185316', 'tblTempVendorCDR_20' ) start [2025-01-06 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185316', 'tblTempVendorCDR_20' ) end [2025-01-06 05:08:18] Production.INFO: ProcessCDR(1,14185316,1,1,2) [2025-01-06 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185316', 'tblTempUsageDetail_20' ) start [2025-01-06 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185316', 'tblTempUsageDetail_20' ) end [2025-01-06 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:08:21] Production.INFO: ==10348== Releasing lock... [2025-01-06 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:08:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:09:05 [end_date_ymd] => 2025-01-06 05:09:05 [RateCDR] => 1 ) [2025-01-06 05:09: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-01-06 02:09:05' and `end` < '2025-01-06 05:09: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-01-06 05:09:19] Production.INFO: count ==78 [2025-01-06 05:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:09:05 - End Time 2025-01-06 05:09:05 [2025-01-06 05:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185321', 'tblTempUsageDetail_20' ) start [2025-01-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185321', 'tblTempUsageDetail_20' ) end [2025-01-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185321', 'tblTempVendorCDR_20' ) start [2025-01-06 05:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185321', 'tblTempVendorCDR_20' ) end [2025-01-06 05:09:19] Production.INFO: ProcessCDR(1,14185321,1,1,2) [2025-01-06 05:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185321', 'tblTempUsageDetail_20' ) start [2025-01-06 05:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185321', 'tblTempUsageDetail_20' ) end [2025-01-06 05:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:09:22] Production.INFO: ==10424== Releasing lock... [2025-01-06 05:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:09:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:10:05 [end_date_ymd] => 2025-01-06 05:10:05 [RateCDR] => 1 ) [2025-01-06 05:10: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-01-06 02:10:05' and `end` < '2025-01-06 05:10: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-01-06 05:10:19] Production.INFO: count ==74 [2025-01-06 05:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:10:05 - End Time 2025-01-06 05:10:05 [2025-01-06 05:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185327', 'tblTempUsageDetail_20' ) start [2025-01-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185327', 'tblTempUsageDetail_20' ) end [2025-01-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185327', 'tblTempVendorCDR_20' ) start [2025-01-06 05:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185327', 'tblTempVendorCDR_20' ) end [2025-01-06 05:10:19] Production.INFO: ProcessCDR(1,14185327,1,1,2) [2025-01-06 05:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185327', 'tblTempUsageDetail_20' ) start [2025-01-06 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185327', 'tblTempUsageDetail_20' ) end [2025-01-06 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:10:22] Production.INFO: ==10498== Releasing lock... [2025-01-06 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:10:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:11:05 [end_date_ymd] => 2025-01-06 05:11:05 [RateCDR] => 1 ) [2025-01-06 05:11: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-01-06 02:11:05' and `end` < '2025-01-06 05:11: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-01-06 05:11:18] Production.INFO: count ==68 [2025-01-06 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:11:05 - End Time 2025-01-06 05:11:05 [2025-01-06 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185332', 'tblTempUsageDetail_20' ) start [2025-01-06 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185332', 'tblTempUsageDetail_20' ) end [2025-01-06 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185332', 'tblTempVendorCDR_20' ) start [2025-01-06 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185332', 'tblTempVendorCDR_20' ) end [2025-01-06 05:11:18] Production.INFO: ProcessCDR(1,14185332,1,1,2) [2025-01-06 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185332', 'tblTempUsageDetail_20' ) start [2025-01-06 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185332', 'tblTempUsageDetail_20' ) end [2025-01-06 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:11:21] Production.INFO: ==10573== Releasing lock... [2025-01-06 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:12:05 [end_date_ymd] => 2025-01-06 05:12:05 [RateCDR] => 1 ) [2025-01-06 05:12: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-01-06 02:12:05' and `end` < '2025-01-06 05:12: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-01-06 05:12:18] Production.INFO: count ==68 [2025-01-06 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:12:05 - End Time 2025-01-06 05:12:05 [2025-01-06 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185337', 'tblTempUsageDetail_20' ) start [2025-01-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185337', 'tblTempUsageDetail_20' ) end [2025-01-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185337', 'tblTempVendorCDR_20' ) start [2025-01-06 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185337', 'tblTempVendorCDR_20' ) end [2025-01-06 05:12:18] Production.INFO: ProcessCDR(1,14185337,1,1,2) [2025-01-06 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185337', 'tblTempUsageDetail_20' ) start [2025-01-06 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185337', 'tblTempUsageDetail_20' ) end [2025-01-06 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:12:21] Production.INFO: ==10648== Releasing lock... [2025-01-06 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:12:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:13:05 [end_date_ymd] => 2025-01-06 05:13:05 [RateCDR] => 1 ) [2025-01-06 05:13: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-01-06 02:13:05' and `end` < '2025-01-06 05:13: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-01-06 05:13:19] Production.INFO: count ==68 [2025-01-06 05:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:13:05 - End Time 2025-01-06 05:13:05 [2025-01-06 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185342', 'tblTempUsageDetail_20' ) start [2025-01-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185342', 'tblTempUsageDetail_20' ) end [2025-01-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185342', 'tblTempVendorCDR_20' ) start [2025-01-06 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185342', 'tblTempVendorCDR_20' ) end [2025-01-06 05:13:19] Production.INFO: ProcessCDR(1,14185342,1,1,2) [2025-01-06 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185342', 'tblTempUsageDetail_20' ) start [2025-01-06 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185342', 'tblTempUsageDetail_20' ) end [2025-01-06 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:13:22] Production.INFO: ==10736== Releasing lock... [2025-01-06 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:13:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:14:05 [end_date_ymd] => 2025-01-06 05:14:05 [RateCDR] => 1 ) [2025-01-06 05:14: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-01-06 02:14:05' and `end` < '2025-01-06 05:14: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-01-06 05:14:19] Production.INFO: count ==68 [2025-01-06 05:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:14:05 - End Time 2025-01-06 05:14:05 [2025-01-06 05:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185347', 'tblTempUsageDetail_20' ) start [2025-01-06 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185347', 'tblTempUsageDetail_20' ) end [2025-01-06 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185347', 'tblTempVendorCDR_20' ) start [2025-01-06 05:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185347', 'tblTempVendorCDR_20' ) end [2025-01-06 05:14:19] Production.INFO: ProcessCDR(1,14185347,1,1,2) [2025-01-06 05:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185347', 'tblTempUsageDetail_20' ) start [2025-01-06 05:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185347', 'tblTempUsageDetail_20' ) end [2025-01-06 05:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:14:23] Production.INFO: ==10837== Releasing lock... [2025-01-06 05:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:14:23] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:15:05 [end_date_ymd] => 2025-01-06 05:15:05 [RateCDR] => 1 ) [2025-01-06 05:15: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-01-06 02:15:05' and `end` < '2025-01-06 05:15: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-01-06 05:15:19] Production.INFO: count ==68 [2025-01-06 05:15:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:15:05 - End Time 2025-01-06 05:15:05 [2025-01-06 05:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185352', 'tblTempUsageDetail_20' ) start [2025-01-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185352', 'tblTempUsageDetail_20' ) end [2025-01-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185352', 'tblTempVendorCDR_20' ) start [2025-01-06 05:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185352', 'tblTempVendorCDR_20' ) end [2025-01-06 05:15:19] Production.INFO: ProcessCDR(1,14185352,1,1,2) [2025-01-06 05:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185352', 'tblTempUsageDetail_20' ) start [2025-01-06 05:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185352', 'tblTempUsageDetail_20' ) end [2025-01-06 05:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:15:22] Production.INFO: ==10940== Releasing lock... [2025-01-06 05:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:15:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:16:05 [end_date_ymd] => 2025-01-06 05:16:05 [RateCDR] => 1 ) [2025-01-06 05:16: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-01-06 02:16:05' and `end` < '2025-01-06 05:16: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-01-06 05:16:19] Production.INFO: count ==68 [2025-01-06 05:16:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:16:05 - End Time 2025-01-06 05:16:05 [2025-01-06 05:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185357', 'tblTempUsageDetail_20' ) start [2025-01-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185357', 'tblTempUsageDetail_20' ) end [2025-01-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185357', 'tblTempVendorCDR_20' ) start [2025-01-06 05:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185357', 'tblTempVendorCDR_20' ) end [2025-01-06 05:16:19] Production.INFO: ProcessCDR(1,14185357,1,1,2) [2025-01-06 05:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185357', 'tblTempUsageDetail_20' ) start [2025-01-06 05:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185357', 'tblTempUsageDetail_20' ) end [2025-01-06 05:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:16:22] Production.INFO: ==11045== Releasing lock... [2025-01-06 05:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:16:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:17:05 [end_date_ymd] => 2025-01-06 05:17:05 [RateCDR] => 1 ) [2025-01-06 05:17: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-01-06 02:17:05' and `end` < '2025-01-06 05:17: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-01-06 05:17:18] Production.INFO: count ==68 [2025-01-06 05:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:17:05 - End Time 2025-01-06 05:17:05 [2025-01-06 05:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185362', 'tblTempUsageDetail_20' ) start [2025-01-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185362', 'tblTempUsageDetail_20' ) end [2025-01-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185362', 'tblTempVendorCDR_20' ) start [2025-01-06 05:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185362', 'tblTempVendorCDR_20' ) end [2025-01-06 05:17:18] Production.INFO: ProcessCDR(1,14185362,1,1,2) [2025-01-06 05:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185362', 'tblTempUsageDetail_20' ) start [2025-01-06 05:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185362', 'tblTempUsageDetail_20' ) end [2025-01-06 05:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:17:22] Production.INFO: ==11149== Releasing lock... [2025-01-06 05:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:17:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:18:05 [end_date_ymd] => 2025-01-06 05:18:05 [RateCDR] => 1 ) [2025-01-06 05:18: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-01-06 02:18:05' and `end` < '2025-01-06 05:18: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-01-06 05:18:19] Production.INFO: count ==68 [2025-01-06 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:18:05 - End Time 2025-01-06 05:18:05 [2025-01-06 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185367', 'tblTempUsageDetail_20' ) start [2025-01-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185367', 'tblTempUsageDetail_20' ) end [2025-01-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185367', 'tblTempVendorCDR_20' ) start [2025-01-06 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185367', 'tblTempVendorCDR_20' ) end [2025-01-06 05:18:19] Production.INFO: ProcessCDR(1,14185367,1,1,2) [2025-01-06 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185367', 'tblTempUsageDetail_20' ) start [2025-01-06 05:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185367', 'tblTempUsageDetail_20' ) end [2025-01-06 05:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:18:22] Production.INFO: ==11254== Releasing lock... [2025-01-06 05:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:19:05 [end_date_ymd] => 2025-01-06 05:19:05 [RateCDR] => 1 ) [2025-01-06 05:19: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-01-06 02:19:05' and `end` < '2025-01-06 05:19: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-01-06 05:19:18] Production.INFO: count ==68 [2025-01-06 05:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:19:05 - End Time 2025-01-06 05:19:05 [2025-01-06 05:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185372', 'tblTempUsageDetail_20' ) start [2025-01-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185372', 'tblTempUsageDetail_20' ) end [2025-01-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185372', 'tblTempVendorCDR_20' ) start [2025-01-06 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185372', 'tblTempVendorCDR_20' ) end [2025-01-06 05:19:18] Production.INFO: ProcessCDR(1,14185372,1,1,2) [2025-01-06 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185372', 'tblTempUsageDetail_20' ) start [2025-01-06 05:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185372', 'tblTempUsageDetail_20' ) end [2025-01-06 05:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:19:22] Production.INFO: ==11367== Releasing lock... [2025-01-06 05:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:19:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:20:05 [end_date_ymd] => 2025-01-06 05:20:05 [RateCDR] => 1 ) [2025-01-06 05:20: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-01-06 02:20:05' and `end` < '2025-01-06 05:20: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-01-06 05:20:19] Production.INFO: count ==63 [2025-01-06 05:20:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:20:05 - End Time 2025-01-06 05:20:05 [2025-01-06 05:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185377', 'tblTempUsageDetail_20' ) start [2025-01-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185377', 'tblTempUsageDetail_20' ) end [2025-01-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185377', 'tblTempVendorCDR_20' ) start [2025-01-06 05:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185377', 'tblTempVendorCDR_20' ) end [2025-01-06 05:20:19] Production.INFO: ProcessCDR(1,14185377,1,1,2) [2025-01-06 05:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185377', 'tblTempUsageDetail_20' ) start [2025-01-06 05:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185377', 'tblTempUsageDetail_20' ) end [2025-01-06 05:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:20:23] Production.INFO: ==11470== Releasing lock... [2025-01-06 05:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:20:23] Production.INFO: 28 MB #Memory Used# [2025-01-06 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:21:05 [end_date_ymd] => 2025-01-06 05:21:05 [RateCDR] => 1 ) [2025-01-06 05:21: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-01-06 02:21:05' and `end` < '2025-01-06 05:21: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-01-06 05:21:18] Production.INFO: count ==47 [2025-01-06 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:21:05 - End Time 2025-01-06 05:21:05 [2025-01-06 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185383', 'tblTempUsageDetail_20' ) start [2025-01-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185383', 'tblTempUsageDetail_20' ) end [2025-01-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185383', 'tblTempVendorCDR_20' ) start [2025-01-06 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185383', 'tblTempVendorCDR_20' ) end [2025-01-06 05:21:18] Production.INFO: ProcessCDR(1,14185383,1,1,2) [2025-01-06 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185383', 'tblTempUsageDetail_20' ) start [2025-01-06 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185383', 'tblTempUsageDetail_20' ) end [2025-01-06 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:21:21] Production.INFO: ==11617== Releasing lock... [2025-01-06 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:21:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:22:05 [end_date_ymd] => 2025-01-06 05:22:05 [RateCDR] => 1 ) [2025-01-06 05:22: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-01-06 02:22:05' and `end` < '2025-01-06 05:22: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-01-06 05:22:18] Production.INFO: count ==47 [2025-01-06 05:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:22:05 - End Time 2025-01-06 05:22:05 [2025-01-06 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185388', 'tblTempUsageDetail_20' ) start [2025-01-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185388', 'tblTempUsageDetail_20' ) end [2025-01-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185388', 'tblTempVendorCDR_20' ) start [2025-01-06 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185388', 'tblTempVendorCDR_20' ) end [2025-01-06 05:22:18] Production.INFO: ProcessCDR(1,14185388,1,1,2) [2025-01-06 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185388', 'tblTempUsageDetail_20' ) start [2025-01-06 05:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185388', 'tblTempUsageDetail_20' ) end [2025-01-06 05:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:22:22] Production.INFO: ==11717== Releasing lock... [2025-01-06 05:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:22:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:23:06 [end_date_ymd] => 2025-01-06 05:23:06 [RateCDR] => 1 ) [2025-01-06 05:23: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-01-06 02:23:06' and `end` < '2025-01-06 05:23: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-01-06 05:23:18] Production.INFO: count ==46 [2025-01-06 05:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:23:06 - End Time 2025-01-06 05:23:06 [2025-01-06 05:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185393', 'tblTempUsageDetail_20' ) start [2025-01-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185393', 'tblTempUsageDetail_20' ) end [2025-01-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185393', 'tblTempVendorCDR_20' ) start [2025-01-06 05:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185393', 'tblTempVendorCDR_20' ) end [2025-01-06 05:23:18] Production.INFO: ProcessCDR(1,14185393,1,1,2) [2025-01-06 05:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185393', 'tblTempUsageDetail_20' ) start [2025-01-06 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185393', 'tblTempUsageDetail_20' ) end [2025-01-06 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:23:21] Production.INFO: ==11819== Releasing lock... [2025-01-06 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:23:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:24:05 [end_date_ymd] => 2025-01-06 05:24:05 [RateCDR] => 1 ) [2025-01-06 05:24: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-01-06 02:24:05' and `end` < '2025-01-06 05:24: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-01-06 05:24:18] Production.INFO: count ==46 [2025-01-06 05:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:24:05 - End Time 2025-01-06 05:24:05 [2025-01-06 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185398', 'tblTempUsageDetail_20' ) start [2025-01-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185398', 'tblTempUsageDetail_20' ) end [2025-01-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185398', 'tblTempVendorCDR_20' ) start [2025-01-06 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185398', 'tblTempVendorCDR_20' ) end [2025-01-06 05:24:18] Production.INFO: ProcessCDR(1,14185398,1,1,2) [2025-01-06 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185398', 'tblTempUsageDetail_20' ) start [2025-01-06 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185398', 'tblTempUsageDetail_20' ) end [2025-01-06 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:24:22] Production.INFO: ==11920== Releasing lock... [2025-01-06 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:24:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:25:06 [end_date_ymd] => 2025-01-06 05:25:06 [RateCDR] => 1 ) [2025-01-06 05: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-01-06 02:25:06' and `end` < '2025-01-06 05: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-01-06 05:25:18] Production.INFO: count ==46 [2025-01-06 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:25:06 - End Time 2025-01-06 05:25:06 [2025-01-06 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185403', 'tblTempUsageDetail_20' ) start [2025-01-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185403', 'tblTempUsageDetail_20' ) end [2025-01-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185403', 'tblTempVendorCDR_20' ) start [2025-01-06 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185403', 'tblTempVendorCDR_20' ) end [2025-01-06 05:25:18] Production.INFO: ProcessCDR(1,14185403,1,1,2) [2025-01-06 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185403', 'tblTempUsageDetail_20' ) start [2025-01-06 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185403', 'tblTempUsageDetail_20' ) end [2025-01-06 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:25:21] Production.INFO: ==12022== Releasing lock... [2025-01-06 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:26:05 [end_date_ymd] => 2025-01-06 05:26:05 [RateCDR] => 1 ) [2025-01-06 05:26: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-01-06 02:26:05' and `end` < '2025-01-06 05:26: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-01-06 05:26:18] Production.INFO: count ==46 [2025-01-06 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:26:05 - End Time 2025-01-06 05:26:05 [2025-01-06 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185408', 'tblTempUsageDetail_20' ) start [2025-01-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185408', 'tblTempUsageDetail_20' ) end [2025-01-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185408', 'tblTempVendorCDR_20' ) start [2025-01-06 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185408', 'tblTempVendorCDR_20' ) end [2025-01-06 05:26:18] Production.INFO: ProcessCDR(1,14185408,1,1,2) [2025-01-06 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185408', 'tblTempUsageDetail_20' ) start [2025-01-06 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185408', 'tblTempUsageDetail_20' ) end [2025-01-06 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:26:22] Production.INFO: ==12119== Releasing lock... [2025-01-06 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:26:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:27:05 [end_date_ymd] => 2025-01-06 05:27:05 [RateCDR] => 1 ) [2025-01-06 05:27: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-01-06 02:27:05' and `end` < '2025-01-06 05:27: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-01-06 05:27:19] Production.INFO: count ==46 [2025-01-06 05:27:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:27:05 - End Time 2025-01-06 05:27:05 [2025-01-06 05:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185413', 'tblTempUsageDetail_20' ) start [2025-01-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185413', 'tblTempUsageDetail_20' ) end [2025-01-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185413', 'tblTempVendorCDR_20' ) start [2025-01-06 05:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185413', 'tblTempVendorCDR_20' ) end [2025-01-06 05:27:19] Production.INFO: ProcessCDR(1,14185413,1,1,2) [2025-01-06 05:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185413', 'tblTempUsageDetail_20' ) start [2025-01-06 05:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185413', 'tblTempUsageDetail_20' ) end [2025-01-06 05:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:27:22] Production.INFO: ==12225== Releasing lock... [2025-01-06 05:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:27:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:28:04 [end_date_ymd] => 2025-01-06 05:28:04 [RateCDR] => 1 ) [2025-01-06 05:28: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-01-06 02:28:04' and `end` < '2025-01-06 05:28: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-01-06 05:28:17] Production.INFO: count ==46 [2025-01-06 05:28:17] Production.ERROR: pbx CDR StartTime 2025-01-06 02:28:04 - End Time 2025-01-06 05:28:04 [2025-01-06 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185418', 'tblTempUsageDetail_20' ) start [2025-01-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185418', 'tblTempUsageDetail_20' ) end [2025-01-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185418', 'tblTempVendorCDR_20' ) start [2025-01-06 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185418', 'tblTempVendorCDR_20' ) end [2025-01-06 05:28:17] Production.INFO: ProcessCDR(1,14185418,1,1,2) [2025-01-06 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185418', 'tblTempUsageDetail_20' ) start [2025-01-06 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185418', 'tblTempUsageDetail_20' ) end [2025-01-06 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:28:20] Production.INFO: ==12330== Releasing lock... [2025-01-06 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:28:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:29:05 [end_date_ymd] => 2025-01-06 05:29:05 [RateCDR] => 1 ) [2025-01-06 05:29: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-01-06 02:29:05' and `end` < '2025-01-06 05:29: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-01-06 05:29:18] Production.INFO: count ==46 [2025-01-06 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:29:05 - End Time 2025-01-06 05:29:05 [2025-01-06 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185423', 'tblTempUsageDetail_20' ) start [2025-01-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185423', 'tblTempUsageDetail_20' ) end [2025-01-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185423', 'tblTempVendorCDR_20' ) start [2025-01-06 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185423', 'tblTempVendorCDR_20' ) end [2025-01-06 05:29:18] Production.INFO: ProcessCDR(1,14185423,1,1,2) [2025-01-06 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185423', 'tblTempUsageDetail_20' ) start [2025-01-06 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185423', 'tblTempUsageDetail_20' ) end [2025-01-06 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:29:21] Production.INFO: ==12431== Releasing lock... [2025-01-06 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:30:06 [end_date_ymd] => 2025-01-06 05:30:06 [RateCDR] => 1 ) [2025-01-06 05:30: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-01-06 02:30:06' and `end` < '2025-01-06 05:30: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-01-06 05:30:19] Production.INFO: count ==42 [2025-01-06 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:30:06 - End Time 2025-01-06 05:30:06 [2025-01-06 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185429', 'tblTempUsageDetail_20' ) start [2025-01-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185429', 'tblTempUsageDetail_20' ) end [2025-01-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185429', 'tblTempVendorCDR_20' ) start [2025-01-06 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185429', 'tblTempVendorCDR_20' ) end [2025-01-06 05:30:19] Production.INFO: ProcessCDR(1,14185429,1,1,2) [2025-01-06 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185429', 'tblTempUsageDetail_20' ) start [2025-01-06 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185429', 'tblTempUsageDetail_20' ) end [2025-01-06 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:30:22] Production.INFO: ==12537== Releasing lock... [2025-01-06 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:30:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:31:05 [end_date_ymd] => 2025-01-06 05:31:05 [RateCDR] => 1 ) [2025-01-06 05:31: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-01-06 02:31:05' and `end` < '2025-01-06 05:31: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-01-06 05:31:18] Production.INFO: count ==42 [2025-01-06 05:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:31:05 - End Time 2025-01-06 05:31:05 [2025-01-06 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185434', 'tblTempUsageDetail_20' ) start [2025-01-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185434', 'tblTempUsageDetail_20' ) end [2025-01-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185434', 'tblTempVendorCDR_20' ) start [2025-01-06 05:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185434', 'tblTempVendorCDR_20' ) end [2025-01-06 05:31:19] Production.INFO: ProcessCDR(1,14185434,1,1,2) [2025-01-06 05:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185434', 'tblTempUsageDetail_20' ) start [2025-01-06 05:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185434', 'tblTempUsageDetail_20' ) end [2025-01-06 05:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:31:22] Production.INFO: ==12643== Releasing lock... [2025-01-06 05:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:32:05 [end_date_ymd] => 2025-01-06 05:32:05 [RateCDR] => 1 ) [2025-01-06 05:32: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-01-06 02:32:05' and `end` < '2025-01-06 05:32: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-01-06 05:32:18] Production.INFO: count ==42 [2025-01-06 05:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:32:05 - End Time 2025-01-06 05:32:05 [2025-01-06 05:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185439', 'tblTempUsageDetail_20' ) start [2025-01-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185439', 'tblTempUsageDetail_20' ) end [2025-01-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185439', 'tblTempVendorCDR_20' ) start [2025-01-06 05:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185439', 'tblTempVendorCDR_20' ) end [2025-01-06 05:32:18] Production.INFO: ProcessCDR(1,14185439,1,1,2) [2025-01-06 05:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185439', 'tblTempUsageDetail_20' ) start [2025-01-06 05:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185439', 'tblTempUsageDetail_20' ) end [2025-01-06 05:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:32:21] Production.INFO: ==12749== Releasing lock... [2025-01-06 05:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:33:05 [end_date_ymd] => 2025-01-06 05:33:05 [RateCDR] => 1 ) [2025-01-06 05:33: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-01-06 02:33:05' and `end` < '2025-01-06 05:33: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-01-06 05:33:18] Production.INFO: count ==42 [2025-01-06 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:33:05 - End Time 2025-01-06 05:33:05 [2025-01-06 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185444', 'tblTempUsageDetail_20' ) start [2025-01-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185444', 'tblTempUsageDetail_20' ) end [2025-01-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185444', 'tblTempVendorCDR_20' ) start [2025-01-06 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185444', 'tblTempVendorCDR_20' ) end [2025-01-06 05:33:18] Production.INFO: ProcessCDR(1,14185444,1,1,2) [2025-01-06 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185444', 'tblTempUsageDetail_20' ) start [2025-01-06 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185444', 'tblTempUsageDetail_20' ) end [2025-01-06 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:33:21] Production.INFO: ==12853== Releasing lock... [2025-01-06 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:33:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:34:06 [end_date_ymd] => 2025-01-06 05:34:06 [RateCDR] => 1 ) [2025-01-06 05:34: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-01-06 02:34:06' and `end` < '2025-01-06 05:34: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-01-06 05:34:19] Production.INFO: count ==42 [2025-01-06 05:34:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:34:06 - End Time 2025-01-06 05:34:06 [2025-01-06 05:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185449', 'tblTempUsageDetail_20' ) start [2025-01-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185449', 'tblTempUsageDetail_20' ) end [2025-01-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185449', 'tblTempVendorCDR_20' ) start [2025-01-06 05:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185449', 'tblTempVendorCDR_20' ) end [2025-01-06 05:34:19] Production.INFO: ProcessCDR(1,14185449,1,1,2) [2025-01-06 05:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185449', 'tblTempUsageDetail_20' ) start [2025-01-06 05:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185449', 'tblTempUsageDetail_20' ) end [2025-01-06 05:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:34:23] Production.INFO: ==12956== Releasing lock... [2025-01-06 05:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:34:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:35:05 [end_date_ymd] => 2025-01-06 05:35:05 [RateCDR] => 1 ) [2025-01-06 05:35: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-01-06 02:35:05' and `end` < '2025-01-06 05:35: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-01-06 05:35:18] Production.INFO: count ==42 [2025-01-06 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:35:05 - End Time 2025-01-06 05:35:05 [2025-01-06 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185454', 'tblTempUsageDetail_20' ) start [2025-01-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185454', 'tblTempUsageDetail_20' ) end [2025-01-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185454', 'tblTempVendorCDR_20' ) start [2025-01-06 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185454', 'tblTempVendorCDR_20' ) end [2025-01-06 05:35:18] Production.INFO: ProcessCDR(1,14185454,1,1,2) [2025-01-06 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185454', 'tblTempUsageDetail_20' ) start [2025-01-06 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185454', 'tblTempUsageDetail_20' ) end [2025-01-06 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:35:21] Production.INFO: ==13056== Releasing lock... [2025-01-06 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:36:05 [end_date_ymd] => 2025-01-06 05:36:05 [RateCDR] => 1 ) [2025-01-06 05:36: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-01-06 02:36:05' and `end` < '2025-01-06 05:36: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-01-06 05:36:19] Production.INFO: count ==42 [2025-01-06 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:36:05 - End Time 2025-01-06 05:36:05 [2025-01-06 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185459', 'tblTempUsageDetail_20' ) start [2025-01-06 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185459', 'tblTempUsageDetail_20' ) end [2025-01-06 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185459', 'tblTempVendorCDR_20' ) start [2025-01-06 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185459', 'tblTempVendorCDR_20' ) end [2025-01-06 05:36:19] Production.INFO: ProcessCDR(1,14185459,1,1,2) [2025-01-06 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185459', 'tblTempUsageDetail_20' ) start [2025-01-06 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185459', 'tblTempUsageDetail_20' ) end [2025-01-06 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:36:22] Production.INFO: ==13155== Releasing lock... [2025-01-06 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:36:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:37:05 [end_date_ymd] => 2025-01-06 05:37:05 [RateCDR] => 1 ) [2025-01-06 05:37: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-01-06 02:37:05' and `end` < '2025-01-06 05:37: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-01-06 05:37:17] Production.INFO: count ==42 [2025-01-06 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-06 02:37:05 - End Time 2025-01-06 05:37:05 [2025-01-06 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185464', 'tblTempUsageDetail_20' ) start [2025-01-06 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185464', 'tblTempUsageDetail_20' ) end [2025-01-06 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185464', 'tblTempVendorCDR_20' ) start [2025-01-06 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185464', 'tblTempVendorCDR_20' ) end [2025-01-06 05:37:17] Production.INFO: ProcessCDR(1,14185464,1,1,2) [2025-01-06 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185464', 'tblTempUsageDetail_20' ) start [2025-01-06 05:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185464', 'tblTempUsageDetail_20' ) end [2025-01-06 05:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:37:21] Production.INFO: ==13293== Releasing lock... [2025-01-06 05:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:37:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:38:05 [end_date_ymd] => 2025-01-06 05:38:05 [RateCDR] => 1 ) [2025-01-06 05:38: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-01-06 02:38:05' and `end` < '2025-01-06 05:38: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-01-06 05:38:18] Production.INFO: count ==42 [2025-01-06 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:38:05 - End Time 2025-01-06 05:38:05 [2025-01-06 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185469', 'tblTempUsageDetail_20' ) start [2025-01-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185469', 'tblTempUsageDetail_20' ) end [2025-01-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185469', 'tblTempVendorCDR_20' ) start [2025-01-06 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185469', 'tblTempVendorCDR_20' ) end [2025-01-06 05:38:18] Production.INFO: ProcessCDR(1,14185469,1,1,2) [2025-01-06 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185469', 'tblTempUsageDetail_20' ) start [2025-01-06 05:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185469', 'tblTempUsageDetail_20' ) end [2025-01-06 05:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:38:21] Production.INFO: ==13397== Releasing lock... [2025-01-06 05:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:39:04 [end_date_ymd] => 2025-01-06 05:39:04 [RateCDR] => 1 ) [2025-01-06 05:39: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-01-06 02:39:04' and `end` < '2025-01-06 05:39: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-01-06 05:39:18] Production.INFO: count ==42 [2025-01-06 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:39:04 - End Time 2025-01-06 05:39:04 [2025-01-06 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185474', 'tblTempUsageDetail_20' ) start [2025-01-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185474', 'tblTempUsageDetail_20' ) end [2025-01-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185474', 'tblTempVendorCDR_20' ) start [2025-01-06 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185474', 'tblTempVendorCDR_20' ) end [2025-01-06 05:39:18] Production.INFO: ProcessCDR(1,14185474,1,1,2) [2025-01-06 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185474', 'tblTempUsageDetail_20' ) start [2025-01-06 05:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185474', 'tblTempUsageDetail_20' ) end [2025-01-06 05:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:39:21] Production.INFO: ==13496== Releasing lock... [2025-01-06 05:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:39:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:40:06 [end_date_ymd] => 2025-01-06 05:40:06 [RateCDR] => 1 ) [2025-01-06 05:40: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-01-06 02:40:06' and `end` < '2025-01-06 05:40: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-01-06 05:40:19] Production.INFO: count ==40 [2025-01-06 05:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:40:06 - End Time 2025-01-06 05:40:06 [2025-01-06 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185480', 'tblTempUsageDetail_20' ) start [2025-01-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185480', 'tblTempUsageDetail_20' ) end [2025-01-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185480', 'tblTempVendorCDR_20' ) start [2025-01-06 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185480', 'tblTempVendorCDR_20' ) end [2025-01-06 05:40:19] Production.INFO: ProcessCDR(1,14185480,1,1,2) [2025-01-06 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185480', 'tblTempUsageDetail_20' ) start [2025-01-06 05:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185480', 'tblTempUsageDetail_20' ) end [2025-01-06 05:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:40:23] Production.INFO: ==13602== Releasing lock... [2025-01-06 05:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:40:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:41:05 [end_date_ymd] => 2025-01-06 05:41:05 [RateCDR] => 1 ) [2025-01-06 05:41: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-01-06 02:41:05' and `end` < '2025-01-06 05:41: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-01-06 05:41:18] Production.INFO: count ==40 [2025-01-06 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:41:05 - End Time 2025-01-06 05:41:05 [2025-01-06 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185485', 'tblTempUsageDetail_20' ) start [2025-01-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185485', 'tblTempUsageDetail_20' ) end [2025-01-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185485', 'tblTempVendorCDR_20' ) start [2025-01-06 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185485', 'tblTempVendorCDR_20' ) end [2025-01-06 05:41:18] Production.INFO: ProcessCDR(1,14185485,1,1,2) [2025-01-06 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185485', 'tblTempUsageDetail_20' ) start [2025-01-06 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185485', 'tblTempUsageDetail_20' ) end [2025-01-06 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:41:21] Production.INFO: ==13706== Releasing lock... [2025-01-06 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:42:05 [end_date_ymd] => 2025-01-06 05:42:05 [RateCDR] => 1 ) [2025-01-06 05:42: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-01-06 02:42:05' and `end` < '2025-01-06 05:42: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-01-06 05:42:17] Production.INFO: count ==40 [2025-01-06 05:42:17] Production.ERROR: pbx CDR StartTime 2025-01-06 02:42:05 - End Time 2025-01-06 05:42:05 [2025-01-06 05:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185490', 'tblTempUsageDetail_20' ) start [2025-01-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185490', 'tblTempUsageDetail_20' ) end [2025-01-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185490', 'tblTempVendorCDR_20' ) start [2025-01-06 05:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185490', 'tblTempVendorCDR_20' ) end [2025-01-06 05:42:17] Production.INFO: ProcessCDR(1,14185490,1,1,2) [2025-01-06 05:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185490', 'tblTempUsageDetail_20' ) start [2025-01-06 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185490', 'tblTempUsageDetail_20' ) end [2025-01-06 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:42:21] Production.INFO: ==13805== Releasing lock... [2025-01-06 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:42:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:43:05 [end_date_ymd] => 2025-01-06 05:43:05 [RateCDR] => 1 ) [2025-01-06 05:43: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-01-06 02:43:05' and `end` < '2025-01-06 05:43: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-01-06 05:43:19] Production.INFO: count ==40 [2025-01-06 05:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:43:05 - End Time 2025-01-06 05:43:05 [2025-01-06 05:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185495', 'tblTempUsageDetail_20' ) start [2025-01-06 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185495', 'tblTempUsageDetail_20' ) end [2025-01-06 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185495', 'tblTempVendorCDR_20' ) start [2025-01-06 05:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185495', 'tblTempVendorCDR_20' ) end [2025-01-06 05:43:19] Production.INFO: ProcessCDR(1,14185495,1,1,2) [2025-01-06 05:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185495', 'tblTempUsageDetail_20' ) start [2025-01-06 05:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185495', 'tblTempUsageDetail_20' ) end [2025-01-06 05:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:43:22] Production.INFO: ==13906== Releasing lock... [2025-01-06 05:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:43:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:44:05 [end_date_ymd] => 2025-01-06 05:44:05 [RateCDR] => 1 ) [2025-01-06 05:44: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-01-06 02:44:05' and `end` < '2025-01-06 05:44: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-01-06 05:44:18] Production.INFO: count ==40 [2025-01-06 05:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:44:05 - End Time 2025-01-06 05:44:05 [2025-01-06 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185500', 'tblTempUsageDetail_20' ) start [2025-01-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185500', 'tblTempUsageDetail_20' ) end [2025-01-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185500', 'tblTempVendorCDR_20' ) start [2025-01-06 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185500', 'tblTempVendorCDR_20' ) end [2025-01-06 05:44:18] Production.INFO: ProcessCDR(1,14185500,1,1,2) [2025-01-06 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185500', 'tblTempUsageDetail_20' ) start [2025-01-06 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185500', 'tblTempUsageDetail_20' ) end [2025-01-06 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:44:21] Production.INFO: ==14006== Releasing lock... [2025-01-06 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:44:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:45:05 [end_date_ymd] => 2025-01-06 05:45:05 [RateCDR] => 1 ) [2025-01-06 05:45: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-01-06 02:45:05' and `end` < '2025-01-06 05:45: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-01-06 05:45:18] Production.INFO: count ==40 [2025-01-06 05:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:45:05 - End Time 2025-01-06 05:45:05 [2025-01-06 05:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185505', 'tblTempUsageDetail_20' ) start [2025-01-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185505', 'tblTempUsageDetail_20' ) end [2025-01-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185505', 'tblTempVendorCDR_20' ) start [2025-01-06 05:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185505', 'tblTempVendorCDR_20' ) end [2025-01-06 05:45:18] Production.INFO: ProcessCDR(1,14185505,1,1,2) [2025-01-06 05:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185505', 'tblTempUsageDetail_20' ) start [2025-01-06 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185505', 'tblTempUsageDetail_20' ) end [2025-01-06 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:45:21] Production.INFO: ==14109== Releasing lock... [2025-01-06 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:46:05 [end_date_ymd] => 2025-01-06 05:46:05 [RateCDR] => 1 ) [2025-01-06 05:46: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-01-06 02:46:05' and `end` < '2025-01-06 05:46: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-01-06 05:46:19] Production.INFO: count ==40 [2025-01-06 05:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:46:05 - End Time 2025-01-06 05:46:05 [2025-01-06 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185510', 'tblTempUsageDetail_20' ) start [2025-01-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185510', 'tblTempUsageDetail_20' ) end [2025-01-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185510', 'tblTempVendorCDR_20' ) start [2025-01-06 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185510', 'tblTempVendorCDR_20' ) end [2025-01-06 05:46:19] Production.INFO: ProcessCDR(1,14185510,1,1,2) [2025-01-06 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185510', 'tblTempUsageDetail_20' ) start [2025-01-06 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185510', 'tblTempUsageDetail_20' ) end [2025-01-06 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:46:22] Production.INFO: ==14212== Releasing lock... [2025-01-06 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:46:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:47:05 [end_date_ymd] => 2025-01-06 05:47:05 [RateCDR] => 1 ) [2025-01-06 05:47: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-01-06 02:47:05' and `end` < '2025-01-06 05:47: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-01-06 05:47:19] Production.INFO: count ==40 [2025-01-06 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:47:05 - End Time 2025-01-06 05:47:05 [2025-01-06 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185515', 'tblTempUsageDetail_20' ) start [2025-01-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185515', 'tblTempUsageDetail_20' ) end [2025-01-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185515', 'tblTempVendorCDR_20' ) start [2025-01-06 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185515', 'tblTempVendorCDR_20' ) end [2025-01-06 05:47:19] Production.INFO: ProcessCDR(1,14185515,1,1,2) [2025-01-06 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185515', 'tblTempUsageDetail_20' ) start [2025-01-06 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185515', 'tblTempUsageDetail_20' ) end [2025-01-06 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:47:22] Production.INFO: ==14312== Releasing lock... [2025-01-06 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:47:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:48:05 [end_date_ymd] => 2025-01-06 05:48:05 [RateCDR] => 1 ) [2025-01-06 05:48: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-01-06 02:48:05' and `end` < '2025-01-06 05:48: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-01-06 05:48:19] Production.INFO: count ==40 [2025-01-06 05:48:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:48:05 - End Time 2025-01-06 05:48:05 [2025-01-06 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185520', 'tblTempUsageDetail_20' ) start [2025-01-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185520', 'tblTempUsageDetail_20' ) end [2025-01-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185520', 'tblTempVendorCDR_20' ) start [2025-01-06 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185520', 'tblTempVendorCDR_20' ) end [2025-01-06 05:48:19] Production.INFO: ProcessCDR(1,14185520,1,1,2) [2025-01-06 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185520', 'tblTempUsageDetail_20' ) start [2025-01-06 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185520', 'tblTempUsageDetail_20' ) end [2025-01-06 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:48:22] Production.INFO: ==14413== Releasing lock... [2025-01-06 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:48:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:49:04 [end_date_ymd] => 2025-01-06 05:49:04 [RateCDR] => 1 ) [2025-01-06 05:49: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-01-06 02:49:04' and `end` < '2025-01-06 05:49: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-01-06 05:49:18] Production.INFO: count ==41 [2025-01-06 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:49:04 - End Time 2025-01-06 05:49:04 [2025-01-06 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185525', 'tblTempUsageDetail_20' ) start [2025-01-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185525', 'tblTempUsageDetail_20' ) end [2025-01-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185525', 'tblTempVendorCDR_20' ) start [2025-01-06 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185525', 'tblTempVendorCDR_20' ) end [2025-01-06 05:49:18] Production.INFO: ProcessCDR(1,14185525,1,1,2) [2025-01-06 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185525', 'tblTempUsageDetail_20' ) start [2025-01-06 05:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185525', 'tblTempUsageDetail_20' ) end [2025-01-06 05:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:49:23] Production.INFO: ==14516== Releasing lock... [2025-01-06 05:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:49:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:50:05 [end_date_ymd] => 2025-01-06 05:50:05 [RateCDR] => 1 ) [2025-01-06 05:50: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-01-06 02:50:05' and `end` < '2025-01-06 05:50: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-01-06 05:50:19] Production.INFO: count ==41 [2025-01-06 05:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:50:05 - End Time 2025-01-06 05:50:05 [2025-01-06 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185530', 'tblTempUsageDetail_20' ) start [2025-01-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185530', 'tblTempUsageDetail_20' ) end [2025-01-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185530', 'tblTempVendorCDR_20' ) start [2025-01-06 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185530', 'tblTempVendorCDR_20' ) end [2025-01-06 05:50:19] Production.INFO: ProcessCDR(1,14185530,1,1,2) [2025-01-06 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185530', 'tblTempUsageDetail_20' ) start [2025-01-06 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185530', 'tblTempUsageDetail_20' ) end [2025-01-06 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:50:22] Production.INFO: ==14620== Releasing lock... [2025-01-06 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:50:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:51:04 [end_date_ymd] => 2025-01-06 05:51:04 [RateCDR] => 1 ) [2025-01-06 05:51: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-01-06 02:51:04' and `end` < '2025-01-06 05:51: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-01-06 05:51:18] Production.INFO: count ==41 [2025-01-06 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:51:04 - End Time 2025-01-06 05:51:04 [2025-01-06 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185536', 'tblTempUsageDetail_20' ) start [2025-01-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185536', 'tblTempUsageDetail_20' ) end [2025-01-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185536', 'tblTempVendorCDR_20' ) start [2025-01-06 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185536', 'tblTempVendorCDR_20' ) end [2025-01-06 05:51:18] Production.INFO: ProcessCDR(1,14185536,1,1,2) [2025-01-06 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185536', 'tblTempUsageDetail_20' ) start [2025-01-06 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185536', 'tblTempUsageDetail_20' ) end [2025-01-06 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:51:21] Production.INFO: ==14724== Releasing lock... [2025-01-06 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:52:05 [end_date_ymd] => 2025-01-06 05:52:05 [RateCDR] => 1 ) [2025-01-06 05:52: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-01-06 02:52:05' and `end` < '2025-01-06 05:52: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-01-06 05:52:18] Production.INFO: count ==41 [2025-01-06 05:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:52:05 - End Time 2025-01-06 05:52:05 [2025-01-06 05:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185541', 'tblTempUsageDetail_20' ) start [2025-01-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185541', 'tblTempUsageDetail_20' ) end [2025-01-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185541', 'tblTempVendorCDR_20' ) start [2025-01-06 05:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185541', 'tblTempVendorCDR_20' ) end [2025-01-06 05:52:18] Production.INFO: ProcessCDR(1,14185541,1,1,2) [2025-01-06 05:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185541', 'tblTempUsageDetail_20' ) start [2025-01-06 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185541', 'tblTempUsageDetail_20' ) end [2025-01-06 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:52:21] Production.INFO: ==14863== Releasing lock... [2025-01-06 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:52:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:53:05 [end_date_ymd] => 2025-01-06 05:53:05 [RateCDR] => 1 ) [2025-01-06 05:53: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-01-06 02:53:05' and `end` < '2025-01-06 05:53: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-01-06 05:53:18] Production.INFO: count ==41 [2025-01-06 05:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:53:05 - End Time 2025-01-06 05:53:05 [2025-01-06 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185546', 'tblTempUsageDetail_20' ) start [2025-01-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185546', 'tblTempUsageDetail_20' ) end [2025-01-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185546', 'tblTempVendorCDR_20' ) start [2025-01-06 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185546', 'tblTempVendorCDR_20' ) end [2025-01-06 05:53:18] Production.INFO: ProcessCDR(1,14185546,1,1,2) [2025-01-06 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185546', 'tblTempUsageDetail_20' ) start [2025-01-06 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185546', 'tblTempUsageDetail_20' ) end [2025-01-06 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:53:21] Production.INFO: ==14940== Releasing lock... [2025-01-06 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:54:05 [end_date_ymd] => 2025-01-06 05:54:05 [RateCDR] => 1 ) [2025-01-06 05:54: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-01-06 02:54:05' and `end` < '2025-01-06 05:54: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-01-06 05:54:19] Production.INFO: count ==41 [2025-01-06 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:54:05 - End Time 2025-01-06 05:54:05 [2025-01-06 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185551', 'tblTempUsageDetail_20' ) start [2025-01-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185551', 'tblTempUsageDetail_20' ) end [2025-01-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185551', 'tblTempVendorCDR_20' ) start [2025-01-06 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185551', 'tblTempVendorCDR_20' ) end [2025-01-06 05:54:19] Production.INFO: ProcessCDR(1,14185551,1,1,2) [2025-01-06 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185551', 'tblTempUsageDetail_20' ) start [2025-01-06 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185551', 'tblTempUsageDetail_20' ) end [2025-01-06 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:54:22] Production.INFO: ==15009== Releasing lock... [2025-01-06 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:54:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:55:05 [end_date_ymd] => 2025-01-06 05:55:05 [RateCDR] => 1 ) [2025-01-06 05:55: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-01-06 02:55:05' and `end` < '2025-01-06 05:55: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-01-06 05:55:19] Production.INFO: count ==41 [2025-01-06 05:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:55:05 - End Time 2025-01-06 05:55:05 [2025-01-06 05:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185556', 'tblTempUsageDetail_20' ) start [2025-01-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185556', 'tblTempUsageDetail_20' ) end [2025-01-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185556', 'tblTempVendorCDR_20' ) start [2025-01-06 05:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185556', 'tblTempVendorCDR_20' ) end [2025-01-06 05:55:19] Production.INFO: ProcessCDR(1,14185556,1,1,2) [2025-01-06 05:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185556', 'tblTempUsageDetail_20' ) start [2025-01-06 05:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185556', 'tblTempUsageDetail_20' ) end [2025-01-06 05:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:55:22] Production.INFO: ==15080== Releasing lock... [2025-01-06 05:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:55:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:56:05 [end_date_ymd] => 2025-01-06 05:56:05 [RateCDR] => 1 ) [2025-01-06 05:56: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-01-06 02:56:05' and `end` < '2025-01-06 05:56: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-01-06 05:56:18] Production.INFO: count ==41 [2025-01-06 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:56:05 - End Time 2025-01-06 05:56:05 [2025-01-06 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185561', 'tblTempUsageDetail_20' ) start [2025-01-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185561', 'tblTempUsageDetail_20' ) end [2025-01-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185561', 'tblTempVendorCDR_20' ) start [2025-01-06 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185561', 'tblTempVendorCDR_20' ) end [2025-01-06 05:56:18] Production.INFO: ProcessCDR(1,14185561,1,1,2) [2025-01-06 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185561', 'tblTempUsageDetail_20' ) start [2025-01-06 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185561', 'tblTempUsageDetail_20' ) end [2025-01-06 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:56:21] Production.INFO: ==15151== Releasing lock... [2025-01-06 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:57:05 [end_date_ymd] => 2025-01-06 05:57:05 [RateCDR] => 1 ) [2025-01-06 05:57: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-01-06 02:57:05' and `end` < '2025-01-06 05:57: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-01-06 05:57:19] Production.INFO: count ==41 [2025-01-06 05:57:19] Production.ERROR: pbx CDR StartTime 2025-01-06 02:57:05 - End Time 2025-01-06 05:57:05 [2025-01-06 05:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185566', 'tblTempUsageDetail_20' ) start [2025-01-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185566', 'tblTempUsageDetail_20' ) end [2025-01-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185566', 'tblTempVendorCDR_20' ) start [2025-01-06 05:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185566', 'tblTempVendorCDR_20' ) end [2025-01-06 05:57:19] Production.INFO: ProcessCDR(1,14185566,1,1,2) [2025-01-06 05:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185566', 'tblTempUsageDetail_20' ) start [2025-01-06 05:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185566', 'tblTempUsageDetail_20' ) end [2025-01-06 05:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:57:22] Production.INFO: ==15222== Releasing lock... [2025-01-06 05:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:57:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:58:04 [end_date_ymd] => 2025-01-06 05:58:04 [RateCDR] => 1 ) [2025-01-06 05:58: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-01-06 02:58:04' and `end` < '2025-01-06 05:58: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-01-06 05:58:17] Production.INFO: count ==41 [2025-01-06 05:58:17] Production.ERROR: pbx CDR StartTime 2025-01-06 02:58:04 - End Time 2025-01-06 05:58:04 [2025-01-06 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185571', 'tblTempUsageDetail_20' ) start [2025-01-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185571', 'tblTempUsageDetail_20' ) end [2025-01-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185571', 'tblTempVendorCDR_20' ) start [2025-01-06 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185571', 'tblTempVendorCDR_20' ) end [2025-01-06 05:58:17] Production.INFO: ProcessCDR(1,14185571,1,1,2) [2025-01-06 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185571', 'tblTempUsageDetail_20' ) start [2025-01-06 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185571', 'tblTempUsageDetail_20' ) end [2025-01-06 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:58:20] Production.INFO: ==15297== Releasing lock... [2025-01-06 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:58:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 02:59:05 [end_date_ymd] => 2025-01-06 05:59:05 [RateCDR] => 1 ) [2025-01-06 05:59: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-01-06 02:59:05' and `end` < '2025-01-06 05:59: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-01-06 05:59:18] Production.INFO: count ==41 [2025-01-06 05:59:18] Production.ERROR: pbx CDR StartTime 2025-01-06 02:59:05 - End Time 2025-01-06 05:59:05 [2025-01-06 05:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185576', 'tblTempUsageDetail_20' ) start [2025-01-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185576', 'tblTempUsageDetail_20' ) end [2025-01-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185576', 'tblTempVendorCDR_20' ) start [2025-01-06 05:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185576', 'tblTempVendorCDR_20' ) end [2025-01-06 05:59:18] Production.INFO: ProcessCDR(1,14185576,1,1,2) [2025-01-06 05:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 05:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185576', 'tblTempUsageDetail_20' ) start [2025-01-06 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185576', 'tblTempUsageDetail_20' ) end [2025-01-06 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 05:59:21] Production.INFO: ==15371== Releasing lock... [2025-01-06 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 05:59:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:00:06 [end_date_ymd] => 2025-01-06 06:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 03:00:06' and `end` < '2025-01-06 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-01-06 06:00:20] Production.INFO: count ==41 [2025-01-06 06:00:20] Production.ERROR: pbx CDR StartTime 2025-01-06 03:00:06 - End Time 2025-01-06 06:00:06 [2025-01-06 06:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185582', 'tblTempUsageDetail_20' ) start [2025-01-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185582', 'tblTempUsageDetail_20' ) end [2025-01-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185582', 'tblTempVendorCDR_20' ) start [2025-01-06 06:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185582', 'tblTempVendorCDR_20' ) end [2025-01-06 06:00:20] Production.INFO: ProcessCDR(1,14185582,1,1,2) [2025-01-06 06:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185582', 'tblTempUsageDetail_20' ) start [2025-01-06 06:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185582', 'tblTempUsageDetail_20' ) end [2025-01-06 06:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:00:23] Production.INFO: ==15445== Releasing lock... [2025-01-06 06:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:00:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:01:05 [end_date_ymd] => 2025-01-06 06:01:05 [RateCDR] => 1 ) [2025-01-06 06:01: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-01-06 03:01:05' and `end` < '2025-01-06 06:01: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-01-06 06:01:18] Production.INFO: count ==41 [2025-01-06 06:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:01:05 - End Time 2025-01-06 06:01:05 [2025-01-06 06:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185587', 'tblTempUsageDetail_20' ) start [2025-01-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185587', 'tblTempUsageDetail_20' ) end [2025-01-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185587', 'tblTempVendorCDR_20' ) start [2025-01-06 06:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185587', 'tblTempVendorCDR_20' ) end [2025-01-06 06:01:18] Production.INFO: ProcessCDR(1,14185587,1,1,2) [2025-01-06 06:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185587', 'tblTempUsageDetail_20' ) start [2025-01-06 06:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185587', 'tblTempUsageDetail_20' ) end [2025-01-06 06:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:01:21] Production.INFO: ==15527== Releasing lock... [2025-01-06 06:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:01:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:02:05 [end_date_ymd] => 2025-01-06 06:02:05 [RateCDR] => 1 ) [2025-01-06 06:02: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-01-06 03:02:05' and `end` < '2025-01-06 06:02: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-01-06 06:02:18] Production.INFO: count ==41 [2025-01-06 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:02:05 - End Time 2025-01-06 06:02:05 [2025-01-06 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185592', 'tblTempUsageDetail_20' ) start [2025-01-06 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185592', 'tblTempUsageDetail_20' ) end [2025-01-06 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185592', 'tblTempVendorCDR_20' ) start [2025-01-06 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185592', 'tblTempVendorCDR_20' ) end [2025-01-06 06:02:18] Production.INFO: ProcessCDR(1,14185592,1,1,2) [2025-01-06 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185592', 'tblTempUsageDetail_20' ) start [2025-01-06 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185592', 'tblTempUsageDetail_20' ) end [2025-01-06 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:02:21] Production.INFO: ==15598== Releasing lock... [2025-01-06 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:03:04 [end_date_ymd] => 2025-01-06 06:03:04 [RateCDR] => 1 ) [2025-01-06 06:03: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-01-06 03:03:04' and `end` < '2025-01-06 06:03: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-01-06 06:03:18] Production.INFO: count ==41 [2025-01-06 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:03:04 - End Time 2025-01-06 06:03:04 [2025-01-06 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185597', 'tblTempUsageDetail_20' ) start [2025-01-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185597', 'tblTempUsageDetail_20' ) end [2025-01-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185597', 'tblTempVendorCDR_20' ) start [2025-01-06 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185597', 'tblTempVendorCDR_20' ) end [2025-01-06 06:03:18] Production.INFO: ProcessCDR(1,14185597,1,1,2) [2025-01-06 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185597', 'tblTempUsageDetail_20' ) start [2025-01-06 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185597', 'tblTempUsageDetail_20' ) end [2025-01-06 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:03:21] Production.INFO: ==15667== Releasing lock... [2025-01-06 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:03:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:04:05 [end_date_ymd] => 2025-01-06 06:04:05 [RateCDR] => 1 ) [2025-01-06 06:04: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-01-06 03:04:05' and `end` < '2025-01-06 06:04: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-01-06 06:04:19] Production.INFO: count ==41 [2025-01-06 06:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:04:05 - End Time 2025-01-06 06:04:05 [2025-01-06 06:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185602', 'tblTempUsageDetail_20' ) start [2025-01-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185602', 'tblTempUsageDetail_20' ) end [2025-01-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185602', 'tblTempVendorCDR_20' ) start [2025-01-06 06:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185602', 'tblTempVendorCDR_20' ) end [2025-01-06 06:04:19] Production.INFO: ProcessCDR(1,14185602,1,1,2) [2025-01-06 06:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185602', 'tblTempUsageDetail_20' ) start [2025-01-06 06:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185602', 'tblTempUsageDetail_20' ) end [2025-01-06 06:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:04:22] Production.INFO: ==15738== Releasing lock... [2025-01-06 06:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:04:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:05:04 [end_date_ymd] => 2025-01-06 06:05:04 [RateCDR] => 1 ) [2025-01-06 06:05: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-01-06 03:05:04' and `end` < '2025-01-06 06:05: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-01-06 06:05:17] Production.INFO: count ==41 [2025-01-06 06:05:17] Production.ERROR: pbx CDR StartTime 2025-01-06 03:05:04 - End Time 2025-01-06 06:05:04 [2025-01-06 06:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185607', 'tblTempUsageDetail_20' ) start [2025-01-06 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185607', 'tblTempUsageDetail_20' ) end [2025-01-06 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185607', 'tblTempVendorCDR_20' ) start [2025-01-06 06:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185607', 'tblTempVendorCDR_20' ) end [2025-01-06 06:05:17] Production.INFO: ProcessCDR(1,14185607,1,1,2) [2025-01-06 06:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185607', 'tblTempUsageDetail_20' ) start [2025-01-06 06:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185607', 'tblTempUsageDetail_20' ) end [2025-01-06 06:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:05:20] Production.INFO: ==15809== Releasing lock... [2025-01-06 06:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:05:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:06:05 [end_date_ymd] => 2025-01-06 06:06:05 [RateCDR] => 1 ) [2025-01-06 06:06: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-01-06 03:06:05' and `end` < '2025-01-06 06:06: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-01-06 06:06:19] Production.INFO: count ==42 [2025-01-06 06:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:06:05 - End Time 2025-01-06 06:06:05 [2025-01-06 06:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185612', 'tblTempUsageDetail_20' ) start [2025-01-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185612', 'tblTempUsageDetail_20' ) end [2025-01-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185612', 'tblTempVendorCDR_20' ) start [2025-01-06 06:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185612', 'tblTempVendorCDR_20' ) end [2025-01-06 06:06:19] Production.INFO: ProcessCDR(1,14185612,1,1,2) [2025-01-06 06:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185612', 'tblTempUsageDetail_20' ) start [2025-01-06 06:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185612', 'tblTempUsageDetail_20' ) end [2025-01-06 06:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:06:23] Production.INFO: ==15880== Releasing lock... [2025-01-06 06:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:06:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:07:05 [end_date_ymd] => 2025-01-06 06:07:05 [RateCDR] => 1 ) [2025-01-06 06:07: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-01-06 03:07:05' and `end` < '2025-01-06 06:07: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-01-06 06:07:18] Production.INFO: count ==42 [2025-01-06 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:07:05 - End Time 2025-01-06 06:07:05 [2025-01-06 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185617', 'tblTempUsageDetail_20' ) start [2025-01-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185617', 'tblTempUsageDetail_20' ) end [2025-01-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185617', 'tblTempVendorCDR_20' ) start [2025-01-06 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185617', 'tblTempVendorCDR_20' ) end [2025-01-06 06:07:18] Production.INFO: ProcessCDR(1,14185617,1,1,2) [2025-01-06 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185617', 'tblTempUsageDetail_20' ) start [2025-01-06 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185617', 'tblTempUsageDetail_20' ) end [2025-01-06 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:07:21] Production.INFO: ==15954== Releasing lock... [2025-01-06 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:08:05 [end_date_ymd] => 2025-01-06 06:08:05 [RateCDR] => 1 ) [2025-01-06 06:08: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-01-06 03:08:05' and `end` < '2025-01-06 06:08: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-01-06 06:08:17] Production.INFO: count ==42 [2025-01-06 06:08:17] Production.ERROR: pbx CDR StartTime 2025-01-06 03:08:05 - End Time 2025-01-06 06:08:05 [2025-01-06 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185622', 'tblTempUsageDetail_20' ) start [2025-01-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185622', 'tblTempUsageDetail_20' ) end [2025-01-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185622', 'tblTempVendorCDR_20' ) start [2025-01-06 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185622', 'tblTempVendorCDR_20' ) end [2025-01-06 06:08:17] Production.INFO: ProcessCDR(1,14185622,1,1,2) [2025-01-06 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185622', 'tblTempUsageDetail_20' ) start [2025-01-06 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185622', 'tblTempUsageDetail_20' ) end [2025-01-06 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:08:21] Production.INFO: ==16064== Releasing lock... [2025-01-06 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:08:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:09:05 [end_date_ymd] => 2025-01-06 06:09:05 [RateCDR] => 1 ) [2025-01-06 06:09: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-01-06 03:09:05' and `end` < '2025-01-06 06:09: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-01-06 06:09:19] Production.INFO: count ==43 [2025-01-06 06:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:09:05 - End Time 2025-01-06 06:09:05 [2025-01-06 06:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185627', 'tblTempUsageDetail_20' ) start [2025-01-06 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185627', 'tblTempUsageDetail_20' ) end [2025-01-06 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185627', 'tblTempVendorCDR_20' ) start [2025-01-06 06:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185627', 'tblTempVendorCDR_20' ) end [2025-01-06 06:09:19] Production.INFO: ProcessCDR(1,14185627,1,1,2) [2025-01-06 06:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185627', 'tblTempUsageDetail_20' ) start [2025-01-06 06:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185627', 'tblTempUsageDetail_20' ) end [2025-01-06 06:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:09:23] Production.INFO: ==16135== Releasing lock... [2025-01-06 06:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:09:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-06 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:10:05 [end_date_ymd] => 2025-01-06 06:10:05 [RateCDR] => 1 ) [2025-01-06 06:10: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-01-06 03:10:05' and `end` < '2025-01-06 06:10: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-01-06 06:10:18] Production.INFO: count ==47 [2025-01-06 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:10:05 - End Time 2025-01-06 06:10:05 [2025-01-06 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185633', 'tblTempUsageDetail_20' ) start [2025-01-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185633', 'tblTempUsageDetail_20' ) end [2025-01-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185633', 'tblTempVendorCDR_20' ) start [2025-01-06 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185633', 'tblTempVendorCDR_20' ) end [2025-01-06 06:10:18] Production.INFO: ProcessCDR(1,14185633,1,1,2) [2025-01-06 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185633', 'tblTempUsageDetail_20' ) start [2025-01-06 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185633', 'tblTempUsageDetail_20' ) end [2025-01-06 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:10:21] Production.INFO: ==16207== Releasing lock... [2025-01-06 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:10:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:11:05 [end_date_ymd] => 2025-01-06 06:11:05 [RateCDR] => 1 ) [2025-01-06 06:11: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-01-06 03:11:05' and `end` < '2025-01-06 06:11: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-01-06 06:11:18] Production.INFO: count ==55 [2025-01-06 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:11:05 - End Time 2025-01-06 06:11:05 [2025-01-06 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185638', 'tblTempUsageDetail_20' ) start [2025-01-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185638', 'tblTempUsageDetail_20' ) end [2025-01-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185638', 'tblTempVendorCDR_20' ) start [2025-01-06 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185638', 'tblTempVendorCDR_20' ) end [2025-01-06 06:11:18] Production.INFO: ProcessCDR(1,14185638,1,1,2) [2025-01-06 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185638', 'tblTempUsageDetail_20' ) start [2025-01-06 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185638', 'tblTempUsageDetail_20' ) end [2025-01-06 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:11:21] Production.INFO: ==16282== Releasing lock... [2025-01-06 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:11:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:12:05 [end_date_ymd] => 2025-01-06 06:12:05 [RateCDR] => 1 ) [2025-01-06 06:12: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-01-06 03:12:05' and `end` < '2025-01-06 06:12: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-01-06 06:12:19] Production.INFO: count ==55 [2025-01-06 06:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:12:05 - End Time 2025-01-06 06:12:05 [2025-01-06 06:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185643', 'tblTempUsageDetail_20' ) start [2025-01-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185643', 'tblTempUsageDetail_20' ) end [2025-01-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185643', 'tblTempVendorCDR_20' ) start [2025-01-06 06:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185643', 'tblTempVendorCDR_20' ) end [2025-01-06 06:12:19] Production.INFO: ProcessCDR(1,14185643,1,1,2) [2025-01-06 06:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185643', 'tblTempUsageDetail_20' ) start [2025-01-06 06:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185643', 'tblTempUsageDetail_20' ) end [2025-01-06 06:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:12:22] Production.INFO: ==16354== Releasing lock... [2025-01-06 06:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:12:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:13:05 [end_date_ymd] => 2025-01-06 06:13:05 [RateCDR] => 1 ) [2025-01-06 06:13: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-01-06 03:13:05' and `end` < '2025-01-06 06:13: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-01-06 06:13:18] Production.INFO: count ==55 [2025-01-06 06:13:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:13:05 - End Time 2025-01-06 06:13:05 [2025-01-06 06:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185648', 'tblTempUsageDetail_20' ) start [2025-01-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185648', 'tblTempUsageDetail_20' ) end [2025-01-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185648', 'tblTempVendorCDR_20' ) start [2025-01-06 06:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185648', 'tblTempVendorCDR_20' ) end [2025-01-06 06:13:18] Production.INFO: ProcessCDR(1,14185648,1,1,2) [2025-01-06 06:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185648', 'tblTempUsageDetail_20' ) start [2025-01-06 06:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185648', 'tblTempUsageDetail_20' ) end [2025-01-06 06:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:13:21] Production.INFO: ==16428== Releasing lock... [2025-01-06 06:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:13:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:14:05 [end_date_ymd] => 2025-01-06 06:14:05 [RateCDR] => 1 ) [2025-01-06 06:14: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-01-06 03:14:05' and `end` < '2025-01-06 06:14: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-01-06 06:14:19] Production.INFO: count ==55 [2025-01-06 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:14:05 - End Time 2025-01-06 06:14:05 [2025-01-06 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185653', 'tblTempUsageDetail_20' ) start [2025-01-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185653', 'tblTempUsageDetail_20' ) end [2025-01-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185653', 'tblTempVendorCDR_20' ) start [2025-01-06 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185653', 'tblTempVendorCDR_20' ) end [2025-01-06 06:14:19] Production.INFO: ProcessCDR(1,14185653,1,1,2) [2025-01-06 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185653', 'tblTempUsageDetail_20' ) start [2025-01-06 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185653', 'tblTempUsageDetail_20' ) end [2025-01-06 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:14:22] Production.INFO: ==16501== Releasing lock... [2025-01-06 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:14:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:15:05 [end_date_ymd] => 2025-01-06 06:15:05 [RateCDR] => 1 ) [2025-01-06 06:15: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-01-06 03:15:05' and `end` < '2025-01-06 06:15: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-01-06 06:15:18] Production.INFO: count ==55 [2025-01-06 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:15:05 - End Time 2025-01-06 06:15:05 [2025-01-06 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185658', 'tblTempUsageDetail_20' ) start [2025-01-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185658', 'tblTempUsageDetail_20' ) end [2025-01-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185658', 'tblTempVendorCDR_20' ) start [2025-01-06 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185658', 'tblTempVendorCDR_20' ) end [2025-01-06 06:15:18] Production.INFO: ProcessCDR(1,14185658,1,1,2) [2025-01-06 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185658', 'tblTempUsageDetail_20' ) start [2025-01-06 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185658', 'tblTempUsageDetail_20' ) end [2025-01-06 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:15:21] Production.INFO: ==16573== Releasing lock... [2025-01-06 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:15:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:16:05 [end_date_ymd] => 2025-01-06 06:16:05 [RateCDR] => 1 ) [2025-01-06 06:16: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-01-06 03:16:05' and `end` < '2025-01-06 06:16: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-01-06 06:16:18] Production.INFO: count ==55 [2025-01-06 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:16:05 - End Time 2025-01-06 06:16:05 [2025-01-06 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185663', 'tblTempUsageDetail_20' ) start [2025-01-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185663', 'tblTempUsageDetail_20' ) end [2025-01-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185663', 'tblTempVendorCDR_20' ) start [2025-01-06 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185663', 'tblTempVendorCDR_20' ) end [2025-01-06 06:16:18] Production.INFO: ProcessCDR(1,14185663,1,1,2) [2025-01-06 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185663', 'tblTempUsageDetail_20' ) start [2025-01-06 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185663', 'tblTempUsageDetail_20' ) end [2025-01-06 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:16:21] Production.INFO: ==16647== Releasing lock... [2025-01-06 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:16:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:17:05 [end_date_ymd] => 2025-01-06 06:17:05 [RateCDR] => 1 ) [2025-01-06 06:17: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-01-06 03:17:05' and `end` < '2025-01-06 06:17: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-01-06 06:17:18] Production.INFO: count ==55 [2025-01-06 06:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:17:05 - End Time 2025-01-06 06:17:05 [2025-01-06 06:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185668', 'tblTempUsageDetail_20' ) start [2025-01-06 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185668', 'tblTempUsageDetail_20' ) end [2025-01-06 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185668', 'tblTempVendorCDR_20' ) start [2025-01-06 06:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185668', 'tblTempVendorCDR_20' ) end [2025-01-06 06:17:18] Production.INFO: ProcessCDR(1,14185668,1,1,2) [2025-01-06 06:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185668', 'tblTempUsageDetail_20' ) start [2025-01-06 06:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185668', 'tblTempUsageDetail_20' ) end [2025-01-06 06:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:17:21] Production.INFO: ==16720== Releasing lock... [2025-01-06 06:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:17:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:18:05 [end_date_ymd] => 2025-01-06 06:18:05 [RateCDR] => 1 ) [2025-01-06 06:18: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-01-06 03:18:05' and `end` < '2025-01-06 06:18: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-01-06 06:18:19] Production.INFO: count ==55 [2025-01-06 06:18:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:18:05 - End Time 2025-01-06 06:18:05 [2025-01-06 06:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185673', 'tblTempUsageDetail_20' ) start [2025-01-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185673', 'tblTempUsageDetail_20' ) end [2025-01-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185673', 'tblTempVendorCDR_20' ) start [2025-01-06 06:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185673', 'tblTempVendorCDR_20' ) end [2025-01-06 06:18:19] Production.INFO: ProcessCDR(1,14185673,1,1,2) [2025-01-06 06:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185673', 'tblTempUsageDetail_20' ) start [2025-01-06 06:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185673', 'tblTempUsageDetail_20' ) end [2025-01-06 06:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:18:22] Production.INFO: ==16795== Releasing lock... [2025-01-06 06:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:18:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:19:05 [end_date_ymd] => 2025-01-06 06:19:05 [RateCDR] => 1 ) [2025-01-06 06:19: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-01-06 03:19:05' and `end` < '2025-01-06 06:19: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-01-06 06:19:18] Production.INFO: count ==55 [2025-01-06 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:19:05 - End Time 2025-01-06 06:19:05 [2025-01-06 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185678', 'tblTempUsageDetail_20' ) start [2025-01-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185678', 'tblTempUsageDetail_20' ) end [2025-01-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185678', 'tblTempVendorCDR_20' ) start [2025-01-06 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185678', 'tblTempVendorCDR_20' ) end [2025-01-06 06:19:18] Production.INFO: ProcessCDR(1,14185678,1,1,2) [2025-01-06 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185678', 'tblTempUsageDetail_20' ) start [2025-01-06 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185678', 'tblTempUsageDetail_20' ) end [2025-01-06 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:19:21] Production.INFO: ==16869== Releasing lock... [2025-01-06 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:19:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:20:05 [end_date_ymd] => 2025-01-06 06:20:05 [RateCDR] => 1 ) [2025-01-06 06:20: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-01-06 03:20:05' and `end` < '2025-01-06 06:20: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-01-06 06:20:18] Production.INFO: count ==57 [2025-01-06 06:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:20:05 - End Time 2025-01-06 06:20:05 [2025-01-06 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185684', 'tblTempUsageDetail_20' ) start [2025-01-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185684', 'tblTempUsageDetail_20' ) end [2025-01-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185684', 'tblTempVendorCDR_20' ) start [2025-01-06 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185684', 'tblTempVendorCDR_20' ) end [2025-01-06 06:20:18] Production.INFO: ProcessCDR(1,14185684,1,1,2) [2025-01-06 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185684', 'tblTempUsageDetail_20' ) start [2025-01-06 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185684', 'tblTempUsageDetail_20' ) end [2025-01-06 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:20:21] Production.INFO: ==16945== Releasing lock... [2025-01-06 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:21:06 [end_date_ymd] => 2025-01-06 06:21:06 [RateCDR] => 1 ) [2025-01-06 06:21: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-01-06 03:21:06' and `end` < '2025-01-06 06:21: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-01-06 06:21:18] Production.INFO: count ==57 [2025-01-06 06:21:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:21:06 - End Time 2025-01-06 06:21:06 [2025-01-06 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185689', 'tblTempUsageDetail_20' ) start [2025-01-06 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185689', 'tblTempUsageDetail_20' ) end [2025-01-06 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185689', 'tblTempVendorCDR_20' ) start [2025-01-06 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185689', 'tblTempVendorCDR_20' ) end [2025-01-06 06:21:18] Production.INFO: ProcessCDR(1,14185689,1,1,2) [2025-01-06 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185689', 'tblTempUsageDetail_20' ) start [2025-01-06 06:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185689', 'tblTempUsageDetail_20' ) end [2025-01-06 06:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:21:22] Production.INFO: ==17023== Releasing lock... [2025-01-06 06:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:22:05 [end_date_ymd] => 2025-01-06 06:22:05 [RateCDR] => 1 ) [2025-01-06 06:22: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-01-06 03:22:05' and `end` < '2025-01-06 06:22: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-01-06 06:22:18] Production.INFO: count ==57 [2025-01-06 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:22:05 - End Time 2025-01-06 06:22:05 [2025-01-06 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185694', 'tblTempUsageDetail_20' ) start [2025-01-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185694', 'tblTempUsageDetail_20' ) end [2025-01-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185694', 'tblTempVendorCDR_20' ) start [2025-01-06 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185694', 'tblTempVendorCDR_20' ) end [2025-01-06 06:22:18] Production.INFO: ProcessCDR(1,14185694,1,1,2) [2025-01-06 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185694', 'tblTempUsageDetail_20' ) start [2025-01-06 06:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185694', 'tblTempUsageDetail_20' ) end [2025-01-06 06:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:22:22] Production.INFO: ==17099== Releasing lock... [2025-01-06 06:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:22:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:23:05 [end_date_ymd] => 2025-01-06 06:23:05 [RateCDR] => 1 ) [2025-01-06 06:23: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-01-06 03:23:05' and `end` < '2025-01-06 06:23: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-01-06 06:23:19] Production.INFO: count ==57 [2025-01-06 06:23:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:23:05 - End Time 2025-01-06 06:23:05 [2025-01-06 06:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185697', 'tblTempUsageDetail_20' ) start [2025-01-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185697', 'tblTempUsageDetail_20' ) end [2025-01-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185697', 'tblTempVendorCDR_20' ) start [2025-01-06 06:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185697', 'tblTempVendorCDR_20' ) end [2025-01-06 06:23:19] Production.INFO: ProcessCDR(1,14185697,1,1,2) [2025-01-06 06:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185697', 'tblTempUsageDetail_20' ) start [2025-01-06 06:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185697', 'tblTempUsageDetail_20' ) end [2025-01-06 06:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:23:22] Production.INFO: ==17176== Releasing lock... [2025-01-06 06:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:23:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:24:05 [end_date_ymd] => 2025-01-06 06:24:05 [RateCDR] => 1 ) [2025-01-06 06:24: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-01-06 03:24:05' and `end` < '2025-01-06 06:24: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-01-06 06:24:18] Production.INFO: count ==57 [2025-01-06 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:24:05 - End Time 2025-01-06 06:24:05 [2025-01-06 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185704', 'tblTempUsageDetail_20' ) start [2025-01-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185704', 'tblTempUsageDetail_20' ) end [2025-01-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185704', 'tblTempVendorCDR_20' ) start [2025-01-06 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185704', 'tblTempVendorCDR_20' ) end [2025-01-06 06:24:18] Production.INFO: ProcessCDR(1,14185704,1,1,2) [2025-01-06 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185704', 'tblTempUsageDetail_20' ) start [2025-01-06 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185704', 'tblTempUsageDetail_20' ) end [2025-01-06 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:24:21] Production.INFO: ==17289== Releasing lock... [2025-01-06 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:24:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:25:05 [end_date_ymd] => 2025-01-06 06:25:05 [RateCDR] => 1 ) [2025-01-06 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-01-06 03:25:05' and `end` < '2025-01-06 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-01-06 06:25:19] Production.INFO: count ==57 [2025-01-06 06:25:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:25:05 - End Time 2025-01-06 06:25:05 [2025-01-06 06:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185709', 'tblTempUsageDetail_20' ) start [2025-01-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185709', 'tblTempUsageDetail_20' ) end [2025-01-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185709', 'tblTempVendorCDR_20' ) start [2025-01-06 06:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185709', 'tblTempVendorCDR_20' ) end [2025-01-06 06:25:19] Production.INFO: ProcessCDR(1,14185709,1,1,2) [2025-01-06 06:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185709', 'tblTempUsageDetail_20' ) start [2025-01-06 06:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185709', 'tblTempUsageDetail_20' ) end [2025-01-06 06:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:25:22] Production.INFO: ==17364== Releasing lock... [2025-01-06 06:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:25:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:26:06 [end_date_ymd] => 2025-01-06 06:26:06 [RateCDR] => 1 ) [2025-01-06 06:26: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-01-06 03:26:06' and `end` < '2025-01-06 06:26: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-01-06 06:26:19] Production.INFO: count ==58 [2025-01-06 06:26:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:26:06 - End Time 2025-01-06 06:26:06 [2025-01-06 06:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185714', 'tblTempUsageDetail_20' ) start [2025-01-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185714', 'tblTempUsageDetail_20' ) end [2025-01-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185714', 'tblTempVendorCDR_20' ) start [2025-01-06 06:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185714', 'tblTempVendorCDR_20' ) end [2025-01-06 06:26:19] Production.INFO: ProcessCDR(1,14185714,1,1,2) [2025-01-06 06:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185714', 'tblTempUsageDetail_20' ) start [2025-01-06 06:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185714', 'tblTempUsageDetail_20' ) end [2025-01-06 06:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:26:22] Production.INFO: ==17443== Releasing lock... [2025-01-06 06:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:26:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:27:05 [end_date_ymd] => 2025-01-06 06:27:05 [RateCDR] => 1 ) [2025-01-06 06:27: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-01-06 03:27:05' and `end` < '2025-01-06 06:27: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-01-06 06:27:19] Production.INFO: count ==58 [2025-01-06 06:27:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:27:05 - End Time 2025-01-06 06:27:05 [2025-01-06 06:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185719', 'tblTempUsageDetail_20' ) start [2025-01-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185719', 'tblTempUsageDetail_20' ) end [2025-01-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185719', 'tblTempVendorCDR_20' ) start [2025-01-06 06:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185719', 'tblTempVendorCDR_20' ) end [2025-01-06 06:27:19] Production.INFO: ProcessCDR(1,14185719,1,1,2) [2025-01-06 06:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185719', 'tblTempUsageDetail_20' ) start [2025-01-06 06:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185719', 'tblTempUsageDetail_20' ) end [2025-01-06 06:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:27:22] Production.INFO: ==17521== Releasing lock... [2025-01-06 06:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:28:05 [end_date_ymd] => 2025-01-06 06:28:05 [RateCDR] => 1 ) [2025-01-06 06:28: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-01-06 03:28:05' and `end` < '2025-01-06 06:28: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-01-06 06:28:18] Production.INFO: count ==58 [2025-01-06 06:28:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:28:05 - End Time 2025-01-06 06:28:05 [2025-01-06 06:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185724', 'tblTempUsageDetail_20' ) start [2025-01-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185724', 'tblTempUsageDetail_20' ) end [2025-01-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185724', 'tblTempVendorCDR_20' ) start [2025-01-06 06:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185724', 'tblTempVendorCDR_20' ) end [2025-01-06 06:28:19] Production.INFO: ProcessCDR(1,14185724,1,1,2) [2025-01-06 06:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185724', 'tblTempUsageDetail_20' ) start [2025-01-06 06:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185724', 'tblTempUsageDetail_20' ) end [2025-01-06 06:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:28:22] Production.INFO: ==17596== Releasing lock... [2025-01-06 06:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:29:04 [end_date_ymd] => 2025-01-06 06:29:04 [RateCDR] => 1 ) [2025-01-06 06:29: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-01-06 03:29:04' and `end` < '2025-01-06 06:29: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-01-06 06:29:18] Production.INFO: count ==58 [2025-01-06 06:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:29:04 - End Time 2025-01-06 06:29:04 [2025-01-06 06:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185729', 'tblTempUsageDetail_20' ) start [2025-01-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185729', 'tblTempUsageDetail_20' ) end [2025-01-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185729', 'tblTempVendorCDR_20' ) start [2025-01-06 06:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185729', 'tblTempVendorCDR_20' ) end [2025-01-06 06:29:18] Production.INFO: ProcessCDR(1,14185729,1,1,2) [2025-01-06 06:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185729', 'tblTempUsageDetail_20' ) start [2025-01-06 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185729', 'tblTempUsageDetail_20' ) end [2025-01-06 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:29:21] Production.INFO: ==17670== Releasing lock... [2025-01-06 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:29:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:30:06 [end_date_ymd] => 2025-01-06 06:30:06 [RateCDR] => 1 ) [2025-01-06 06:30: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-01-06 03:30:06' and `end` < '2025-01-06 06:30: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-01-06 06:30:20] Production.INFO: count ==64 [2025-01-06 06:30:20] Production.ERROR: pbx CDR StartTime 2025-01-06 03:30:06 - End Time 2025-01-06 06:30:06 [2025-01-06 06:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185735', 'tblTempUsageDetail_20' ) start [2025-01-06 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185735', 'tblTempUsageDetail_20' ) end [2025-01-06 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185735', 'tblTempVendorCDR_20' ) start [2025-01-06 06:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185735', 'tblTempVendorCDR_20' ) end [2025-01-06 06:30:20] Production.INFO: ProcessCDR(1,14185735,1,1,2) [2025-01-06 06:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185735', 'tblTempUsageDetail_20' ) start [2025-01-06 06:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185735', 'tblTempUsageDetail_20' ) end [2025-01-06 06:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:30:23] Production.INFO: ==17750== Releasing lock... [2025-01-06 06:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:30:23] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:31:04 [end_date_ymd] => 2025-01-06 06:31:04 [RateCDR] => 1 ) [2025-01-06 06:31: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-01-06 03:31:04' and `end` < '2025-01-06 06:31: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-01-06 06:31:18] Production.INFO: count ==70 [2025-01-06 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:31:04 - End Time 2025-01-06 06:31:04 [2025-01-06 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185740', 'tblTempUsageDetail_20' ) start [2025-01-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185740', 'tblTempUsageDetail_20' ) end [2025-01-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185740', 'tblTempVendorCDR_20' ) start [2025-01-06 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185740', 'tblTempVendorCDR_20' ) end [2025-01-06 06:31:18] Production.INFO: ProcessCDR(1,14185740,1,1,2) [2025-01-06 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185740', 'tblTempUsageDetail_20' ) start [2025-01-06 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185740', 'tblTempUsageDetail_20' ) end [2025-01-06 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:31:21] Production.INFO: ==17828== Releasing lock... [2025-01-06 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:32:05 [end_date_ymd] => 2025-01-06 06:32:05 [RateCDR] => 1 ) [2025-01-06 06:32: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-01-06 03:32:05' and `end` < '2025-01-06 06:32: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-01-06 06:32:17] Production.INFO: count ==70 [2025-01-06 06:32:17] Production.ERROR: pbx CDR StartTime 2025-01-06 03:32:05 - End Time 2025-01-06 06:32:05 [2025-01-06 06:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185745', 'tblTempUsageDetail_20' ) start [2025-01-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185745', 'tblTempUsageDetail_20' ) end [2025-01-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185745', 'tblTempVendorCDR_20' ) start [2025-01-06 06:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185745', 'tblTempVendorCDR_20' ) end [2025-01-06 06:32:17] Production.INFO: ProcessCDR(1,14185745,1,1,2) [2025-01-06 06:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185745', 'tblTempUsageDetail_20' ) start [2025-01-06 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185745', 'tblTempUsageDetail_20' ) end [2025-01-06 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:32:21] Production.INFO: ==17903== Releasing lock... [2025-01-06 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:32:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:33:05 [end_date_ymd] => 2025-01-06 06:33:05 [RateCDR] => 1 ) [2025-01-06 06:33: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-01-06 03:33:05' and `end` < '2025-01-06 06:33: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-01-06 06:33:18] Production.INFO: count ==70 [2025-01-06 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:33:05 - End Time 2025-01-06 06:33:05 [2025-01-06 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185750', 'tblTempUsageDetail_20' ) start [2025-01-06 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185750', 'tblTempUsageDetail_20' ) end [2025-01-06 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185750', 'tblTempVendorCDR_20' ) start [2025-01-06 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185750', 'tblTempVendorCDR_20' ) end [2025-01-06 06:33:18] Production.INFO: ProcessCDR(1,14185750,1,1,2) [2025-01-06 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185750', 'tblTempUsageDetail_20' ) start [2025-01-06 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185750', 'tblTempUsageDetail_20' ) end [2025-01-06 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:33:21] Production.INFO: ==17981== Releasing lock... [2025-01-06 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:33:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:34:05 [end_date_ymd] => 2025-01-06 06:34:05 [RateCDR] => 1 ) [2025-01-06 06:34: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-01-06 03:34:05' and `end` < '2025-01-06 06:34: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-01-06 06:34:18] Production.INFO: count ==70 [2025-01-06 06:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:34:05 - End Time 2025-01-06 06:34:05 [2025-01-06 06:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185755', 'tblTempUsageDetail_20' ) start [2025-01-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185755', 'tblTempUsageDetail_20' ) end [2025-01-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185755', 'tblTempVendorCDR_20' ) start [2025-01-06 06:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185755', 'tblTempVendorCDR_20' ) end [2025-01-06 06:34:18] Production.INFO: ProcessCDR(1,14185755,1,1,2) [2025-01-06 06:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185755', 'tblTempUsageDetail_20' ) start [2025-01-06 06:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185755', 'tblTempUsageDetail_20' ) end [2025-01-06 06:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:34:21] Production.INFO: ==18054== Releasing lock... [2025-01-06 06:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:34:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:35:05 [end_date_ymd] => 2025-01-06 06:35:05 [RateCDR] => 1 ) [2025-01-06 06:35: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-01-06 03:35:05' and `end` < '2025-01-06 06:35: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-01-06 06:35:18] Production.INFO: count ==70 [2025-01-06 06:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:35:05 - End Time 2025-01-06 06:35:05 [2025-01-06 06:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185760', 'tblTempUsageDetail_20' ) start [2025-01-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185760', 'tblTempUsageDetail_20' ) end [2025-01-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185760', 'tblTempVendorCDR_20' ) start [2025-01-06 06:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185760', 'tblTempVendorCDR_20' ) end [2025-01-06 06:35:18] Production.INFO: ProcessCDR(1,14185760,1,1,2) [2025-01-06 06:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185760', 'tblTempUsageDetail_20' ) start [2025-01-06 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185760', 'tblTempUsageDetail_20' ) end [2025-01-06 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:35:21] Production.INFO: ==18129== Releasing lock... [2025-01-06 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:35:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:36:04 [end_date_ymd] => 2025-01-06 06:36:04 [RateCDR] => 1 ) [2025-01-06 06:36: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-01-06 03:36:04' and `end` < '2025-01-06 06:36: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-01-06 06:36:18] Production.INFO: count ==70 [2025-01-06 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:36:04 - End Time 2025-01-06 06:36:04 [2025-01-06 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185765', 'tblTempUsageDetail_20' ) start [2025-01-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185765', 'tblTempUsageDetail_20' ) end [2025-01-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185765', 'tblTempVendorCDR_20' ) start [2025-01-06 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185765', 'tblTempVendorCDR_20' ) end [2025-01-06 06:36:18] Production.INFO: ProcessCDR(1,14185765,1,1,2) [2025-01-06 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185765', 'tblTempUsageDetail_20' ) start [2025-01-06 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185765', 'tblTempUsageDetail_20' ) end [2025-01-06 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:36:21] Production.INFO: ==18205== Releasing lock... [2025-01-06 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:37:05 [end_date_ymd] => 2025-01-06 06:37:05 [RateCDR] => 1 ) [2025-01-06 06:37: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-01-06 03:37:05' and `end` < '2025-01-06 06:37: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-01-06 06:37:17] Production.INFO: count ==70 [2025-01-06 06:37:17] Production.ERROR: pbx CDR StartTime 2025-01-06 03:37:05 - End Time 2025-01-06 06:37:05 [2025-01-06 06:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185770', 'tblTempUsageDetail_20' ) start [2025-01-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185770', 'tblTempUsageDetail_20' ) end [2025-01-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185770', 'tblTempVendorCDR_20' ) start [2025-01-06 06:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185770', 'tblTempVendorCDR_20' ) end [2025-01-06 06:37:17] Production.INFO: ProcessCDR(1,14185770,1,1,2) [2025-01-06 06:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185770', 'tblTempUsageDetail_20' ) start [2025-01-06 06:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185770', 'tblTempUsageDetail_20' ) end [2025-01-06 06:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:37:20] Production.INFO: ==18276== Releasing lock... [2025-01-06 06:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:37:20] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:38:06 [end_date_ymd] => 2025-01-06 06:38:06 [RateCDR] => 1 ) [2025-01-06 06:38: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-01-06 03:38:06' and `end` < '2025-01-06 06:38: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-01-06 06:38:18] Production.INFO: count ==70 [2025-01-06 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:38:06 - End Time 2025-01-06 06:38:06 [2025-01-06 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185775', 'tblTempUsageDetail_20' ) start [2025-01-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185775', 'tblTempUsageDetail_20' ) end [2025-01-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185775', 'tblTempVendorCDR_20' ) start [2025-01-06 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185775', 'tblTempVendorCDR_20' ) end [2025-01-06 06:38:18] Production.INFO: ProcessCDR(1,14185775,1,1,2) [2025-01-06 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185775', 'tblTempUsageDetail_20' ) start [2025-01-06 06:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185775', 'tblTempUsageDetail_20' ) end [2025-01-06 06:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:38:22] Production.INFO: ==18353== Releasing lock... [2025-01-06 06:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:38:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:39:05 [end_date_ymd] => 2025-01-06 06:39:05 [RateCDR] => 1 ) [2025-01-06 06:39: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-01-06 03:39:05' and `end` < '2025-01-06 06:39: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-01-06 06:39:19] Production.INFO: count ==70 [2025-01-06 06:39:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:39:05 - End Time 2025-01-06 06:39:05 [2025-01-06 06:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185780', 'tblTempUsageDetail_20' ) start [2025-01-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185780', 'tblTempUsageDetail_20' ) end [2025-01-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185780', 'tblTempVendorCDR_20' ) start [2025-01-06 06:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185780', 'tblTempVendorCDR_20' ) end [2025-01-06 06:39:19] Production.INFO: ProcessCDR(1,14185780,1,1,2) [2025-01-06 06:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185780', 'tblTempUsageDetail_20' ) start [2025-01-06 06:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185780', 'tblTempUsageDetail_20' ) end [2025-01-06 06:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:39:22] Production.INFO: ==18467== Releasing lock... [2025-01-06 06:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:39:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:40:06 [end_date_ymd] => 2025-01-06 06:40:06 [RateCDR] => 1 ) [2025-01-06 06:40: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-01-06 03:40:06' and `end` < '2025-01-06 06:40: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-01-06 06:40:19] Production.INFO: count ==78 [2025-01-06 06:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:40:06 - End Time 2025-01-06 06:40:06 [2025-01-06 06:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185785', 'tblTempUsageDetail_20' ) start [2025-01-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185785', 'tblTempUsageDetail_20' ) end [2025-01-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185785', 'tblTempVendorCDR_20' ) start [2025-01-06 06:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185785', 'tblTempVendorCDR_20' ) end [2025-01-06 06:40:19] Production.INFO: ProcessCDR(1,14185785,1,1,2) [2025-01-06 06:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185785', 'tblTempUsageDetail_20' ) start [2025-01-06 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185785', 'tblTempUsageDetail_20' ) end [2025-01-06 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:40:22] Production.INFO: ==18548== Releasing lock... [2025-01-06 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:40:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:41:04 [end_date_ymd] => 2025-01-06 06:41:04 [RateCDR] => 1 ) [2025-01-06 06:41: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-01-06 03:41:04' and `end` < '2025-01-06 06:41: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-01-06 06:41:17] Production.INFO: count ==78 [2025-01-06 06:41:17] Production.ERROR: pbx CDR StartTime 2025-01-06 03:41:04 - End Time 2025-01-06 06:41:04 [2025-01-06 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185791', 'tblTempUsageDetail_20' ) start [2025-01-06 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185791', 'tblTempUsageDetail_20' ) end [2025-01-06 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185791', 'tblTempVendorCDR_20' ) start [2025-01-06 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185791', 'tblTempVendorCDR_20' ) end [2025-01-06 06:41:17] Production.INFO: ProcessCDR(1,14185791,1,1,2) [2025-01-06 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185791', 'tblTempUsageDetail_20' ) start [2025-01-06 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185791', 'tblTempUsageDetail_20' ) end [2025-01-06 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:41:20] Production.INFO: ==18621== Releasing lock... [2025-01-06 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:41:20] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:42:05 [end_date_ymd] => 2025-01-06 06:42:05 [RateCDR] => 1 ) [2025-01-06 06:42: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-01-06 03:42:05' and `end` < '2025-01-06 06:42: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-01-06 06:42:21] Production.INFO: count ==79 [2025-01-06 06:42:21] Production.ERROR: pbx CDR StartTime 2025-01-06 03:42:05 - End Time 2025-01-06 06:42:05 [2025-01-06 06:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185796', 'tblTempUsageDetail_20' ) start [2025-01-06 06:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185796', 'tblTempUsageDetail_20' ) end [2025-01-06 06:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185796', 'tblTempVendorCDR_20' ) start [2025-01-06 06:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185796', 'tblTempVendorCDR_20' ) end [2025-01-06 06:42:21] Production.INFO: ProcessCDR(1,14185796,1,1,2) [2025-01-06 06:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185796', 'tblTempUsageDetail_20' ) start [2025-01-06 06:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185796', 'tblTempUsageDetail_20' ) end [2025-01-06 06:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:42:24] Production.INFO: ==18698== Releasing lock... [2025-01-06 06:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:42:24] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:43:04 [end_date_ymd] => 2025-01-06 06:43:04 [RateCDR] => 1 ) [2025-01-06 06:43: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-01-06 03:43:04' and `end` < '2025-01-06 06:43: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-01-06 06:43:18] Production.INFO: count ==79 [2025-01-06 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:43:04 - End Time 2025-01-06 06:43:04 [2025-01-06 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185801', 'tblTempUsageDetail_20' ) start [2025-01-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185801', 'tblTempUsageDetail_20' ) end [2025-01-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185801', 'tblTempVendorCDR_20' ) start [2025-01-06 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185801', 'tblTempVendorCDR_20' ) end [2025-01-06 06:43:18] Production.INFO: ProcessCDR(1,14185801,1,1,2) [2025-01-06 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185801', 'tblTempUsageDetail_20' ) start [2025-01-06 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185801', 'tblTempUsageDetail_20' ) end [2025-01-06 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:43:21] Production.INFO: ==18772== Releasing lock... [2025-01-06 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:44:05 [end_date_ymd] => 2025-01-06 06:44:05 [RateCDR] => 1 ) [2025-01-06 06:44: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-01-06 03:44:05' and `end` < '2025-01-06 06:44: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-01-06 06:44:18] Production.INFO: count ==79 [2025-01-06 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:44:05 - End Time 2025-01-06 06:44:05 [2025-01-06 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185806', 'tblTempUsageDetail_20' ) start [2025-01-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185806', 'tblTempUsageDetail_20' ) end [2025-01-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185806', 'tblTempVendorCDR_20' ) start [2025-01-06 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185806', 'tblTempVendorCDR_20' ) end [2025-01-06 06:44:18] Production.INFO: ProcessCDR(1,14185806,1,1,2) [2025-01-06 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185806', 'tblTempUsageDetail_20' ) start [2025-01-06 06:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185806', 'tblTempUsageDetail_20' ) end [2025-01-06 06:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:44:22] Production.INFO: ==18844== Releasing lock... [2025-01-06 06:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:44:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:45:05 [end_date_ymd] => 2025-01-06 06:45:05 [RateCDR] => 1 ) [2025-01-06 06:45: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-01-06 03:45:05' and `end` < '2025-01-06 06:45: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-01-06 06:45:19] Production.INFO: count ==79 [2025-01-06 06:45:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:45:05 - End Time 2025-01-06 06:45:05 [2025-01-06 06:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185811', 'tblTempUsageDetail_20' ) start [2025-01-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185811', 'tblTempUsageDetail_20' ) end [2025-01-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185811', 'tblTempVendorCDR_20' ) start [2025-01-06 06:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185811', 'tblTempVendorCDR_20' ) end [2025-01-06 06:45:19] Production.INFO: ProcessCDR(1,14185811,1,1,2) [2025-01-06 06:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185811', 'tblTempUsageDetail_20' ) start [2025-01-06 06:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185811', 'tblTempUsageDetail_20' ) end [2025-01-06 06:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:45:22] Production.INFO: ==18922== Releasing lock... [2025-01-06 06:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:45:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:46:05 [end_date_ymd] => 2025-01-06 06:46:05 [RateCDR] => 1 ) [2025-01-06 06:46: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-01-06 03:46:05' and `end` < '2025-01-06 06:46: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-01-06 06:46:19] Production.INFO: count ==79 [2025-01-06 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:46:05 - End Time 2025-01-06 06:46:05 [2025-01-06 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185816', 'tblTempUsageDetail_20' ) start [2025-01-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185816', 'tblTempUsageDetail_20' ) end [2025-01-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185816', 'tblTempVendorCDR_20' ) start [2025-01-06 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185816', 'tblTempVendorCDR_20' ) end [2025-01-06 06:46:19] Production.INFO: ProcessCDR(1,14185816,1,1,2) [2025-01-06 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185816', 'tblTempUsageDetail_20' ) start [2025-01-06 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185816', 'tblTempUsageDetail_20' ) end [2025-01-06 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:46:22] Production.INFO: ==18994== Releasing lock... [2025-01-06 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:46:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:47:05 [end_date_ymd] => 2025-01-06 06:47:05 [RateCDR] => 1 ) [2025-01-06 06:47: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-01-06 03:47:05' and `end` < '2025-01-06 06:47: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-01-06 06:47:19] Production.INFO: count ==79 [2025-01-06 06:47:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:47:05 - End Time 2025-01-06 06:47:05 [2025-01-06 06:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185821', 'tblTempUsageDetail_20' ) start [2025-01-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185821', 'tblTempUsageDetail_20' ) end [2025-01-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185821', 'tblTempVendorCDR_20' ) start [2025-01-06 06:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185821', 'tblTempVendorCDR_20' ) end [2025-01-06 06:47:19] Production.INFO: ProcessCDR(1,14185821,1,1,2) [2025-01-06 06:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185821', 'tblTempUsageDetail_20' ) start [2025-01-06 06:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185821', 'tblTempUsageDetail_20' ) end [2025-01-06 06:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:47:22] Production.INFO: ==19069== Releasing lock... [2025-01-06 06:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:48:05 [end_date_ymd] => 2025-01-06 06:48:05 [RateCDR] => 1 ) [2025-01-06 06:48: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-01-06 03:48:05' and `end` < '2025-01-06 06:48: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-01-06 06:48:18] Production.INFO: count ==79 [2025-01-06 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:48:05 - End Time 2025-01-06 06:48:05 [2025-01-06 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185826', 'tblTempUsageDetail_20' ) start [2025-01-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185826', 'tblTempUsageDetail_20' ) end [2025-01-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185826', 'tblTempVendorCDR_20' ) start [2025-01-06 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185826', 'tblTempVendorCDR_20' ) end [2025-01-06 06:48:18] Production.INFO: ProcessCDR(1,14185826,1,1,2) [2025-01-06 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185826', 'tblTempUsageDetail_20' ) start [2025-01-06 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185826', 'tblTempUsageDetail_20' ) end [2025-01-06 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:48:21] Production.INFO: ==19143== Releasing lock... [2025-01-06 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:49:05 [end_date_ymd] => 2025-01-06 06:49:05 [RateCDR] => 1 ) [2025-01-06 06:49: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-01-06 03:49:05' and `end` < '2025-01-06 06:49: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-01-06 06:49:19] Production.INFO: count ==80 [2025-01-06 06:49:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:49:05 - End Time 2025-01-06 06:49:05 [2025-01-06 06:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185831', 'tblTempUsageDetail_20' ) start [2025-01-06 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185831', 'tblTempUsageDetail_20' ) end [2025-01-06 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185831', 'tblTempVendorCDR_20' ) start [2025-01-06 06:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185831', 'tblTempVendorCDR_20' ) end [2025-01-06 06:49:19] Production.INFO: ProcessCDR(1,14185831,1,1,2) [2025-01-06 06:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185831', 'tblTempUsageDetail_20' ) start [2025-01-06 06:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185831', 'tblTempUsageDetail_20' ) end [2025-01-06 06:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:49:24] Production.INFO: ==19218== Releasing lock... [2025-01-06 06:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:49:24] Production.INFO: 28 MB #Memory Used# [2025-01-06 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:50:05 [end_date_ymd] => 2025-01-06 06:50:05 [RateCDR] => 1 ) [2025-01-06 06:50: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-01-06 03:50:05' and `end` < '2025-01-06 06:50: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-01-06 06:50:18] Production.INFO: count ==84 [2025-01-06 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:50:05 - End Time 2025-01-06 06:50:05 [2025-01-06 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185836', 'tblTempUsageDetail_20' ) start [2025-01-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185836', 'tblTempUsageDetail_20' ) end [2025-01-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185836', 'tblTempVendorCDR_20' ) start [2025-01-06 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185836', 'tblTempVendorCDR_20' ) end [2025-01-06 06:50:18] Production.INFO: ProcessCDR(1,14185836,1,1,2) [2025-01-06 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185836', 'tblTempUsageDetail_20' ) start [2025-01-06 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185836', 'tblTempUsageDetail_20' ) end [2025-01-06 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:50:21] Production.INFO: ==19293== Releasing lock... [2025-01-06 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:50:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:51:05 [end_date_ymd] => 2025-01-06 06:51:05 [RateCDR] => 1 ) [2025-01-06 06:51: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-01-06 03:51:05' and `end` < '2025-01-06 06:51: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-01-06 06:51:18] Production.INFO: count ==94 [2025-01-06 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:51:05 - End Time 2025-01-06 06:51:05 [2025-01-06 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185842', 'tblTempUsageDetail_20' ) start [2025-01-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185842', 'tblTempUsageDetail_20' ) end [2025-01-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185842', 'tblTempVendorCDR_20' ) start [2025-01-06 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185842', 'tblTempVendorCDR_20' ) end [2025-01-06 06:51:18] Production.INFO: ProcessCDR(1,14185842,1,1,2) [2025-01-06 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185842', 'tblTempUsageDetail_20' ) start [2025-01-06 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185842', 'tblTempUsageDetail_20' ) end [2025-01-06 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:51:21] Production.INFO: ==19370== Releasing lock... [2025-01-06 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:51:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:52:05 [end_date_ymd] => 2025-01-06 06:52:05 [RateCDR] => 1 ) [2025-01-06 06:52: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-01-06 03:52:05' and `end` < '2025-01-06 06:52: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-01-06 06:52:19] Production.INFO: count ==94 [2025-01-06 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:52:05 - End Time 2025-01-06 06:52:05 [2025-01-06 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185847', 'tblTempUsageDetail_20' ) start [2025-01-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185847', 'tblTempUsageDetail_20' ) end [2025-01-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185847', 'tblTempVendorCDR_20' ) start [2025-01-06 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185847', 'tblTempVendorCDR_20' ) end [2025-01-06 06:52:19] Production.INFO: ProcessCDR(1,14185847,1,1,2) [2025-01-06 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185847', 'tblTempUsageDetail_20' ) start [2025-01-06 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185847', 'tblTempUsageDetail_20' ) end [2025-01-06 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:52:22] Production.INFO: ==19445== Releasing lock... [2025-01-06 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:52:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:53:05 [end_date_ymd] => 2025-01-06 06:53:05 [RateCDR] => 1 ) [2025-01-06 06:53: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-01-06 03:53:05' and `end` < '2025-01-06 06:53: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-01-06 06:53:18] Production.INFO: count ==94 [2025-01-06 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:53:05 - End Time 2025-01-06 06:53:05 [2025-01-06 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185852', 'tblTempUsageDetail_20' ) start [2025-01-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185852', 'tblTempUsageDetail_20' ) end [2025-01-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185852', 'tblTempVendorCDR_20' ) start [2025-01-06 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185852', 'tblTempVendorCDR_20' ) end [2025-01-06 06:53:18] Production.INFO: ProcessCDR(1,14185852,1,1,2) [2025-01-06 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185852', 'tblTempUsageDetail_20' ) start [2025-01-06 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185852', 'tblTempUsageDetail_20' ) end [2025-01-06 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:53:21] Production.INFO: ==19520== Releasing lock... [2025-01-06 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:53:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:54:05 [end_date_ymd] => 2025-01-06 06:54:05 [RateCDR] => 1 ) [2025-01-06 06:54: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-01-06 03:54:05' and `end` < '2025-01-06 06:54: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-01-06 06:54:19] Production.INFO: count ==94 [2025-01-06 06:54:19] Production.ERROR: pbx CDR StartTime 2025-01-06 03:54:05 - End Time 2025-01-06 06:54:05 [2025-01-06 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185857', 'tblTempUsageDetail_20' ) start [2025-01-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185857', 'tblTempUsageDetail_20' ) end [2025-01-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185857', 'tblTempVendorCDR_20' ) start [2025-01-06 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185857', 'tblTempVendorCDR_20' ) end [2025-01-06 06:54:19] Production.INFO: ProcessCDR(1,14185857,1,1,2) [2025-01-06 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185857', 'tblTempUsageDetail_20' ) start [2025-01-06 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185857', 'tblTempUsageDetail_20' ) end [2025-01-06 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:54:22] Production.INFO: ==19600== Releasing lock... [2025-01-06 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:54:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:55:05 [end_date_ymd] => 2025-01-06 06:55:05 [RateCDR] => 1 ) [2025-01-06 06:55: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-01-06 03:55:05' and `end` < '2025-01-06 06:55: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-01-06 06:55:18] Production.INFO: count ==94 [2025-01-06 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:55:05 - End Time 2025-01-06 06:55:05 [2025-01-06 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185862', 'tblTempUsageDetail_20' ) start [2025-01-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185862', 'tblTempUsageDetail_20' ) end [2025-01-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185862', 'tblTempVendorCDR_20' ) start [2025-01-06 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185862', 'tblTempVendorCDR_20' ) end [2025-01-06 06:55:18] Production.INFO: ProcessCDR(1,14185862,1,1,2) [2025-01-06 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185862', 'tblTempUsageDetail_20' ) start [2025-01-06 06:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185862', 'tblTempUsageDetail_20' ) end [2025-01-06 06:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:55:22] Production.INFO: ==19716== Releasing lock... [2025-01-06 06:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:55:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:56:05 [end_date_ymd] => 2025-01-06 06:56:05 [RateCDR] => 1 ) [2025-01-06 06:56: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-01-06 03:56:05' and `end` < '2025-01-06 06:56: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-01-06 06:56:18] Production.INFO: count ==94 [2025-01-06 06:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:56:05 - End Time 2025-01-06 06:56:05 [2025-01-06 06:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185867', 'tblTempUsageDetail_20' ) start [2025-01-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185867', 'tblTempUsageDetail_20' ) end [2025-01-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185867', 'tblTempVendorCDR_20' ) start [2025-01-06 06:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185867', 'tblTempVendorCDR_20' ) end [2025-01-06 06:56:18] Production.INFO: ProcessCDR(1,14185867,1,1,2) [2025-01-06 06:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185867', 'tblTempUsageDetail_20' ) start [2025-01-06 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185867', 'tblTempUsageDetail_20' ) end [2025-01-06 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:56:21] Production.INFO: ==19795== Releasing lock... [2025-01-06 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:56:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:57:05 [end_date_ymd] => 2025-01-06 06:57:05 [RateCDR] => 1 ) [2025-01-06 06:57: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-01-06 03:57:05' and `end` < '2025-01-06 06:57: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-01-06 06:57:21] Production.INFO: count ==94 [2025-01-06 06:57:21] Production.ERROR: pbx CDR StartTime 2025-01-06 03:57:05 - End Time 2025-01-06 06:57:05 [2025-01-06 06:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185872', 'tblTempUsageDetail_20' ) start [2025-01-06 06:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185872', 'tblTempUsageDetail_20' ) end [2025-01-06 06:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185872', 'tblTempVendorCDR_20' ) start [2025-01-06 06:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185872', 'tblTempVendorCDR_20' ) end [2025-01-06 06:57:21] Production.INFO: ProcessCDR(1,14185872,1,1,2) [2025-01-06 06:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185872', 'tblTempUsageDetail_20' ) start [2025-01-06 06:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185872', 'tblTempUsageDetail_20' ) end [2025-01-06 06:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:57:24] Production.INFO: ==19869== Releasing lock... [2025-01-06 06:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:57:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:58:05 [end_date_ymd] => 2025-01-06 06:58:05 [RateCDR] => 1 ) [2025-01-06 06:58: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-01-06 03:58:05' and `end` < '2025-01-06 06:58: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-01-06 06:58:18] Production.INFO: count ==94 [2025-01-06 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:58:05 - End Time 2025-01-06 06:58:05 [2025-01-06 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185877', 'tblTempUsageDetail_20' ) start [2025-01-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185877', 'tblTempUsageDetail_20' ) end [2025-01-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185877', 'tblTempVendorCDR_20' ) start [2025-01-06 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185877', 'tblTempVendorCDR_20' ) end [2025-01-06 06:58:18] Production.INFO: ProcessCDR(1,14185877,1,1,2) [2025-01-06 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185877', 'tblTempUsageDetail_20' ) start [2025-01-06 06:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185877', 'tblTempUsageDetail_20' ) end [2025-01-06 06:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:58:22] Production.INFO: ==19944== Releasing lock... [2025-01-06 06:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:58:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 03:59:05 [end_date_ymd] => 2025-01-06 06:59:05 [RateCDR] => 1 ) [2025-01-06 06:59: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-01-06 03:59:05' and `end` < '2025-01-06 06:59: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-01-06 06:59:18] Production.INFO: count ==94 [2025-01-06 06:59:18] Production.ERROR: pbx CDR StartTime 2025-01-06 03:59:05 - End Time 2025-01-06 06:59:05 [2025-01-06 06:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185882', 'tblTempUsageDetail_20' ) start [2025-01-06 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185882', 'tblTempUsageDetail_20' ) end [2025-01-06 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185882', 'tblTempVendorCDR_20' ) start [2025-01-06 06:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185882', 'tblTempVendorCDR_20' ) end [2025-01-06 06:59:18] Production.INFO: ProcessCDR(1,14185882,1,1,2) [2025-01-06 06:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 06:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185882', 'tblTempUsageDetail_20' ) start [2025-01-06 06:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185882', 'tblTempUsageDetail_20' ) end [2025-01-06 06:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 06:59:21] Production.INFO: ==20019== Releasing lock... [2025-01-06 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 06:59:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:00:05 [end_date_ymd] => 2025-01-06 07:00:05 [RateCDR] => 1 ) [2025-01-06 07: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-01-06 04:00:05' and `end` < '2025-01-06 07: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-01-06 07:00:24] Production.INFO: count ==94 [2025-01-06 07:00:24] Production.ERROR: pbx CDR StartTime 2025-01-06 04:00:05 - End Time 2025-01-06 07:00:05 [2025-01-06 07:00:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185888', 'tblTempUsageDetail_20' ) start [2025-01-06 07:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185888', 'tblTempUsageDetail_20' ) end [2025-01-06 07:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185888', 'tblTempVendorCDR_20' ) start [2025-01-06 07:00:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185888', 'tblTempVendorCDR_20' ) end [2025-01-06 07:00:24] Production.INFO: ProcessCDR(1,14185888,1,1,2) [2025-01-06 07:00:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185888', 'tblTempUsageDetail_20' ) start [2025-01-06 07:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185888', 'tblTempUsageDetail_20' ) end [2025-01-06 07:00:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:00:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:00:27] Production.INFO: ==20096== Releasing lock... [2025-01-06 07:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:00:27] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:01:05 [end_date_ymd] => 2025-01-06 07:01:05 [RateCDR] => 1 ) [2025-01-06 07:01: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-01-06 04:01:05' and `end` < '2025-01-06 07:01: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-01-06 07:01:20] Production.INFO: count ==94 [2025-01-06 07:01:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:01:05 - End Time 2025-01-06 07:01:05 [2025-01-06 07:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185893', 'tblTempUsageDetail_20' ) start [2025-01-06 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185893', 'tblTempUsageDetail_20' ) end [2025-01-06 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185893', 'tblTempVendorCDR_20' ) start [2025-01-06 07:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185893', 'tblTempVendorCDR_20' ) end [2025-01-06 07:01:20] Production.INFO: ProcessCDR(1,14185893,1,1,2) [2025-01-06 07:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185893', 'tblTempUsageDetail_20' ) start [2025-01-06 07:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185893', 'tblTempUsageDetail_20' ) end [2025-01-06 07:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:01:23] Production.INFO: ==20263== Releasing lock... [2025-01-06 07:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:02:05 [end_date_ymd] => 2025-01-06 07:02:05 [RateCDR] => 1 ) [2025-01-06 07:02: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-01-06 04:02:05' and `end` < '2025-01-06 07:02: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-01-06 07:02:18] Production.INFO: count ==94 [2025-01-06 07:02:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:02:05 - End Time 2025-01-06 07:02:05 [2025-01-06 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185898', 'tblTempUsageDetail_20' ) start [2025-01-06 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185898', 'tblTempUsageDetail_20' ) end [2025-01-06 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185898', 'tblTempVendorCDR_20' ) start [2025-01-06 07:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185898', 'tblTempVendorCDR_20' ) end [2025-01-06 07:02:19] Production.INFO: ProcessCDR(1,14185898,1,1,2) [2025-01-06 07:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185898', 'tblTempUsageDetail_20' ) start [2025-01-06 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185898', 'tblTempUsageDetail_20' ) end [2025-01-06 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:02:22] Production.INFO: ==20336== Releasing lock... [2025-01-06 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:03:05 [end_date_ymd] => 2025-01-06 07:03:05 [RateCDR] => 1 ) [2025-01-06 07:03: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-01-06 04:03:05' and `end` < '2025-01-06 07:03: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-01-06 07:03:20] Production.INFO: count ==94 [2025-01-06 07:03:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:03:05 - End Time 2025-01-06 07:03:05 [2025-01-06 07:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185903', 'tblTempUsageDetail_20' ) start [2025-01-06 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185903', 'tblTempUsageDetail_20' ) end [2025-01-06 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185903', 'tblTempVendorCDR_20' ) start [2025-01-06 07:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185903', 'tblTempVendorCDR_20' ) end [2025-01-06 07:03:20] Production.INFO: ProcessCDR(1,14185903,1,1,2) [2025-01-06 07:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185903', 'tblTempUsageDetail_20' ) start [2025-01-06 07:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185903', 'tblTempUsageDetail_20' ) end [2025-01-06 07:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:03:24] Production.INFO: ==20408== Releasing lock... [2025-01-06 07:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:03:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:04:06 [end_date_ymd] => 2025-01-06 07:04:06 [RateCDR] => 1 ) [2025-01-06 07:04: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-01-06 04:04:06' and `end` < '2025-01-06 07:04: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-01-06 07:04:19] Production.INFO: count ==94 [2025-01-06 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:04:06 - End Time 2025-01-06 07:04:06 [2025-01-06 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185908', 'tblTempUsageDetail_20' ) start [2025-01-06 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185908', 'tblTempUsageDetail_20' ) end [2025-01-06 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185908', 'tblTempVendorCDR_20' ) start [2025-01-06 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185908', 'tblTempVendorCDR_20' ) end [2025-01-06 07:04:19] Production.INFO: ProcessCDR(1,14185908,1,1,2) [2025-01-06 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185908', 'tblTempUsageDetail_20' ) start [2025-01-06 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185908', 'tblTempUsageDetail_20' ) end [2025-01-06 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:04:23] Production.INFO: ==20479== Releasing lock... [2025-01-06 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:04:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:05:05 [end_date_ymd] => 2025-01-06 07:05:05 [RateCDR] => 1 ) [2025-01-06 07:05: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-01-06 04:05:05' and `end` < '2025-01-06 07:05: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-01-06 07:05:20] Production.INFO: count ==94 [2025-01-06 07:05:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:05:05 - End Time 2025-01-06 07:05:05 [2025-01-06 07:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185913', 'tblTempUsageDetail_20' ) start [2025-01-06 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185913', 'tblTempUsageDetail_20' ) end [2025-01-06 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185913', 'tblTempVendorCDR_20' ) start [2025-01-06 07:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185913', 'tblTempVendorCDR_20' ) end [2025-01-06 07:05:20] Production.INFO: ProcessCDR(1,14185913,1,1,2) [2025-01-06 07:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185913', 'tblTempUsageDetail_20' ) start [2025-01-06 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185913', 'tblTempUsageDetail_20' ) end [2025-01-06 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:05:23] Production.INFO: ==20628== Releasing lock... [2025-01-06 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:05:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:06:05 [end_date_ymd] => 2025-01-06 07:06:05 [RateCDR] => 1 ) [2025-01-06 07:06: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-01-06 04:06:05' and `end` < '2025-01-06 07:06: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-01-06 07:06:19] Production.INFO: count ==94 [2025-01-06 07:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:06:05 - End Time 2025-01-06 07:06:05 [2025-01-06 07:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185918', 'tblTempUsageDetail_20' ) start [2025-01-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185918', 'tblTempUsageDetail_20' ) end [2025-01-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185918', 'tblTempVendorCDR_20' ) start [2025-01-06 07:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185918', 'tblTempVendorCDR_20' ) end [2025-01-06 07:06:19] Production.INFO: ProcessCDR(1,14185918,1,1,2) [2025-01-06 07:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185918', 'tblTempUsageDetail_20' ) start [2025-01-06 07:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185918', 'tblTempUsageDetail_20' ) end [2025-01-06 07:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:06:22] Production.INFO: ==20697== Releasing lock... [2025-01-06 07:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:06:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:07:05 [end_date_ymd] => 2025-01-06 07:07:05 [RateCDR] => 1 ) [2025-01-06 07:07: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-01-06 04:07:05' and `end` < '2025-01-06 07:07: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-01-06 07:07:19] Production.INFO: count ==94 [2025-01-06 07:07:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:07:05 - End Time 2025-01-06 07:07:05 [2025-01-06 07:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185923', 'tblTempUsageDetail_20' ) start [2025-01-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185923', 'tblTempUsageDetail_20' ) end [2025-01-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185923', 'tblTempVendorCDR_20' ) start [2025-01-06 07:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185923', 'tblTempVendorCDR_20' ) end [2025-01-06 07:07:19] Production.INFO: ProcessCDR(1,14185923,1,1,2) [2025-01-06 07:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185923', 'tblTempUsageDetail_20' ) start [2025-01-06 07:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185923', 'tblTempUsageDetail_20' ) end [2025-01-06 07:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:07:22] Production.INFO: ==20768== Releasing lock... [2025-01-06 07:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:07:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:08:05 [end_date_ymd] => 2025-01-06 07:08:05 [RateCDR] => 1 ) [2025-01-06 07:08: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-01-06 04:08:05' and `end` < '2025-01-06 07:08: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-01-06 07:08:18] Production.INFO: count ==94 [2025-01-06 07:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:08:05 - End Time 2025-01-06 07:08:05 [2025-01-06 07:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185928', 'tblTempUsageDetail_20' ) start [2025-01-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185928', 'tblTempUsageDetail_20' ) end [2025-01-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185928', 'tblTempVendorCDR_20' ) start [2025-01-06 07:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185928', 'tblTempVendorCDR_20' ) end [2025-01-06 07:08:18] Production.INFO: ProcessCDR(1,14185928,1,1,2) [2025-01-06 07:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185928', 'tblTempUsageDetail_20' ) start [2025-01-06 07:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185928', 'tblTempUsageDetail_20' ) end [2025-01-06 07:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:08:21] Production.INFO: ==20927== Releasing lock... [2025-01-06 07:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:08:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:09:04 [end_date_ymd] => 2025-01-06 07:09:04 [RateCDR] => 1 ) [2025-01-06 07:09: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-01-06 04:09:04' and `end` < '2025-01-06 07:09: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-01-06 07:09:18] Production.INFO: count ==94 [2025-01-06 07:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:09:04 - End Time 2025-01-06 07:09:04 [2025-01-06 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185933', 'tblTempUsageDetail_20' ) start [2025-01-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185933', 'tblTempUsageDetail_20' ) end [2025-01-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185933', 'tblTempVendorCDR_20' ) start [2025-01-06 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185933', 'tblTempVendorCDR_20' ) end [2025-01-06 07:09:18] Production.INFO: ProcessCDR(1,14185933,1,1,2) [2025-01-06 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185933', 'tblTempUsageDetail_20' ) start [2025-01-06 07:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185933', 'tblTempUsageDetail_20' ) end [2025-01-06 07:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:09:22] Production.INFO: ==21002== Releasing lock... [2025-01-06 07:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:09:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:10:05 [end_date_ymd] => 2025-01-06 07:10:05 [RateCDR] => 1 ) [2025-01-06 07:10: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-01-06 04:10:05' and `end` < '2025-01-06 07:10: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-01-06 07:10:21] Production.INFO: count ==101 [2025-01-06 07:10:21] Production.ERROR: pbx CDR StartTime 2025-01-06 04:10:05 - End Time 2025-01-06 07:10:05 [2025-01-06 07:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185938', 'tblTempUsageDetail_20' ) start [2025-01-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185938', 'tblTempUsageDetail_20' ) end [2025-01-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185938', 'tblTempVendorCDR_20' ) start [2025-01-06 07:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185938', 'tblTempVendorCDR_20' ) end [2025-01-06 07:10:21] Production.INFO: ProcessCDR(1,14185938,1,1,2) [2025-01-06 07:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185938', 'tblTempUsageDetail_20' ) start [2025-01-06 07:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185938', 'tblTempUsageDetail_20' ) end [2025-01-06 07:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:10:26] Production.INFO: ==21123== Releasing lock... [2025-01-06 07:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:10:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:11:05 [end_date_ymd] => 2025-01-06 07:11:05 [RateCDR] => 1 ) [2025-01-06 07:11: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-01-06 04:11:05' and `end` < '2025-01-06 07:11: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-01-06 07:11:19] Production.INFO: count ==103 [2025-01-06 07:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:11:05 - End Time 2025-01-06 07:11:05 [2025-01-06 07:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185944', 'tblTempUsageDetail_20' ) start [2025-01-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185944', 'tblTempUsageDetail_20' ) end [2025-01-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185944', 'tblTempVendorCDR_20' ) start [2025-01-06 07:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185944', 'tblTempVendorCDR_20' ) end [2025-01-06 07:11:19] Production.INFO: ProcessCDR(1,14185944,1,1,2) [2025-01-06 07:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185944', 'tblTempUsageDetail_20' ) start [2025-01-06 07:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185944', 'tblTempUsageDetail_20' ) end [2025-01-06 07:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:11:22] Production.INFO: ==21204== Releasing lock... [2025-01-06 07:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:11:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:12:05 [end_date_ymd] => 2025-01-06 07:12:05 [RateCDR] => 1 ) [2025-01-06 07:12: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-01-06 04:12:05' and `end` < '2025-01-06 07:12: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-01-06 07:12:19] Production.INFO: count ==103 [2025-01-06 07:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:12:05 - End Time 2025-01-06 07:12:05 [2025-01-06 07:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185949', 'tblTempUsageDetail_20' ) start [2025-01-06 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185949', 'tblTempUsageDetail_20' ) end [2025-01-06 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185949', 'tblTempVendorCDR_20' ) start [2025-01-06 07:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185949', 'tblTempVendorCDR_20' ) end [2025-01-06 07:12:19] Production.INFO: ProcessCDR(1,14185949,1,1,2) [2025-01-06 07:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185949', 'tblTempUsageDetail_20' ) start [2025-01-06 07:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185949', 'tblTempUsageDetail_20' ) end [2025-01-06 07:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:12:23] Production.INFO: ==21362== Releasing lock... [2025-01-06 07:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:12:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:13:05 [end_date_ymd] => 2025-01-06 07:13:05 [RateCDR] => 1 ) [2025-01-06 07:13: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-01-06 04:13:05' and `end` < '2025-01-06 07:13: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-01-06 07:13:19] Production.INFO: count ==103 [2025-01-06 07:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:13:05 - End Time 2025-01-06 07:13:05 [2025-01-06 07:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185954', 'tblTempUsageDetail_20' ) start [2025-01-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185954', 'tblTempUsageDetail_20' ) end [2025-01-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185954', 'tblTempVendorCDR_20' ) start [2025-01-06 07:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185954', 'tblTempVendorCDR_20' ) end [2025-01-06 07:13:19] Production.INFO: ProcessCDR(1,14185954,1,1,2) [2025-01-06 07:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185954', 'tblTempUsageDetail_20' ) start [2025-01-06 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185954', 'tblTempUsageDetail_20' ) end [2025-01-06 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:13:23] Production.INFO: ==21443== Releasing lock... [2025-01-06 07:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:13:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:14:05 [end_date_ymd] => 2025-01-06 07:14:05 [RateCDR] => 1 ) [2025-01-06 07:14: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-01-06 04:14:05' and `end` < '2025-01-06 07:14: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-01-06 07:14:18] Production.INFO: count ==103 [2025-01-06 07:14:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:14:05 - End Time 2025-01-06 07:14:05 [2025-01-06 07:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185959', 'tblTempUsageDetail_20' ) start [2025-01-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185959', 'tblTempUsageDetail_20' ) end [2025-01-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185959', 'tblTempVendorCDR_20' ) start [2025-01-06 07:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185959', 'tblTempVendorCDR_20' ) end [2025-01-06 07:14:18] Production.INFO: ProcessCDR(1,14185959,1,1,2) [2025-01-06 07:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185959', 'tblTempUsageDetail_20' ) start [2025-01-06 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185959', 'tblTempUsageDetail_20' ) end [2025-01-06 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:14:22] Production.INFO: ==21521== Releasing lock... [2025-01-06 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:14:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:15:06 [end_date_ymd] => 2025-01-06 07:15:06 [RateCDR] => 1 ) [2025-01-06 07:15: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-01-06 04:15:06' and `end` < '2025-01-06 07:15: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-01-06 07:15:21] Production.INFO: count ==103 [2025-01-06 07:15:21] Production.ERROR: pbx CDR StartTime 2025-01-06 04:15:06 - End Time 2025-01-06 07:15:06 [2025-01-06 07:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185964', 'tblTempUsageDetail_20' ) start [2025-01-06 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185964', 'tblTempUsageDetail_20' ) end [2025-01-06 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185964', 'tblTempVendorCDR_20' ) start [2025-01-06 07:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185964', 'tblTempVendorCDR_20' ) end [2025-01-06 07:15:21] Production.INFO: ProcessCDR(1,14185964,1,1,2) [2025-01-06 07:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185964', 'tblTempUsageDetail_20' ) start [2025-01-06 07:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185964', 'tblTempUsageDetail_20' ) end [2025-01-06 07:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:15:24] Production.INFO: ==21677== Releasing lock... [2025-01-06 07:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:15:24] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:16:05 [end_date_ymd] => 2025-01-06 07:16:05 [RateCDR] => 1 ) [2025-01-06 07:16: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-01-06 04:16:05' and `end` < '2025-01-06 07:16: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-01-06 07:16:18] Production.INFO: count ==103 [2025-01-06 07:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:16:05 - End Time 2025-01-06 07:16:05 [2025-01-06 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185969', 'tblTempUsageDetail_20' ) start [2025-01-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185969', 'tblTempUsageDetail_20' ) end [2025-01-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185969', 'tblTempVendorCDR_20' ) start [2025-01-06 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185969', 'tblTempVendorCDR_20' ) end [2025-01-06 07:16:18] Production.INFO: ProcessCDR(1,14185969,1,1,2) [2025-01-06 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185969', 'tblTempUsageDetail_20' ) start [2025-01-06 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185969', 'tblTempUsageDetail_20' ) end [2025-01-06 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:16:21] Production.INFO: ==21756== Releasing lock... [2025-01-06 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:16:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:17:05 [end_date_ymd] => 2025-01-06 07:17:05 [RateCDR] => 1 ) [2025-01-06 07:17: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-01-06 04:17:05' and `end` < '2025-01-06 07:17: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-01-06 07:17:19] Production.INFO: count ==103 [2025-01-06 07:17:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:17:05 - End Time 2025-01-06 07:17:05 [2025-01-06 07:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185974', 'tblTempUsageDetail_20' ) start [2025-01-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185974', 'tblTempUsageDetail_20' ) end [2025-01-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185974', 'tblTempVendorCDR_20' ) start [2025-01-06 07:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185974', 'tblTempVendorCDR_20' ) end [2025-01-06 07:17:19] Production.INFO: ProcessCDR(1,14185974,1,1,2) [2025-01-06 07:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185974', 'tblTempUsageDetail_20' ) start [2025-01-06 07:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185974', 'tblTempUsageDetail_20' ) end [2025-01-06 07:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:17:22] Production.INFO: ==21838== Releasing lock... [2025-01-06 07:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:17:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:18:05 [end_date_ymd] => 2025-01-06 07:18:05 [RateCDR] => 1 ) [2025-01-06 07:18: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-01-06 04:18:05' and `end` < '2025-01-06 07:18: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-01-06 07:18:20] Production.INFO: count ==103 [2025-01-06 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:18:05 - End Time 2025-01-06 07:18:05 [2025-01-06 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185979', 'tblTempUsageDetail_20' ) start [2025-01-06 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185979', 'tblTempUsageDetail_20' ) end [2025-01-06 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185979', 'tblTempVendorCDR_20' ) start [2025-01-06 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185979', 'tblTempVendorCDR_20' ) end [2025-01-06 07:18:20] Production.INFO: ProcessCDR(1,14185979,1,1,2) [2025-01-06 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185979', 'tblTempUsageDetail_20' ) start [2025-01-06 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185979', 'tblTempUsageDetail_20' ) end [2025-01-06 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:18:23] Production.INFO: ==21916== Releasing lock... [2025-01-06 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:18:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:19:05 [end_date_ymd] => 2025-01-06 07:19:05 [RateCDR] => 1 ) [2025-01-06 07:19: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-01-06 04:19:05' and `end` < '2025-01-06 07:19: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-01-06 07:19:18] Production.INFO: count ==103 [2025-01-06 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:19:05 - End Time 2025-01-06 07:19:05 [2025-01-06 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185984', 'tblTempUsageDetail_20' ) start [2025-01-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185984', 'tblTempUsageDetail_20' ) end [2025-01-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185984', 'tblTempVendorCDR_20' ) start [2025-01-06 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185984', 'tblTempVendorCDR_20' ) end [2025-01-06 07:19:18] Production.INFO: ProcessCDR(1,14185984,1,1,2) [2025-01-06 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185984', 'tblTempUsageDetail_20' ) start [2025-01-06 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185984', 'tblTempUsageDetail_20' ) end [2025-01-06 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:19:21] Production.INFO: ==22008== Releasing lock... [2025-01-06 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:19:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:20:06 [end_date_ymd] => 2025-01-06 07:20:06 [RateCDR] => 1 ) [2025-01-06 07:20: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-01-06 04:20:06' and `end` < '2025-01-06 07:20: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-01-06 07:20:19] Production.INFO: count ==111 [2025-01-06 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:20:06 - End Time 2025-01-06 07:20:06 [2025-01-06 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185990', 'tblTempUsageDetail_20' ) start [2025-01-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185990', 'tblTempUsageDetail_20' ) end [2025-01-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185990', 'tblTempVendorCDR_20' ) start [2025-01-06 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185990', 'tblTempVendorCDR_20' ) end [2025-01-06 07:20:19] Production.INFO: ProcessCDR(1,14185990,1,1,2) [2025-01-06 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185990', 'tblTempUsageDetail_20' ) start [2025-01-06 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185990', 'tblTempUsageDetail_20' ) end [2025-01-06 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:20:22] Production.INFO: ==22116== Releasing lock... [2025-01-06 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:20:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:21:05 [end_date_ymd] => 2025-01-06 07:21:05 [RateCDR] => 1 ) [2025-01-06 07:21: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-01-06 04:21:05' and `end` < '2025-01-06 07:21: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-01-06 07:21:20] Production.INFO: count ==111 [2025-01-06 07:21:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:21:05 - End Time 2025-01-06 07:21:05 [2025-01-06 07:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185995', 'tblTempUsageDetail_20' ) start [2025-01-06 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14185995', 'tblTempUsageDetail_20' ) end [2025-01-06 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185995', 'tblTempVendorCDR_20' ) start [2025-01-06 07:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14185995', 'tblTempVendorCDR_20' ) end [2025-01-06 07:21:20] Production.INFO: ProcessCDR(1,14185995,1,1,2) [2025-01-06 07:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14185995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14185995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14185995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14185995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185995', 'tblTempUsageDetail_20' ) start [2025-01-06 07:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14185995', 'tblTempUsageDetail_20' ) end [2025-01-06 07:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:21:23] Production.INFO: ==22202== Releasing lock... [2025-01-06 07:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:21:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:22:06 [end_date_ymd] => 2025-01-06 07:22:06 [RateCDR] => 1 ) [2025-01-06 07:22: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-01-06 04:22:06' and `end` < '2025-01-06 07:22: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-01-06 07:22:22] Production.INFO: count ==111 [2025-01-06 07:22:22] Production.ERROR: pbx CDR StartTime 2025-01-06 04:22:06 - End Time 2025-01-06 07:22:06 [2025-01-06 07:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186000', 'tblTempUsageDetail_20' ) start [2025-01-06 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186000', 'tblTempUsageDetail_20' ) end [2025-01-06 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186000', 'tblTempVendorCDR_20' ) start [2025-01-06 07:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186000', 'tblTempVendorCDR_20' ) end [2025-01-06 07:22:22] Production.INFO: ProcessCDR(1,14186000,1,1,2) [2025-01-06 07:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186000', 'tblTempUsageDetail_20' ) start [2025-01-06 07:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186000', 'tblTempUsageDetail_20' ) end [2025-01-06 07:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:22:25] Production.INFO: ==22284== Releasing lock... [2025-01-06 07:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:22:25] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:23:05 [end_date_ymd] => 2025-01-06 07:23:05 [RateCDR] => 1 ) [2025-01-06 07:23: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-01-06 04:23:05' and `end` < '2025-01-06 07:23: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-01-06 07:23:18] Production.INFO: count ==111 [2025-01-06 07:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:23:05 - End Time 2025-01-06 07:23:05 [2025-01-06 07:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186005', 'tblTempUsageDetail_20' ) start [2025-01-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186005', 'tblTempUsageDetail_20' ) end [2025-01-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186005', 'tblTempVendorCDR_20' ) start [2025-01-06 07:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186005', 'tblTempVendorCDR_20' ) end [2025-01-06 07:23:18] Production.INFO: ProcessCDR(1,14186005,1,1,2) [2025-01-06 07:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186005', 'tblTempUsageDetail_20' ) start [2025-01-06 07:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186005', 'tblTempUsageDetail_20' ) end [2025-01-06 07:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:23:21] Production.INFO: ==22362== Releasing lock... [2025-01-06 07:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:23:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:24:05 [end_date_ymd] => 2025-01-06 07:24:05 [RateCDR] => 1 ) [2025-01-06 07:24: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-01-06 04:24:05' and `end` < '2025-01-06 07:24: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-01-06 07:24:18] Production.INFO: count ==111 [2025-01-06 07:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:24:05 - End Time 2025-01-06 07:24:05 [2025-01-06 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186010', 'tblTempUsageDetail_20' ) start [2025-01-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186010', 'tblTempUsageDetail_20' ) end [2025-01-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186010', 'tblTempVendorCDR_20' ) start [2025-01-06 07:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186010', 'tblTempVendorCDR_20' ) end [2025-01-06 07:24:19] Production.INFO: ProcessCDR(1,14186010,1,1,2) [2025-01-06 07:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186010', 'tblTempUsageDetail_20' ) start [2025-01-06 07:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186010', 'tblTempUsageDetail_20' ) end [2025-01-06 07:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:24:22] Production.INFO: ==22444== Releasing lock... [2025-01-06 07:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:24:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:25:05 [end_date_ymd] => 2025-01-06 07:25:05 [RateCDR] => 1 ) [2025-01-06 07:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 04:25:05' and `end` < '2025-01-06 07:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 07:25:18] Production.INFO: count ==111 [2025-01-06 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:25:05 - End Time 2025-01-06 07:25:05 [2025-01-06 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186015', 'tblTempUsageDetail_20' ) start [2025-01-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186015', 'tblTempUsageDetail_20' ) end [2025-01-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186015', 'tblTempVendorCDR_20' ) start [2025-01-06 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186015', 'tblTempVendorCDR_20' ) end [2025-01-06 07:25:18] Production.INFO: ProcessCDR(1,14186015,1,1,2) [2025-01-06 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186015', 'tblTempUsageDetail_20' ) start [2025-01-06 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186015', 'tblTempUsageDetail_20' ) end [2025-01-06 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:25:21] Production.INFO: ==22520== Releasing lock... [2025-01-06 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:25:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:26:05 [end_date_ymd] => 2025-01-06 07:26:05 [RateCDR] => 1 ) [2025-01-06 07:26: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-01-06 04:26:05' and `end` < '2025-01-06 07:26: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-01-06 07:26:17] Production.INFO: count ==111 [2025-01-06 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:26:05 - End Time 2025-01-06 07:26:05 [2025-01-06 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186020', 'tblTempUsageDetail_20' ) start [2025-01-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186020', 'tblTempUsageDetail_20' ) end [2025-01-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186020', 'tblTempVendorCDR_20' ) start [2025-01-06 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186020', 'tblTempVendorCDR_20' ) end [2025-01-06 07:26:17] Production.INFO: ProcessCDR(1,14186020,1,1,2) [2025-01-06 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186020', 'tblTempUsageDetail_20' ) start [2025-01-06 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186020', 'tblTempUsageDetail_20' ) end [2025-01-06 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:26:21] Production.INFO: ==22642== Releasing lock... [2025-01-06 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:26:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:27:05 [end_date_ymd] => 2025-01-06 07:27:05 [RateCDR] => 1 ) [2025-01-06 07:27: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-01-06 04:27:05' and `end` < '2025-01-06 07:27: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-01-06 07:27:17] Production.INFO: count ==112 [2025-01-06 07:27:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:27:05 - End Time 2025-01-06 07:27:05 [2025-01-06 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186025', 'tblTempUsageDetail_20' ) start [2025-01-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186025', 'tblTempUsageDetail_20' ) end [2025-01-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186025', 'tblTempVendorCDR_20' ) start [2025-01-06 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186025', 'tblTempVendorCDR_20' ) end [2025-01-06 07:27:17] Production.INFO: ProcessCDR(1,14186025,1,1,2) [2025-01-06 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186025', 'tblTempUsageDetail_20' ) start [2025-01-06 07:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186025', 'tblTempUsageDetail_20' ) end [2025-01-06 07:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:27:22] Production.INFO: ==22721== Releasing lock... [2025-01-06 07:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:27:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:28:05 [end_date_ymd] => 2025-01-06 07:28:05 [RateCDR] => 1 ) [2025-01-06 07:28: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-01-06 04:28:05' and `end` < '2025-01-06 07:28: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-01-06 07:28:18] Production.INFO: count ==112 [2025-01-06 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:28:05 - End Time 2025-01-06 07:28:05 [2025-01-06 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186030', 'tblTempUsageDetail_20' ) start [2025-01-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186030', 'tblTempUsageDetail_20' ) end [2025-01-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186030', 'tblTempVendorCDR_20' ) start [2025-01-06 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186030', 'tblTempVendorCDR_20' ) end [2025-01-06 07:28:18] Production.INFO: ProcessCDR(1,14186030,1,1,2) [2025-01-06 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186030', 'tblTempUsageDetail_20' ) start [2025-01-06 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186030', 'tblTempUsageDetail_20' ) end [2025-01-06 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:28:21] Production.INFO: ==22798== Releasing lock... [2025-01-06 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:28:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:29:04 [end_date_ymd] => 2025-01-06 07:29:04 [RateCDR] => 1 ) [2025-01-06 07:29: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-01-06 04:29:04' and `end` < '2025-01-06 07:29: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-01-06 07:29:17] Production.INFO: count ==112 [2025-01-06 07:29:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:29:04 - End Time 2025-01-06 07:29:04 [2025-01-06 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186035', 'tblTempUsageDetail_20' ) start [2025-01-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186035', 'tblTempUsageDetail_20' ) end [2025-01-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186035', 'tblTempVendorCDR_20' ) start [2025-01-06 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186035', 'tblTempVendorCDR_20' ) end [2025-01-06 07:29:17] Production.INFO: ProcessCDR(1,14186035,1,1,2) [2025-01-06 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186035', 'tblTempUsageDetail_20' ) start [2025-01-06 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186035', 'tblTempUsageDetail_20' ) end [2025-01-06 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:29:20] Production.INFO: ==22877== Releasing lock... [2025-01-06 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:29:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:30:06 [end_date_ymd] => 2025-01-06 07:30:06 [RateCDR] => 1 ) [2025-01-06 07:30: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-01-06 04:30:06' and `end` < '2025-01-06 07:30: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-01-06 07:30:19] Production.INFO: count ==110 [2025-01-06 07:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:30:06 - End Time 2025-01-06 07:30:06 [2025-01-06 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186041', 'tblTempUsageDetail_20' ) start [2025-01-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186041', 'tblTempUsageDetail_20' ) end [2025-01-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186041', 'tblTempVendorCDR_20' ) start [2025-01-06 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186041', 'tblTempVendorCDR_20' ) end [2025-01-06 07:30:19] Production.INFO: ProcessCDR(1,14186041,1,1,2) [2025-01-06 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186041', 'tblTempUsageDetail_20' ) start [2025-01-06 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186041', 'tblTempUsageDetail_20' ) end [2025-01-06 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:30:22] Production.INFO: ==22957== Releasing lock... [2025-01-06 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:30:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:31:05 [end_date_ymd] => 2025-01-06 07:31:05 [RateCDR] => 1 ) [2025-01-06 07:31: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-01-06 04:31:05' and `end` < '2025-01-06 07:31: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-01-06 07:31:20] Production.INFO: count ==110 [2025-01-06 07:31:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:31:05 - End Time 2025-01-06 07:31:05 [2025-01-06 07:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186046', 'tblTempUsageDetail_20' ) start [2025-01-06 07:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186046', 'tblTempUsageDetail_20' ) end [2025-01-06 07:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186046', 'tblTempVendorCDR_20' ) start [2025-01-06 07:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186046', 'tblTempVendorCDR_20' ) end [2025-01-06 07:31:20] Production.INFO: ProcessCDR(1,14186046,1,1,2) [2025-01-06 07:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186046', 'tblTempUsageDetail_20' ) start [2025-01-06 07:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186046', 'tblTempUsageDetail_20' ) end [2025-01-06 07:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:31:23] Production.INFO: ==23037== Releasing lock... [2025-01-06 07:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:31:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:32:05 [end_date_ymd] => 2025-01-06 07:32:05 [RateCDR] => 1 ) [2025-01-06 07:32: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-01-06 04:32:05' and `end` < '2025-01-06 07:32: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-01-06 07:32:18] Production.INFO: count ==111 [2025-01-06 07:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:32:05 - End Time 2025-01-06 07:32:05 [2025-01-06 07:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186051', 'tblTempUsageDetail_20' ) start [2025-01-06 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186051', 'tblTempUsageDetail_20' ) end [2025-01-06 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186051', 'tblTempVendorCDR_20' ) start [2025-01-06 07:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186051', 'tblTempVendorCDR_20' ) end [2025-01-06 07:32:18] Production.INFO: ProcessCDR(1,14186051,1,1,2) [2025-01-06 07:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186051', 'tblTempUsageDetail_20' ) start [2025-01-06 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186051', 'tblTempUsageDetail_20' ) end [2025-01-06 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:32:21] Production.INFO: ==23118== Releasing lock... [2025-01-06 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:32:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:33:05 [end_date_ymd] => 2025-01-06 07:33:05 [RateCDR] => 1 ) [2025-01-06 07:33: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-01-06 04:33:05' and `end` < '2025-01-06 07:33: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-01-06 07:33:18] Production.INFO: count ==111 [2025-01-06 07:33:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:33:05 - End Time 2025-01-06 07:33:05 [2025-01-06 07:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186056', 'tblTempUsageDetail_20' ) start [2025-01-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186056', 'tblTempUsageDetail_20' ) end [2025-01-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186056', 'tblTempVendorCDR_20' ) start [2025-01-06 07:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186056', 'tblTempVendorCDR_20' ) end [2025-01-06 07:33:18] Production.INFO: ProcessCDR(1,14186056,1,1,2) [2025-01-06 07:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186056', 'tblTempUsageDetail_20' ) start [2025-01-06 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186056', 'tblTempUsageDetail_20' ) end [2025-01-06 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:33:22] Production.INFO: ==23196== Releasing lock... [2025-01-06 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:33:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:34:05 [end_date_ymd] => 2025-01-06 07:34:05 [RateCDR] => 1 ) [2025-01-06 07:34: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-01-06 04:34:05' and `end` < '2025-01-06 07:34: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-01-06 07:34:19] Production.INFO: count ==117 [2025-01-06 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:34:05 - End Time 2025-01-06 07:34:05 [2025-01-06 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186061', 'tblTempUsageDetail_20' ) start [2025-01-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186061', 'tblTempUsageDetail_20' ) end [2025-01-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186061', 'tblTempVendorCDR_20' ) start [2025-01-06 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186061', 'tblTempVendorCDR_20' ) end [2025-01-06 07:34:19] Production.INFO: ProcessCDR(1,14186061,1,1,2) [2025-01-06 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186061', 'tblTempUsageDetail_20' ) start [2025-01-06 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186061', 'tblTempUsageDetail_20' ) end [2025-01-06 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:34:22] Production.INFO: ==23272== Releasing lock... [2025-01-06 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:34:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:35:05 [end_date_ymd] => 2025-01-06 07:35:05 [RateCDR] => 1 ) [2025-01-06 07:35: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-01-06 04:35:05' and `end` < '2025-01-06 07:35: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-01-06 07:35:18] Production.INFO: count ==117 [2025-01-06 07:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:35:05 - End Time 2025-01-06 07:35:05 [2025-01-06 07:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186066', 'tblTempUsageDetail_20' ) start [2025-01-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186066', 'tblTempUsageDetail_20' ) end [2025-01-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186066', 'tblTempVendorCDR_20' ) start [2025-01-06 07:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186066', 'tblTempVendorCDR_20' ) end [2025-01-06 07:35:18] Production.INFO: ProcessCDR(1,14186066,1,1,2) [2025-01-06 07:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186066', 'tblTempUsageDetail_20' ) start [2025-01-06 07:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186066', 'tblTempUsageDetail_20' ) end [2025-01-06 07:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:35:21] Production.INFO: ==23355== Releasing lock... [2025-01-06 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:35:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:36:06 [end_date_ymd] => 2025-01-06 07:36:06 [RateCDR] => 1 ) [2025-01-06 07:36: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-01-06 04:36:06' and `end` < '2025-01-06 07:36: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-01-06 07:36:18] Production.INFO: count ==117 [2025-01-06 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:36:06 - End Time 2025-01-06 07:36:06 [2025-01-06 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186071', 'tblTempUsageDetail_20' ) start [2025-01-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186071', 'tblTempUsageDetail_20' ) end [2025-01-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186071', 'tblTempVendorCDR_20' ) start [2025-01-06 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186071', 'tblTempVendorCDR_20' ) end [2025-01-06 07:36:18] Production.INFO: ProcessCDR(1,14186071,1,1,2) [2025-01-06 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186071', 'tblTempUsageDetail_20' ) start [2025-01-06 07:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186071', 'tblTempUsageDetail_20' ) end [2025-01-06 07:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:36:22] Production.INFO: ==23431== Releasing lock... [2025-01-06 07:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:36:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:37:05 [end_date_ymd] => 2025-01-06 07:37:05 [RateCDR] => 1 ) [2025-01-06 07:37: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-01-06 04:37:05' and `end` < '2025-01-06 07:37: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-01-06 07:37:18] Production.INFO: count ==117 [2025-01-06 07:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:37:05 - End Time 2025-01-06 07:37:05 [2025-01-06 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186076', 'tblTempUsageDetail_20' ) start [2025-01-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186076', 'tblTempUsageDetail_20' ) end [2025-01-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186076', 'tblTempVendorCDR_20' ) start [2025-01-06 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186076', 'tblTempVendorCDR_20' ) end [2025-01-06 07:37:18] Production.INFO: ProcessCDR(1,14186076,1,1,2) [2025-01-06 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186076', 'tblTempUsageDetail_20' ) start [2025-01-06 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186076', 'tblTempUsageDetail_20' ) end [2025-01-06 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:37:21] Production.INFO: ==23509== Releasing lock... [2025-01-06 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:37:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:38:05 [end_date_ymd] => 2025-01-06 07:38:05 [RateCDR] => 1 ) [2025-01-06 07:38: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-01-06 04:38:05' and `end` < '2025-01-06 07:38: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-01-06 07:38:20] Production.INFO: count ==117 [2025-01-06 07:38:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:38:05 - End Time 2025-01-06 07:38:05 [2025-01-06 07:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186081', 'tblTempUsageDetail_20' ) start [2025-01-06 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186081', 'tblTempUsageDetail_20' ) end [2025-01-06 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186081', 'tblTempVendorCDR_20' ) start [2025-01-06 07:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186081', 'tblTempVendorCDR_20' ) end [2025-01-06 07:38:20] Production.INFO: ProcessCDR(1,14186081,1,1,2) [2025-01-06 07:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186081', 'tblTempUsageDetail_20' ) start [2025-01-06 07:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186081', 'tblTempUsageDetail_20' ) end [2025-01-06 07:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:38:23] Production.INFO: ==23591== Releasing lock... [2025-01-06 07:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:38:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:39:05 [end_date_ymd] => 2025-01-06 07:39:05 [RateCDR] => 1 ) [2025-01-06 07:39: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-01-06 04:39:05' and `end` < '2025-01-06 07:39: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-01-06 07:39:17] Production.INFO: count ==117 [2025-01-06 07:39:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:39:05 - End Time 2025-01-06 07:39:05 [2025-01-06 07:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186086', 'tblTempUsageDetail_20' ) start [2025-01-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186086', 'tblTempUsageDetail_20' ) end [2025-01-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186086', 'tblTempVendorCDR_20' ) start [2025-01-06 07:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186086', 'tblTempVendorCDR_20' ) end [2025-01-06 07:39:17] Production.INFO: ProcessCDR(1,14186086,1,1,2) [2025-01-06 07:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186086', 'tblTempUsageDetail_20' ) start [2025-01-06 07:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186086', 'tblTempUsageDetail_20' ) end [2025-01-06 07:39:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:39:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:39:20] Production.INFO: ==23667== Releasing lock... [2025-01-06 07:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:39:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:40:06 [end_date_ymd] => 2025-01-06 07:40:06 [RateCDR] => 1 ) [2025-01-06 07:40: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-01-06 04:40:06' and `end` < '2025-01-06 07:40: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-01-06 07:40:18] Production.INFO: count ==123 [2025-01-06 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:40:06 - End Time 2025-01-06 07:40:06 [2025-01-06 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186092', 'tblTempUsageDetail_20' ) start [2025-01-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186092', 'tblTempUsageDetail_20' ) end [2025-01-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186092', 'tblTempVendorCDR_20' ) start [2025-01-06 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186092', 'tblTempVendorCDR_20' ) end [2025-01-06 07:40:18] Production.INFO: ProcessCDR(1,14186092,1,1,2) [2025-01-06 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186092', 'tblTempUsageDetail_20' ) start [2025-01-06 07:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186092', 'tblTempUsageDetail_20' ) end [2025-01-06 07:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:40:22] Production.INFO: ==23746== Releasing lock... [2025-01-06 07:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:40:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-06 07:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:41:04 [end_date_ymd] => 2025-01-06 07:41:04 [RateCDR] => 1 ) [2025-01-06 07:41: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-01-06 04:41:04' and `end` < '2025-01-06 07:41: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-01-06 07:41:17] Production.INFO: count ==135 [2025-01-06 07:41:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:41:04 - End Time 2025-01-06 07:41:04 [2025-01-06 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186097', 'tblTempUsageDetail_20' ) start [2025-01-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186097', 'tblTempUsageDetail_20' ) end [2025-01-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186097', 'tblTempVendorCDR_20' ) start [2025-01-06 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186097', 'tblTempVendorCDR_20' ) end [2025-01-06 07:41:17] Production.INFO: ProcessCDR(1,14186097,1,1,2) [2025-01-06 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186097', 'tblTempUsageDetail_20' ) start [2025-01-06 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186097', 'tblTempUsageDetail_20' ) end [2025-01-06 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:41:20] Production.INFO: ==23830== Releasing lock... [2025-01-06 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:41:20] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:42:05 [end_date_ymd] => 2025-01-06 07:42:05 [RateCDR] => 1 ) [2025-01-06 07:42: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-01-06 04:42:05' and `end` < '2025-01-06 07:42: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-01-06 07:42:18] Production.INFO: count ==135 [2025-01-06 07:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:42:05 - End Time 2025-01-06 07:42:05 [2025-01-06 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186102', 'tblTempUsageDetail_20' ) start [2025-01-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186102', 'tblTempUsageDetail_20' ) end [2025-01-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186102', 'tblTempVendorCDR_20' ) start [2025-01-06 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186102', 'tblTempVendorCDR_20' ) end [2025-01-06 07:42:18] Production.INFO: ProcessCDR(1,14186102,1,1,2) [2025-01-06 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186102', 'tblTempUsageDetail_20' ) start [2025-01-06 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186102', 'tblTempUsageDetail_20' ) end [2025-01-06 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:42:21] Production.INFO: ==23949== Releasing lock... [2025-01-06 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:42:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:43:05 [end_date_ymd] => 2025-01-06 07:43:05 [RateCDR] => 1 ) [2025-01-06 07:43: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-01-06 04:43:05' and `end` < '2025-01-06 07:43: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-01-06 07:43:19] Production.INFO: count ==136 [2025-01-06 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:43:05 - End Time 2025-01-06 07:43:05 [2025-01-06 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186107', 'tblTempUsageDetail_20' ) start [2025-01-06 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186107', 'tblTempUsageDetail_20' ) end [2025-01-06 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186107', 'tblTempVendorCDR_20' ) start [2025-01-06 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186107', 'tblTempVendorCDR_20' ) end [2025-01-06 07:43:19] Production.INFO: ProcessCDR(1,14186107,1,1,2) [2025-01-06 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186107', 'tblTempUsageDetail_20' ) start [2025-01-06 07:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186107', 'tblTempUsageDetail_20' ) end [2025-01-06 07:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:43:24] Production.INFO: ==24026== Releasing lock... [2025-01-06 07:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:43:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:44:04 [end_date_ymd] => 2025-01-06 07:44:04 [RateCDR] => 1 ) [2025-01-06 07:44: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-01-06 04:44:04' and `end` < '2025-01-06 07:44: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-01-06 07:44:17] Production.INFO: count ==136 [2025-01-06 07:44:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:44:04 - End Time 2025-01-06 07:44:04 [2025-01-06 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186112', 'tblTempUsageDetail_20' ) start [2025-01-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186112', 'tblTempUsageDetail_20' ) end [2025-01-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186112', 'tblTempVendorCDR_20' ) start [2025-01-06 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186112', 'tblTempVendorCDR_20' ) end [2025-01-06 07:44:17] Production.INFO: ProcessCDR(1,14186112,1,1,2) [2025-01-06 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186112', 'tblTempUsageDetail_20' ) start [2025-01-06 07:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186112', 'tblTempUsageDetail_20' ) end [2025-01-06 07:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:44:21] Production.INFO: ==24099== Releasing lock... [2025-01-06 07:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:44:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:45:05 [end_date_ymd] => 2025-01-06 07:45:05 [RateCDR] => 1 ) [2025-01-06 07:45: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-01-06 04:45:05' and `end` < '2025-01-06 07:45: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-01-06 07:45:18] Production.INFO: count ==137 [2025-01-06 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:45:05 - End Time 2025-01-06 07:45:05 [2025-01-06 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186117', 'tblTempUsageDetail_20' ) start [2025-01-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186117', 'tblTempUsageDetail_20' ) end [2025-01-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186117', 'tblTempVendorCDR_20' ) start [2025-01-06 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186117', 'tblTempVendorCDR_20' ) end [2025-01-06 07:45:18] Production.INFO: ProcessCDR(1,14186117,1,1,2) [2025-01-06 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186117', 'tblTempUsageDetail_20' ) start [2025-01-06 07:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186117', 'tblTempUsageDetail_20' ) end [2025-01-06 07:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:45:22] Production.INFO: ==24179== Releasing lock... [2025-01-06 07:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:45:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:46:05 [end_date_ymd] => 2025-01-06 07:46:05 [RateCDR] => 1 ) [2025-01-06 07:46: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-01-06 04:46:05' and `end` < '2025-01-06 07:46: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-01-06 07:46:20] Production.INFO: count ==137 [2025-01-06 07:46:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:46:05 - End Time 2025-01-06 07:46:05 [2025-01-06 07:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186122', 'tblTempUsageDetail_20' ) start [2025-01-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186122', 'tblTempUsageDetail_20' ) end [2025-01-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186122', 'tblTempVendorCDR_20' ) start [2025-01-06 07:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186122', 'tblTempVendorCDR_20' ) end [2025-01-06 07:46:20] Production.INFO: ProcessCDR(1,14186122,1,1,2) [2025-01-06 07:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186122', 'tblTempUsageDetail_20' ) start [2025-01-06 07:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186122', 'tblTempUsageDetail_20' ) end [2025-01-06 07:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:46:24] Production.INFO: ==24254== Releasing lock... [2025-01-06 07:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:46:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:47:05 [end_date_ymd] => 2025-01-06 07:47:05 [RateCDR] => 1 ) [2025-01-06 07:47: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-01-06 04:47:05' and `end` < '2025-01-06 07:47: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-01-06 07:47:18] Production.INFO: count ==137 [2025-01-06 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:47:05 - End Time 2025-01-06 07:47:05 [2025-01-06 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186127', 'tblTempUsageDetail_20' ) start [2025-01-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186127', 'tblTempUsageDetail_20' ) end [2025-01-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186127', 'tblTempVendorCDR_20' ) start [2025-01-06 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186127', 'tblTempVendorCDR_20' ) end [2025-01-06 07:47:18] Production.INFO: ProcessCDR(1,14186127,1,1,2) [2025-01-06 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186127', 'tblTempUsageDetail_20' ) start [2025-01-06 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186127', 'tblTempUsageDetail_20' ) end [2025-01-06 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:47:21] Production.INFO: ==24327== Releasing lock... [2025-01-06 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:47:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:48:05 [end_date_ymd] => 2025-01-06 07:48:05 [RateCDR] => 1 ) [2025-01-06 07:48: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-01-06 04:48:05' and `end` < '2025-01-06 07:48: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-01-06 07:48:17] Production.INFO: count ==142 [2025-01-06 07:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:48:05 - End Time 2025-01-06 07:48:05 [2025-01-06 07:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186132', 'tblTempUsageDetail_20' ) start [2025-01-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186132', 'tblTempUsageDetail_20' ) end [2025-01-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186132', 'tblTempVendorCDR_20' ) start [2025-01-06 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186132', 'tblTempVendorCDR_20' ) end [2025-01-06 07:48:18] Production.INFO: ProcessCDR(1,14186132,1,1,2) [2025-01-06 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186132', 'tblTempUsageDetail_20' ) start [2025-01-06 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186132', 'tblTempUsageDetail_20' ) end [2025-01-06 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:48:21] Production.INFO: ==24399== Releasing lock... [2025-01-06 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:48:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:49:05 [end_date_ymd] => 2025-01-06 07:49:05 [RateCDR] => 1 ) [2025-01-06 07:49: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-01-06 04:49:05' and `end` < '2025-01-06 07:49: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-01-06 07:49:18] Production.INFO: count ==142 [2025-01-06 07:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:49:05 - End Time 2025-01-06 07:49:05 [2025-01-06 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186137', 'tblTempUsageDetail_20' ) start [2025-01-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186137', 'tblTempUsageDetail_20' ) end [2025-01-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186137', 'tblTempVendorCDR_20' ) start [2025-01-06 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186137', 'tblTempVendorCDR_20' ) end [2025-01-06 07:49:18] Production.INFO: ProcessCDR(1,14186137,1,1,2) [2025-01-06 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186137', 'tblTempUsageDetail_20' ) start [2025-01-06 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186137', 'tblTempUsageDetail_20' ) end [2025-01-06 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:49:21] Production.INFO: ==24475== Releasing lock... [2025-01-06 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:49:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:50:06 [end_date_ymd] => 2025-01-06 07:50:06 [RateCDR] => 1 ) [2025-01-06 07:50: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-01-06 04:50:06' and `end` < '2025-01-06 07:50: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-01-06 07:50:19] Production.INFO: count ==142 [2025-01-06 07:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:50:06 - End Time 2025-01-06 07:50:06 [2025-01-06 07:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186143', 'tblTempUsageDetail_20' ) start [2025-01-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186143', 'tblTempUsageDetail_20' ) end [2025-01-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186143', 'tblTempVendorCDR_20' ) start [2025-01-06 07:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186143', 'tblTempVendorCDR_20' ) end [2025-01-06 07:50:19] Production.INFO: ProcessCDR(1,14186143,1,1,2) [2025-01-06 07:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186143', 'tblTempUsageDetail_20' ) start [2025-01-06 07:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186143', 'tblTempUsageDetail_20' ) end [2025-01-06 07:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:50:22] Production.INFO: ==24559== Releasing lock... [2025-01-06 07:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:50:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:51:05 [end_date_ymd] => 2025-01-06 07:51:05 [RateCDR] => 1 ) [2025-01-06 07:51: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-01-06 04:51:05' and `end` < '2025-01-06 07:51: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-01-06 07:51:19] Production.INFO: count ==142 [2025-01-06 07:51:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:51:05 - End Time 2025-01-06 07:51:05 [2025-01-06 07:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186148', 'tblTempUsageDetail_20' ) start [2025-01-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186148', 'tblTempUsageDetail_20' ) end [2025-01-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186148', 'tblTempVendorCDR_20' ) start [2025-01-06 07:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186148', 'tblTempVendorCDR_20' ) end [2025-01-06 07:51:19] Production.INFO: ProcessCDR(1,14186148,1,1,2) [2025-01-06 07:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186148', 'tblTempUsageDetail_20' ) start [2025-01-06 07:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186148', 'tblTempUsageDetail_20' ) end [2025-01-06 07:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:51:22] Production.INFO: ==24639== Releasing lock... [2025-01-06 07:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:51:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:52:05 [end_date_ymd] => 2025-01-06 07:52:05 [RateCDR] => 1 ) [2025-01-06 07:52: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-01-06 04:52:05' and `end` < '2025-01-06 07:52: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-01-06 07:52:18] Production.INFO: count ==147 [2025-01-06 07:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:52:05 - End Time 2025-01-06 07:52:05 [2025-01-06 07:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186153', 'tblTempUsageDetail_20' ) start [2025-01-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186153', 'tblTempUsageDetail_20' ) end [2025-01-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186153', 'tblTempVendorCDR_20' ) start [2025-01-06 07:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186153', 'tblTempVendorCDR_20' ) end [2025-01-06 07:52:18] Production.INFO: ProcessCDR(1,14186153,1,1,2) [2025-01-06 07:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186153', 'tblTempUsageDetail_20' ) start [2025-01-06 07:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186153', 'tblTempUsageDetail_20' ) end [2025-01-06 07:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:52:22] Production.INFO: ==24713== Releasing lock... [2025-01-06 07:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:52:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:53:05 [end_date_ymd] => 2025-01-06 07:53:05 [RateCDR] => 1 ) [2025-01-06 07:53: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-01-06 04:53:05' and `end` < '2025-01-06 07:53: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-01-06 07:53:17] Production.INFO: count ==147 [2025-01-06 07:53:17] Production.ERROR: pbx CDR StartTime 2025-01-06 04:53:05 - End Time 2025-01-06 07:53:05 [2025-01-06 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186158', 'tblTempUsageDetail_20' ) start [2025-01-06 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186158', 'tblTempUsageDetail_20' ) end [2025-01-06 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186158', 'tblTempVendorCDR_20' ) start [2025-01-06 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186158', 'tblTempVendorCDR_20' ) end [2025-01-06 07:53:18] Production.INFO: ProcessCDR(1,14186158,1,1,2) [2025-01-06 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186158', 'tblTempUsageDetail_20' ) start [2025-01-06 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186158', 'tblTempUsageDetail_20' ) end [2025-01-06 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:53:21] Production.INFO: ==24788== Releasing lock... [2025-01-06 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:53:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:54:05 [end_date_ymd] => 2025-01-06 07:54:05 [RateCDR] => 1 ) [2025-01-06 07:54: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-01-06 04:54:05' and `end` < '2025-01-06 07:54: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-01-06 07:54:19] Production.INFO: count ==147 [2025-01-06 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:54:05 - End Time 2025-01-06 07:54:05 [2025-01-06 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186163', 'tblTempUsageDetail_20' ) start [2025-01-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186163', 'tblTempUsageDetail_20' ) end [2025-01-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186163', 'tblTempVendorCDR_20' ) start [2025-01-06 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186163', 'tblTempVendorCDR_20' ) end [2025-01-06 07:54:19] Production.INFO: ProcessCDR(1,14186163,1,1,2) [2025-01-06 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186163', 'tblTempUsageDetail_20' ) start [2025-01-06 07:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186163', 'tblTempUsageDetail_20' ) end [2025-01-06 07:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:54:22] Production.INFO: ==24859== Releasing lock... [2025-01-06 07:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:54:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:55:05 [end_date_ymd] => 2025-01-06 07:55:05 [RateCDR] => 1 ) [2025-01-06 07:55: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-01-06 04:55:05' and `end` < '2025-01-06 07:55: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-01-06 07:55:18] Production.INFO: count ==147 [2025-01-06 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:55:05 - End Time 2025-01-06 07:55:05 [2025-01-06 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186168', 'tblTempUsageDetail_20' ) start [2025-01-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186168', 'tblTempUsageDetail_20' ) end [2025-01-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186168', 'tblTempVendorCDR_20' ) start [2025-01-06 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186168', 'tblTempVendorCDR_20' ) end [2025-01-06 07:55:18] Production.INFO: ProcessCDR(1,14186168,1,1,2) [2025-01-06 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186168', 'tblTempUsageDetail_20' ) start [2025-01-06 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186168', 'tblTempUsageDetail_20' ) end [2025-01-06 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:55:21] Production.INFO: ==24937== Releasing lock... [2025-01-06 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:55:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:56:05 [end_date_ymd] => 2025-01-06 07:56:05 [RateCDR] => 1 ) [2025-01-06 07:56: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-01-06 04:56:05' and `end` < '2025-01-06 07:56: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-01-06 07:56:19] Production.INFO: count ==148 [2025-01-06 07:56:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:56:05 - End Time 2025-01-06 07:56:05 [2025-01-06 07:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186173', 'tblTempUsageDetail_20' ) start [2025-01-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186173', 'tblTempUsageDetail_20' ) end [2025-01-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186173', 'tblTempVendorCDR_20' ) start [2025-01-06 07:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186173', 'tblTempVendorCDR_20' ) end [2025-01-06 07:56:19] Production.INFO: ProcessCDR(1,14186173,1,1,2) [2025-01-06 07:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186173', 'tblTempUsageDetail_20' ) start [2025-01-06 07:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186173', 'tblTempUsageDetail_20' ) end [2025-01-06 07:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:56:22] Production.INFO: ==25011== Releasing lock... [2025-01-06 07:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:56:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:57:05 [end_date_ymd] => 2025-01-06 07:57:05 [RateCDR] => 1 ) [2025-01-06 07:57: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-01-06 04:57:05' and `end` < '2025-01-06 07:57: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-01-06 07:57:20] Production.INFO: count ==149 [2025-01-06 07:57:20] Production.ERROR: pbx CDR StartTime 2025-01-06 04:57:05 - End Time 2025-01-06 07:57:05 [2025-01-06 07:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186178', 'tblTempUsageDetail_20' ) start [2025-01-06 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186178', 'tblTempUsageDetail_20' ) end [2025-01-06 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186178', 'tblTempVendorCDR_20' ) start [2025-01-06 07:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186178', 'tblTempVendorCDR_20' ) end [2025-01-06 07:57:20] Production.INFO: ProcessCDR(1,14186178,1,1,2) [2025-01-06 07:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186178', 'tblTempUsageDetail_20' ) start [2025-01-06 07:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186178', 'tblTempUsageDetail_20' ) end [2025-01-06 07:57:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:57:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:57:25] Production.INFO: ==25124== Releasing lock... [2025-01-06 07:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:57:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:58:05 [end_date_ymd] => 2025-01-06 07:58:05 [RateCDR] => 1 ) [2025-01-06 07:58: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-01-06 04:58:05' and `end` < '2025-01-06 07:58: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-01-06 07:58:19] Production.INFO: count ==149 [2025-01-06 07:58:19] Production.ERROR: pbx CDR StartTime 2025-01-06 04:58:05 - End Time 2025-01-06 07:58:05 [2025-01-06 07:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186183', 'tblTempUsageDetail_20' ) start [2025-01-06 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186183', 'tblTempUsageDetail_20' ) end [2025-01-06 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186183', 'tblTempVendorCDR_20' ) start [2025-01-06 07:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186183', 'tblTempVendorCDR_20' ) end [2025-01-06 07:58:19] Production.INFO: ProcessCDR(1,14186183,1,1,2) [2025-01-06 07:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186183', 'tblTempUsageDetail_20' ) start [2025-01-06 07:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186183', 'tblTempUsageDetail_20' ) end [2025-01-06 07:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:58:22] Production.INFO: ==25201== Releasing lock... [2025-01-06 07:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:58:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 04:59:05 [end_date_ymd] => 2025-01-06 07:59:05 [RateCDR] => 1 ) [2025-01-06 07:59: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-01-06 04:59:05' and `end` < '2025-01-06 07:59: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-01-06 07:59:18] Production.INFO: count ==149 [2025-01-06 07:59:18] Production.ERROR: pbx CDR StartTime 2025-01-06 04:59:05 - End Time 2025-01-06 07:59:05 [2025-01-06 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186188', 'tblTempUsageDetail_20' ) start [2025-01-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186188', 'tblTempUsageDetail_20' ) end [2025-01-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186188', 'tblTempVendorCDR_20' ) start [2025-01-06 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186188', 'tblTempVendorCDR_20' ) end [2025-01-06 07:59:18] Production.INFO: ProcessCDR(1,14186188,1,1,2) [2025-01-06 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186188', 'tblTempUsageDetail_20' ) start [2025-01-06 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186188', 'tblTempUsageDetail_20' ) end [2025-01-06 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 07:59:21] Production.INFO: ==25273== Releasing lock... [2025-01-06 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 07:59:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:00:06 [end_date_ymd] => 2025-01-06 08:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 05:00:06' and `end` < '2025-01-06 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-01-06 08:00:19] Production.INFO: count ==158 [2025-01-06 08:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:00:06 - End Time 2025-01-06 08:00:06 [2025-01-06 08:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186194', 'tblTempUsageDetail_20' ) start [2025-01-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186194', 'tblTempUsageDetail_20' ) end [2025-01-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186194', 'tblTempVendorCDR_20' ) start [2025-01-06 08:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186194', 'tblTempVendorCDR_20' ) end [2025-01-06 08:00:19] Production.INFO: ProcessCDR(1,14186194,1,1,2) [2025-01-06 08:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186194', 'tblTempUsageDetail_20' ) start [2025-01-06 08:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186194', 'tblTempUsageDetail_20' ) end [2025-01-06 08:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:00:24] Production.INFO: ==25350== Releasing lock... [2025-01-06 08:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:00:24] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:01:05 [end_date_ymd] => 2025-01-06 08:01:05 [RateCDR] => 1 ) [2025-01-06 08:01: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-01-06 05:01:05' and `end` < '2025-01-06 08:01: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-01-06 08:01:19] Production.INFO: count ==160 [2025-01-06 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:01:05 - End Time 2025-01-06 08:01:05 [2025-01-06 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186199', 'tblTempUsageDetail_20' ) start [2025-01-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186199', 'tblTempUsageDetail_20' ) end [2025-01-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186199', 'tblTempVendorCDR_20' ) start [2025-01-06 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186199', 'tblTempVendorCDR_20' ) end [2025-01-06 08:01:19] Production.INFO: ProcessCDR(1,14186199,1,1,2) [2025-01-06 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186199', 'tblTempUsageDetail_20' ) start [2025-01-06 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186199', 'tblTempUsageDetail_20' ) end [2025-01-06 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:01:22] Production.INFO: ==25438== Releasing lock... [2025-01-06 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:01:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-06 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:02:04 [end_date_ymd] => 2025-01-06 08:02:04 [RateCDR] => 1 ) [2025-01-06 08:02: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-01-06 05:02:04' and `end` < '2025-01-06 08:02: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-01-06 08:02:17] Production.INFO: count ==161 [2025-01-06 08:02:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:02:04 - End Time 2025-01-06 08:02:04 [2025-01-06 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186202', 'tblTempUsageDetail_20' ) start [2025-01-06 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186202', 'tblTempUsageDetail_20' ) end [2025-01-06 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186202', 'tblTempVendorCDR_20' ) start [2025-01-06 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186202', 'tblTempVendorCDR_20' ) end [2025-01-06 08:02:17] Production.INFO: ProcessCDR(1,14186202,1,1,2) [2025-01-06 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186202', 'tblTempUsageDetail_20' ) start [2025-01-06 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186202', 'tblTempUsageDetail_20' ) end [2025-01-06 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:02:22] Production.INFO: ==25510== Releasing lock... [2025-01-06 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:03:05 [end_date_ymd] => 2025-01-06 08:03:05 [RateCDR] => 1 ) [2025-01-06 08:03: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-01-06 05:03:05' and `end` < '2025-01-06 08:03: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-01-06 08:03:18] Production.INFO: count ==166 [2025-01-06 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:03:05 - End Time 2025-01-06 08:03:05 [2025-01-06 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186209', 'tblTempUsageDetail_20' ) start [2025-01-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186209', 'tblTempUsageDetail_20' ) end [2025-01-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186209', 'tblTempVendorCDR_20' ) start [2025-01-06 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186209', 'tblTempVendorCDR_20' ) end [2025-01-06 08:03:18] Production.INFO: ProcessCDR(1,14186209,1,1,2) [2025-01-06 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186209', 'tblTempUsageDetail_20' ) start [2025-01-06 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186209', 'tblTempUsageDetail_20' ) end [2025-01-06 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:03:21] Production.INFO: ==25589== Releasing lock... [2025-01-06 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-06 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:04:05 [end_date_ymd] => 2025-01-06 08:04:05 [RateCDR] => 1 ) [2025-01-06 08:04: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-01-06 05:04:05' and `end` < '2025-01-06 08:04: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-01-06 08:04:19] Production.INFO: count ==180 [2025-01-06 08:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:04:05 - End Time 2025-01-06 08:04:05 [2025-01-06 08:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186214', 'tblTempUsageDetail_20' ) start [2025-01-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186214', 'tblTempUsageDetail_20' ) end [2025-01-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186214', 'tblTempVendorCDR_20' ) start [2025-01-06 08:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186214', 'tblTempVendorCDR_20' ) end [2025-01-06 08:04:19] Production.INFO: ProcessCDR(1,14186214,1,1,2) [2025-01-06 08:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186214', 'tblTempUsageDetail_20' ) start [2025-01-06 08:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186214', 'tblTempUsageDetail_20' ) end [2025-01-06 08:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:04:22] Production.INFO: ==25663== Releasing lock... [2025-01-06 08:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:04:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:05:05 [end_date_ymd] => 2025-01-06 08:05:05 [RateCDR] => 1 ) [2025-01-06 08:05: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-01-06 05:05:05' and `end` < '2025-01-06 08:05: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-01-06 08:05:18] Production.INFO: count ==185 [2025-01-06 08:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:05:05 - End Time 2025-01-06 08:05:05 [2025-01-06 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186219', 'tblTempUsageDetail_20' ) start [2025-01-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186219', 'tblTempUsageDetail_20' ) end [2025-01-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186219', 'tblTempVendorCDR_20' ) start [2025-01-06 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186219', 'tblTempVendorCDR_20' ) end [2025-01-06 08:05:18] Production.INFO: ProcessCDR(1,14186219,1,1,2) [2025-01-06 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186219', 'tblTempUsageDetail_20' ) start [2025-01-06 08:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186219', 'tblTempUsageDetail_20' ) end [2025-01-06 08:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:05:21] Production.INFO: ==25736== Releasing lock... [2025-01-06 08:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:05:21] Production.INFO: 29 MB #Memory Used# [2025-01-06 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:06:05 [end_date_ymd] => 2025-01-06 08:06:05 [RateCDR] => 1 ) [2025-01-06 08:06: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-01-06 05:06:05' and `end` < '2025-01-06 08:06: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-01-06 08:06:19] Production.INFO: count ==185 [2025-01-06 08:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:06:05 - End Time 2025-01-06 08:06:05 [2025-01-06 08:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186224', 'tblTempUsageDetail_20' ) start [2025-01-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186224', 'tblTempUsageDetail_20' ) end [2025-01-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186224', 'tblTempVendorCDR_20' ) start [2025-01-06 08:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186224', 'tblTempVendorCDR_20' ) end [2025-01-06 08:06:19] Production.INFO: ProcessCDR(1,14186224,1,1,2) [2025-01-06 08:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186224', 'tblTempUsageDetail_20' ) start [2025-01-06 08:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186224', 'tblTempUsageDetail_20' ) end [2025-01-06 08:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:06:22] Production.INFO: ==25812== Releasing lock... [2025-01-06 08:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-06 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:07:05 [end_date_ymd] => 2025-01-06 08:07:05 [RateCDR] => 1 ) [2025-01-06 08:07: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-01-06 05:07:05' and `end` < '2025-01-06 08:07: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-01-06 08:07:18] Production.INFO: count ==193 [2025-01-06 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:07:05 - End Time 2025-01-06 08:07:05 [2025-01-06 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186229', 'tblTempUsageDetail_20' ) start [2025-01-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186229', 'tblTempUsageDetail_20' ) end [2025-01-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186229', 'tblTempVendorCDR_20' ) start [2025-01-06 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186229', 'tblTempVendorCDR_20' ) end [2025-01-06 08:07:18] Production.INFO: ProcessCDR(1,14186229,1,1,2) [2025-01-06 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186229', 'tblTempUsageDetail_20' ) start [2025-01-06 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186229', 'tblTempUsageDetail_20' ) end [2025-01-06 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:07:21] Production.INFO: ==25887== Releasing lock... [2025-01-06 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:07:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:08:05 [end_date_ymd] => 2025-01-06 08:08:05 [RateCDR] => 1 ) [2025-01-06 08:08: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-01-06 05:08:05' and `end` < '2025-01-06 08:08: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-01-06 08:08:20] Production.INFO: count ==193 [2025-01-06 08:08:20] Production.ERROR: pbx CDR StartTime 2025-01-06 05:08:05 - End Time 2025-01-06 08:08:05 [2025-01-06 08:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186234', 'tblTempUsageDetail_20' ) start [2025-01-06 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186234', 'tblTempUsageDetail_20' ) end [2025-01-06 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186234', 'tblTempVendorCDR_20' ) start [2025-01-06 08:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186234', 'tblTempVendorCDR_20' ) end [2025-01-06 08:08:20] Production.INFO: ProcessCDR(1,14186234,1,1,2) [2025-01-06 08:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186234', 'tblTempUsageDetail_20' ) start [2025-01-06 08:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186234', 'tblTempUsageDetail_20' ) end [2025-01-06 08:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:08:23] Production.INFO: ==25963== Releasing lock... [2025-01-06 08:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:08:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:09:05 [end_date_ymd] => 2025-01-06 08:09:05 [RateCDR] => 1 ) [2025-01-06 08:09: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-01-06 05:09:05' and `end` < '2025-01-06 08:09: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-01-06 08:09:18] Production.INFO: count ==194 [2025-01-06 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:09:05 - End Time 2025-01-06 08:09:05 [2025-01-06 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186239', 'tblTempUsageDetail_20' ) start [2025-01-06 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186239', 'tblTempUsageDetail_20' ) end [2025-01-06 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186239', 'tblTempVendorCDR_20' ) start [2025-01-06 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186239', 'tblTempVendorCDR_20' ) end [2025-01-06 08:09:18] Production.INFO: ProcessCDR(1,14186239,1,1,2) [2025-01-06 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186239', 'tblTempUsageDetail_20' ) start [2025-01-06 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186239', 'tblTempUsageDetail_20' ) end [2025-01-06 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:09:23] Production.INFO: ==26034== Releasing lock... [2025-01-06 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:09:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:10:06 [end_date_ymd] => 2025-01-06 08:10:06 [RateCDR] => 1 ) [2025-01-06 08:10: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-01-06 05:10:06' and `end` < '2025-01-06 08:10: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-01-06 08:10:19] Production.INFO: count ==207 [2025-01-06 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:10:06 - End Time 2025-01-06 08:10:06 [2025-01-06 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186244', 'tblTempUsageDetail_20' ) start [2025-01-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186244', 'tblTempUsageDetail_20' ) end [2025-01-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186244', 'tblTempVendorCDR_20' ) start [2025-01-06 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186244', 'tblTempVendorCDR_20' ) end [2025-01-06 08:10:19] Production.INFO: ProcessCDR(1,14186244,1,1,2) [2025-01-06 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186244', 'tblTempUsageDetail_20' ) start [2025-01-06 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186244', 'tblTempUsageDetail_20' ) end [2025-01-06 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:10:23] Production.INFO: ==26118== Releasing lock... [2025-01-06 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:10:23] Production.INFO: 29.25 MB #Memory Used# [2025-01-06 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:11:04 [end_date_ymd] => 2025-01-06 08:11:04 [RateCDR] => 1 ) [2025-01-06 08:11: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-01-06 05:11:04' and `end` < '2025-01-06 08:11: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-01-06 08:11:17] Production.INFO: count ==239 [2025-01-06 08:11:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:11:04 - End Time 2025-01-06 08:11:04 [2025-01-06 08:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186250', 'tblTempUsageDetail_20' ) start [2025-01-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186250', 'tblTempUsageDetail_20' ) end [2025-01-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186250', 'tblTempVendorCDR_20' ) start [2025-01-06 08:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186250', 'tblTempVendorCDR_20' ) end [2025-01-06 08:11:17] Production.INFO: ProcessCDR(1,14186250,1,1,2) [2025-01-06 08:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186250', 'tblTempUsageDetail_20' ) start [2025-01-06 08:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186250', 'tblTempUsageDetail_20' ) end [2025-01-06 08:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:11:22] Production.INFO: ==26195== Releasing lock... [2025-01-06 08:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:11:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:12:05 [end_date_ymd] => 2025-01-06 08:12:05 [RateCDR] => 1 ) [2025-01-06 08:12: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-01-06 05:12:05' and `end` < '2025-01-06 08:12: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-01-06 08:12:19] Production.INFO: count ==239 [2025-01-06 08:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:12:05 - End Time 2025-01-06 08:12:05 [2025-01-06 08:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186255', 'tblTempUsageDetail_20' ) start [2025-01-06 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186255', 'tblTempUsageDetail_20' ) end [2025-01-06 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186255', 'tblTempVendorCDR_20' ) start [2025-01-06 08:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186255', 'tblTempVendorCDR_20' ) end [2025-01-06 08:12:19] Production.INFO: ProcessCDR(1,14186255,1,1,2) [2025-01-06 08:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186255', 'tblTempUsageDetail_20' ) start [2025-01-06 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186255', 'tblTempUsageDetail_20' ) end [2025-01-06 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:12:22] Production.INFO: ==26270== Releasing lock... [2025-01-06 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:12:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:13:06 [end_date_ymd] => 2025-01-06 08:13:06 [RateCDR] => 1 ) [2025-01-06 08:13: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-01-06 05:13:06' and `end` < '2025-01-06 08:13: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-01-06 08:13:18] Production.INFO: count ==245 [2025-01-06 08:13:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:13:06 - End Time 2025-01-06 08:13:06 [2025-01-06 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186260', 'tblTempUsageDetail_20' ) start [2025-01-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186260', 'tblTempUsageDetail_20' ) end [2025-01-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186260', 'tblTempVendorCDR_20' ) start [2025-01-06 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186260', 'tblTempVendorCDR_20' ) end [2025-01-06 08:13:18] Production.INFO: ProcessCDR(1,14186260,1,1,2) [2025-01-06 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186260', 'tblTempUsageDetail_20' ) start [2025-01-06 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186260', 'tblTempUsageDetail_20' ) end [2025-01-06 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:13:22] Production.INFO: ==26380== Releasing lock... [2025-01-06 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:13:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:14:04 [end_date_ymd] => 2025-01-06 08:14:04 [RateCDR] => 1 ) [2025-01-06 08:14: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-01-06 05:14:04' and `end` < '2025-01-06 08:14: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-01-06 08:14:17] Production.INFO: count ==246 [2025-01-06 08:14:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:14:04 - End Time 2025-01-06 08:14:04 [2025-01-06 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186265', 'tblTempUsageDetail_20' ) start [2025-01-06 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186265', 'tblTempUsageDetail_20' ) end [2025-01-06 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186265', 'tblTempVendorCDR_20' ) start [2025-01-06 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186265', 'tblTempVendorCDR_20' ) end [2025-01-06 08:14:17] Production.INFO: ProcessCDR(1,14186265,1,1,2) [2025-01-06 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186265', 'tblTempUsageDetail_20' ) start [2025-01-06 08:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186265', 'tblTempUsageDetail_20' ) end [2025-01-06 08:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:14:21] Production.INFO: ==26454== Releasing lock... [2025-01-06 08:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:14:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:15:05 [end_date_ymd] => 2025-01-06 08:15:05 [RateCDR] => 1 ) [2025-01-06 08:15: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-01-06 05:15:05' and `end` < '2025-01-06 08:15: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-01-06 08:15:18] Production.INFO: count ==253 [2025-01-06 08:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:15:05 - End Time 2025-01-06 08:15:05 [2025-01-06 08:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186270', 'tblTempUsageDetail_20' ) start [2025-01-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186270', 'tblTempUsageDetail_20' ) end [2025-01-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186270', 'tblTempVendorCDR_20' ) start [2025-01-06 08:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186270', 'tblTempVendorCDR_20' ) end [2025-01-06 08:15:18] Production.INFO: ProcessCDR(1,14186270,1,1,2) [2025-01-06 08:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186270', 'tblTempUsageDetail_20' ) start [2025-01-06 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186270', 'tblTempUsageDetail_20' ) end [2025-01-06 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:15:21] Production.INFO: ==26527== Releasing lock... [2025-01-06 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-06 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:16:05 [end_date_ymd] => 2025-01-06 08:16:05 [RateCDR] => 1 ) [2025-01-06 08:16: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-01-06 05:16:05' and `end` < '2025-01-06 08:16: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-01-06 08:16:19] Production.INFO: count ==255 [2025-01-06 08:16:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:16:05 - End Time 2025-01-06 08:16:05 [2025-01-06 08:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186275', 'tblTempUsageDetail_20' ) start [2025-01-06 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186275', 'tblTempUsageDetail_20' ) end [2025-01-06 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186275', 'tblTempVendorCDR_20' ) start [2025-01-06 08:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186275', 'tblTempVendorCDR_20' ) end [2025-01-06 08:16:19] Production.INFO: ProcessCDR(1,14186275,1,1,2) [2025-01-06 08:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186275', 'tblTempUsageDetail_20' ) start [2025-01-06 08:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186275', 'tblTempUsageDetail_20' ) end [2025-01-06 08:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:16:24] Production.INFO: ==26605== Releasing lock... [2025-01-06 08:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:16:24] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:17:05 [end_date_ymd] => 2025-01-06 08:17:05 [RateCDR] => 1 ) [2025-01-06 08:17: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-01-06 05:17:05' and `end` < '2025-01-06 08:17: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-01-06 08:17:18] Production.INFO: count ==255 [2025-01-06 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:17:05 - End Time 2025-01-06 08:17:05 [2025-01-06 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186280', 'tblTempUsageDetail_20' ) start [2025-01-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186280', 'tblTempUsageDetail_20' ) end [2025-01-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186280', 'tblTempVendorCDR_20' ) start [2025-01-06 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186280', 'tblTempVendorCDR_20' ) end [2025-01-06 08:17:18] Production.INFO: ProcessCDR(1,14186280,1,1,2) [2025-01-06 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186280', 'tblTempUsageDetail_20' ) start [2025-01-06 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186280', 'tblTempUsageDetail_20' ) end [2025-01-06 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:17:21] Production.INFO: ==26683== Releasing lock... [2025-01-06 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:17:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-06 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:18:05 [end_date_ymd] => 2025-01-06 08:18:05 [RateCDR] => 1 ) [2025-01-06 08:18: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-01-06 05:18:05' and `end` < '2025-01-06 08:18: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-01-06 08:18:18] Production.INFO: count ==261 [2025-01-06 08:18:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:18:05 - End Time 2025-01-06 08:18:05 [2025-01-06 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186285', 'tblTempUsageDetail_20' ) start [2025-01-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186285', 'tblTempUsageDetail_20' ) end [2025-01-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186285', 'tblTempVendorCDR_20' ) start [2025-01-06 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186285', 'tblTempVendorCDR_20' ) end [2025-01-06 08:18:18] Production.INFO: ProcessCDR(1,14186285,1,1,2) [2025-01-06 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186285', 'tblTempUsageDetail_20' ) start [2025-01-06 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186285', 'tblTempUsageDetail_20' ) end [2025-01-06 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:18:21] Production.INFO: ==26769== Releasing lock... [2025-01-06 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-06 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:19:05 [end_date_ymd] => 2025-01-06 08:19:05 [RateCDR] => 1 ) [2025-01-06 08:19: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-01-06 05:19:05' and `end` < '2025-01-06 08:19: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-01-06 08:19:17] Production.INFO: count ==275 [2025-01-06 08:19:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:19:05 - End Time 2025-01-06 08:19:05 [2025-01-06 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186290', 'tblTempUsageDetail_20' ) start [2025-01-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186290', 'tblTempUsageDetail_20' ) end [2025-01-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186290', 'tblTempVendorCDR_20' ) start [2025-01-06 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186290', 'tblTempVendorCDR_20' ) end [2025-01-06 08:19:17] Production.INFO: ProcessCDR(1,14186290,1,1,2) [2025-01-06 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186290', 'tblTempUsageDetail_20' ) start [2025-01-06 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186290', 'tblTempUsageDetail_20' ) end [2025-01-06 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:19:22] Production.INFO: ==26840== Releasing lock... [2025-01-06 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:19:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-06 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:20:05 [end_date_ymd] => 2025-01-06 08:20:05 [RateCDR] => 1 ) [2025-01-06 08:20: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-01-06 05:20:05' and `end` < '2025-01-06 08:20: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-01-06 08:20:18] Production.INFO: count ==284 [2025-01-06 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:20:05 - End Time 2025-01-06 08:20:05 [2025-01-06 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186296', 'tblTempUsageDetail_20' ) start [2025-01-06 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186296', 'tblTempUsageDetail_20' ) end [2025-01-06 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186296', 'tblTempVendorCDR_20' ) start [2025-01-06 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186296', 'tblTempVendorCDR_20' ) end [2025-01-06 08:20:18] Production.INFO: ProcessCDR(1,14186296,1,1,2) [2025-01-06 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186296', 'tblTempUsageDetail_20' ) start [2025-01-06 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186296', 'tblTempUsageDetail_20' ) end [2025-01-06 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:20:21] Production.INFO: ==26952== Releasing lock... [2025-01-06 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:20:21] Production.INFO: 30 MB #Memory Used# [2025-01-06 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:21:05 [end_date_ymd] => 2025-01-06 08:21:05 [RateCDR] => 1 ) [2025-01-06 08:21: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-01-06 05:21:05' and `end` < '2025-01-06 08:21: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-01-06 08:21:17] Production.INFO: count ==306 [2025-01-06 08:21:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:21:05 - End Time 2025-01-06 08:21:05 [2025-01-06 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186301', 'tblTempUsageDetail_20' ) start [2025-01-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186301', 'tblTempUsageDetail_20' ) end [2025-01-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186301', 'tblTempVendorCDR_20' ) start [2025-01-06 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186301', 'tblTempVendorCDR_20' ) end [2025-01-06 08:21:17] Production.INFO: ProcessCDR(1,14186301,1,1,2) [2025-01-06 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186301', 'tblTempUsageDetail_20' ) start [2025-01-06 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186301', 'tblTempUsageDetail_20' ) end [2025-01-06 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:21:22] Production.INFO: ==27028== Releasing lock... [2025-01-06 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-06 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:22:05 [end_date_ymd] => 2025-01-06 08:22:05 [RateCDR] => 1 ) [2025-01-06 08:22: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-01-06 05:22:05' and `end` < '2025-01-06 08:22: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-01-06 08:22:19] Production.INFO: count ==314 [2025-01-06 08:22:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:22:05 - End Time 2025-01-06 08:22:05 [2025-01-06 08:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186306', 'tblTempUsageDetail_20' ) start [2025-01-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186306', 'tblTempUsageDetail_20' ) end [2025-01-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186306', 'tblTempVendorCDR_20' ) start [2025-01-06 08:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186306', 'tblTempVendorCDR_20' ) end [2025-01-06 08:22:19] Production.INFO: ProcessCDR(1,14186306,1,1,2) [2025-01-06 08:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186306', 'tblTempUsageDetail_20' ) start [2025-01-06 08:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186306', 'tblTempUsageDetail_20' ) end [2025-01-06 08:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:22:24] Production.INFO: ==27103== Releasing lock... [2025-01-06 08:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:22:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-06 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:23:05 [end_date_ymd] => 2025-01-06 08:23:05 [RateCDR] => 1 ) [2025-01-06 08:23: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-01-06 05:23:05' and `end` < '2025-01-06 08:23: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-01-06 08:23:23] Production.INFO: count ==330 [2025-01-06 08:23:23] Production.ERROR: pbx CDR StartTime 2025-01-06 05:23:05 - End Time 2025-01-06 08:23:05 [2025-01-06 08:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186311', 'tblTempUsageDetail_20' ) start [2025-01-06 08:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186311', 'tblTempUsageDetail_20' ) end [2025-01-06 08:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186311', 'tblTempVendorCDR_20' ) start [2025-01-06 08:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186311', 'tblTempVendorCDR_20' ) end [2025-01-06 08:23:23] Production.INFO: ProcessCDR(1,14186311,1,1,2) [2025-01-06 08:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186311', 'tblTempUsageDetail_20' ) start [2025-01-06 08:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186311', 'tblTempUsageDetail_20' ) end [2025-01-06 08:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:23:28] Production.INFO: ==27176== Releasing lock... [2025-01-06 08:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:23:28] Production.INFO: 30.75 MB #Memory Used# [2025-01-06 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:24:05 [end_date_ymd] => 2025-01-06 08:24:05 [RateCDR] => 1 ) [2025-01-06 08:24: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-01-06 05:24:05' and `end` < '2025-01-06 08:24: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-01-06 08:24:18] Production.INFO: count ==346 [2025-01-06 08:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:24:05 - End Time 2025-01-06 08:24:05 [2025-01-06 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186312', 'tblTempUsageDetail_20' ) start [2025-01-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186312', 'tblTempUsageDetail_20' ) end [2025-01-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186312', 'tblTempVendorCDR_20' ) start [2025-01-06 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186312', 'tblTempVendorCDR_20' ) end [2025-01-06 08:24:18] Production.INFO: ProcessCDR(1,14186312,1,1,2) [2025-01-06 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186312', 'tblTempUsageDetail_20' ) start [2025-01-06 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186312', 'tblTempUsageDetail_20' ) end [2025-01-06 08:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:24:21] Production.INFO: ==27249== Releasing lock... [2025-01-06 08:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:24:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 08:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:25:04 [end_date_ymd] => 2025-01-06 08:25:04 [RateCDR] => 1 ) [2025-01-06 08: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-01-06 05:25:04' and `end` < '2025-01-06 08: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-01-06 08:25:18] Production.INFO: count ==353 [2025-01-06 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:25:04 - End Time 2025-01-06 08:25:04 [2025-01-06 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186321', 'tblTempUsageDetail_20' ) start [2025-01-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186321', 'tblTempUsageDetail_20' ) end [2025-01-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186321', 'tblTempVendorCDR_20' ) start [2025-01-06 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186321', 'tblTempVendorCDR_20' ) end [2025-01-06 08:25:18] Production.INFO: ProcessCDR(1,14186321,1,1,2) [2025-01-06 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186321', 'tblTempUsageDetail_20' ) start [2025-01-06 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186321', 'tblTempUsageDetail_20' ) end [2025-01-06 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:25:21] Production.INFO: ==27319== Releasing lock... [2025-01-06 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-06 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:26:05 [end_date_ymd] => 2025-01-06 08:26:05 [RateCDR] => 1 ) [2025-01-06 08:26: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-01-06 05:26:05' and `end` < '2025-01-06 08:26: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-01-06 08:26:19] Production.INFO: count ==355 [2025-01-06 08:26:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:26:05 - End Time 2025-01-06 08:26:05 [2025-01-06 08:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186326', 'tblTempUsageDetail_20' ) start [2025-01-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186326', 'tblTempUsageDetail_20' ) end [2025-01-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186326', 'tblTempVendorCDR_20' ) start [2025-01-06 08:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186326', 'tblTempVendorCDR_20' ) end [2025-01-06 08:26:19] Production.INFO: ProcessCDR(1,14186326,1,1,2) [2025-01-06 08:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186326', 'tblTempUsageDetail_20' ) start [2025-01-06 08:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186326', 'tblTempUsageDetail_20' ) end [2025-01-06 08:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:26:22] Production.INFO: ==27393== Releasing lock... [2025-01-06 08:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:26:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 08:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:27:04 [end_date_ymd] => 2025-01-06 08:27:04 [RateCDR] => 1 ) [2025-01-06 08:27: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-01-06 05:27:04' and `end` < '2025-01-06 08:27: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-01-06 08:27:18] Production.INFO: count ==366 [2025-01-06 08:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:27:04 - End Time 2025-01-06 08:27:04 [2025-01-06 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186331', 'tblTempUsageDetail_20' ) start [2025-01-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186331', 'tblTempUsageDetail_20' ) end [2025-01-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186331', 'tblTempVendorCDR_20' ) start [2025-01-06 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186331', 'tblTempVendorCDR_20' ) end [2025-01-06 08:27:18] Production.INFO: ProcessCDR(1,14186331,1,1,2) [2025-01-06 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186331', 'tblTempUsageDetail_20' ) start [2025-01-06 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186331', 'tblTempUsageDetail_20' ) end [2025-01-06 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:27:21] Production.INFO: ==27462== Releasing lock... [2025-01-06 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:27:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:28:05 [end_date_ymd] => 2025-01-06 08:28:05 [RateCDR] => 1 ) [2025-01-06 08:28: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-01-06 05:28:05' and `end` < '2025-01-06 08:28: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-01-06 08:28:18] Production.INFO: count ==382 [2025-01-06 08:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:28:05 - End Time 2025-01-06 08:28:05 [2025-01-06 08:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186336', 'tblTempUsageDetail_20' ) start [2025-01-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186336', 'tblTempUsageDetail_20' ) end [2025-01-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186336', 'tblTempVendorCDR_20' ) start [2025-01-06 08:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186336', 'tblTempVendorCDR_20' ) end [2025-01-06 08:28:18] Production.INFO: ProcessCDR(1,14186336,1,1,2) [2025-01-06 08:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186336', 'tblTempUsageDetail_20' ) start [2025-01-06 08:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186336', 'tblTempUsageDetail_20' ) end [2025-01-06 08:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:28:21] Production.INFO: ==27576== Releasing lock... [2025-01-06 08:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:29:05 [end_date_ymd] => 2025-01-06 08:29:05 [RateCDR] => 1 ) [2025-01-06 08:29: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-01-06 05:29:05' and `end` < '2025-01-06 08:29: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-01-06 08:29:19] Production.INFO: count ==403 [2025-01-06 08:29:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:29:05 - End Time 2025-01-06 08:29:05 [2025-01-06 08:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186341', 'tblTempUsageDetail_20' ) start [2025-01-06 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186341', 'tblTempUsageDetail_20' ) end [2025-01-06 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186341', 'tblTempVendorCDR_20' ) start [2025-01-06 08:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186341', 'tblTempVendorCDR_20' ) end [2025-01-06 08:29:19] Production.INFO: ProcessCDR(1,14186341,1,1,2) [2025-01-06 08:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186341', 'tblTempUsageDetail_20' ) start [2025-01-06 08:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186341', 'tblTempUsageDetail_20' ) end [2025-01-06 08:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:29:24] Production.INFO: ==27647== Releasing lock... [2025-01-06 08:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:29:24] Production.INFO: 31.25 MB #Memory Used# [2025-01-06 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:30:06 [end_date_ymd] => 2025-01-06 08:30:06 [RateCDR] => 1 ) [2025-01-06 08:30: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-01-06 05:30:06' and `end` < '2025-01-06 08:30: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-01-06 08:30:19] Production.INFO: count ==424 [2025-01-06 08:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:30:06 - End Time 2025-01-06 08:30:06 [2025-01-06 08:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186347', 'tblTempUsageDetail_20' ) start [2025-01-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186347', 'tblTempUsageDetail_20' ) end [2025-01-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186347', 'tblTempVendorCDR_20' ) start [2025-01-06 08:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186347', 'tblTempVendorCDR_20' ) end [2025-01-06 08:30:19] Production.INFO: ProcessCDR(1,14186347,1,1,2) [2025-01-06 08:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186347', 'tblTempUsageDetail_20' ) start [2025-01-06 08:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186347', 'tblTempUsageDetail_20' ) end [2025-01-06 08:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:30:24] Production.INFO: ==27723== Releasing lock... [2025-01-06 08:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:30:24] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 08:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:31:06 [end_date_ymd] => 2025-01-06 08:31:06 [RateCDR] => 1 ) [2025-01-06 08:31: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-01-06 05:31:06' and `end` < '2025-01-06 08:31: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-01-06 08:31:19] Production.INFO: count ==443 [2025-01-06 08:31:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:31:06 - End Time 2025-01-06 08:31:06 [2025-01-06 08:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186352', 'tblTempUsageDetail_20' ) start [2025-01-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186352', 'tblTempUsageDetail_20' ) end [2025-01-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186352', 'tblTempVendorCDR_20' ) start [2025-01-06 08:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186352', 'tblTempVendorCDR_20' ) end [2025-01-06 08:31:19] Production.INFO: ProcessCDR(1,14186352,1,1,2) [2025-01-06 08:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186352', 'tblTempUsageDetail_20' ) start [2025-01-06 08:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186352', 'tblTempUsageDetail_20' ) end [2025-01-06 08:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:31:22] Production.INFO: ==27800== Releasing lock... [2025-01-06 08:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:31:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:32:05 [end_date_ymd] => 2025-01-06 08:32:05 [RateCDR] => 1 ) [2025-01-06 08:32: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-01-06 05:32:05' and `end` < '2025-01-06 08:32: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-01-06 08:32:18] Production.INFO: count ==457 [2025-01-06 08:32:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:32:05 - End Time 2025-01-06 08:32:05 [2025-01-06 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186357', 'tblTempUsageDetail_20' ) start [2025-01-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186357', 'tblTempUsageDetail_20' ) end [2025-01-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186357', 'tblTempVendorCDR_20' ) start [2025-01-06 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186357', 'tblTempVendorCDR_20' ) end [2025-01-06 08:32:18] Production.INFO: ProcessCDR(1,14186357,1,1,2) [2025-01-06 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186357', 'tblTempUsageDetail_20' ) start [2025-01-06 08:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186357', 'tblTempUsageDetail_20' ) end [2025-01-06 08:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:32:23] Production.INFO: ==27873== Releasing lock... [2025-01-06 08:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:32:23] Production.INFO: 31.75 MB #Memory Used# [2025-01-06 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:33:05 [end_date_ymd] => 2025-01-06 08:33:05 [RateCDR] => 1 ) [2025-01-06 08:33: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-01-06 05:33:05' and `end` < '2025-01-06 08:33: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-01-06 08:33:20] Production.INFO: count ==473 [2025-01-06 08:33:20] Production.ERROR: pbx CDR StartTime 2025-01-06 05:33:05 - End Time 2025-01-06 08:33:05 [2025-01-06 08:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186362', 'tblTempUsageDetail_20' ) start [2025-01-06 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186362', 'tblTempUsageDetail_20' ) end [2025-01-06 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186362', 'tblTempVendorCDR_20' ) start [2025-01-06 08:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186362', 'tblTempVendorCDR_20' ) end [2025-01-06 08:33:20] Production.INFO: ProcessCDR(1,14186362,1,1,2) [2025-01-06 08:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186362', 'tblTempUsageDetail_20' ) start [2025-01-06 08:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186362', 'tblTempUsageDetail_20' ) end [2025-01-06 08:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:33:24] Production.INFO: ==27944== Releasing lock... [2025-01-06 08:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:33:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 08:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:34:04 [end_date_ymd] => 2025-01-06 08:34:04 [RateCDR] => 1 ) [2025-01-06 08:34: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-01-06 05:34:04' and `end` < '2025-01-06 08:34: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-01-06 08:34:18] Production.INFO: count ==483 [2025-01-06 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:34:04 - End Time 2025-01-06 08:34:04 [2025-01-06 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186367', 'tblTempUsageDetail_20' ) start [2025-01-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186367', 'tblTempUsageDetail_20' ) end [2025-01-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186367', 'tblTempVendorCDR_20' ) start [2025-01-06 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186367', 'tblTempVendorCDR_20' ) end [2025-01-06 08:34:18] Production.INFO: ProcessCDR(1,14186367,1,1,2) [2025-01-06 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186367', 'tblTempUsageDetail_20' ) start [2025-01-06 08:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186367', 'tblTempUsageDetail_20' ) end [2025-01-06 08:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:34:23] Production.INFO: ==28018== Releasing lock... [2025-01-06 08:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:34:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 08:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:35:05 [end_date_ymd] => 2025-01-06 08:35:05 [RateCDR] => 1 ) [2025-01-06 08:35: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-01-06 05:35:05' and `end` < '2025-01-06 08:35: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-01-06 08:35:18] Production.INFO: count ==485 [2025-01-06 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:35:05 - End Time 2025-01-06 08:35:05 [2025-01-06 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186372', 'tblTempUsageDetail_20' ) start [2025-01-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186372', 'tblTempUsageDetail_20' ) end [2025-01-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186372', 'tblTempVendorCDR_20' ) start [2025-01-06 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186372', 'tblTempVendorCDR_20' ) end [2025-01-06 08:35:18] Production.INFO: ProcessCDR(1,14186372,1,1,2) [2025-01-06 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186372', 'tblTempUsageDetail_20' ) start [2025-01-06 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186372', 'tblTempUsageDetail_20' ) end [2025-01-06 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:35:21] Production.INFO: ==28094== Releasing lock... [2025-01-06 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 08:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:36:06 [end_date_ymd] => 2025-01-06 08:36:06 [RateCDR] => 1 ) [2025-01-06 08:36: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-01-06 05:36:06' and `end` < '2025-01-06 08:36: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-01-06 08:36:19] Production.INFO: count ==506 [2025-01-06 08:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 05:36:06 - End Time 2025-01-06 08:36:06 [2025-01-06 08:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186377', 'tblTempUsageDetail_20' ) start [2025-01-06 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186377', 'tblTempUsageDetail_20' ) end [2025-01-06 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186377', 'tblTempVendorCDR_20' ) start [2025-01-06 08:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186377', 'tblTempVendorCDR_20' ) end [2025-01-06 08:36:20] Production.INFO: ProcessCDR(1,14186377,1,1,2) [2025-01-06 08:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186377', 'tblTempUsageDetail_20' ) start [2025-01-06 08:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186377', 'tblTempUsageDetail_20' ) end [2025-01-06 08:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:36:24] Production.INFO: ==28166== Releasing lock... [2025-01-06 08:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:36:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:37:05 [end_date_ymd] => 2025-01-06 08:37:05 [RateCDR] => 1 ) [2025-01-06 08:37: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-01-06 05:37:05' and `end` < '2025-01-06 08:37: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-01-06 08:37:18] Production.INFO: count ==514 [2025-01-06 08:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:37:05 - End Time 2025-01-06 08:37:05 [2025-01-06 08:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186382', 'tblTempUsageDetail_20' ) start [2025-01-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186382', 'tblTempUsageDetail_20' ) end [2025-01-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186382', 'tblTempVendorCDR_20' ) start [2025-01-06 08:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186382', 'tblTempVendorCDR_20' ) end [2025-01-06 08:37:18] Production.INFO: ProcessCDR(1,14186382,1,1,2) [2025-01-06 08:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186382', 'tblTempUsageDetail_20' ) start [2025-01-06 08:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186382', 'tblTempUsageDetail_20' ) end [2025-01-06 08:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:37:21] Production.INFO: ==28236== Releasing lock... [2025-01-06 08:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:37:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 08:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:38:06 [end_date_ymd] => 2025-01-06 08:38:06 [RateCDR] => 1 ) [2025-01-06 08:38: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-01-06 05:38:06' and `end` < '2025-01-06 08:38: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-01-06 08:38:18] Production.INFO: count ==535 [2025-01-06 08:38:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:38:06 - End Time 2025-01-06 08:38:06 [2025-01-06 08:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186387', 'tblTempUsageDetail_20' ) start [2025-01-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186387', 'tblTempUsageDetail_20' ) end [2025-01-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186387', 'tblTempVendorCDR_20' ) start [2025-01-06 08:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186387', 'tblTempVendorCDR_20' ) end [2025-01-06 08:38:19] Production.INFO: ProcessCDR(1,14186387,1,1,2) [2025-01-06 08:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186387', 'tblTempUsageDetail_20' ) start [2025-01-06 08:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186387', 'tblTempUsageDetail_20' ) end [2025-01-06 08:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:38:23] Production.INFO: ==28309== Releasing lock... [2025-01-06 08:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:38:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:39:05 [end_date_ymd] => 2025-01-06 08:39:05 [RateCDR] => 1 ) [2025-01-06 08:39: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-01-06 05:39:05' and `end` < '2025-01-06 08:39: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-01-06 08:39:18] Production.INFO: count ==553 [2025-01-06 08:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:39:05 - End Time 2025-01-06 08:39:05 [2025-01-06 08:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186392', 'tblTempUsageDetail_20' ) start [2025-01-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186392', 'tblTempUsageDetail_20' ) end [2025-01-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186392', 'tblTempVendorCDR_20' ) start [2025-01-06 08:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186392', 'tblTempVendorCDR_20' ) end [2025-01-06 08:39:18] Production.INFO: ProcessCDR(1,14186392,1,1,2) [2025-01-06 08:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186392', 'tblTempUsageDetail_20' ) start [2025-01-06 08:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186392', 'tblTempUsageDetail_20' ) end [2025-01-06 08:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:39:21] Production.INFO: ==28379== Releasing lock... [2025-01-06 08:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:39:21] Production.INFO: 33 MB #Memory Used# [2025-01-06 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:40:06 [end_date_ymd] => 2025-01-06 08:40:06 [RateCDR] => 1 ) [2025-01-06 08:40: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-01-06 05:40:06' and `end` < '2025-01-06 08:40: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-01-06 08:40:19] Production.INFO: count ==572 [2025-01-06 08:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:40:06 - End Time 2025-01-06 08:40:06 [2025-01-06 08:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186398', 'tblTempUsageDetail_20' ) start [2025-01-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186398', 'tblTempUsageDetail_20' ) end [2025-01-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186398', 'tblTempVendorCDR_20' ) start [2025-01-06 08:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186398', 'tblTempVendorCDR_20' ) end [2025-01-06 08:40:19] Production.INFO: ProcessCDR(1,14186398,1,1,2) [2025-01-06 08:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186398', 'tblTempUsageDetail_20' ) start [2025-01-06 08:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186398', 'tblTempUsageDetail_20' ) end [2025-01-06 08:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:40:22] Production.INFO: ==28453== Releasing lock... [2025-01-06 08:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:40:22] Production.INFO: 33 MB #Memory Used# [2025-01-06 08:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:41:04 [end_date_ymd] => 2025-01-06 08:41:04 [RateCDR] => 1 ) [2025-01-06 08:41: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-01-06 05:41:04' and `end` < '2025-01-06 08:41: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-01-06 08:41:17] Production.INFO: count ==607 [2025-01-06 08:41:17] Production.ERROR: pbx CDR StartTime 2025-01-06 05:41:04 - End Time 2025-01-06 08:41:04 [2025-01-06 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186403', 'tblTempUsageDetail_20' ) start [2025-01-06 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186403', 'tblTempUsageDetail_20' ) end [2025-01-06 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186403', 'tblTempVendorCDR_20' ) start [2025-01-06 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186403', 'tblTempVendorCDR_20' ) end [2025-01-06 08:41:17] Production.INFO: ProcessCDR(1,14186403,1,1,2) [2025-01-06 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186403', 'tblTempUsageDetail_20' ) start [2025-01-06 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186403', 'tblTempUsageDetail_20' ) end [2025-01-06 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:41:21] Production.INFO: ==28527== Releasing lock... [2025-01-06 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:41:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:42:05 [end_date_ymd] => 2025-01-06 08:42:05 [RateCDR] => 1 ) [2025-01-06 08:42: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-01-06 05:42:05' and `end` < '2025-01-06 08:42: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-01-06 08:42:18] Production.INFO: count ==620 [2025-01-06 08:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:42:05 - End Time 2025-01-06 08:42:05 [2025-01-06 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186408', 'tblTempUsageDetail_20' ) start [2025-01-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186408', 'tblTempUsageDetail_20' ) end [2025-01-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186408', 'tblTempVendorCDR_20' ) start [2025-01-06 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186408', 'tblTempVendorCDR_20' ) end [2025-01-06 08:42:18] Production.INFO: ProcessCDR(1,14186408,1,1,2) [2025-01-06 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186408', 'tblTempUsageDetail_20' ) start [2025-01-06 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186408', 'tblTempUsageDetail_20' ) end [2025-01-06 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:42:23] Production.INFO: ==28600== Releasing lock... [2025-01-06 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:42:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 08:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:43:04 [end_date_ymd] => 2025-01-06 08:43:04 [RateCDR] => 1 ) [2025-01-06 08:43: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-01-06 05:43:04' and `end` < '2025-01-06 08:43: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-01-06 08:43:18] Production.INFO: count ==658 [2025-01-06 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:43:04 - End Time 2025-01-06 08:43:04 [2025-01-06 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186413', 'tblTempUsageDetail_20' ) start [2025-01-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186413', 'tblTempUsageDetail_20' ) end [2025-01-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186413', 'tblTempVendorCDR_20' ) start [2025-01-06 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186413', 'tblTempVendorCDR_20' ) end [2025-01-06 08:43:18] Production.INFO: ProcessCDR(1,14186413,1,1,2) [2025-01-06 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186413', 'tblTempUsageDetail_20' ) start [2025-01-06 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186413', 'tblTempUsageDetail_20' ) end [2025-01-06 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:43:21] Production.INFO: ==28670== Releasing lock... [2025-01-06 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:43:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:44:05 [end_date_ymd] => 2025-01-06 08:44:05 [RateCDR] => 1 ) [2025-01-06 08:44: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-01-06 05:44:05' and `end` < '2025-01-06 08:44: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-01-06 08:44:18] Production.INFO: count ==675 [2025-01-06 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:44:05 - End Time 2025-01-06 08:44:05 [2025-01-06 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186418', 'tblTempUsageDetail_20' ) start [2025-01-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186418', 'tblTempUsageDetail_20' ) end [2025-01-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186418', 'tblTempVendorCDR_20' ) start [2025-01-06 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186418', 'tblTempVendorCDR_20' ) end [2025-01-06 08:44:18] Production.INFO: ProcessCDR(1,14186418,1,1,2) [2025-01-06 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186418', 'tblTempUsageDetail_20' ) start [2025-01-06 08:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186418', 'tblTempUsageDetail_20' ) end [2025-01-06 08:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:44:23] Production.INFO: ==28786== Releasing lock... [2025-01-06 08:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:44:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 08:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:45:05 [end_date_ymd] => 2025-01-06 08:45:05 [RateCDR] => 1 ) [2025-01-06 08:45: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-01-06 05:45:05' and `end` < '2025-01-06 08:45: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-01-06 08:45:18] Production.INFO: count ==687 [2025-01-06 08:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:45:05 - End Time 2025-01-06 08:45:05 [2025-01-06 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186423', 'tblTempUsageDetail_20' ) start [2025-01-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186423', 'tblTempUsageDetail_20' ) end [2025-01-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186423', 'tblTempVendorCDR_20' ) start [2025-01-06 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186423', 'tblTempVendorCDR_20' ) end [2025-01-06 08:45:18] Production.INFO: ProcessCDR(1,14186423,1,1,2) [2025-01-06 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186423', 'tblTempUsageDetail_20' ) start [2025-01-06 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186423', 'tblTempUsageDetail_20' ) end [2025-01-06 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:45:23] Production.INFO: ==28860== Releasing lock... [2025-01-06 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:45:23] Production.INFO: 34 MB #Memory Used# [2025-01-06 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:46:05 [end_date_ymd] => 2025-01-06 08:46:05 [RateCDR] => 1 ) [2025-01-06 08:46: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-01-06 05:46:05' and `end` < '2025-01-06 08:46: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-01-06 08:46:18] Production.INFO: count ==703 [2025-01-06 08:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:46:05 - End Time 2025-01-06 08:46:05 [2025-01-06 08:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186428', 'tblTempUsageDetail_20' ) start [2025-01-06 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186428', 'tblTempUsageDetail_20' ) end [2025-01-06 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186428', 'tblTempVendorCDR_20' ) start [2025-01-06 08:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186428', 'tblTempVendorCDR_20' ) end [2025-01-06 08:46:19] Production.INFO: ProcessCDR(1,14186428,1,1,2) [2025-01-06 08:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186428', 'tblTempUsageDetail_20' ) start [2025-01-06 08:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186428', 'tblTempUsageDetail_20' ) end [2025-01-06 08:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:46:22] Production.INFO: ==28935== Releasing lock... [2025-01-06 08:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:46:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:47:05 [end_date_ymd] => 2025-01-06 08:47:05 [RateCDR] => 1 ) [2025-01-06 08:47: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-01-06 05:47:05' and `end` < '2025-01-06 08:47: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-01-06 08:47:18] Production.INFO: count ==717 [2025-01-06 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:47:05 - End Time 2025-01-06 08:47:05 [2025-01-06 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186433', 'tblTempUsageDetail_20' ) start [2025-01-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186433', 'tblTempUsageDetail_20' ) end [2025-01-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186433', 'tblTempVendorCDR_20' ) start [2025-01-06 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186433', 'tblTempVendorCDR_20' ) end [2025-01-06 08:47:18] Production.INFO: ProcessCDR(1,14186433,1,1,2) [2025-01-06 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186433', 'tblTempUsageDetail_20' ) start [2025-01-06 08:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186433', 'tblTempUsageDetail_20' ) end [2025-01-06 08:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:47:21] Production.INFO: ==29008== Releasing lock... [2025-01-06 08:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:47:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:48:05 [end_date_ymd] => 2025-01-06 08:48:05 [RateCDR] => 1 ) [2025-01-06 08:48: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-01-06 05:48:05' and `end` < '2025-01-06 08:48: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-01-06 08:48:19] Production.INFO: count ==767 [2025-01-06 08:48:20] Production.ERROR: pbx CDR StartTime 2025-01-06 05:48:05 - End Time 2025-01-06 08:48:05 [2025-01-06 08:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186438', 'tblTempUsageDetail_20' ) start [2025-01-06 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186438', 'tblTempUsageDetail_20' ) end [2025-01-06 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186438', 'tblTempVendorCDR_20' ) start [2025-01-06 08:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186438', 'tblTempVendorCDR_20' ) end [2025-01-06 08:48:20] Production.INFO: ProcessCDR(1,14186438,1,1,2) [2025-01-06 08:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186438', 'tblTempUsageDetail_20' ) start [2025-01-06 08:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186438', 'tblTempUsageDetail_20' ) end [2025-01-06 08:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:48:24] Production.INFO: ==29083== Releasing lock... [2025-01-06 08:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:48:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:49:05 [end_date_ymd] => 2025-01-06 08:49:05 [RateCDR] => 1 ) [2025-01-06 08:49: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-01-06 05:49:05' and `end` < '2025-01-06 08:49: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-01-06 08:49:18] Production.INFO: count ==777 [2025-01-06 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:49:05 - End Time 2025-01-06 08:49:05 [2025-01-06 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186443', 'tblTempUsageDetail_20' ) start [2025-01-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186443', 'tblTempUsageDetail_20' ) end [2025-01-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186443', 'tblTempVendorCDR_20' ) start [2025-01-06 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186443', 'tblTempVendorCDR_20' ) end [2025-01-06 08:49:18] Production.INFO: ProcessCDR(1,14186443,1,1,2) [2025-01-06 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186443', 'tblTempUsageDetail_20' ) start [2025-01-06 08:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186443', 'tblTempUsageDetail_20' ) end [2025-01-06 08:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:49:23] Production.INFO: ==29155== Releasing lock... [2025-01-06 08:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:49:23] Production.INFO: 34 MB #Memory Used# [2025-01-06 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:50:06 [end_date_ymd] => 2025-01-06 08:50:06 [RateCDR] => 1 ) [2025-01-06 08:50: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-01-06 05:50:06' and `end` < '2025-01-06 08:50: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-01-06 08:50:19] Production.INFO: count ==812 [2025-01-06 08:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:50:06 - End Time 2025-01-06 08:50:06 [2025-01-06 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186449', 'tblTempUsageDetail_20' ) start [2025-01-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186449', 'tblTempUsageDetail_20' ) end [2025-01-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186449', 'tblTempVendorCDR_20' ) start [2025-01-06 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186449', 'tblTempVendorCDR_20' ) end [2025-01-06 08:50:19] Production.INFO: ProcessCDR(1,14186449,1,1,2) [2025-01-06 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186449', 'tblTempUsageDetail_20' ) start [2025-01-06 08:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186449', 'tblTempUsageDetail_20' ) end [2025-01-06 08:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:50:24] Production.INFO: ==29233== Releasing lock... [2025-01-06 08:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:50:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-06 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:51:05 [end_date_ymd] => 2025-01-06 08:51:05 [RateCDR] => 1 ) [2025-01-06 08:51: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-01-06 05:51:05' and `end` < '2025-01-06 08:51: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-01-06 08:51:18] Production.INFO: count ==855 [2025-01-06 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:51:05 - End Time 2025-01-06 08:51:05 [2025-01-06 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186454', 'tblTempUsageDetail_20' ) start [2025-01-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186454', 'tblTempUsageDetail_20' ) end [2025-01-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186454', 'tblTempVendorCDR_20' ) start [2025-01-06 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186454', 'tblTempVendorCDR_20' ) end [2025-01-06 08:51:18] Production.INFO: ProcessCDR(1,14186454,1,1,2) [2025-01-06 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186454', 'tblTempUsageDetail_20' ) start [2025-01-06 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186454', 'tblTempUsageDetail_20' ) end [2025-01-06 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:51:23] Production.INFO: ==29304== Releasing lock... [2025-01-06 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:51:23] Production.INFO: 35 MB #Memory Used# [2025-01-06 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:52:05 [end_date_ymd] => 2025-01-06 08:52:05 [RateCDR] => 1 ) [2025-01-06 08:52: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-01-06 05:52:05' and `end` < '2025-01-06 08:52: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-01-06 08:52:18] Production.INFO: count ==856 [2025-01-06 08:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:52:05 - End Time 2025-01-06 08:52:05 [2025-01-06 08:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186459', 'tblTempUsageDetail_20' ) start [2025-01-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186459', 'tblTempUsageDetail_20' ) end [2025-01-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186459', 'tblTempVendorCDR_20' ) start [2025-01-06 08:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186459', 'tblTempVendorCDR_20' ) end [2025-01-06 08:52:18] Production.INFO: ProcessCDR(1,14186459,1,1,2) [2025-01-06 08:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186459', 'tblTempUsageDetail_20' ) start [2025-01-06 08:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186459', 'tblTempUsageDetail_20' ) end [2025-01-06 08:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:52:23] Production.INFO: ==29376== Releasing lock... [2025-01-06 08:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:52:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 08:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:53:04 [end_date_ymd] => 2025-01-06 08:53:04 [RateCDR] => 1 ) [2025-01-06 08:53: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-01-06 05:53:04' and `end` < '2025-01-06 08:53: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-01-06 08:53:17] Production.INFO: count ==873 [2025-01-06 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:53:04 - End Time 2025-01-06 08:53:04 [2025-01-06 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186464', 'tblTempUsageDetail_20' ) start [2025-01-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186464', 'tblTempUsageDetail_20' ) end [2025-01-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186464', 'tblTempVendorCDR_20' ) start [2025-01-06 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186464', 'tblTempVendorCDR_20' ) end [2025-01-06 08:53:18] Production.INFO: ProcessCDR(1,14186464,1,1,2) [2025-01-06 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186464', 'tblTempUsageDetail_20' ) start [2025-01-06 08:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186464', 'tblTempUsageDetail_20' ) end [2025-01-06 08:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:53:22] Production.INFO: ==29446== Releasing lock... [2025-01-06 08:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:54:05 [end_date_ymd] => 2025-01-06 08:54:05 [RateCDR] => 1 ) [2025-01-06 08:54: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-01-06 05:54:05' and `end` < '2025-01-06 08:54: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-01-06 08:54:18] Production.INFO: count ==879 [2025-01-06 08:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:54:05 - End Time 2025-01-06 08:54:05 [2025-01-06 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186469', 'tblTempUsageDetail_20' ) start [2025-01-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186469', 'tblTempUsageDetail_20' ) end [2025-01-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186469', 'tblTempVendorCDR_20' ) start [2025-01-06 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186469', 'tblTempVendorCDR_20' ) end [2025-01-06 08:54:18] Production.INFO: ProcessCDR(1,14186469,1,1,2) [2025-01-06 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186469', 'tblTempUsageDetail_20' ) start [2025-01-06 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186469', 'tblTempUsageDetail_20' ) end [2025-01-06 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:54:21] Production.INFO: ==29518== Releasing lock... [2025-01-06 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:54:21] Production.INFO: 35 MB #Memory Used# [2025-01-06 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:55:05 [end_date_ymd] => 2025-01-06 08:55:05 [RateCDR] => 1 ) [2025-01-06 08:55: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-01-06 05:55:05' and `end` < '2025-01-06 08:55: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-01-06 08:55:19] Production.INFO: count ==885 [2025-01-06 08:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:55:05 - End Time 2025-01-06 08:55:05 [2025-01-06 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186474', 'tblTempUsageDetail_20' ) start [2025-01-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186474', 'tblTempUsageDetail_20' ) end [2025-01-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186474', 'tblTempVendorCDR_20' ) start [2025-01-06 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186474', 'tblTempVendorCDR_20' ) end [2025-01-06 08:55:19] Production.INFO: ProcessCDR(1,14186474,1,1,2) [2025-01-06 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186474', 'tblTempUsageDetail_20' ) start [2025-01-06 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186474', 'tblTempUsageDetail_20' ) end [2025-01-06 08:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:55:23] Production.INFO: ==29589== Releasing lock... [2025-01-06 08:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:55:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-06 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:56:05 [end_date_ymd] => 2025-01-06 08:56:05 [RateCDR] => 1 ) [2025-01-06 08:56: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-01-06 05:56:05' and `end` < '2025-01-06 08:56: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-01-06 08:56:18] Production.INFO: count ==896 [2025-01-06 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:56:05 - End Time 2025-01-06 08:56:05 [2025-01-06 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186479', 'tblTempUsageDetail_20' ) start [2025-01-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186479', 'tblTempUsageDetail_20' ) end [2025-01-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186479', 'tblTempVendorCDR_20' ) start [2025-01-06 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186479', 'tblTempVendorCDR_20' ) end [2025-01-06 08:56:18] Production.INFO: ProcessCDR(1,14186479,1,1,2) [2025-01-06 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186479', 'tblTempUsageDetail_20' ) start [2025-01-06 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186479', 'tblTempUsageDetail_20' ) end [2025-01-06 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:56:23] Production.INFO: ==29665== Releasing lock... [2025-01-06 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:56:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 08:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:57:05 [end_date_ymd] => 2025-01-06 08:57:05 [RateCDR] => 1 ) [2025-01-06 08:57: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-01-06 05:57:05' and `end` < '2025-01-06 08:57: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-01-06 08:57:18] Production.INFO: count ==897 [2025-01-06 08:57:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:57:05 - End Time 2025-01-06 08:57:05 [2025-01-06 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186484', 'tblTempUsageDetail_20' ) start [2025-01-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186484', 'tblTempUsageDetail_20' ) end [2025-01-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186484', 'tblTempVendorCDR_20' ) start [2025-01-06 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186484', 'tblTempVendorCDR_20' ) end [2025-01-06 08:57:18] Production.INFO: ProcessCDR(1,14186484,1,1,2) [2025-01-06 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186484', 'tblTempUsageDetail_20' ) start [2025-01-06 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186484', 'tblTempUsageDetail_20' ) end [2025-01-06 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:57:22] Production.INFO: ==29742== Releasing lock... [2025-01-06 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:58:05 [end_date_ymd] => 2025-01-06 08:58:05 [RateCDR] => 1 ) [2025-01-06 08:58: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-01-06 05:58:05' and `end` < '2025-01-06 08:58: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-01-06 08:58:18] Production.INFO: count ==904 [2025-01-06 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 05:58:05 - End Time 2025-01-06 08:58:05 [2025-01-06 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186489', 'tblTempUsageDetail_20' ) start [2025-01-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186489', 'tblTempUsageDetail_20' ) end [2025-01-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186489', 'tblTempVendorCDR_20' ) start [2025-01-06 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186489', 'tblTempVendorCDR_20' ) end [2025-01-06 08:58:18] Production.INFO: ProcessCDR(1,14186489,1,1,2) [2025-01-06 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186489', 'tblTempUsageDetail_20' ) start [2025-01-06 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186489', 'tblTempUsageDetail_20' ) end [2025-01-06 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:58:23] Production.INFO: ==29825== Releasing lock... [2025-01-06 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:58:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-06 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 05:59:05 [end_date_ymd] => 2025-01-06 08:59:05 [RateCDR] => 1 ) [2025-01-06 08:59: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-01-06 05:59:05' and `end` < '2025-01-06 08:59: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-01-06 08:59:19] Production.INFO: count ==911 [2025-01-06 08:59:19] Production.ERROR: pbx CDR StartTime 2025-01-06 05:59:05 - End Time 2025-01-06 08:59:05 [2025-01-06 08:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 08:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186494', 'tblTempUsageDetail_20' ) start [2025-01-06 08:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186494', 'tblTempUsageDetail_20' ) end [2025-01-06 08:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186494', 'tblTempVendorCDR_20' ) start [2025-01-06 08:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186494', 'tblTempVendorCDR_20' ) end [2025-01-06 08:59:20] Production.INFO: ProcessCDR(1,14186494,1,1,2) [2025-01-06 08:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186494', 'tblTempUsageDetail_20' ) start [2025-01-06 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186494', 'tblTempUsageDetail_20' ) end [2025-01-06 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 08:59:23] Production.INFO: ==29907== Releasing lock... [2025-01-06 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 08:59:23] Production.INFO: 35 MB #Memory Used# [2025-01-06 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:00:05 [end_date_ymd] => 2025-01-06 09:00:05 [RateCDR] => 1 ) [2025-01-06 09: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-01-06 06:00:05' and `end` < '2025-01-06 09: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-01-06 09:00:18] Production.INFO: count ==917 [2025-01-06 09:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:00:05 - End Time 2025-01-06 09:00:05 [2025-01-06 09:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186500', 'tblTempUsageDetail_20' ) start [2025-01-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186500', 'tblTempUsageDetail_20' ) end [2025-01-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186500', 'tblTempVendorCDR_20' ) start [2025-01-06 09:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186500', 'tblTempVendorCDR_20' ) end [2025-01-06 09:00:19] Production.INFO: ProcessCDR(1,14186500,1,1,2) [2025-01-06 09:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186500', 'tblTempUsageDetail_20' ) start [2025-01-06 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186500', 'tblTempUsageDetail_20' ) end [2025-01-06 09:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:00:23] Production.INFO: ==30029== Releasing lock... [2025-01-06 09:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:00:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:01:05 [end_date_ymd] => 2025-01-06 09:01:05 [RateCDR] => 1 ) [2025-01-06 09:01: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-01-06 06:01:05' and `end` < '2025-01-06 09:01: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-01-06 09:01:17] Production.INFO: count ==940 [2025-01-06 09:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:01:05 - End Time 2025-01-06 09:01:05 [2025-01-06 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186505', 'tblTempUsageDetail_20' ) start [2025-01-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186505', 'tblTempUsageDetail_20' ) end [2025-01-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186505', 'tblTempVendorCDR_20' ) start [2025-01-06 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186505', 'tblTempVendorCDR_20' ) end [2025-01-06 09:01:18] Production.INFO: ProcessCDR(1,14186505,1,1,2) [2025-01-06 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186505', 'tblTempUsageDetail_20' ) start [2025-01-06 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186505', 'tblTempUsageDetail_20' ) end [2025-01-06 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:01:23] Production.INFO: ==30126== Releasing lock... [2025-01-06 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:01:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:02:04 [end_date_ymd] => 2025-01-06 09:02:04 [RateCDR] => 1 ) [2025-01-06 09:02: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-01-06 06:02:04' and `end` < '2025-01-06 09:02: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-01-06 09:02:17] Production.INFO: count ==952 [2025-01-06 09:02:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:02:04 - End Time 2025-01-06 09:02:04 [2025-01-06 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186510', 'tblTempUsageDetail_20' ) start [2025-01-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186510', 'tblTempUsageDetail_20' ) end [2025-01-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186510', 'tblTempVendorCDR_20' ) start [2025-01-06 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186510', 'tblTempVendorCDR_20' ) end [2025-01-06 09:02:18] Production.INFO: ProcessCDR(1,14186510,1,1,2) [2025-01-06 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186510', 'tblTempUsageDetail_20' ) start [2025-01-06 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186510', 'tblTempUsageDetail_20' ) end [2025-01-06 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:02:23] Production.INFO: ==30208== Releasing lock... [2025-01-06 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:02:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:03:05 [end_date_ymd] => 2025-01-06 09:03:05 [RateCDR] => 1 ) [2025-01-06 09:03: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-01-06 06:03:05' and `end` < '2025-01-06 09:03: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-01-06 09:03:18] Production.INFO: count ==971 [2025-01-06 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:03:05 - End Time 2025-01-06 09:03:05 [2025-01-06 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186515', 'tblTempUsageDetail_20' ) start [2025-01-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186515', 'tblTempUsageDetail_20' ) end [2025-01-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186515', 'tblTempVendorCDR_20' ) start [2025-01-06 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186515', 'tblTempVendorCDR_20' ) end [2025-01-06 09:03:19] Production.INFO: ProcessCDR(1,14186515,1,1,2) [2025-01-06 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186515', 'tblTempUsageDetail_20' ) start [2025-01-06 09:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186515', 'tblTempUsageDetail_20' ) end [2025-01-06 09:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:03:24] Production.INFO: ==30286== Releasing lock... [2025-01-06 09:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:03:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:04:05 [end_date_ymd] => 2025-01-06 09:04:05 [RateCDR] => 1 ) [2025-01-06 09:04: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-01-06 06:04:05' and `end` < '2025-01-06 09:04: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-01-06 09:04:18] Production.INFO: count ==989 [2025-01-06 09:04:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:04:05 - End Time 2025-01-06 09:04:05 [2025-01-06 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186520', 'tblTempUsageDetail_20' ) start [2025-01-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186520', 'tblTempUsageDetail_20' ) end [2025-01-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186520', 'tblTempVendorCDR_20' ) start [2025-01-06 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186520', 'tblTempVendorCDR_20' ) end [2025-01-06 09:04:18] Production.INFO: ProcessCDR(1,14186520,1,1,2) [2025-01-06 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186520', 'tblTempUsageDetail_20' ) start [2025-01-06 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186520', 'tblTempUsageDetail_20' ) end [2025-01-06 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:04:23] Production.INFO: ==30369== Releasing lock... [2025-01-06 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:04:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:05:05 [end_date_ymd] => 2025-01-06 09:05:05 [RateCDR] => 1 ) [2025-01-06 09:05: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-01-06 06:05:05' and `end` < '2025-01-06 09:05: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-01-06 09:05:18] Production.INFO: count ==993 [2025-01-06 09:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:05:05 - End Time 2025-01-06 09:05:05 [2025-01-06 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186525', 'tblTempUsageDetail_20' ) start [2025-01-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186525', 'tblTempUsageDetail_20' ) end [2025-01-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186525', 'tblTempVendorCDR_20' ) start [2025-01-06 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186525', 'tblTempVendorCDR_20' ) end [2025-01-06 09:05:18] Production.INFO: ProcessCDR(1,14186525,1,1,2) [2025-01-06 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186525', 'tblTempUsageDetail_20' ) start [2025-01-06 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186525', 'tblTempUsageDetail_20' ) end [2025-01-06 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:05:23] Production.INFO: ==30447== Releasing lock... [2025-01-06 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:05:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 09:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:06:06 [end_date_ymd] => 2025-01-06 09:06:06 [RateCDR] => 1 ) [2025-01-06 09:06: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-01-06 06:06:06' and `end` < '2025-01-06 09:06: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-01-06 09:06:19] Production.INFO: count ==1025 [2025-01-06 09:06:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:06:06 - End Time 2025-01-06 09:06:06 [2025-01-06 09:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186530', 'tblTempUsageDetail_20' ) start [2025-01-06 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186530', 'tblTempUsageDetail_20' ) end [2025-01-06 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186530', 'tblTempVendorCDR_20' ) start [2025-01-06 09:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186530', 'tblTempVendorCDR_20' ) end [2025-01-06 09:06:20] Production.INFO: ProcessCDR(1,14186530,1,1,2) [2025-01-06 09:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186530', 'tblTempUsageDetail_20' ) start [2025-01-06 09:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186530', 'tblTempUsageDetail_20' ) end [2025-01-06 09:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:06:25] Production.INFO: ==30530== Releasing lock... [2025-01-06 09:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:06:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 09:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:07:04 [end_date_ymd] => 2025-01-06 09:07:04 [RateCDR] => 1 ) [2025-01-06 09:07: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-01-06 06:07:04' and `end` < '2025-01-06 09:07: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-01-06 09:07:17] Production.INFO: count ==1030 [2025-01-06 09:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:07:04 - End Time 2025-01-06 09:07:04 [2025-01-06 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186535', 'tblTempUsageDetail_20' ) start [2025-01-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186535', 'tblTempUsageDetail_20' ) end [2025-01-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186535', 'tblTempVendorCDR_20' ) start [2025-01-06 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186535', 'tblTempVendorCDR_20' ) end [2025-01-06 09:07:18] Production.INFO: ProcessCDR(1,14186535,1,1,2) [2025-01-06 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186535', 'tblTempUsageDetail_20' ) start [2025-01-06 09:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186535', 'tblTempUsageDetail_20' ) end [2025-01-06 09:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:07:22] Production.INFO: ==30608== Releasing lock... [2025-01-06 09:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:07:22] Production.INFO: 36 MB #Memory Used# [2025-01-06 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:08:05 [end_date_ymd] => 2025-01-06 09:08:05 [RateCDR] => 1 ) [2025-01-06 09:08: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-01-06 06:08:05' and `end` < '2025-01-06 09:08: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-01-06 09:08:18] Production.INFO: count ==1043 [2025-01-06 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:08:05 - End Time 2025-01-06 09:08:05 [2025-01-06 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186540', 'tblTempUsageDetail_20' ) start [2025-01-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186540', 'tblTempUsageDetail_20' ) end [2025-01-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186540', 'tblTempVendorCDR_20' ) start [2025-01-06 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186540', 'tblTempVendorCDR_20' ) end [2025-01-06 09:08:18] Production.INFO: ProcessCDR(1,14186540,1,1,2) [2025-01-06 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186540', 'tblTempUsageDetail_20' ) start [2025-01-06 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186540', 'tblTempUsageDetail_20' ) end [2025-01-06 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:08:23] Production.INFO: ==30688== Releasing lock... [2025-01-06 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:08:23] Production.INFO: 36 MB #Memory Used# [2025-01-06 09:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:09:05 [end_date_ymd] => 2025-01-06 09:09:05 [RateCDR] => 1 ) [2025-01-06 09:09: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-01-06 06:09:05' and `end` < '2025-01-06 09:09: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-01-06 09:09:18] Production.INFO: count ==1057 [2025-01-06 09:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:09:05 - End Time 2025-01-06 09:09:05 [2025-01-06 09:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186545', 'tblTempUsageDetail_20' ) start [2025-01-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186545', 'tblTempUsageDetail_20' ) end [2025-01-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186545', 'tblTempVendorCDR_20' ) start [2025-01-06 09:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186545', 'tblTempVendorCDR_20' ) end [2025-01-06 09:09:18] Production.INFO: ProcessCDR(1,14186545,1,1,2) [2025-01-06 09:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186545', 'tblTempUsageDetail_20' ) start [2025-01-06 09:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186545', 'tblTempUsageDetail_20' ) end [2025-01-06 09:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:09:23] Production.INFO: ==30762== Releasing lock... [2025-01-06 09:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:09:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-06 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:10:06 [end_date_ymd] => 2025-01-06 09:10:06 [RateCDR] => 1 ) [2025-01-06 09:10: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-01-06 06:10:06' and `end` < '2025-01-06 09:10: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-01-06 09:10:20] Production.INFO: count ==1072 [2025-01-06 09:10:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:10:06 - End Time 2025-01-06 09:10:06 [2025-01-06 09:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186551', 'tblTempUsageDetail_20' ) start [2025-01-06 09:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186551', 'tblTempUsageDetail_20' ) end [2025-01-06 09:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186551', 'tblTempVendorCDR_20' ) start [2025-01-06 09:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186551', 'tblTempVendorCDR_20' ) end [2025-01-06 09:10:21] Production.INFO: ProcessCDR(1,14186551,1,1,2) [2025-01-06 09:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186551', 'tblTempUsageDetail_20' ) start [2025-01-06 09:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186551', 'tblTempUsageDetail_20' ) end [2025-01-06 09:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:10:25] Production.INFO: ==30835== Releasing lock... [2025-01-06 09:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:10:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 09:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:11:04 [end_date_ymd] => 2025-01-06 09:11:04 [RateCDR] => 1 ) [2025-01-06 09:11: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-01-06 06:11:04' and `end` < '2025-01-06 09:11: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-01-06 09:11:19] Production.INFO: count ==1125 [2025-01-06 09:11:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:11:04 - End Time 2025-01-06 09:11:04 [2025-01-06 09:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186556', 'tblTempUsageDetail_20' ) start [2025-01-06 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186556', 'tblTempUsageDetail_20' ) end [2025-01-06 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186556', 'tblTempVendorCDR_20' ) start [2025-01-06 09:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186556', 'tblTempVendorCDR_20' ) end [2025-01-06 09:11:20] Production.INFO: ProcessCDR(1,14186556,1,1,2) [2025-01-06 09:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186556', 'tblTempUsageDetail_20' ) start [2025-01-06 09:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186556', 'tblTempUsageDetail_20' ) end [2025-01-06 09:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:11:25] Production.INFO: ==30907== Releasing lock... [2025-01-06 09:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:11:25] Production.INFO: 36.75 MB #Memory Used# [2025-01-06 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:12:05 [end_date_ymd] => 2025-01-06 09:12:05 [RateCDR] => 1 ) [2025-01-06 09:12: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-01-06 06:12:05' and `end` < '2025-01-06 09:12: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-01-06 09:12:20] Production.INFO: count ==1134 [2025-01-06 09:12:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:12:05 - End Time 2025-01-06 09:12:05 [2025-01-06 09:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186561', 'tblTempUsageDetail_20' ) start [2025-01-06 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186561', 'tblTempUsageDetail_20' ) end [2025-01-06 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186561', 'tblTempVendorCDR_20' ) start [2025-01-06 09:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186561', 'tblTempVendorCDR_20' ) end [2025-01-06 09:12:20] Production.INFO: ProcessCDR(1,14186561,1,1,2) [2025-01-06 09:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186561', 'tblTempUsageDetail_20' ) start [2025-01-06 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186561', 'tblTempUsageDetail_20' ) end [2025-01-06 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:12:23] Production.INFO: ==30986== Releasing lock... [2025-01-06 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-06 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:13:05 [end_date_ymd] => 2025-01-06 09:13:05 [RateCDR] => 1 ) [2025-01-06 09:13: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-01-06 06:13:05' and `end` < '2025-01-06 09:13: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-01-06 09:13:22] Production.INFO: count ==1165 [2025-01-06 09:13:23] Production.ERROR: pbx CDR StartTime 2025-01-06 06:13:05 - End Time 2025-01-06 09:13:05 [2025-01-06 09:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186566', 'tblTempUsageDetail_20' ) start [2025-01-06 09:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186566', 'tblTempUsageDetail_20' ) end [2025-01-06 09:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186566', 'tblTempVendorCDR_20' ) start [2025-01-06 09:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186566', 'tblTempVendorCDR_20' ) end [2025-01-06 09:13:23] Production.INFO: ProcessCDR(1,14186566,1,1,2) [2025-01-06 09:13:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:13:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:13:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186566', 'tblTempUsageDetail_20' ) start [2025-01-06 09:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186566', 'tblTempUsageDetail_20' ) end [2025-01-06 09:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:13:27] Production.INFO: ==31055== Releasing lock... [2025-01-06 09:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:13:27] Production.INFO: 36.75 MB #Memory Used# [2025-01-06 09:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:14:04 [end_date_ymd] => 2025-01-06 09:14:04 [RateCDR] => 1 ) [2025-01-06 09:14: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-01-06 06:14:04' and `end` < '2025-01-06 09:14: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-01-06 09:14:23] Production.INFO: count ==1198 [2025-01-06 09:14:24] Production.ERROR: pbx CDR StartTime 2025-01-06 06:14:04 - End Time 2025-01-06 09:14:04 [2025-01-06 09:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186571', 'tblTempUsageDetail_20' ) start [2025-01-06 09:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186571', 'tblTempUsageDetail_20' ) end [2025-01-06 09:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186571', 'tblTempVendorCDR_20' ) start [2025-01-06 09:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186571', 'tblTempVendorCDR_20' ) end [2025-01-06 09:14:24] Production.INFO: ProcessCDR(1,14186571,1,1,2) [2025-01-06 09:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186571', 'tblTempUsageDetail_20' ) start [2025-01-06 09:14:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186571', 'tblTempUsageDetail_20' ) end [2025-01-06 09:14:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:14:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:14:29] Production.INFO: ==31125== Releasing lock... [2025-01-06 09:14:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:14:29] Production.INFO: 37 MB #Memory Used# [2025-01-06 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:15:05 [end_date_ymd] => 2025-01-06 09:15:05 [RateCDR] => 1 ) [2025-01-06 09:15: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-01-06 06:15:05' and `end` < '2025-01-06 09:15: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-01-06 09:15:20] Production.INFO: count ==1217 [2025-01-06 09:15:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:15:05 - End Time 2025-01-06 09:15:05 [2025-01-06 09:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186576', 'tblTempUsageDetail_20' ) start [2025-01-06 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186576', 'tblTempUsageDetail_20' ) end [2025-01-06 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186576', 'tblTempVendorCDR_20' ) start [2025-01-06 09:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186576', 'tblTempVendorCDR_20' ) end [2025-01-06 09:15:20] Production.INFO: ProcessCDR(1,14186576,1,1,2) [2025-01-06 09:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186576', 'tblTempUsageDetail_20' ) start [2025-01-06 09:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186576', 'tblTempUsageDetail_20' ) end [2025-01-06 09:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:15:25] Production.INFO: ==31237== Releasing lock... [2025-01-06 09:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:15:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-06 09:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:16:04 [end_date_ymd] => 2025-01-06 09:16:04 [RateCDR] => 1 ) [2025-01-06 09:16: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-01-06 06:16:04' and `end` < '2025-01-06 09:16: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-01-06 09:16:17] Production.INFO: count ==1233 [2025-01-06 09:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:16:04 - End Time 2025-01-06 09:16:04 [2025-01-06 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186581', 'tblTempUsageDetail_20' ) start [2025-01-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186581', 'tblTempUsageDetail_20' ) end [2025-01-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186581', 'tblTempVendorCDR_20' ) start [2025-01-06 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186581', 'tblTempVendorCDR_20' ) end [2025-01-06 09:16:18] Production.INFO: ProcessCDR(1,14186581,1,1,2) [2025-01-06 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186581', 'tblTempUsageDetail_20' ) start [2025-01-06 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186581', 'tblTempUsageDetail_20' ) end [2025-01-06 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:16:22] Production.INFO: ==31308== Releasing lock... [2025-01-06 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:16:22] Production.INFO: 37 MB #Memory Used# [2025-01-06 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:17:05 [end_date_ymd] => 2025-01-06 09:17:05 [RateCDR] => 1 ) [2025-01-06 09:17: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-01-06 06:17:05' and `end` < '2025-01-06 09:17: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-01-06 09:17:21] Production.INFO: count ==1280 [2025-01-06 09:17:22] Production.ERROR: pbx CDR StartTime 2025-01-06 06:17:05 - End Time 2025-01-06 09:17:05 [2025-01-06 09:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186586', 'tblTempUsageDetail_20' ) start [2025-01-06 09:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186586', 'tblTempUsageDetail_20' ) end [2025-01-06 09:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186586', 'tblTempVendorCDR_20' ) start [2025-01-06 09:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186586', 'tblTempVendorCDR_20' ) end [2025-01-06 09:17:22] Production.INFO: ProcessCDR(1,14186586,1,1,2) [2025-01-06 09:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186586', 'tblTempUsageDetail_20' ) start [2025-01-06 09:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186586', 'tblTempUsageDetail_20' ) end [2025-01-06 09:17:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:17:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:17:27] Production.INFO: ==31381== Releasing lock... [2025-01-06 09:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:17:27] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:18:05 [end_date_ymd] => 2025-01-06 09:18:05 [RateCDR] => 1 ) [2025-01-06 09:18: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-01-06 06:18:05' and `end` < '2025-01-06 09:18: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-01-06 09:18:22] Production.INFO: count ==1322 [2025-01-06 09:18:23] Production.ERROR: pbx CDR StartTime 2025-01-06 06:18:05 - End Time 2025-01-06 09:18:05 [2025-01-06 09:18:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186591', 'tblTempUsageDetail_20' ) start [2025-01-06 09:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186591', 'tblTempUsageDetail_20' ) end [2025-01-06 09:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186591', 'tblTempVendorCDR_20' ) start [2025-01-06 09:18:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186591', 'tblTempVendorCDR_20' ) end [2025-01-06 09:18:23] Production.INFO: ProcessCDR(1,14186591,1,1,2) [2025-01-06 09:18:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186591', 'tblTempUsageDetail_20' ) start [2025-01-06 09:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186591', 'tblTempUsageDetail_20' ) end [2025-01-06 09:18:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:18:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:18:28] Production.INFO: ==31451== Releasing lock... [2025-01-06 09:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:18:28] Production.INFO: 38 MB #Memory Used# [2025-01-06 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:19:05 [end_date_ymd] => 2025-01-06 09:19:05 [RateCDR] => 1 ) [2025-01-06 09:19: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-01-06 06:19:05' and `end` < '2025-01-06 09:19: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-01-06 09:19:18] Production.INFO: count ==1339 [2025-01-06 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:19:05 - End Time 2025-01-06 09:19:05 [2025-01-06 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186596', 'tblTempUsageDetail_20' ) start [2025-01-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186596', 'tblTempUsageDetail_20' ) end [2025-01-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186596', 'tblTempVendorCDR_20' ) start [2025-01-06 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186596', 'tblTempVendorCDR_20' ) end [2025-01-06 09:19:18] Production.INFO: ProcessCDR(1,14186596,1,1,2) [2025-01-06 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186596', 'tblTempUsageDetail_20' ) start [2025-01-06 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186596', 'tblTempUsageDetail_20' ) end [2025-01-06 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:19:23] Production.INFO: ==31520== Releasing lock... [2025-01-06 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:19:23] Production.INFO: 38 MB #Memory Used# [2025-01-06 09:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:20:06 [end_date_ymd] => 2025-01-06 09:20:06 [RateCDR] => 1 ) [2025-01-06 09:20: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-01-06 06:20:06' and `end` < '2025-01-06 09:20: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-01-06 09:20:20] Production.INFO: count ==1390 [2025-01-06 09:20:21] Production.ERROR: pbx CDR StartTime 2025-01-06 06:20:06 - End Time 2025-01-06 09:20:06 [2025-01-06 09:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186601', 'tblTempUsageDetail_20' ) start [2025-01-06 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186601', 'tblTempUsageDetail_20' ) end [2025-01-06 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186601', 'tblTempVendorCDR_20' ) start [2025-01-06 09:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186601', 'tblTempVendorCDR_20' ) end [2025-01-06 09:20:21] Production.INFO: ProcessCDR(1,14186601,1,1,2) [2025-01-06 09:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186601', 'tblTempUsageDetail_20' ) start [2025-01-06 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186601', 'tblTempUsageDetail_20' ) end [2025-01-06 09:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:20:25] Production.INFO: ==31596== Releasing lock... [2025-01-06 09:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:20:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-06 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:21:05 [end_date_ymd] => 2025-01-06 09:21:05 [RateCDR] => 1 ) [2025-01-06 09:21: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-01-06 06:21:05' and `end` < '2025-01-06 09:21: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-01-06 09:21:18] Production.INFO: count ==1453 [2025-01-06 09:21:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:21:05 - End Time 2025-01-06 09:21:05 [2025-01-06 09:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186607', 'tblTempUsageDetail_20' ) start [2025-01-06 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186607', 'tblTempUsageDetail_20' ) end [2025-01-06 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186607', 'tblTempVendorCDR_20' ) start [2025-01-06 09:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186607', 'tblTempVendorCDR_20' ) end [2025-01-06 09:21:19] Production.INFO: ProcessCDR(1,14186607,1,1,2) [2025-01-06 09:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186607', 'tblTempUsageDetail_20' ) start [2025-01-06 09:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186607', 'tblTempUsageDetail_20' ) end [2025-01-06 09:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:21:22] Production.INFO: ==31669== Releasing lock... [2025-01-06 09:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:21:22] Production.INFO: 39 MB #Memory Used# [2025-01-06 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:22:06 [end_date_ymd] => 2025-01-06 09:22:06 [RateCDR] => 1 ) [2025-01-06 09:22: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-01-06 06:22:06' and `end` < '2025-01-06 09:22: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-01-06 09:22:21] Production.INFO: count ==1469 [2025-01-06 09:22:21] Production.ERROR: pbx CDR StartTime 2025-01-06 06:22:06 - End Time 2025-01-06 09:22:06 [2025-01-06 09:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186612', 'tblTempUsageDetail_20' ) start [2025-01-06 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186612', 'tblTempUsageDetail_20' ) end [2025-01-06 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186612', 'tblTempVendorCDR_20' ) start [2025-01-06 09:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186612', 'tblTempVendorCDR_20' ) end [2025-01-06 09:22:21] Production.INFO: ProcessCDR(1,14186612,1,1,2) [2025-01-06 09:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186612', 'tblTempUsageDetail_20' ) start [2025-01-06 09:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186612', 'tblTempUsageDetail_20' ) end [2025-01-06 09:22:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:22:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:22:26] Production.INFO: ==31742== Releasing lock... [2025-01-06 09:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:22:26] Production.INFO: 39 MB #Memory Used# [2025-01-06 09:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:23:04 [end_date_ymd] => 2025-01-06 09:23:04 [RateCDR] => 1 ) [2025-01-06 09:23: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-01-06 06:23:04' and `end` < '2025-01-06 09:23: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-01-06 09:23:18] Production.INFO: count ==1491 [2025-01-06 09:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:23:04 - End Time 2025-01-06 09:23:04 [2025-01-06 09:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186617', 'tblTempUsageDetail_20' ) start [2025-01-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186617', 'tblTempUsageDetail_20' ) end [2025-01-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186617', 'tblTempVendorCDR_20' ) start [2025-01-06 09:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186617', 'tblTempVendorCDR_20' ) end [2025-01-06 09:23:18] Production.INFO: ProcessCDR(1,14186617,1,1,2) [2025-01-06 09:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186617', 'tblTempUsageDetail_20' ) start [2025-01-06 09:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186617', 'tblTempUsageDetail_20' ) end [2025-01-06 09:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:23:23] Production.INFO: ==31811== Releasing lock... [2025-01-06 09:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:23:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:24:05 [end_date_ymd] => 2025-01-06 09:24:05 [RateCDR] => 1 ) [2025-01-06 09:24: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-01-06 06:24:05' and `end` < '2025-01-06 09:24: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-01-06 09:24:23] Production.INFO: count ==1511 [2025-01-06 09:24:24] Production.ERROR: pbx CDR StartTime 2025-01-06 06:24:05 - End Time 2025-01-06 09:24:05 [2025-01-06 09:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186622', 'tblTempUsageDetail_20' ) start [2025-01-06 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186622', 'tblTempUsageDetail_20' ) end [2025-01-06 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186622', 'tblTempVendorCDR_20' ) start [2025-01-06 09:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186622', 'tblTempVendorCDR_20' ) end [2025-01-06 09:24:24] Production.INFO: ProcessCDR(1,14186622,1,1,2) [2025-01-06 09:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:24:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186622', 'tblTempUsageDetail_20' ) start [2025-01-06 09:24:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186622', 'tblTempUsageDetail_20' ) end [2025-01-06 09:24:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:24:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:24:28] Production.INFO: ==31881== Releasing lock... [2025-01-06 09:24:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:24:28] Production.INFO: 39.5 MB #Memory Used# [2025-01-06 09:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:25:05 [end_date_ymd] => 2025-01-06 09:25:05 [RateCDR] => 1 ) [2025-01-06 09:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 06:25:05' and `end` < '2025-01-06 09:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 09:25:25] Production.INFO: count ==1528 [2025-01-06 09:25:25] Production.ERROR: pbx CDR StartTime 2025-01-06 06:25:05 - End Time 2025-01-06 09:25:05 [2025-01-06 09:25:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186627', 'tblTempUsageDetail_20' ) start [2025-01-06 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186627', 'tblTempUsageDetail_20' ) end [2025-01-06 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186627', 'tblTempVendorCDR_20' ) start [2025-01-06 09:25:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186627', 'tblTempVendorCDR_20' ) end [2025-01-06 09:25:25] Production.INFO: ProcessCDR(1,14186627,1,1,2) [2025-01-06 09:25:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:25:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186627', 'tblTempUsageDetail_20' ) start [2025-01-06 09:25:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186627', 'tblTempUsageDetail_20' ) end [2025-01-06 09:25:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:25:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:25:30] Production.INFO: ==31952== Releasing lock... [2025-01-06 09:25:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:25:30] Production.INFO: 39.5 MB #Memory Used# [2025-01-06 09:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:26:06 [end_date_ymd] => 2025-01-06 09:26:06 [RateCDR] => 1 ) [2025-01-06 09:26: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-01-06 06:26:06' and `end` < '2025-01-06 09:26: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-01-06 09:26:20] Production.INFO: count ==1554 [2025-01-06 09:26:21] Production.ERROR: pbx CDR StartTime 2025-01-06 06:26:06 - End Time 2025-01-06 09:26:06 [2025-01-06 09:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186632', 'tblTempUsageDetail_20' ) start [2025-01-06 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186632', 'tblTempUsageDetail_20' ) end [2025-01-06 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186632', 'tblTempVendorCDR_20' ) start [2025-01-06 09:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186632', 'tblTempVendorCDR_20' ) end [2025-01-06 09:26:21] Production.INFO: ProcessCDR(1,14186632,1,1,2) [2025-01-06 09:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186632', 'tblTempUsageDetail_20' ) start [2025-01-06 09:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186632', 'tblTempUsageDetail_20' ) end [2025-01-06 09:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:26:25] Production.INFO: ==32030== Releasing lock... [2025-01-06 09:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:26:25] Production.INFO: 40 MB #Memory Used# [2025-01-06 09:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:27:04 [end_date_ymd] => 2025-01-06 09:27:04 [RateCDR] => 1 ) [2025-01-06 09:27: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-01-06 06:27:04' and `end` < '2025-01-06 09:27: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-01-06 09:27:18] Production.INFO: count ==1571 [2025-01-06 09:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 06:27:04 - End Time 2025-01-06 09:27:04 [2025-01-06 09:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186637', 'tblTempUsageDetail_20' ) start [2025-01-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186637', 'tblTempUsageDetail_20' ) end [2025-01-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186637', 'tblTempVendorCDR_20' ) start [2025-01-06 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186637', 'tblTempVendorCDR_20' ) end [2025-01-06 09:27:19] Production.INFO: ProcessCDR(1,14186637,1,1,2) [2025-01-06 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186637', 'tblTempUsageDetail_20' ) start [2025-01-06 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186637', 'tblTempUsageDetail_20' ) end [2025-01-06 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:27:23] Production.INFO: ==32105== Releasing lock... [2025-01-06 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:27:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:28:05 [end_date_ymd] => 2025-01-06 09:28:05 [RateCDR] => 1 ) [2025-01-06 09:28: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-01-06 06:28:05' and `end` < '2025-01-06 09:28: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-01-06 09:28:18] Production.INFO: count ==1578 [2025-01-06 09:28:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:28:05 - End Time 2025-01-06 09:28:05 [2025-01-06 09:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186642', 'tblTempUsageDetail_20' ) start [2025-01-06 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186642', 'tblTempUsageDetail_20' ) end [2025-01-06 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186642', 'tblTempVendorCDR_20' ) start [2025-01-06 09:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186642', 'tblTempVendorCDR_20' ) end [2025-01-06 09:28:19] Production.INFO: ProcessCDR(1,14186642,1,1,2) [2025-01-06 09:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186642', 'tblTempUsageDetail_20' ) start [2025-01-06 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186642', 'tblTempUsageDetail_20' ) end [2025-01-06 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:28:23] Production.INFO: ==32178== Releasing lock... [2025-01-06 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:28:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:29:06 [end_date_ymd] => 2025-01-06 09:29:06 [RateCDR] => 1 ) [2025-01-06 09:29: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-01-06 06:29:06' and `end` < '2025-01-06 09:29: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-01-06 09:29:24] Production.INFO: count ==1582 [2025-01-06 09:29:25] Production.ERROR: pbx CDR StartTime 2025-01-06 06:29:06 - End Time 2025-01-06 09:29:06 [2025-01-06 09:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186647', 'tblTempUsageDetail_20' ) start [2025-01-06 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186647', 'tblTempUsageDetail_20' ) end [2025-01-06 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186647', 'tblTempVendorCDR_20' ) start [2025-01-06 09:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186647', 'tblTempVendorCDR_20' ) end [2025-01-06 09:29:25] Production.INFO: ProcessCDR(1,14186647,1,1,2) [2025-01-06 09:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:29:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:29:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:29:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186647', 'tblTempUsageDetail_20' ) start [2025-01-06 09:29:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186647', 'tblTempUsageDetail_20' ) end [2025-01-06 09:29:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:29:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:29:29] Production.INFO: ==32247== Releasing lock... [2025-01-06 09:29:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:29:29] Production.INFO: 40 MB #Memory Used# [2025-01-06 09:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:30:05 [end_date_ymd] => 2025-01-06 09:30:05 [RateCDR] => 1 ) [2025-01-06 09:30: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-01-06 06:30:05' and `end` < '2025-01-06 09:30: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-01-06 09:30:27] Production.INFO: count ==1594 [2025-01-06 09:30:28] Production.ERROR: pbx CDR StartTime 2025-01-06 06:30:05 - End Time 2025-01-06 09:30:05 [2025-01-06 09:30:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186653', 'tblTempUsageDetail_20' ) start [2025-01-06 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186653', 'tblTempUsageDetail_20' ) end [2025-01-06 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186653', 'tblTempVendorCDR_20' ) start [2025-01-06 09:30:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186653', 'tblTempVendorCDR_20' ) end [2025-01-06 09:30:28] Production.INFO: ProcessCDR(1,14186653,1,1,2) [2025-01-06 09:30:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:30:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186653', 'tblTempUsageDetail_20' ) start [2025-01-06 09:30:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186653', 'tblTempUsageDetail_20' ) end [2025-01-06 09:30:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:30:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:30:33] Production.INFO: ==32319== Releasing lock... [2025-01-06 09:30:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:30:33] Production.INFO: 40 MB #Memory Used# [2025-01-06 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:31:05 [end_date_ymd] => 2025-01-06 09:31:05 [RateCDR] => 1 ) [2025-01-06 09:31: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-01-06 06:31:05' and `end` < '2025-01-06 09:31: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-01-06 09:31:21] Production.INFO: count ==1666 [2025-01-06 09:31:21] Production.ERROR: pbx CDR StartTime 2025-01-06 06:31:05 - End Time 2025-01-06 09:31:05 [2025-01-06 09:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186658', 'tblTempUsageDetail_20' ) start [2025-01-06 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186658', 'tblTempUsageDetail_20' ) end [2025-01-06 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186658', 'tblTempVendorCDR_20' ) start [2025-01-06 09:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186658', 'tblTempVendorCDR_20' ) end [2025-01-06 09:31:21] Production.INFO: ProcessCDR(1,14186658,1,1,2) [2025-01-06 09:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186658', 'tblTempUsageDetail_20' ) start [2025-01-06 09:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186658', 'tblTempUsageDetail_20' ) end [2025-01-06 09:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:31:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:31:26] Production.INFO: ==32431== Releasing lock... [2025-01-06 09:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:31:26] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:32:05 [end_date_ymd] => 2025-01-06 09:32:05 [RateCDR] => 1 ) [2025-01-06 09:32: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-01-06 06:32:05' and `end` < '2025-01-06 09:32: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-01-06 09:32:22] Production.INFO: count ==1673 [2025-01-06 09:32:23] Production.ERROR: pbx CDR StartTime 2025-01-06 06:32:05 - End Time 2025-01-06 09:32:05 [2025-01-06 09:32:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186663', 'tblTempUsageDetail_20' ) start [2025-01-06 09:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186663', 'tblTempUsageDetail_20' ) end [2025-01-06 09:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186663', 'tblTempVendorCDR_20' ) start [2025-01-06 09:32:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186663', 'tblTempVendorCDR_20' ) end [2025-01-06 09:32:23] Production.INFO: ProcessCDR(1,14186663,1,1,2) [2025-01-06 09:32:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186663', 'tblTempUsageDetail_20' ) start [2025-01-06 09:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186663', 'tblTempUsageDetail_20' ) end [2025-01-06 09:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:32:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:32:28] Production.INFO: ==32502== Releasing lock... [2025-01-06 09:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:32:28] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:33:05 [end_date_ymd] => 2025-01-06 09:33:05 [RateCDR] => 1 ) [2025-01-06 09:33: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-01-06 06:33:05' and `end` < '2025-01-06 09:33: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-01-06 09:33:24] Production.INFO: count ==1683 [2025-01-06 09:33:24] Production.ERROR: pbx CDR StartTime 2025-01-06 06:33:05 - End Time 2025-01-06 09:33:05 [2025-01-06 09:33:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186668', 'tblTempUsageDetail_20' ) start [2025-01-06 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186668', 'tblTempUsageDetail_20' ) end [2025-01-06 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186668', 'tblTempVendorCDR_20' ) start [2025-01-06 09:33:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186668', 'tblTempVendorCDR_20' ) end [2025-01-06 09:33:24] Production.INFO: ProcessCDR(1,14186668,1,1,2) [2025-01-06 09:33:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186668', 'tblTempUsageDetail_20' ) start [2025-01-06 09:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186668', 'tblTempUsageDetail_20' ) end [2025-01-06 09:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:33:29] Production.INFO: ==32576== Releasing lock... [2025-01-06 09:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:33:29] Production.INFO: 40.75 MB #Memory Used# [2025-01-06 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:34:05 [end_date_ymd] => 2025-01-06 09:34:05 [RateCDR] => 1 ) [2025-01-06 09:34: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-01-06 06:34:05' and `end` < '2025-01-06 09:34: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-01-06 09:34:20] Production.INFO: count ==1692 [2025-01-06 09:34:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:34:05 - End Time 2025-01-06 09:34:05 [2025-01-06 09:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186673', 'tblTempUsageDetail_20' ) start [2025-01-06 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186673', 'tblTempUsageDetail_20' ) end [2025-01-06 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186673', 'tblTempVendorCDR_20' ) start [2025-01-06 09:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186673', 'tblTempVendorCDR_20' ) end [2025-01-06 09:34:20] Production.INFO: ProcessCDR(1,14186673,1,1,2) [2025-01-06 09:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186673', 'tblTempUsageDetail_20' ) start [2025-01-06 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186673', 'tblTempUsageDetail_20' ) end [2025-01-06 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:34:25] Production.INFO: ==32649== Releasing lock... [2025-01-06 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:34:25] Production.INFO: 40.75 MB #Memory Used# [2025-01-06 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:35:05 [end_date_ymd] => 2025-01-06 09:35:05 [RateCDR] => 1 ) [2025-01-06 09:35: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-01-06 06:35:05' and `end` < '2025-01-06 09:35: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-01-06 09:35:19] Production.INFO: count ==1713 [2025-01-06 09:35:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:35:05 - End Time 2025-01-06 09:35:05 [2025-01-06 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186678', 'tblTempUsageDetail_20' ) start [2025-01-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186678', 'tblTempUsageDetail_20' ) end [2025-01-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186678', 'tblTempVendorCDR_20' ) start [2025-01-06 09:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186678', 'tblTempVendorCDR_20' ) end [2025-01-06 09:35:20] Production.INFO: ProcessCDR(1,14186678,1,1,2) [2025-01-06 09:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186678', 'tblTempUsageDetail_20' ) start [2025-01-06 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186678', 'tblTempUsageDetail_20' ) end [2025-01-06 09:35:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:35:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:35:24] Production.INFO: ==32719== Releasing lock... [2025-01-06 09:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:35:24] Production.INFO: 41 MB #Memory Used# [2025-01-06 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:36:05 [end_date_ymd] => 2025-01-06 09:36:05 [RateCDR] => 1 ) [2025-01-06 09:36: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-01-06 06:36:05' and `end` < '2025-01-06 09:36: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-01-06 09:36:20] Production.INFO: count ==1724 [2025-01-06 09:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 06:36:05 - End Time 2025-01-06 09:36:05 [2025-01-06 09:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186683', 'tblTempUsageDetail_20' ) start [2025-01-06 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186683', 'tblTempUsageDetail_20' ) end [2025-01-06 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186683', 'tblTempVendorCDR_20' ) start [2025-01-06 09:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186683', 'tblTempVendorCDR_20' ) end [2025-01-06 09:36:20] Production.INFO: ProcessCDR(1,14186683,1,1,2) [2025-01-06 09:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186683', 'tblTempUsageDetail_20' ) start [2025-01-06 09:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186683', 'tblTempUsageDetail_20' ) end [2025-01-06 09:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:36:25] Production.INFO: ==329== Releasing lock... [2025-01-06 09:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:36:25] Production.INFO: 41 MB #Memory Used# [2025-01-06 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:37:05 [end_date_ymd] => 2025-01-06 09:37:05 [RateCDR] => 1 ) [2025-01-06 09:37: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-01-06 06:37:05' and `end` < '2025-01-06 09:37: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-01-06 09:37:34] Production.INFO: count ==1765 [2025-01-06 09:37:35] Production.ERROR: pbx CDR StartTime 2025-01-06 06:37:05 - End Time 2025-01-06 09:37:05 [2025-01-06 09:37:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186688', 'tblTempUsageDetail_20' ) start [2025-01-06 09:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186688', 'tblTempUsageDetail_20' ) end [2025-01-06 09:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186688', 'tblTempVendorCDR_20' ) start [2025-01-06 09:37:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186688', 'tblTempVendorCDR_20' ) end [2025-01-06 09:37:35] Production.INFO: ProcessCDR(1,14186688,1,1,2) [2025-01-06 09:37:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:37:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:37:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:37:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:37:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186688', 'tblTempUsageDetail_20' ) start [2025-01-06 09:37:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186688', 'tblTempUsageDetail_20' ) end [2025-01-06 09:37:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:37:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:37:40] Production.INFO: ==412== Releasing lock... [2025-01-06 09:37:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:37:40] Production.INFO: 41.25 MB #Memory Used# [2025-01-06 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:38:05 [end_date_ymd] => 2025-01-06 09:38:05 [RateCDR] => 1 ) [2025-01-06 09:38: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-01-06 06:38:05' and `end` < '2025-01-06 09:38: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-01-06 09:38:25] Production.INFO: count ==1785 [2025-01-06 09:38:25] Production.ERROR: pbx CDR StartTime 2025-01-06 06:38:05 - End Time 2025-01-06 09:38:05 [2025-01-06 09:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186693', 'tblTempUsageDetail_20' ) start [2025-01-06 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186693', 'tblTempUsageDetail_20' ) end [2025-01-06 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186693', 'tblTempVendorCDR_20' ) start [2025-01-06 09:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186693', 'tblTempVendorCDR_20' ) end [2025-01-06 09:38:25] Production.INFO: ProcessCDR(1,14186693,1,1,2) [2025-01-06 09:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186693', 'tblTempUsageDetail_20' ) start [2025-01-06 09:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186693', 'tblTempUsageDetail_20' ) end [2025-01-06 09:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:38:30] Production.INFO: ==485== Releasing lock... [2025-01-06 09:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:38:30] Production.INFO: 41.75 MB #Memory Used# [2025-01-06 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:39:05 [end_date_ymd] => 2025-01-06 09:39:05 [RateCDR] => 1 ) [2025-01-06 09:39: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-01-06 06:39:05' and `end` < '2025-01-06 09:39: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-01-06 09:39:22] Production.INFO: count ==1845 [2025-01-06 09:39:23] Production.ERROR: pbx CDR StartTime 2025-01-06 06:39:05 - End Time 2025-01-06 09:39:05 [2025-01-06 09:39:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186698', 'tblTempUsageDetail_20' ) start [2025-01-06 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186698', 'tblTempUsageDetail_20' ) end [2025-01-06 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186698', 'tblTempVendorCDR_20' ) start [2025-01-06 09:39:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186698', 'tblTempVendorCDR_20' ) end [2025-01-06 09:39:23] Production.INFO: ProcessCDR(1,14186698,1,1,2) [2025-01-06 09:39:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186698', 'tblTempUsageDetail_20' ) start [2025-01-06 09:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186698', 'tblTempUsageDetail_20' ) end [2025-01-06 09:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:39:27] Production.INFO: ==557== Releasing lock... [2025-01-06 09:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:39:27] Production.INFO: 42 MB #Memory Used# [2025-01-06 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:40:06 [end_date_ymd] => 2025-01-06 09:40:06 [RateCDR] => 1 ) [2025-01-06 09:40: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-01-06 06:40:06' and `end` < '2025-01-06 09:40: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-01-06 09:40:26] Production.INFO: count ==1847 [2025-01-06 09:40:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:40:06 - End Time 2025-01-06 09:40:06 [2025-01-06 09:40:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186704', 'tblTempUsageDetail_20' ) start [2025-01-06 09:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186704', 'tblTempUsageDetail_20' ) end [2025-01-06 09:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186704', 'tblTempVendorCDR_20' ) start [2025-01-06 09:40:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186704', 'tblTempVendorCDR_20' ) end [2025-01-06 09:40:26] Production.INFO: ProcessCDR(1,14186704,1,1,2) [2025-01-06 09:40:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186704', 'tblTempUsageDetail_20' ) start [2025-01-06 09:40:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186704', 'tblTempUsageDetail_20' ) end [2025-01-06 09:40:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:40:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:40:30] Production.INFO: ==643== Releasing lock... [2025-01-06 09:40:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:40:30] Production.INFO: 42 MB #Memory Used# [2025-01-06 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:41:05 [end_date_ymd] => 2025-01-06 09:41:05 [RateCDR] => 1 ) [2025-01-06 09:41: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-01-06 06:41:05' and `end` < '2025-01-06 09:41: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-01-06 09:41:24] Production.INFO: count ==1921 [2025-01-06 09:41:25] Production.ERROR: pbx CDR StartTime 2025-01-06 06:41:05 - End Time 2025-01-06 09:41:05 [2025-01-06 09:41:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186709', 'tblTempUsageDetail_20' ) start [2025-01-06 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186709', 'tblTempUsageDetail_20' ) end [2025-01-06 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186709', 'tblTempVendorCDR_20' ) start [2025-01-06 09:41:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186709', 'tblTempVendorCDR_20' ) end [2025-01-06 09:41:25] Production.INFO: ProcessCDR(1,14186709,1,1,2) [2025-01-06 09:41:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186709', 'tblTempUsageDetail_20' ) start [2025-01-06 09:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186709', 'tblTempUsageDetail_20' ) end [2025-01-06 09:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:41:29] Production.INFO: ==741== Releasing lock... [2025-01-06 09:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:41:29] Production.INFO: 42.5 MB #Memory Used# [2025-01-06 09:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:42:05 [end_date_ymd] => 2025-01-06 09:42:05 [RateCDR] => 1 ) [2025-01-06 09:42: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-01-06 06:42:05' and `end` < '2025-01-06 09:42: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-01-06 09:42:18] Production.INFO: count ==1947 [2025-01-06 09:42:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:42:05 - End Time 2025-01-06 09:42:05 [2025-01-06 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186714', 'tblTempUsageDetail_20' ) start [2025-01-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186714', 'tblTempUsageDetail_20' ) end [2025-01-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186714', 'tblTempVendorCDR_20' ) start [2025-01-06 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186714', 'tblTempVendorCDR_20' ) end [2025-01-06 09:42:19] Production.INFO: ProcessCDR(1,14186714,1,1,2) [2025-01-06 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186714', 'tblTempUsageDetail_20' ) start [2025-01-06 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186714', 'tblTempUsageDetail_20' ) end [2025-01-06 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:42:24] Production.INFO: ==816== Releasing lock... [2025-01-06 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:42:24] Production.INFO: 42.75 MB #Memory Used# [2025-01-06 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:43:06 [end_date_ymd] => 2025-01-06 09:43:06 [RateCDR] => 1 ) [2025-01-06 09:43: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-01-06 06:43:06' and `end` < '2025-01-06 09:43: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-01-06 09:43:19] Production.INFO: count ==1958 [2025-01-06 09:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:43:06 - End Time 2025-01-06 09:43:06 [2025-01-06 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186719', 'tblTempUsageDetail_20' ) start [2025-01-06 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186719', 'tblTempUsageDetail_20' ) end [2025-01-06 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186719', 'tblTempVendorCDR_20' ) start [2025-01-06 09:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186719', 'tblTempVendorCDR_20' ) end [2025-01-06 09:43:20] Production.INFO: ProcessCDR(1,14186719,1,1,2) [2025-01-06 09:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186719', 'tblTempUsageDetail_20' ) start [2025-01-06 09:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186719', 'tblTempUsageDetail_20' ) end [2025-01-06 09:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:43:24] Production.INFO: ==890== Releasing lock... [2025-01-06 09:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:43:24] Production.INFO: 43 MB #Memory Used# [2025-01-06 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:44:05 [end_date_ymd] => 2025-01-06 09:44:05 [RateCDR] => 1 ) [2025-01-06 09:44: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-01-06 06:44:05' and `end` < '2025-01-06 09:44: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-01-06 09:44:19] Production.INFO: count ==1958 [2025-01-06 09:44:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:44:05 - End Time 2025-01-06 09:44:05 [2025-01-06 09:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186724', 'tblTempUsageDetail_20' ) start [2025-01-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186724', 'tblTempUsageDetail_20' ) end [2025-01-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186724', 'tblTempVendorCDR_20' ) start [2025-01-06 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186724', 'tblTempVendorCDR_20' ) end [2025-01-06 09:44:19] Production.INFO: ProcessCDR(1,14186724,1,1,2) [2025-01-06 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186724', 'tblTempUsageDetail_20' ) start [2025-01-06 09:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186724', 'tblTempUsageDetail_20' ) end [2025-01-06 09:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:44:22] Production.INFO: ==959== Releasing lock... [2025-01-06 09:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:44:22] Production.INFO: 43 MB #Memory Used# [2025-01-06 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:45:05 [end_date_ymd] => 2025-01-06 09:45:05 [RateCDR] => 1 ) [2025-01-06 09:45: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-01-06 06:45:05' and `end` < '2025-01-06 09:45: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-01-06 09:45:35] Production.INFO: count ==1973 [2025-01-06 09:45:35] Production.ERROR: pbx CDR StartTime 2025-01-06 06:45:05 - End Time 2025-01-06 09:45:05 [2025-01-06 09:45:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186729', 'tblTempUsageDetail_20' ) start [2025-01-06 09:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186729', 'tblTempUsageDetail_20' ) end [2025-01-06 09:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186729', 'tblTempVendorCDR_20' ) start [2025-01-06 09:45:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186729', 'tblTempVendorCDR_20' ) end [2025-01-06 09:45:35] Production.INFO: ProcessCDR(1,14186729,1,1,2) [2025-01-06 09:45:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:45:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:45:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:45:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186729', 'tblTempUsageDetail_20' ) start [2025-01-06 09:45:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186729', 'tblTempUsageDetail_20' ) end [2025-01-06 09:45:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:45:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:45:40] Production.INFO: ==1031== Releasing lock... [2025-01-06 09:45:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:45:40] Production.INFO: 42.75 MB #Memory Used# [2025-01-06 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:46:05 [end_date_ymd] => 2025-01-06 09:46:05 [RateCDR] => 1 ) [2025-01-06 09:46: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-01-06 06:46:05' and `end` < '2025-01-06 09:46: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-01-06 09:46:25] Production.INFO: count ==1997 [2025-01-06 09:46:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:46:05 - End Time 2025-01-06 09:46:05 [2025-01-06 09:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186734', 'tblTempUsageDetail_20' ) start [2025-01-06 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186734', 'tblTempUsageDetail_20' ) end [2025-01-06 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186734', 'tblTempVendorCDR_20' ) start [2025-01-06 09:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186734', 'tblTempVendorCDR_20' ) end [2025-01-06 09:46:26] Production.INFO: ProcessCDR(1,14186734,1,1,2) [2025-01-06 09:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:46:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:46:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:46:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186734', 'tblTempUsageDetail_20' ) start [2025-01-06 09:46:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186734', 'tblTempUsageDetail_20' ) end [2025-01-06 09:46:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:46:31] Production.INFO: ==1105== Releasing lock... [2025-01-06 09:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:46:31] Production.INFO: 43.25 MB #Memory Used# [2025-01-06 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:47:05 [end_date_ymd] => 2025-01-06 09:47:05 [RateCDR] => 1 ) [2025-01-06 09:47: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-01-06 06:47:05' and `end` < '2025-01-06 09:47: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-01-06 09:47:27] Production.INFO: count ==2028 [2025-01-06 09:47:27] Production.ERROR: pbx CDR StartTime 2025-01-06 06:47:05 - End Time 2025-01-06 09:47:05 [2025-01-06 09:47:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186739', 'tblTempUsageDetail_20' ) start [2025-01-06 09:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186739', 'tblTempUsageDetail_20' ) end [2025-01-06 09:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186739', 'tblTempVendorCDR_20' ) start [2025-01-06 09:47:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186739', 'tblTempVendorCDR_20' ) end [2025-01-06 09:47:27] Production.INFO: ProcessCDR(1,14186739,1,1,2) [2025-01-06 09:47:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:47:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:47:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:47:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186739', 'tblTempUsageDetail_20' ) start [2025-01-06 09:47:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186739', 'tblTempUsageDetail_20' ) end [2025-01-06 09:47:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:47:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:47:32] Production.INFO: ==1224== Releasing lock... [2025-01-06 09:47:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:47:32] Production.INFO: 43.5 MB #Memory Used# [2025-01-06 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:48:05 [end_date_ymd] => 2025-01-06 09:48:05 [RateCDR] => 1 ) [2025-01-06 09:48: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-01-06 06:48:05' and `end` < '2025-01-06 09:48: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-01-06 09:48:31] Production.INFO: count ==2065 [2025-01-06 09:48:32] Production.ERROR: pbx CDR StartTime 2025-01-06 06:48:05 - End Time 2025-01-06 09:48:05 [2025-01-06 09:48:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186744', 'tblTempUsageDetail_20' ) start [2025-01-06 09:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186744', 'tblTempUsageDetail_20' ) end [2025-01-06 09:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186744', 'tblTempVendorCDR_20' ) start [2025-01-06 09:48:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186744', 'tblTempVendorCDR_20' ) end [2025-01-06 09:48:32] Production.INFO: ProcessCDR(1,14186744,1,1,2) [2025-01-06 09:48:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:48:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:48:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:48:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186744', 'tblTempUsageDetail_20' ) start [2025-01-06 09:48:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186744', 'tblTempUsageDetail_20' ) end [2025-01-06 09:48:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:48:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:48:37] Production.INFO: ==1308== Releasing lock... [2025-01-06 09:48:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:48:37] Production.INFO: 43.5 MB #Memory Used# [2025-01-06 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:49:05 [end_date_ymd] => 2025-01-06 09:49:05 [RateCDR] => 1 ) [2025-01-06 09:49: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-01-06 06:49:05' and `end` < '2025-01-06 09:49: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-01-06 09:49:25] Production.INFO: count ==2088 [2025-01-06 09:49:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:49:05 - End Time 2025-01-06 09:49:05 [2025-01-06 09:49:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186749', 'tblTempUsageDetail_20' ) start [2025-01-06 09:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186749', 'tblTempUsageDetail_20' ) end [2025-01-06 09:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186749', 'tblTempVendorCDR_20' ) start [2025-01-06 09:49:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186749', 'tblTempVendorCDR_20' ) end [2025-01-06 09:49:26] Production.INFO: ProcessCDR(1,14186749,1,1,2) [2025-01-06 09:49:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186749', 'tblTempUsageDetail_20' ) start [2025-01-06 09:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186749', 'tblTempUsageDetail_20' ) end [2025-01-06 09:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:49:30] Production.INFO: ==1380== Releasing lock... [2025-01-06 09:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:49:30] Production.INFO: 43.75 MB #Memory Used# [2025-01-06 09:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:50:05 [end_date_ymd] => 2025-01-06 09:50:05 [RateCDR] => 1 ) [2025-01-06 09:50: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-01-06 06:50:05' and `end` < '2025-01-06 09:50: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-01-06 09:50:19] Production.INFO: count ==2139 [2025-01-06 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 06:50:05 - End Time 2025-01-06 09:50:05 [2025-01-06 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186755', 'tblTempUsageDetail_20' ) start [2025-01-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186755', 'tblTempUsageDetail_20' ) end [2025-01-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186755', 'tblTempVendorCDR_20' ) start [2025-01-06 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186755', 'tblTempVendorCDR_20' ) end [2025-01-06 09:50:20] Production.INFO: ProcessCDR(1,14186755,1,1,2) [2025-01-06 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186755', 'tblTempUsageDetail_20' ) start [2025-01-06 09:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186755', 'tblTempUsageDetail_20' ) end [2025-01-06 09:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:50:25] Production.INFO: ==1453== Releasing lock... [2025-01-06 09:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:50:25] Production.INFO: 44 MB #Memory Used# [2025-01-06 09:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:51:05 [end_date_ymd] => 2025-01-06 09:51:05 [RateCDR] => 1 ) [2025-01-06 09:51: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-01-06 06:51:05' and `end` < '2025-01-06 09:51: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-01-06 09:51:26] Production.INFO: count ==2222 [2025-01-06 09:51:27] Production.ERROR: pbx CDR StartTime 2025-01-06 06:51:05 - End Time 2025-01-06 09:51:05 [2025-01-06 09:51:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186760', 'tblTempUsageDetail_20' ) start [2025-01-06 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186760', 'tblTempUsageDetail_20' ) end [2025-01-06 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186760', 'tblTempVendorCDR_20' ) start [2025-01-06 09:51:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186760', 'tblTempVendorCDR_20' ) end [2025-01-06 09:51:27] Production.INFO: ProcessCDR(1,14186760,1,1,2) [2025-01-06 09:51:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:51:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:51:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:51:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186760', 'tblTempUsageDetail_20' ) start [2025-01-06 09:51:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186760', 'tblTempUsageDetail_20' ) end [2025-01-06 09:51:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:51:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:51:32] Production.INFO: ==1561== Releasing lock... [2025-01-06 09:51:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:51:32] Production.INFO: 45 MB #Memory Used# [2025-01-06 09:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:52:06 [end_date_ymd] => 2025-01-06 09:52:06 [RateCDR] => 1 ) [2025-01-06 09:52: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-01-06 06:52:06' and `end` < '2025-01-06 09:52: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-01-06 09:52:25] Production.INFO: count ==2247 [2025-01-06 09:52:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:52:06 - End Time 2025-01-06 09:52:06 [2025-01-06 09:52:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186765', 'tblTempUsageDetail_20' ) start [2025-01-06 09:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186765', 'tblTempUsageDetail_20' ) end [2025-01-06 09:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186765', 'tblTempVendorCDR_20' ) start [2025-01-06 09:52:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186765', 'tblTempVendorCDR_20' ) end [2025-01-06 09:52:26] Production.INFO: ProcessCDR(1,14186765,1,1,2) [2025-01-06 09:52:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:52:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:52:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:52:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186765', 'tblTempUsageDetail_20' ) start [2025-01-06 09:52:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186765', 'tblTempUsageDetail_20' ) end [2025-01-06 09:52:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:52:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:52:31] Production.INFO: ==1635== Releasing lock... [2025-01-06 09:52:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:52:31] Production.INFO: 45 MB #Memory Used# [2025-01-06 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:53:05 [end_date_ymd] => 2025-01-06 09:53:05 [RateCDR] => 1 ) [2025-01-06 09:53: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-01-06 06:53:05' and `end` < '2025-01-06 09:53: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-01-06 09:53:28] Production.INFO: count ==2275 [2025-01-06 09:53:29] Production.ERROR: pbx CDR StartTime 2025-01-06 06:53:05 - End Time 2025-01-06 09:53:05 [2025-01-06 09:53:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186770', 'tblTempUsageDetail_20' ) start [2025-01-06 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186770', 'tblTempUsageDetail_20' ) end [2025-01-06 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186770', 'tblTempVendorCDR_20' ) start [2025-01-06 09:53:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186770', 'tblTempVendorCDR_20' ) end [2025-01-06 09:53:29] Production.INFO: ProcessCDR(1,14186770,1,1,2) [2025-01-06 09:53:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:53:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:53:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:53:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186770', 'tblTempUsageDetail_20' ) start [2025-01-06 09:53:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186770', 'tblTempUsageDetail_20' ) end [2025-01-06 09:53:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:53:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:53:34] Production.INFO: ==1707== Releasing lock... [2025-01-06 09:53:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:53:34] Production.INFO: 45.25 MB #Memory Used# [2025-01-06 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:54:05 [end_date_ymd] => 2025-01-06 09:54:05 [RateCDR] => 1 ) [2025-01-06 09:54: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-01-06 06:54:05' and `end` < '2025-01-06 09:54: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-01-06 09:54:26] Production.INFO: count ==2330 [2025-01-06 09:54:27] Production.ERROR: pbx CDR StartTime 2025-01-06 06:54:05 - End Time 2025-01-06 09:54:05 [2025-01-06 09:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186775', 'tblTempUsageDetail_20' ) start [2025-01-06 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186775', 'tblTempUsageDetail_20' ) end [2025-01-06 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186775', 'tblTempVendorCDR_20' ) start [2025-01-06 09:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186775', 'tblTempVendorCDR_20' ) end [2025-01-06 09:54:27] Production.INFO: ProcessCDR(1,14186775,1,1,2) [2025-01-06 09:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:54:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:54:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186775', 'tblTempUsageDetail_20' ) start [2025-01-06 09:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186775', 'tblTempUsageDetail_20' ) end [2025-01-06 09:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:54:32] Production.INFO: ==1785== Releasing lock... [2025-01-06 09:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:54:32] Production.INFO: 45.5 MB #Memory Used# [2025-01-06 09:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:55:04 [end_date_ymd] => 2025-01-06 09:55:04 [RateCDR] => 1 ) [2025-01-06 09:55: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-01-06 06:55:04' and `end` < '2025-01-06 09:55: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-01-06 09:55:25] Production.INFO: count ==2357 [2025-01-06 09:55:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:55:04 - End Time 2025-01-06 09:55:04 [2025-01-06 09:55:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186780', 'tblTempUsageDetail_20' ) start [2025-01-06 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186780', 'tblTempUsageDetail_20' ) end [2025-01-06 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186780', 'tblTempVendorCDR_20' ) start [2025-01-06 09:55:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186780', 'tblTempVendorCDR_20' ) end [2025-01-06 09:55:26] Production.INFO: ProcessCDR(1,14186780,1,1,2) [2025-01-06 09:55:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:55:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:55:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:55:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:55:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186780', 'tblTempUsageDetail_20' ) start [2025-01-06 09:55:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186780', 'tblTempUsageDetail_20' ) end [2025-01-06 09:55:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:55:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:55:31] Production.INFO: ==1860== Releasing lock... [2025-01-06 09:55:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:55:31] Production.INFO: 45.75 MB #Memory Used# [2025-01-06 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:56:05 [end_date_ymd] => 2025-01-06 09:56:05 [RateCDR] => 1 ) [2025-01-06 09:56: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-01-06 06:56:05' and `end` < '2025-01-06 09:56: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-01-06 09:56:25] Production.INFO: count ==2396 [2025-01-06 09:56:26] Production.ERROR: pbx CDR StartTime 2025-01-06 06:56:05 - End Time 2025-01-06 09:56:05 [2025-01-06 09:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186785', 'tblTempUsageDetail_20' ) start [2025-01-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186785', 'tblTempUsageDetail_20' ) end [2025-01-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186785', 'tblTempVendorCDR_20' ) start [2025-01-06 09:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186785', 'tblTempVendorCDR_20' ) end [2025-01-06 09:56:26] Production.INFO: ProcessCDR(1,14186785,1,1,2) [2025-01-06 09:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186785', 'tblTempUsageDetail_20' ) start [2025-01-06 09:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186785', 'tblTempUsageDetail_20' ) end [2025-01-06 09:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:56:30] Production.INFO: ==1930== Releasing lock... [2025-01-06 09:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:56:30] Production.INFO: 46.25 MB #Memory Used# [2025-01-06 09:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:57:05 [end_date_ymd] => 2025-01-06 09:57:05 [RateCDR] => 1 ) [2025-01-06 09:57: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-01-06 06:57:05' and `end` < '2025-01-06 09:57: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-01-06 09:57:26] Production.INFO: count ==2403 [2025-01-06 09:57:27] Production.ERROR: pbx CDR StartTime 2025-01-06 06:57:05 - End Time 2025-01-06 09:57:05 [2025-01-06 09:57:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186790', 'tblTempUsageDetail_20' ) start [2025-01-06 09:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186790', 'tblTempUsageDetail_20' ) end [2025-01-06 09:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186790', 'tblTempVendorCDR_20' ) start [2025-01-06 09:57:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186790', 'tblTempVendorCDR_20' ) end [2025-01-06 09:57:27] Production.INFO: ProcessCDR(1,14186790,1,1,2) [2025-01-06 09:57:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:57:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:57:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:57:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186790', 'tblTempUsageDetail_20' ) start [2025-01-06 09:57:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186790', 'tblTempUsageDetail_20' ) end [2025-01-06 09:57:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:57:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:57:31] Production.INFO: ==2000== Releasing lock... [2025-01-06 09:57:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:57:31] Production.INFO: 46 MB #Memory Used# [2025-01-06 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:58:05 [end_date_ymd] => 2025-01-06 09:58:05 [RateCDR] => 1 ) [2025-01-06 09:58: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-01-06 06:58:05' and `end` < '2025-01-06 09:58: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-01-06 09:58:26] Production.INFO: count ==2446 [2025-01-06 09:58:27] Production.ERROR: pbx CDR StartTime 2025-01-06 06:58:05 - End Time 2025-01-06 09:58:05 [2025-01-06 09:58:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186795', 'tblTempUsageDetail_20' ) start [2025-01-06 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186795', 'tblTempUsageDetail_20' ) end [2025-01-06 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186795', 'tblTempVendorCDR_20' ) start [2025-01-06 09:58:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186795', 'tblTempVendorCDR_20' ) end [2025-01-06 09:58:27] Production.INFO: ProcessCDR(1,14186795,1,1,2) [2025-01-06 09:58:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:58:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:58:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:58:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186795', 'tblTempUsageDetail_20' ) start [2025-01-06 09:58:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186795', 'tblTempUsageDetail_20' ) end [2025-01-06 09:58:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:58:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:58:31] Production.INFO: ==2072== Releasing lock... [2025-01-06 09:58:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:58:31] Production.INFO: 46.5 MB #Memory Used# [2025-01-06 09:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 06:59:05 [end_date_ymd] => 2025-01-06 09:59:05 [RateCDR] => 1 ) [2025-01-06 09:59: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-01-06 06:59:05' and `end` < '2025-01-06 09:59: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-01-06 09:59:28] Production.INFO: count ==2480 [2025-01-06 09:59:29] Production.ERROR: pbx CDR StartTime 2025-01-06 06:59:05 - End Time 2025-01-06 09:59:05 [2025-01-06 09:59:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 09:59:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186800', 'tblTempUsageDetail_20' ) start [2025-01-06 09:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186800', 'tblTempUsageDetail_20' ) end [2025-01-06 09:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186800', 'tblTempVendorCDR_20' ) start [2025-01-06 09:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186800', 'tblTempVendorCDR_20' ) end [2025-01-06 09:59:30] Production.INFO: ProcessCDR(1,14186800,1,1,2) [2025-01-06 09:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 09:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 09:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186800', 'tblTempUsageDetail_20' ) start [2025-01-06 09:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186800', 'tblTempUsageDetail_20' ) end [2025-01-06 09:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 09:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 09:59:34] Production.INFO: ==2145== Releasing lock... [2025-01-06 09:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 09:59:34] Production.INFO: 47 MB #Memory Used# [2025-01-06 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:00:06 [end_date_ymd] => 2025-01-06 10:00:06 [RateCDR] => 1 ) [2025-01-06 10: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-01-06 07:00:06' and `end` < '2025-01-06 10: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-01-06 10:00:26] Production.INFO: count ==2521 [2025-01-06 10:00:28] Production.ERROR: pbx CDR StartTime 2025-01-06 07:00:06 - End Time 2025-01-06 10:00:06 [2025-01-06 10:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186806', 'tblTempUsageDetail_20' ) start [2025-01-06 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186806', 'tblTempUsageDetail_20' ) end [2025-01-06 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186806', 'tblTempVendorCDR_20' ) start [2025-01-06 10:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186806', 'tblTempVendorCDR_20' ) end [2025-01-06 10:00:28] Production.INFO: ProcessCDR(1,14186806,1,1,2) [2025-01-06 10:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186806', 'tblTempUsageDetail_20' ) start [2025-01-06 10:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186806', 'tblTempUsageDetail_20' ) end [2025-01-06 10:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:00:33] Production.INFO: ==2221== Releasing lock... [2025-01-06 10:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:00:33] Production.INFO: 47.5 MB #Memory Used# [2025-01-06 10:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:01:06 [end_date_ymd] => 2025-01-06 10:01:06 [RateCDR] => 1 ) [2025-01-06 10:01: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-01-06 07:01:06' and `end` < '2025-01-06 10:01: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-01-06 10:01:38] Production.INFO: count ==2675 [2025-01-06 10:01:39] Production.ERROR: pbx CDR StartTime 2025-01-06 07:01:06 - End Time 2025-01-06 10:01:06 [2025-01-06 10:01:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186811', 'tblTempUsageDetail_20' ) start [2025-01-06 10:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186811', 'tblTempUsageDetail_20' ) end [2025-01-06 10:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186811', 'tblTempVendorCDR_20' ) start [2025-01-06 10:01:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186811', 'tblTempVendorCDR_20' ) end [2025-01-06 10:01:39] Production.INFO: ProcessCDR(1,14186811,1,1,2) [2025-01-06 10:01:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:01:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:01:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:01:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:01:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186811', 'tblTempUsageDetail_20' ) start [2025-01-06 10:01:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186811', 'tblTempUsageDetail_20' ) end [2025-01-06 10:01:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:01:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:01:44] Production.INFO: ==2307== Releasing lock... [2025-01-06 10:01:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:01:44] Production.INFO: 48.75 MB #Memory Used# [2025-01-06 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:02:05 [end_date_ymd] => 2025-01-06 10:02:05 [RateCDR] => 1 ) [2025-01-06 10:02: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-01-06 07:02:05' and `end` < '2025-01-06 10:02: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-01-06 10:02:28] Production.INFO: count ==2692 [2025-01-06 10:02:29] Production.ERROR: pbx CDR StartTime 2025-01-06 07:02:05 - End Time 2025-01-06 10:02:05 [2025-01-06 10:02:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186816', 'tblTempUsageDetail_20' ) start [2025-01-06 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186816', 'tblTempUsageDetail_20' ) end [2025-01-06 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186816', 'tblTempVendorCDR_20' ) start [2025-01-06 10:02:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186816', 'tblTempVendorCDR_20' ) end [2025-01-06 10:02:29] Production.INFO: ProcessCDR(1,14186816,1,1,2) [2025-01-06 10:02:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:02:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:02:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:02:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186816', 'tblTempUsageDetail_20' ) start [2025-01-06 10:02:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186816', 'tblTempUsageDetail_20' ) end [2025-01-06 10:02:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:02:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:02:34] Production.INFO: ==2416== Releasing lock... [2025-01-06 10:02:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:02:34] Production.INFO: 48 MB #Memory Used# [2025-01-06 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:03:05 [end_date_ymd] => 2025-01-06 10:03:05 [RateCDR] => 1 ) [2025-01-06 10:03: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-01-06 07:03:05' and `end` < '2025-01-06 10:03: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-01-06 10:03:25] Production.INFO: count ==2752 [2025-01-06 10:03:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:03:05 - End Time 2025-01-06 10:03:05 [2025-01-06 10:03:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:03:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186821', 'tblTempUsageDetail_20' ) start [2025-01-06 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186821', 'tblTempUsageDetail_20' ) end [2025-01-06 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186821', 'tblTempVendorCDR_20' ) start [2025-01-06 10:03:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186821', 'tblTempVendorCDR_20' ) end [2025-01-06 10:03:27] Production.INFO: ProcessCDR(1,14186821,1,1,2) [2025-01-06 10:03:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:03:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:03:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:03:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186821', 'tblTempUsageDetail_20' ) start [2025-01-06 10:03:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186821', 'tblTempUsageDetail_20' ) end [2025-01-06 10:03:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:03:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:03:31] Production.INFO: ==2487== Releasing lock... [2025-01-06 10:03:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:03:31] Production.INFO: 48.75 MB #Memory Used# [2025-01-06 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:04:05 [end_date_ymd] => 2025-01-06 10:04:05 [RateCDR] => 1 ) [2025-01-06 10:04: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-01-06 07:04:05' and `end` < '2025-01-06 10:04: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-01-06 10:04:36] Production.INFO: count ==2813 [2025-01-06 10:04:37] Production.ERROR: pbx CDR StartTime 2025-01-06 07:04:05 - End Time 2025-01-06 10:04:05 [2025-01-06 10:04:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186826', 'tblTempUsageDetail_20' ) start [2025-01-06 10:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186826', 'tblTempUsageDetail_20' ) end [2025-01-06 10:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186826', 'tblTempVendorCDR_20' ) start [2025-01-06 10:04:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186826', 'tblTempVendorCDR_20' ) end [2025-01-06 10:04:37] Production.INFO: ProcessCDR(1,14186826,1,1,2) [2025-01-06 10:04:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:04:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:04:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:04:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:04:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186826', 'tblTempUsageDetail_20' ) start [2025-01-06 10:04:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186826', 'tblTempUsageDetail_20' ) end [2025-01-06 10:04:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:04:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:04:42] Production.INFO: ==2558== Releasing lock... [2025-01-06 10:04:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:04:42] Production.INFO: 49.25 MB #Memory Used# [2025-01-06 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:05:05 [end_date_ymd] => 2025-01-06 10:05:05 [RateCDR] => 1 ) [2025-01-06 10:05: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-01-06 07:05:05' and `end` < '2025-01-06 10:05: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-01-06 10:05:27] Production.INFO: count ==2837 [2025-01-06 10:05:28] Production.ERROR: pbx CDR StartTime 2025-01-06 07:05:05 - End Time 2025-01-06 10:05:05 [2025-01-06 10:05:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186831', 'tblTempUsageDetail_20' ) start [2025-01-06 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186831', 'tblTempUsageDetail_20' ) end [2025-01-06 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186831', 'tblTempVendorCDR_20' ) start [2025-01-06 10:05:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186831', 'tblTempVendorCDR_20' ) end [2025-01-06 10:05:28] Production.INFO: ProcessCDR(1,14186831,1,1,2) [2025-01-06 10:05:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:05:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:05:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186831', 'tblTempUsageDetail_20' ) start [2025-01-06 10:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186831', 'tblTempUsageDetail_20' ) end [2025-01-06 10:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:05:32] Production.INFO: ==2630== Releasing lock... [2025-01-06 10:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:05:32] Production.INFO: 49.75 MB #Memory Used# [2025-01-06 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:06:05 [end_date_ymd] => 2025-01-06 10:06:05 [RateCDR] => 1 ) [2025-01-06 10:06: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-01-06 07:06:05' and `end` < '2025-01-06 10:06: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-01-06 10:06:24] Production.INFO: count ==2852 [2025-01-06 10:06:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:06:05 - End Time 2025-01-06 10:06:05 [2025-01-06 10:06:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186836', 'tblTempUsageDetail_20' ) start [2025-01-06 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186836', 'tblTempUsageDetail_20' ) end [2025-01-06 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186836', 'tblTempVendorCDR_20' ) start [2025-01-06 10:06:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186836', 'tblTempVendorCDR_20' ) end [2025-01-06 10:06:25] Production.INFO: ProcessCDR(1,14186836,1,1,2) [2025-01-06 10:06:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186836', 'tblTempUsageDetail_20' ) start [2025-01-06 10:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186836', 'tblTempUsageDetail_20' ) end [2025-01-06 10:06:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:06:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:06:30] Production.INFO: ==2705== Releasing lock... [2025-01-06 10:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:06:30] Production.INFO: 49.25 MB #Memory Used# [2025-01-06 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:07:05 [end_date_ymd] => 2025-01-06 10:07:05 [RateCDR] => 1 ) [2025-01-06 10:07: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-01-06 07:07:05' and `end` < '2025-01-06 10:07: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-01-06 10:07:26] Production.INFO: count ==2867 [2025-01-06 10:07:27] Production.ERROR: pbx CDR StartTime 2025-01-06 07:07:05 - End Time 2025-01-06 10:07:05 [2025-01-06 10:07:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186841', 'tblTempUsageDetail_20' ) start [2025-01-06 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186841', 'tblTempUsageDetail_20' ) end [2025-01-06 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186841', 'tblTempVendorCDR_20' ) start [2025-01-06 10:07:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186841', 'tblTempVendorCDR_20' ) end [2025-01-06 10:07:27] Production.INFO: ProcessCDR(1,14186841,1,1,2) [2025-01-06 10:07:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:07:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:07:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:07:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186841', 'tblTempUsageDetail_20' ) start [2025-01-06 10:07:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186841', 'tblTempUsageDetail_20' ) end [2025-01-06 10:07:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:07:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:07:32] Production.INFO: ==2779== Releasing lock... [2025-01-06 10:07:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:07:32] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:08:05 [end_date_ymd] => 2025-01-06 10:08:05 [RateCDR] => 1 ) [2025-01-06 10:08: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-01-06 07:08:05' and `end` < '2025-01-06 10:08: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-01-06 10:08:25] Production.INFO: count ==2892 [2025-01-06 10:08:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:08:05 - End Time 2025-01-06 10:08:05 [2025-01-06 10:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186846', 'tblTempUsageDetail_20' ) start [2025-01-06 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186846', 'tblTempUsageDetail_20' ) end [2025-01-06 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186846', 'tblTempVendorCDR_20' ) start [2025-01-06 10:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186846', 'tblTempVendorCDR_20' ) end [2025-01-06 10:08:26] Production.INFO: ProcessCDR(1,14186846,1,1,2) [2025-01-06 10:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:08:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:08:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186846', 'tblTempUsageDetail_20' ) start [2025-01-06 10:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186846', 'tblTempUsageDetail_20' ) end [2025-01-06 10:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:08:31] Production.INFO: ==2853== Releasing lock... [2025-01-06 10:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:08:31] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:09:05 [end_date_ymd] => 2025-01-06 10:09:05 [RateCDR] => 1 ) [2025-01-06 10:09: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-01-06 07:09:05' and `end` < '2025-01-06 10:09: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-01-06 10:09:23] Production.INFO: count ==2897 [2025-01-06 10:09:24] Production.ERROR: pbx CDR StartTime 2025-01-06 07:09:05 - End Time 2025-01-06 10:09:05 [2025-01-06 10:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186851', 'tblTempUsageDetail_20' ) start [2025-01-06 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186851', 'tblTempUsageDetail_20' ) end [2025-01-06 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186851', 'tblTempVendorCDR_20' ) start [2025-01-06 10:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186851', 'tblTempVendorCDR_20' ) end [2025-01-06 10:09:24] Production.INFO: ProcessCDR(1,14186851,1,1,2) [2025-01-06 10:09:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:09:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:09:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186851', 'tblTempUsageDetail_20' ) start [2025-01-06 10:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186851', 'tblTempUsageDetail_20' ) end [2025-01-06 10:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:09:29] Production.INFO: ==2924== Releasing lock... [2025-01-06 10:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:09:29] Production.INFO: 50 MB #Memory Used# [2025-01-06 10:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:10:06 [end_date_ymd] => 2025-01-06 10:10:06 [RateCDR] => 1 ) [2025-01-06 10:10: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-01-06 07:10:06' and `end` < '2025-01-06 10:10: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-01-06 10:10:33] Production.INFO: count ==2907 [2025-01-06 10:10:35] Production.ERROR: pbx CDR StartTime 2025-01-06 07:10:06 - End Time 2025-01-06 10:10:06 [2025-01-06 10:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186856', 'tblTempUsageDetail_20' ) start [2025-01-06 10:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186856', 'tblTempUsageDetail_20' ) end [2025-01-06 10:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186856', 'tblTempVendorCDR_20' ) start [2025-01-06 10:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186856', 'tblTempVendorCDR_20' ) end [2025-01-06 10:10:35] Production.INFO: ProcessCDR(1,14186856,1,1,2) [2025-01-06 10:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186856', 'tblTempUsageDetail_20' ) start [2025-01-06 10:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186856', 'tblTempUsageDetail_20' ) end [2025-01-06 10:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:10:39] Production.INFO: ==2998== Releasing lock... [2025-01-06 10:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:10:39] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 10:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:11:04 [end_date_ymd] => 2025-01-06 10:11:04 [RateCDR] => 1 ) [2025-01-06 10:11: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-01-06 07:11:04' and `end` < '2025-01-06 10:11: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-01-06 10:11:36] Production.INFO: count ==3035 [2025-01-06 10:11:38] Production.ERROR: pbx CDR StartTime 2025-01-06 07:11:04 - End Time 2025-01-06 10:11:04 [2025-01-06 10:11:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186862', 'tblTempUsageDetail_20' ) start [2025-01-06 10:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186862', 'tblTempUsageDetail_20' ) end [2025-01-06 10:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186862', 'tblTempVendorCDR_20' ) start [2025-01-06 10:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186862', 'tblTempVendorCDR_20' ) end [2025-01-06 10:11:38] Production.INFO: ProcessCDR(1,14186862,1,1,2) [2025-01-06 10:11:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:11:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186862', 'tblTempUsageDetail_20' ) start [2025-01-06 10:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186862', 'tblTempUsageDetail_20' ) end [2025-01-06 10:11:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:11:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:11:43] Production.INFO: ==3072== Releasing lock... [2025-01-06 10:11:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:11:43] Production.INFO: 51.5 MB #Memory Used# [2025-01-06 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:12:05 [end_date_ymd] => 2025-01-06 10:12:05 [RateCDR] => 1 ) [2025-01-06 10:12: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-01-06 07:12:05' and `end` < '2025-01-06 10:12: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-01-06 10:12:37] Production.INFO: count ==3065 [2025-01-06 10:12:38] Production.ERROR: pbx CDR StartTime 2025-01-06 07:12:05 - End Time 2025-01-06 10:12:05 [2025-01-06 10:12:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186867', 'tblTempUsageDetail_20' ) start [2025-01-06 10:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186867', 'tblTempUsageDetail_20' ) end [2025-01-06 10:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186867', 'tblTempVendorCDR_20' ) start [2025-01-06 10:12:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186867', 'tblTempVendorCDR_20' ) end [2025-01-06 10:12:38] Production.INFO: ProcessCDR(1,14186867,1,1,2) [2025-01-06 10:12:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:12:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:12:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:12:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186867', 'tblTempUsageDetail_20' ) start [2025-01-06 10:12:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186867', 'tblTempUsageDetail_20' ) end [2025-01-06 10:12:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:12:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:12:43] Production.INFO: ==3145== Releasing lock... [2025-01-06 10:12:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:12:43] Production.INFO: 50.75 MB #Memory Used# [2025-01-06 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:13:05 [end_date_ymd] => 2025-01-06 10:13:05 [RateCDR] => 1 ) [2025-01-06 10:13: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-01-06 07:13:05' and `end` < '2025-01-06 10:13: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-01-06 10:13:31] Production.INFO: count ==3092 [2025-01-06 10:13:32] Production.ERROR: pbx CDR StartTime 2025-01-06 07:13:05 - End Time 2025-01-06 10:13:05 [2025-01-06 10:13:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186872', 'tblTempUsageDetail_20' ) start [2025-01-06 10:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186872', 'tblTempUsageDetail_20' ) end [2025-01-06 10:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186872', 'tblTempVendorCDR_20' ) start [2025-01-06 10:13:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186872', 'tblTempVendorCDR_20' ) end [2025-01-06 10:13:32] Production.INFO: ProcessCDR(1,14186872,1,1,2) [2025-01-06 10:13:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:13:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:13:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:13:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186872', 'tblTempUsageDetail_20' ) start [2025-01-06 10:13:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186872', 'tblTempUsageDetail_20' ) end [2025-01-06 10:13:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:13:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:13:37] Production.INFO: ==3215== Releasing lock... [2025-01-06 10:13:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:13:37] Production.INFO: 52 MB #Memory Used# [2025-01-06 10:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:14:05 [end_date_ymd] => 2025-01-06 10:14:05 [RateCDR] => 1 ) [2025-01-06 10:14: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-01-06 07:14:05' and `end` < '2025-01-06 10:14: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-01-06 10:14:26] Production.INFO: count ==3114 [2025-01-06 10:14:27] Production.ERROR: pbx CDR StartTime 2025-01-06 07:14:05 - End Time 2025-01-06 10:14:05 [2025-01-06 10:14:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186877', 'tblTempUsageDetail_20' ) start [2025-01-06 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186877', 'tblTempUsageDetail_20' ) end [2025-01-06 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186877', 'tblTempVendorCDR_20' ) start [2025-01-06 10:14:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186877', 'tblTempVendorCDR_20' ) end [2025-01-06 10:14:27] Production.INFO: ProcessCDR(1,14186877,1,1,2) [2025-01-06 10:14:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:14:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186877', 'tblTempUsageDetail_20' ) start [2025-01-06 10:14:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186877', 'tblTempUsageDetail_20' ) end [2025-01-06 10:14:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:14:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:14:32] Production.INFO: ==3286== Releasing lock... [2025-01-06 10:14:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:14:32] Production.INFO: 52.25 MB #Memory Used# [2025-01-06 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:15:06 [end_date_ymd] => 2025-01-06 10:15:06 [RateCDR] => 1 ) [2025-01-06 10:15: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-01-06 07:15:06' and `end` < '2025-01-06 10:15: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-01-06 10:15:28] Production.INFO: count ==3147 [2025-01-06 10:15:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:15:06 - End Time 2025-01-06 10:15:06 [2025-01-06 10:15:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186882', 'tblTempUsageDetail_20' ) start [2025-01-06 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186882', 'tblTempUsageDetail_20' ) end [2025-01-06 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186882', 'tblTempVendorCDR_20' ) start [2025-01-06 10:15:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186882', 'tblTempVendorCDR_20' ) end [2025-01-06 10:15:30] Production.INFO: ProcessCDR(1,14186882,1,1,2) [2025-01-06 10:15:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:15:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:15:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:15:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186882', 'tblTempUsageDetail_20' ) start [2025-01-06 10:15:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186882', 'tblTempUsageDetail_20' ) end [2025-01-06 10:15:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:15:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:15:35] Production.INFO: ==3357== Releasing lock... [2025-01-06 10:15:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:15:35] Production.INFO: 52.5 MB #Memory Used# [2025-01-06 10:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:16:05 [end_date_ymd] => 2025-01-06 10:16:05 [RateCDR] => 1 ) [2025-01-06 10:16: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-01-06 07:16:05' and `end` < '2025-01-06 10:16: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-01-06 10:16:24] Production.INFO: count ==3180 [2025-01-06 10:16:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:16:05 - End Time 2025-01-06 10:16:05 [2025-01-06 10:16:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186887', 'tblTempUsageDetail_20' ) start [2025-01-06 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186887', 'tblTempUsageDetail_20' ) end [2025-01-06 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186887', 'tblTempVendorCDR_20' ) start [2025-01-06 10:16:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186887', 'tblTempVendorCDR_20' ) end [2025-01-06 10:16:25] Production.INFO: ProcessCDR(1,14186887,1,1,2) [2025-01-06 10:16:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:16:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:16:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186887', 'tblTempUsageDetail_20' ) start [2025-01-06 10:16:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186887', 'tblTempUsageDetail_20' ) end [2025-01-06 10:16:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:16:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:16:30] Production.INFO: ==3427== Releasing lock... [2025-01-06 10:16:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:16:30] Production.INFO: 52.75 MB #Memory Used# [2025-01-06 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:17:05 [end_date_ymd] => 2025-01-06 10:17:05 [RateCDR] => 1 ) [2025-01-06 10:17: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-01-06 07:17:05' and `end` < '2025-01-06 10:17: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-01-06 10:17:20] Production.INFO: count ==3207 [2025-01-06 10:17:22] Production.ERROR: pbx CDR StartTime 2025-01-06 07:17:05 - End Time 2025-01-06 10:17:05 [2025-01-06 10:17:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186892', 'tblTempUsageDetail_20' ) start [2025-01-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186892', 'tblTempUsageDetail_20' ) end [2025-01-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186892', 'tblTempVendorCDR_20' ) start [2025-01-06 10:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186892', 'tblTempVendorCDR_20' ) end [2025-01-06 10:17:22] Production.INFO: ProcessCDR(1,14186892,1,1,2) [2025-01-06 10:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186892', 'tblTempUsageDetail_20' ) start [2025-01-06 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186892', 'tblTempUsageDetail_20' ) end [2025-01-06 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:17:26] Production.INFO: ==3499== Releasing lock... [2025-01-06 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:17:26] Production.INFO: 52.5 MB #Memory Used# [2025-01-06 10:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:18:05 [end_date_ymd] => 2025-01-06 10:18:05 [RateCDR] => 1 ) [2025-01-06 10:18: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-01-06 07:18:05' and `end` < '2025-01-06 10:18: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-01-06 10:18:28] Production.INFO: count ==3232 [2025-01-06 10:18:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:18:05 - End Time 2025-01-06 10:18:05 [2025-01-06 10:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186897', 'tblTempUsageDetail_20' ) start [2025-01-06 10:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186897', 'tblTempUsageDetail_20' ) end [2025-01-06 10:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186897', 'tblTempVendorCDR_20' ) start [2025-01-06 10:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186897', 'tblTempVendorCDR_20' ) end [2025-01-06 10:18:30] Production.INFO: ProcessCDR(1,14186897,1,1,2) [2025-01-06 10:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:18:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:18:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:18:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186897', 'tblTempUsageDetail_20' ) start [2025-01-06 10:18:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186897', 'tblTempUsageDetail_20' ) end [2025-01-06 10:18:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:18:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:18:34] Production.INFO: ==3608== Releasing lock... [2025-01-06 10:18:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:18:34] Production.INFO: 53 MB #Memory Used# [2025-01-06 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:19:05 [end_date_ymd] => 2025-01-06 10:19:05 [RateCDR] => 1 ) [2025-01-06 10:19: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-01-06 07:19:05' and `end` < '2025-01-06 10:19: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-01-06 10:19:30] Production.INFO: count ==3245 [2025-01-06 10:19:31] Production.ERROR: pbx CDR StartTime 2025-01-06 07:19:05 - End Time 2025-01-06 10:19:05 [2025-01-06 10:19:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:19:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186902', 'tblTempUsageDetail_20' ) start [2025-01-06 10:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186902', 'tblTempUsageDetail_20' ) end [2025-01-06 10:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186902', 'tblTempVendorCDR_20' ) start [2025-01-06 10:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186902', 'tblTempVendorCDR_20' ) end [2025-01-06 10:19:32] Production.INFO: ProcessCDR(1,14186902,1,1,2) [2025-01-06 10:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:19:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:19:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:19:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:19:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186902', 'tblTempUsageDetail_20' ) start [2025-01-06 10:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186902', 'tblTempUsageDetail_20' ) end [2025-01-06 10:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:19:37] Production.INFO: ==3678== Releasing lock... [2025-01-06 10:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:19:37] Production.INFO: 53.25 MB #Memory Used# [2025-01-06 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:20:06 [end_date_ymd] => 2025-01-06 10:20:06 [RateCDR] => 1 ) [2025-01-06 10:20: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-01-06 07:20:06' and `end` < '2025-01-06 10:20: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-01-06 10:20:26] Production.INFO: count ==3268 [2025-01-06 10:20:27] Production.ERROR: pbx CDR StartTime 2025-01-06 07:20:06 - End Time 2025-01-06 10:20:06 [2025-01-06 10:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186908', 'tblTempUsageDetail_20' ) start [2025-01-06 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186908', 'tblTempUsageDetail_20' ) end [2025-01-06 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186908', 'tblTempVendorCDR_20' ) start [2025-01-06 10:20:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186908', 'tblTempVendorCDR_20' ) end [2025-01-06 10:20:28] Production.INFO: ProcessCDR(1,14186908,1,1,2) [2025-01-06 10:20:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:20:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:20:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186908', 'tblTempUsageDetail_20' ) start [2025-01-06 10:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186908', 'tblTempUsageDetail_20' ) end [2025-01-06 10:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:20:32] Production.INFO: ==3753== Releasing lock... [2025-01-06 10:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:20:32] Production.INFO: 53.5 MB #Memory Used# [2025-01-06 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:21:05 [end_date_ymd] => 2025-01-06 10:21:05 [RateCDR] => 1 ) [2025-01-06 10:21: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-01-06 07:21:05' and `end` < '2025-01-06 10:21: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-01-06 10:21:21] Production.INFO: count ==3364 [2025-01-06 10:21:23] Production.ERROR: pbx CDR StartTime 2025-01-06 07:21:05 - End Time 2025-01-06 10:21:05 [2025-01-06 10:21:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186913', 'tblTempUsageDetail_20' ) start [2025-01-06 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186913', 'tblTempUsageDetail_20' ) end [2025-01-06 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186913', 'tblTempVendorCDR_20' ) start [2025-01-06 10:21:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186913', 'tblTempVendorCDR_20' ) end [2025-01-06 10:21:23] Production.INFO: ProcessCDR(1,14186913,1,1,2) [2025-01-06 10:21:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186913', 'tblTempUsageDetail_20' ) start [2025-01-06 10:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186913', 'tblTempUsageDetail_20' ) end [2025-01-06 10:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:21:26] Production.INFO: ==3832== Releasing lock... [2025-01-06 10:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:21:26] Production.INFO: 54 MB #Memory Used# [2025-01-06 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:22:05 [end_date_ymd] => 2025-01-06 10:22:05 [RateCDR] => 1 ) [2025-01-06 10:22: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-01-06 07:22:05' and `end` < '2025-01-06 10:22: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-01-06 10:22:21] Production.INFO: count ==3382 [2025-01-06 10:22:22] Production.ERROR: pbx CDR StartTime 2025-01-06 07:22:05 - End Time 2025-01-06 10:22:05 [2025-01-06 10:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186918', 'tblTempUsageDetail_20' ) start [2025-01-06 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186918', 'tblTempUsageDetail_20' ) end [2025-01-06 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186918', 'tblTempVendorCDR_20' ) start [2025-01-06 10:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186918', 'tblTempVendorCDR_20' ) end [2025-01-06 10:22:22] Production.INFO: ProcessCDR(1,14186918,1,1,2) [2025-01-06 10:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186918', 'tblTempUsageDetail_20' ) start [2025-01-06 10:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186918', 'tblTempUsageDetail_20' ) end [2025-01-06 10:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:22:27] Production.INFO: ==3910== Releasing lock... [2025-01-06 10:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:22:27] Production.INFO: 54.25 MB #Memory Used# [2025-01-06 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:23:05 [end_date_ymd] => 2025-01-06 10:23:05 [RateCDR] => 1 ) [2025-01-06 10:23: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-01-06 07:23:05' and `end` < '2025-01-06 10:23: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-01-06 10:23:30] Production.INFO: count ==3410 [2025-01-06 10:23:31] Production.ERROR: pbx CDR StartTime 2025-01-06 07:23:05 - End Time 2025-01-06 10:23:05 [2025-01-06 10:23:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186923', 'tblTempUsageDetail_20' ) start [2025-01-06 10:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186923', 'tblTempUsageDetail_20' ) end [2025-01-06 10:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186923', 'tblTempVendorCDR_20' ) start [2025-01-06 10:23:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186923', 'tblTempVendorCDR_20' ) end [2025-01-06 10:23:31] Production.INFO: ProcessCDR(1,14186923,1,1,2) [2025-01-06 10:23:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:23:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:23:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:23:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186923', 'tblTempUsageDetail_20' ) start [2025-01-06 10:23:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186923', 'tblTempUsageDetail_20' ) end [2025-01-06 10:23:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:23:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:23:36] Production.INFO: ==3982== Releasing lock... [2025-01-06 10:23:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:23:36] Production.INFO: 54.5 MB #Memory Used# [2025-01-06 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:24:06 [end_date_ymd] => 2025-01-06 10:24:06 [RateCDR] => 1 ) [2025-01-06 10:24: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-01-06 07:24:06' and `end` < '2025-01-06 10:24: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-01-06 10:24:29] Production.INFO: count ==3447 [2025-01-06 10:24:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:24:06 - End Time 2025-01-06 10:24:06 [2025-01-06 10:24:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186928', 'tblTempUsageDetail_20' ) start [2025-01-06 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186928', 'tblTempUsageDetail_20' ) end [2025-01-06 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186928', 'tblTempVendorCDR_20' ) start [2025-01-06 10:24:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186928', 'tblTempVendorCDR_20' ) end [2025-01-06 10:24:30] Production.INFO: ProcessCDR(1,14186928,1,1,2) [2025-01-06 10:24:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:24:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:24:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:24:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186928', 'tblTempUsageDetail_20' ) start [2025-01-06 10:24:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186928', 'tblTempUsageDetail_20' ) end [2025-01-06 10:24:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:24:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:24:35] Production.INFO: ==4085== Releasing lock... [2025-01-06 10:24:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:24:35] Production.INFO: 54.75 MB #Memory Used# [2025-01-06 10:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:25:04 [end_date_ymd] => 2025-01-06 10:25:04 [RateCDR] => 1 ) [2025-01-06 10: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-01-06 07:25:04' and `end` < '2025-01-06 10: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-01-06 10:25:24] Production.INFO: count ==3469 [2025-01-06 10:25:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:25:04 - End Time 2025-01-06 10:25:04 [2025-01-06 10:25:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186933', 'tblTempUsageDetail_20' ) start [2025-01-06 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186933', 'tblTempUsageDetail_20' ) end [2025-01-06 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186933', 'tblTempVendorCDR_20' ) start [2025-01-06 10:25:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186933', 'tblTempVendorCDR_20' ) end [2025-01-06 10:25:26] Production.INFO: ProcessCDR(1,14186933,1,1,2) [2025-01-06 10:25:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:25:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:25:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:25:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186933', 'tblTempUsageDetail_20' ) start [2025-01-06 10:25:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186933', 'tblTempUsageDetail_20' ) end [2025-01-06 10:25:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:25:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:25:31] Production.INFO: ==4176== Releasing lock... [2025-01-06 10:25:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:25:31] Production.INFO: 54.75 MB #Memory Used# [2025-01-06 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:26:05 [end_date_ymd] => 2025-01-06 10:26:05 [RateCDR] => 1 ) [2025-01-06 10:26: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-01-06 07:26:05' and `end` < '2025-01-06 10:26: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-01-06 10:26:37] Production.INFO: count ==3498 [2025-01-06 10:26:39] Production.ERROR: pbx CDR StartTime 2025-01-06 07:26:05 - End Time 2025-01-06 10:26:05 [2025-01-06 10:26:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186938', 'tblTempUsageDetail_20' ) start [2025-01-06 10:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186938', 'tblTempUsageDetail_20' ) end [2025-01-06 10:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186938', 'tblTempVendorCDR_20' ) start [2025-01-06 10:26:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186938', 'tblTempVendorCDR_20' ) end [2025-01-06 10:26:39] Production.INFO: ProcessCDR(1,14186938,1,1,2) [2025-01-06 10:26:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:26:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:26:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:26:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:26:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186938', 'tblTempUsageDetail_20' ) start [2025-01-06 10:26:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186938', 'tblTempUsageDetail_20' ) end [2025-01-06 10:26:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:26:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:26:45] Production.INFO: ==4277== Releasing lock... [2025-01-06 10:26:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:26:45] Production.INFO: 54.75 MB #Memory Used# [2025-01-06 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:27:04 [end_date_ymd] => 2025-01-06 10:27:04 [RateCDR] => 1 ) [2025-01-06 10:27: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-01-06 07:27:04' and `end` < '2025-01-06 10:27: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-01-06 10:27:27] Production.INFO: count ==3512 [2025-01-06 10:27:28] Production.ERROR: pbx CDR StartTime 2025-01-06 07:27:04 - End Time 2025-01-06 10:27:04 [2025-01-06 10:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186943', 'tblTempUsageDetail_20' ) start [2025-01-06 10:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186943', 'tblTempUsageDetail_20' ) end [2025-01-06 10:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186943', 'tblTempVendorCDR_20' ) start [2025-01-06 10:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186943', 'tblTempVendorCDR_20' ) end [2025-01-06 10:27:28] Production.INFO: ProcessCDR(1,14186943,1,1,2) [2025-01-06 10:27:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186943', 'tblTempUsageDetail_20' ) start [2025-01-06 10:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186943', 'tblTempUsageDetail_20' ) end [2025-01-06 10:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:27:33] Production.INFO: ==4373== Releasing lock... [2025-01-06 10:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:27:33] Production.INFO: 55.25 MB #Memory Used# [2025-01-06 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:28:05 [end_date_ymd] => 2025-01-06 10:28:05 [RateCDR] => 1 ) [2025-01-06 10:28: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-01-06 07:28:05' and `end` < '2025-01-06 10:28: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-01-06 10:28:28] Production.INFO: count ==3531 [2025-01-06 10:28:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:28:05 - End Time 2025-01-06 10:28:05 [2025-01-06 10:28:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186948', 'tblTempUsageDetail_20' ) start [2025-01-06 10:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186948', 'tblTempUsageDetail_20' ) end [2025-01-06 10:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186948', 'tblTempVendorCDR_20' ) start [2025-01-06 10:28:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186948', 'tblTempVendorCDR_20' ) end [2025-01-06 10:28:30] Production.INFO: ProcessCDR(1,14186948,1,1,2) [2025-01-06 10:28:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186948', 'tblTempUsageDetail_20' ) start [2025-01-06 10:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186948', 'tblTempUsageDetail_20' ) end [2025-01-06 10:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:28:34] Production.INFO: ==4479== Releasing lock... [2025-01-06 10:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:28:34] Production.INFO: 55 MB #Memory Used# [2025-01-06 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:29:05 [end_date_ymd] => 2025-01-06 10:29:05 [RateCDR] => 1 ) [2025-01-06 10:29: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-01-06 07:29:05' and `end` < '2025-01-06 10:29: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-01-06 10:29:28] Production.INFO: count ==3556 [2025-01-06 10:29:29] Production.ERROR: pbx CDR StartTime 2025-01-06 07:29:05 - End Time 2025-01-06 10:29:05 [2025-01-06 10:29:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186953', 'tblTempUsageDetail_20' ) start [2025-01-06 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186953', 'tblTempUsageDetail_20' ) end [2025-01-06 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186953', 'tblTempVendorCDR_20' ) start [2025-01-06 10:29:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186953', 'tblTempVendorCDR_20' ) end [2025-01-06 10:29:29] Production.INFO: ProcessCDR(1,14186953,1,1,2) [2025-01-06 10:29:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:29:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:29:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:29:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186953', 'tblTempUsageDetail_20' ) start [2025-01-06 10:29:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186953', 'tblTempUsageDetail_20' ) end [2025-01-06 10:29:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:29:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:29:34] Production.INFO: ==4583== Releasing lock... [2025-01-06 10:29:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:29:34] Production.INFO: 55.25 MB #Memory Used# [2025-01-06 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:30:05 [end_date_ymd] => 2025-01-06 10:30:05 [RateCDR] => 1 ) [2025-01-06 10:30: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-01-06 07:30:05' and `end` < '2025-01-06 10:30: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-01-06 10:30:22] Production.INFO: count ==3574 [2025-01-06 10:30:23] Production.ERROR: pbx CDR StartTime 2025-01-06 07:30:05 - End Time 2025-01-06 10:30:05 [2025-01-06 10:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186959', 'tblTempUsageDetail_20' ) start [2025-01-06 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186959', 'tblTempUsageDetail_20' ) end [2025-01-06 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186959', 'tblTempVendorCDR_20' ) start [2025-01-06 10:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186959', 'tblTempVendorCDR_20' ) end [2025-01-06 10:30:23] Production.INFO: ProcessCDR(1,14186959,1,1,2) [2025-01-06 10:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186959', 'tblTempUsageDetail_20' ) start [2025-01-06 10:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186959', 'tblTempUsageDetail_20' ) end [2025-01-06 10:30:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:30:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:30:29] Production.INFO: ==4678== Releasing lock... [2025-01-06 10:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:30:29] Production.INFO: 55.5 MB #Memory Used# [2025-01-06 10:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:31:04 [end_date_ymd] => 2025-01-06 10:31:04 [RateCDR] => 1 ) [2025-01-06 10:31: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-01-06 07:31:04' and `end` < '2025-01-06 10:31: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-01-06 10:31:24] Production.INFO: count ==3697 [2025-01-06 10:31:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:31:04 - End Time 2025-01-06 10:31:04 [2025-01-06 10:31:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186964', 'tblTempUsageDetail_20' ) start [2025-01-06 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186964', 'tblTempUsageDetail_20' ) end [2025-01-06 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186964', 'tblTempVendorCDR_20' ) start [2025-01-06 10:31:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186964', 'tblTempVendorCDR_20' ) end [2025-01-06 10:31:25] Production.INFO: ProcessCDR(1,14186964,1,1,2) [2025-01-06 10:31:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:31:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:31:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:31:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186964', 'tblTempUsageDetail_20' ) start [2025-01-06 10:31:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186964', 'tblTempUsageDetail_20' ) end [2025-01-06 10:31:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:31:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:31:30] Production.INFO: ==4772== Releasing lock... [2025-01-06 10:31:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:31:30] Production.INFO: 55.75 MB #Memory Used# [2025-01-06 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:32:05 [end_date_ymd] => 2025-01-06 10:32:05 [RateCDR] => 1 ) [2025-01-06 10:32: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-01-06 07:32:05' and `end` < '2025-01-06 10:32: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-01-06 10:32:23] Production.INFO: count ==3721 [2025-01-06 10:32:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:32:05 - End Time 2025-01-06 10:32:05 [2025-01-06 10:32:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186969', 'tblTempUsageDetail_20' ) start [2025-01-06 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186969', 'tblTempUsageDetail_20' ) end [2025-01-06 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186969', 'tblTempVendorCDR_20' ) start [2025-01-06 10:32:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186969', 'tblTempVendorCDR_20' ) end [2025-01-06 10:32:25] Production.INFO: ProcessCDR(1,14186969,1,1,2) [2025-01-06 10:32:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:32:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186969', 'tblTempUsageDetail_20' ) start [2025-01-06 10:32:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186969', 'tblTempUsageDetail_20' ) end [2025-01-06 10:32:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:32:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:32:30] Production.INFO: ==4854== Releasing lock... [2025-01-06 10:32:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:32:30] Production.INFO: 56 MB #Memory Used# [2025-01-06 10:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:33:04 [end_date_ymd] => 2025-01-06 10:33:04 [RateCDR] => 1 ) [2025-01-06 10:33: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-01-06 07:33:04' and `end` < '2025-01-06 10:33: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-01-06 10:33:28] Production.INFO: count ==3735 [2025-01-06 10:33:29] Production.ERROR: pbx CDR StartTime 2025-01-06 07:33:04 - End Time 2025-01-06 10:33:04 [2025-01-06 10:33:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186970', 'tblTempUsageDetail_20' ) start [2025-01-06 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186970', 'tblTempUsageDetail_20' ) end [2025-01-06 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186970', 'tblTempVendorCDR_20' ) start [2025-01-06 10:33:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186970', 'tblTempVendorCDR_20' ) end [2025-01-06 10:33:29] Production.INFO: ProcessCDR(1,14186970,1,1,2) [2025-01-06 10:33:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:33:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186970,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:33:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:33:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186970,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186970', 'tblTempUsageDetail_20' ) start [2025-01-06 10:33:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186970', 'tblTempUsageDetail_20' ) end [2025-01-06 10:33:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:33:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:33:34] Production.INFO: ==4982== Releasing lock... [2025-01-06 10:33:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:33:34] Production.INFO: 56 MB #Memory Used# [2025-01-06 10:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:34:05 [end_date_ymd] => 2025-01-06 10:34:05 [RateCDR] => 1 ) [2025-01-06 10:34: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-01-06 07:34:05' and `end` < '2025-01-06 10:34: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-01-06 10:34:24] Production.INFO: count ==3743 [2025-01-06 10:34:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:34:05 - End Time 2025-01-06 10:34:05 [2025-01-06 10:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186979', 'tblTempUsageDetail_20' ) start [2025-01-06 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186979', 'tblTempUsageDetail_20' ) end [2025-01-06 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186979', 'tblTempVendorCDR_20' ) start [2025-01-06 10:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186979', 'tblTempVendorCDR_20' ) end [2025-01-06 10:34:26] Production.INFO: ProcessCDR(1,14186979,1,1,2) [2025-01-06 10:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:34:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:34:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186979', 'tblTempUsageDetail_20' ) start [2025-01-06 10:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186979', 'tblTempUsageDetail_20' ) end [2025-01-06 10:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:34:31] Production.INFO: ==5062== Releasing lock... [2025-01-06 10:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:34:31] Production.INFO: 56 MB #Memory Used# [2025-01-06 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:35:05 [end_date_ymd] => 2025-01-06 10:35:05 [RateCDR] => 1 ) [2025-01-06 10:35: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-01-06 07:35:05' and `end` < '2025-01-06 10:35: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-01-06 10:35:19] Production.INFO: count ==3768 [2025-01-06 10:35:21] Production.ERROR: pbx CDR StartTime 2025-01-06 07:35:05 - End Time 2025-01-06 10:35:05 [2025-01-06 10:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186984', 'tblTempUsageDetail_20' ) start [2025-01-06 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186984', 'tblTempUsageDetail_20' ) end [2025-01-06 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186984', 'tblTempVendorCDR_20' ) start [2025-01-06 10:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186984', 'tblTempVendorCDR_20' ) end [2025-01-06 10:35:21] Production.INFO: ProcessCDR(1,14186984,1,1,2) [2025-01-06 10:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186984', 'tblTempUsageDetail_20' ) start [2025-01-06 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186984', 'tblTempUsageDetail_20' ) end [2025-01-06 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:35:26] Production.INFO: ==5161== Releasing lock... [2025-01-06 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:35:26] Production.INFO: 56 MB #Memory Used# [2025-01-06 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:36:05 [end_date_ymd] => 2025-01-06 10:36:05 [RateCDR] => 1 ) [2025-01-06 10:36: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-01-06 07:36:05' and `end` < '2025-01-06 10:36: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-01-06 10:36:20] Production.INFO: count ==3786 [2025-01-06 10:36:21] Production.ERROR: pbx CDR StartTime 2025-01-06 07:36:05 - End Time 2025-01-06 10:36:05 [2025-01-06 10:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186987', 'tblTempUsageDetail_20' ) start [2025-01-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186987', 'tblTempUsageDetail_20' ) end [2025-01-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186987', 'tblTempVendorCDR_20' ) start [2025-01-06 10:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186987', 'tblTempVendorCDR_20' ) end [2025-01-06 10:36:21] Production.INFO: ProcessCDR(1,14186987,1,1,2) [2025-01-06 10:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186987', 'tblTempUsageDetail_20' ) start [2025-01-06 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186987', 'tblTempUsageDetail_20' ) end [2025-01-06 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:36:26] Production.INFO: ==5248== Releasing lock... [2025-01-06 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:36:26] Production.INFO: 56.25 MB #Memory Used# [2025-01-06 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:37:05 [end_date_ymd] => 2025-01-06 10:37:05 [RateCDR] => 1 ) [2025-01-06 10:37: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-01-06 07:37:05' and `end` < '2025-01-06 10:37: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-01-06 10:37:27] Production.INFO: count ==3804 [2025-01-06 10:37:28] Production.ERROR: pbx CDR StartTime 2025-01-06 07:37:05 - End Time 2025-01-06 10:37:05 [2025-01-06 10:37:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186994', 'tblTempUsageDetail_20' ) start [2025-01-06 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186994', 'tblTempUsageDetail_20' ) end [2025-01-06 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186994', 'tblTempVendorCDR_20' ) start [2025-01-06 10:37:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186994', 'tblTempVendorCDR_20' ) end [2025-01-06 10:37:28] Production.INFO: ProcessCDR(1,14186994,1,1,2) [2025-01-06 10:37:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:37:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:37:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:37:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186994', 'tblTempUsageDetail_20' ) start [2025-01-06 10:37:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186994', 'tblTempUsageDetail_20' ) end [2025-01-06 10:37:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:37:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:37:33] Production.INFO: ==5338== Releasing lock... [2025-01-06 10:37:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:37:33] Production.INFO: 56.5 MB #Memory Used# [2025-01-06 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:38:05 [end_date_ymd] => 2025-01-06 10:38:05 [RateCDR] => 1 ) [2025-01-06 10:38: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-01-06 07:38:05' and `end` < '2025-01-06 10:38: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-01-06 10:38:33] Production.INFO: count ==3828 [2025-01-06 10:38:34] Production.ERROR: pbx CDR StartTime 2025-01-06 07:38:05 - End Time 2025-01-06 10:38:05 [2025-01-06 10:38:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186999', 'tblTempUsageDetail_20' ) start [2025-01-06 10:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14186999', 'tblTempUsageDetail_20' ) end [2025-01-06 10:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186999', 'tblTempVendorCDR_20' ) start [2025-01-06 10:38:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14186999', 'tblTempVendorCDR_20' ) end [2025-01-06 10:38:34] Production.INFO: ProcessCDR(1,14186999,1,1,2) [2025-01-06 10:38:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14186999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:38:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14186999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:38:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14186999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:38:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14186999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186999', 'tblTempUsageDetail_20' ) start [2025-01-06 10:38:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14186999', 'tblTempUsageDetail_20' ) end [2025-01-06 10:38:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:38:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:38:39] Production.INFO: ==5425== Releasing lock... [2025-01-06 10:38:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:38:39] Production.INFO: 56.5 MB #Memory Used# [2025-01-06 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:39:05 [end_date_ymd] => 2025-01-06 10:39:05 [RateCDR] => 1 ) [2025-01-06 10:39: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-01-06 07:39:05' and `end` < '2025-01-06 10:39: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-01-06 10:39:34] Production.INFO: count ==3847 [2025-01-06 10:39:36] Production.ERROR: pbx CDR StartTime 2025-01-06 07:39:05 - End Time 2025-01-06 10:39:05 [2025-01-06 10:39:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187004', 'tblTempUsageDetail_20' ) start [2025-01-06 10:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187004', 'tblTempUsageDetail_20' ) end [2025-01-06 10:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187004', 'tblTempVendorCDR_20' ) start [2025-01-06 10:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187004', 'tblTempVendorCDR_20' ) end [2025-01-06 10:39:36] Production.INFO: ProcessCDR(1,14187004,1,1,2) [2025-01-06 10:39:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:39:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187004', 'tblTempUsageDetail_20' ) start [2025-01-06 10:39:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187004', 'tblTempUsageDetail_20' ) end [2025-01-06 10:39:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:39:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:39:41] Production.INFO: ==5509== Releasing lock... [2025-01-06 10:39:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:39:41] Production.INFO: 56.75 MB #Memory Used# [2025-01-06 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:40:06 [end_date_ymd] => 2025-01-06 10:40:06 [RateCDR] => 1 ) [2025-01-06 10:40: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-01-06 07:40:06' and `end` < '2025-01-06 10:40: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-01-06 10:40:33] Production.INFO: count ==3878 [2025-01-06 10:40:34] Production.ERROR: pbx CDR StartTime 2025-01-06 07:40:06 - End Time 2025-01-06 10:40:06 [2025-01-06 10:40:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187010', 'tblTempUsageDetail_20' ) start [2025-01-06 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187010', 'tblTempUsageDetail_20' ) end [2025-01-06 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187010', 'tblTempVendorCDR_20' ) start [2025-01-06 10:40:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187010', 'tblTempVendorCDR_20' ) end [2025-01-06 10:40:34] Production.INFO: ProcessCDR(1,14187010,1,1,2) [2025-01-06 10:40:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:40:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:40:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:40:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187010', 'tblTempUsageDetail_20' ) start [2025-01-06 10:40:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187010', 'tblTempUsageDetail_20' ) end [2025-01-06 10:40:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:40:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:40:39] Production.INFO: ==5609== Releasing lock... [2025-01-06 10:40:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:40:39] Production.INFO: 57 MB #Memory Used# [2025-01-06 10:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:41:05 [end_date_ymd] => 2025-01-06 10:41:05 [RateCDR] => 1 ) [2025-01-06 10:41: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-01-06 07:41:05' and `end` < '2025-01-06 10:41: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-01-06 10:41:28] Production.INFO: count ==3956 [2025-01-06 10:41:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:41:05 - End Time 2025-01-06 10:41:05 [2025-01-06 10:41:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187015', 'tblTempUsageDetail_20' ) start [2025-01-06 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187015', 'tblTempUsageDetail_20' ) end [2025-01-06 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187015', 'tblTempVendorCDR_20' ) start [2025-01-06 10:41:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187015', 'tblTempVendorCDR_20' ) end [2025-01-06 10:41:30] Production.INFO: ProcessCDR(1,14187015,1,1,2) [2025-01-06 10:41:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:41:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:41:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:41:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187015', 'tblTempUsageDetail_20' ) start [2025-01-06 10:41:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187015', 'tblTempUsageDetail_20' ) end [2025-01-06 10:41:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:41:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:41:35] Production.INFO: ==5720== Releasing lock... [2025-01-06 10:41:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:41:35] Production.INFO: 57.5 MB #Memory Used# [2025-01-06 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:42:05 [end_date_ymd] => 2025-01-06 10:42:05 [RateCDR] => 1 ) [2025-01-06 10:42: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-01-06 07:42:05' and `end` < '2025-01-06 10:42: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-01-06 10:42:36] Production.INFO: count ==3970 [2025-01-06 10:42:38] Production.ERROR: pbx CDR StartTime 2025-01-06 07:42:05 - End Time 2025-01-06 10:42:05 [2025-01-06 10:42:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187020', 'tblTempUsageDetail_20' ) start [2025-01-06 10:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187020', 'tblTempUsageDetail_20' ) end [2025-01-06 10:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187020', 'tblTempVendorCDR_20' ) start [2025-01-06 10:42:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187020', 'tblTempVendorCDR_20' ) end [2025-01-06 10:42:38] Production.INFO: ProcessCDR(1,14187020,1,1,2) [2025-01-06 10:42:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:42:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:42:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:42:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:42:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187020', 'tblTempUsageDetail_20' ) start [2025-01-06 10:42:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187020', 'tblTempUsageDetail_20' ) end [2025-01-06 10:42:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:42:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:42:44] Production.INFO: ==5832== Releasing lock... [2025-01-06 10:42:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:42:44] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 10:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:43:06 [end_date_ymd] => 2025-01-06 10:43:06 [RateCDR] => 1 ) [2025-01-06 10:43: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-01-06 07:43:06' and `end` < '2025-01-06 10:43: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-01-06 10:43:25] Production.INFO: count ==3981 [2025-01-06 10:43:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:43:06 - End Time 2025-01-06 10:43:06 [2025-01-06 10:43:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187025', 'tblTempUsageDetail_20' ) start [2025-01-06 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187025', 'tblTempUsageDetail_20' ) end [2025-01-06 10:43:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187025', 'tblTempVendorCDR_20' ) start [2025-01-06 10:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187025', 'tblTempVendorCDR_20' ) end [2025-01-06 10:43:27] Production.INFO: ProcessCDR(1,14187025,1,1,2) [2025-01-06 10:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:43:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:43:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:43:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187025', 'tblTempUsageDetail_20' ) start [2025-01-06 10:43:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187025', 'tblTempUsageDetail_20' ) end [2025-01-06 10:43:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:43:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:43:31] Production.INFO: ==5952== Releasing lock... [2025-01-06 10:43:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:43:31] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:44:05 [end_date_ymd] => 2025-01-06 10:44:05 [RateCDR] => 1 ) [2025-01-06 10:44: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-01-06 07:44:05' and `end` < '2025-01-06 10:44: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-01-06 10:44:29] Production.INFO: count ==3992 [2025-01-06 10:44:31] Production.ERROR: pbx CDR StartTime 2025-01-06 07:44:05 - End Time 2025-01-06 10:44:05 [2025-01-06 10:44:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187030', 'tblTempUsageDetail_20' ) start [2025-01-06 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187030', 'tblTempUsageDetail_20' ) end [2025-01-06 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187030', 'tblTempVendorCDR_20' ) start [2025-01-06 10:44:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187030', 'tblTempVendorCDR_20' ) end [2025-01-06 10:44:31] Production.INFO: ProcessCDR(1,14187030,1,1,2) [2025-01-06 10:44:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:44:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:44:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:44:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187030', 'tblTempUsageDetail_20' ) start [2025-01-06 10:44:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187030', 'tblTempUsageDetail_20' ) end [2025-01-06 10:44:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:44:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:44:36] Production.INFO: ==6076== Releasing lock... [2025-01-06 10:44:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:44:36] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:45:05 [end_date_ymd] => 2025-01-06 10:45:05 [RateCDR] => 1 ) [2025-01-06 10:45: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-01-06 07:45:05' and `end` < '2025-01-06 10:45: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-01-06 10:45:28] Production.INFO: count ==4009 [2025-01-06 10:45:30] Production.ERROR: pbx CDR StartTime 2025-01-06 07:45:05 - End Time 2025-01-06 10:45:05 [2025-01-06 10:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187035', 'tblTempUsageDetail_20' ) start [2025-01-06 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187035', 'tblTempUsageDetail_20' ) end [2025-01-06 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187035', 'tblTempVendorCDR_20' ) start [2025-01-06 10:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187035', 'tblTempVendorCDR_20' ) end [2025-01-06 10:45:30] Production.INFO: ProcessCDR(1,14187035,1,1,2) [2025-01-06 10:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:45:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:45:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187035', 'tblTempUsageDetail_20' ) start [2025-01-06 10:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187035', 'tblTempUsageDetail_20' ) end [2025-01-06 10:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:45:35] Production.INFO: ==6185== Releasing lock... [2025-01-06 10:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:45:35] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 10:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:46:04 [end_date_ymd] => 2025-01-06 10:46:04 [RateCDR] => 1 ) [2025-01-06 10:46: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-01-06 07:46:04' and `end` < '2025-01-06 10:46: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-01-06 10:46:35] Production.INFO: count ==4027 [2025-01-06 10:46:37] Production.ERROR: pbx CDR StartTime 2025-01-06 07:46:04 - End Time 2025-01-06 10:46:04 [2025-01-06 10:46:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187040', 'tblTempUsageDetail_20' ) start [2025-01-06 10:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187040', 'tblTempUsageDetail_20' ) end [2025-01-06 10:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187040', 'tblTempVendorCDR_20' ) start [2025-01-06 10:46:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187040', 'tblTempVendorCDR_20' ) end [2025-01-06 10:46:37] Production.INFO: ProcessCDR(1,14187040,1,1,2) [2025-01-06 10:46:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:46:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187040', 'tblTempUsageDetail_20' ) start [2025-01-06 10:46:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187040', 'tblTempUsageDetail_20' ) end [2025-01-06 10:46:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:46:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:46:42] Production.INFO: ==6287== Releasing lock... [2025-01-06 10:46:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:46:42] Production.INFO: 58 MB #Memory Used# [2025-01-06 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:47:05 [end_date_ymd] => 2025-01-06 10:47:05 [RateCDR] => 1 ) [2025-01-06 10:47: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-01-06 07:47:05' and `end` < '2025-01-06 10:47: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-01-06 10:47:27] Production.INFO: count ==4059 [2025-01-06 10:47:29] Production.ERROR: pbx CDR StartTime 2025-01-06 07:47:05 - End Time 2025-01-06 10:47:05 [2025-01-06 10:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187045', 'tblTempUsageDetail_20' ) start [2025-01-06 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187045', 'tblTempUsageDetail_20' ) end [2025-01-06 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187045', 'tblTempVendorCDR_20' ) start [2025-01-06 10:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187045', 'tblTempVendorCDR_20' ) end [2025-01-06 10:47:29] Production.INFO: ProcessCDR(1,14187045,1,1,2) [2025-01-06 10:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187045', 'tblTempUsageDetail_20' ) start [2025-01-06 10:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187045', 'tblTempUsageDetail_20' ) end [2025-01-06 10:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:47:34] Production.INFO: ==6386== Releasing lock... [2025-01-06 10:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:47:34] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:48:05 [end_date_ymd] => 2025-01-06 10:48:05 [RateCDR] => 1 ) [2025-01-06 10:48: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-01-06 07:48:05' and `end` < '2025-01-06 10:48: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-01-06 10:48:23] Production.INFO: count ==4076 [2025-01-06 10:48:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:48:05 - End Time 2025-01-06 10:48:05 [2025-01-06 10:48:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187050', 'tblTempUsageDetail_20' ) start [2025-01-06 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187050', 'tblTempUsageDetail_20' ) end [2025-01-06 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187050', 'tblTempVendorCDR_20' ) start [2025-01-06 10:48:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187050', 'tblTempVendorCDR_20' ) end [2025-01-06 10:48:25] Production.INFO: ProcessCDR(1,14187050,1,1,2) [2025-01-06 10:48:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:48:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:48:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:48:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187050', 'tblTempUsageDetail_20' ) start [2025-01-06 10:48:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187050', 'tblTempUsageDetail_20' ) end [2025-01-06 10:48:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:48:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:48:29] Production.INFO: ==6490== Releasing lock... [2025-01-06 10:48:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:48:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-06 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:49:05 [end_date_ymd] => 2025-01-06 10:49:05 [RateCDR] => 1 ) [2025-01-06 10:49: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-01-06 07:49:05' and `end` < '2025-01-06 10:49: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-01-06 10:49:19] Production.INFO: count ==4089 [2025-01-06 10:49:21] Production.ERROR: pbx CDR StartTime 2025-01-06 07:49:05 - End Time 2025-01-06 10:49:05 [2025-01-06 10:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187055', 'tblTempUsageDetail_20' ) start [2025-01-06 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187055', 'tblTempUsageDetail_20' ) end [2025-01-06 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187055', 'tblTempVendorCDR_20' ) start [2025-01-06 10:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187055', 'tblTempVendorCDR_20' ) end [2025-01-06 10:49:21] Production.INFO: ProcessCDR(1,14187055,1,1,2) [2025-01-06 10:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187055', 'tblTempUsageDetail_20' ) start [2025-01-06 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187055', 'tblTempUsageDetail_20' ) end [2025-01-06 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:49:26] Production.INFO: ==6637== Releasing lock... [2025-01-06 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:49:26] Production.INFO: 58.5 MB #Memory Used# [2025-01-06 10:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:50:06 [end_date_ymd] => 2025-01-06 10:50:06 [RateCDR] => 1 ) [2025-01-06 10:50: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-01-06 07:50:06' and `end` < '2025-01-06 10:50: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-01-06 10:50:29] Production.INFO: count ==4117 [2025-01-06 10:50:31] Production.ERROR: pbx CDR StartTime 2025-01-06 07:50:06 - End Time 2025-01-06 10:50:06 [2025-01-06 10:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187061', 'tblTempUsageDetail_20' ) start [2025-01-06 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187061', 'tblTempUsageDetail_20' ) end [2025-01-06 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187061', 'tblTempVendorCDR_20' ) start [2025-01-06 10:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187061', 'tblTempVendorCDR_20' ) end [2025-01-06 10:50:31] Production.INFO: ProcessCDR(1,14187061,1,1,2) [2025-01-06 10:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187061', 'tblTempUsageDetail_20' ) start [2025-01-06 10:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187061', 'tblTempUsageDetail_20' ) end [2025-01-06 10:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:50:36] Production.INFO: ==6743== Releasing lock... [2025-01-06 10:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:50:36] Production.INFO: 58.75 MB #Memory Used# [2025-01-06 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:51:05 [end_date_ymd] => 2025-01-06 10:51:05 [RateCDR] => 1 ) [2025-01-06 10:51: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-01-06 07:51:05' and `end` < '2025-01-06 10:51: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-01-06 10:51:24] Production.INFO: count ==4223 [2025-01-06 10:51:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:51:05 - End Time 2025-01-06 10:51:05 [2025-01-06 10:51:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187066', 'tblTempUsageDetail_20' ) start [2025-01-06 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187066', 'tblTempUsageDetail_20' ) end [2025-01-06 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187066', 'tblTempVendorCDR_20' ) start [2025-01-06 10:51:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187066', 'tblTempVendorCDR_20' ) end [2025-01-06 10:51:26] Production.INFO: ProcessCDR(1,14187066,1,1,2) [2025-01-06 10:51:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187066', 'tblTempUsageDetail_20' ) start [2025-01-06 10:51:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187066', 'tblTempUsageDetail_20' ) end [2025-01-06 10:51:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:51:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:51:31] Production.INFO: ==6829== Releasing lock... [2025-01-06 10:51:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:51:31] Production.INFO: 59.5 MB #Memory Used# [2025-01-06 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:52:05 [end_date_ymd] => 2025-01-06 10:52:05 [RateCDR] => 1 ) [2025-01-06 10:52: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-01-06 07:52:05' and `end` < '2025-01-06 10:52: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-01-06 10:52:27] Production.INFO: count ==4237 [2025-01-06 10:52:29] Production.ERROR: pbx CDR StartTime 2025-01-06 07:52:05 - End Time 2025-01-06 10:52:05 [2025-01-06 10:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187071', 'tblTempUsageDetail_20' ) start [2025-01-06 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187071', 'tblTempUsageDetail_20' ) end [2025-01-06 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187071', 'tblTempVendorCDR_20' ) start [2025-01-06 10:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187071', 'tblTempVendorCDR_20' ) end [2025-01-06 10:52:29] Production.INFO: ProcessCDR(1,14187071,1,1,2) [2025-01-06 10:52:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:52:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:52:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:52:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187071', 'tblTempUsageDetail_20' ) start [2025-01-06 10:52:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187071', 'tblTempUsageDetail_20' ) end [2025-01-06 10:52:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:52:34] Production.INFO: ==6899== Releasing lock... [2025-01-06 10:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:52:34] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 10:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:53:04 [end_date_ymd] => 2025-01-06 10:53:04 [RateCDR] => 1 ) [2025-01-06 10:53: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-01-06 07:53:04' and `end` < '2025-01-06 10:53: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-01-06 10:53:23] Production.INFO: count ==4267 [2025-01-06 10:53:24] Production.ERROR: pbx CDR StartTime 2025-01-06 07:53:04 - End Time 2025-01-06 10:53:04 [2025-01-06 10:53:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187076', 'tblTempUsageDetail_20' ) start [2025-01-06 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187076', 'tblTempUsageDetail_20' ) end [2025-01-06 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187076', 'tblTempVendorCDR_20' ) start [2025-01-06 10:53:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187076', 'tblTempVendorCDR_20' ) end [2025-01-06 10:53:24] Production.INFO: ProcessCDR(1,14187076,1,1,2) [2025-01-06 10:53:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:53:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:53:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:53:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187076', 'tblTempUsageDetail_20' ) start [2025-01-06 10:53:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187076', 'tblTempUsageDetail_20' ) end [2025-01-06 10:53:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:53:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:53:28] Production.INFO: ==6968== Releasing lock... [2025-01-06 10:53:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:53:28] Production.INFO: 60 MB #Memory Used# [2025-01-06 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:54:05 [end_date_ymd] => 2025-01-06 10:54:05 [RateCDR] => 1 ) [2025-01-06 10:54: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-01-06 07:54:05' and `end` < '2025-01-06 10:54: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-01-06 10:54:30] Production.INFO: count ==4289 [2025-01-06 10:54:31] Production.ERROR: pbx CDR StartTime 2025-01-06 07:54:05 - End Time 2025-01-06 10:54:05 [2025-01-06 10:54:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:54:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187081', 'tblTempUsageDetail_20' ) start [2025-01-06 10:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187081', 'tblTempUsageDetail_20' ) end [2025-01-06 10:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187081', 'tblTempVendorCDR_20' ) start [2025-01-06 10:54:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187081', 'tblTempVendorCDR_20' ) end [2025-01-06 10:54:32] Production.INFO: ProcessCDR(1,14187081,1,1,2) [2025-01-06 10:54:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:54:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:54:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:54:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187081', 'tblTempUsageDetail_20' ) start [2025-01-06 10:54:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187081', 'tblTempUsageDetail_20' ) end [2025-01-06 10:54:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:54:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:54:36] Production.INFO: ==7041== Releasing lock... [2025-01-06 10:54:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:54:36] Production.INFO: 60 MB #Memory Used# [2025-01-06 10:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:55:06 [end_date_ymd] => 2025-01-06 10:55:06 [RateCDR] => 1 ) [2025-01-06 10:55: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-01-06 07:55:06' and `end` < '2025-01-06 10:55: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-01-06 10:55:32] Production.INFO: count ==4323 [2025-01-06 10:55:33] Production.ERROR: pbx CDR StartTime 2025-01-06 07:55:06 - End Time 2025-01-06 10:55:06 [2025-01-06 10:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187086', 'tblTempUsageDetail_20' ) start [2025-01-06 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187086', 'tblTempUsageDetail_20' ) end [2025-01-06 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187086', 'tblTempVendorCDR_20' ) start [2025-01-06 10:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187086', 'tblTempVendorCDR_20' ) end [2025-01-06 10:55:33] Production.INFO: ProcessCDR(1,14187086,1,1,2) [2025-01-06 10:55:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187086', 'tblTempUsageDetail_20' ) start [2025-01-06 10:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187086', 'tblTempUsageDetail_20' ) end [2025-01-06 10:55:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:55:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:55:38] Production.INFO: ==7115== Releasing lock... [2025-01-06 10:55:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:55:38] Production.INFO: 60.25 MB #Memory Used# [2025-01-06 10:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:56:05 [end_date_ymd] => 2025-01-06 10:56:05 [RateCDR] => 1 ) [2025-01-06 10:56: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-01-06 07:56:05' and `end` < '2025-01-06 10:56: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-01-06 10:56:24] Production.INFO: count ==4368 [2025-01-06 10:56:26] Production.ERROR: pbx CDR StartTime 2025-01-06 07:56:05 - End Time 2025-01-06 10:56:05 [2025-01-06 10:56:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187091', 'tblTempUsageDetail_20' ) start [2025-01-06 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187091', 'tblTempUsageDetail_20' ) end [2025-01-06 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187091', 'tblTempVendorCDR_20' ) start [2025-01-06 10:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187091', 'tblTempVendorCDR_20' ) end [2025-01-06 10:56:26] Production.INFO: ProcessCDR(1,14187091,1,1,2) [2025-01-06 10:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:56:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:56:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:56:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187091', 'tblTempUsageDetail_20' ) start [2025-01-06 10:56:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187091', 'tblTempUsageDetail_20' ) end [2025-01-06 10:56:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:56:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:56:31] Production.INFO: ==7188== Releasing lock... [2025-01-06 10:56:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:56:31] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:57:05 [end_date_ymd] => 2025-01-06 10:57:05 [RateCDR] => 1 ) [2025-01-06 10:57: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-01-06 07:57:05' and `end` < '2025-01-06 10:57: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-01-06 10:57:19] Production.INFO: count ==4369 [2025-01-06 10:57:21] Production.ERROR: pbx CDR StartTime 2025-01-06 07:57:05 - End Time 2025-01-06 10:57:05 [2025-01-06 10:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187096', 'tblTempUsageDetail_20' ) start [2025-01-06 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187096', 'tblTempUsageDetail_20' ) end [2025-01-06 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187096', 'tblTempVendorCDR_20' ) start [2025-01-06 10:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187096', 'tblTempVendorCDR_20' ) end [2025-01-06 10:57:21] Production.INFO: ProcessCDR(1,14187096,1,1,2) [2025-01-06 10:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187096', 'tblTempUsageDetail_20' ) start [2025-01-06 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187096', 'tblTempUsageDetail_20' ) end [2025-01-06 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:57:26] Production.INFO: ==7259== Releasing lock... [2025-01-06 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:57:26] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:58:05 [end_date_ymd] => 2025-01-06 10:58:05 [RateCDR] => 1 ) [2025-01-06 10:58: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-01-06 07:58:05' and `end` < '2025-01-06 10:58: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-01-06 10:58:18] Production.INFO: count ==4409 [2025-01-06 10:58:20] Production.ERROR: pbx CDR StartTime 2025-01-06 07:58:05 - End Time 2025-01-06 10:58:05 [2025-01-06 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187101', 'tblTempUsageDetail_20' ) start [2025-01-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187101', 'tblTempUsageDetail_20' ) end [2025-01-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187101', 'tblTempVendorCDR_20' ) start [2025-01-06 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187101', 'tblTempVendorCDR_20' ) end [2025-01-06 10:58:20] Production.INFO: ProcessCDR(1,14187101,1,1,2) [2025-01-06 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187101', 'tblTempUsageDetail_20' ) start [2025-01-06 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187101', 'tblTempUsageDetail_20' ) end [2025-01-06 10:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:58:25] Production.INFO: ==7328== Releasing lock... [2025-01-06 10:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:58:25] Production.INFO: 61 MB #Memory Used# [2025-01-06 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 07:59:05 [end_date_ymd] => 2025-01-06 10:59:05 [RateCDR] => 1 ) [2025-01-06 10:59: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-01-06 07:59:05' and `end` < '2025-01-06 10:59: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-01-06 10:59:23] Production.INFO: count ==4434 [2025-01-06 10:59:25] Production.ERROR: pbx CDR StartTime 2025-01-06 07:59:05 - End Time 2025-01-06 10:59:05 [2025-01-06 10:59:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187106', 'tblTempUsageDetail_20' ) start [2025-01-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187106', 'tblTempUsageDetail_20' ) end [2025-01-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187106', 'tblTempVendorCDR_20' ) start [2025-01-06 10:59:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187106', 'tblTempVendorCDR_20' ) end [2025-01-06 10:59:25] Production.INFO: ProcessCDR(1,14187106,1,1,2) [2025-01-06 10:59:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:59:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 10:59:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:59:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187106', 'tblTempUsageDetail_20' ) start [2025-01-06 10:59:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187106', 'tblTempUsageDetail_20' ) end [2025-01-06 10:59:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 10:59:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 10:59:29] Production.INFO: ==7397== Releasing lock... [2025-01-06 10:59:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 10:59:29] Production.INFO: 61.25 MB #Memory Used# [2025-01-06 11:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:00:05 [end_date_ymd] => 2025-01-06 11:00:05 [RateCDR] => 1 ) [2025-01-06 11: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-01-06 08:00:05' and `end` < '2025-01-06 11: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-01-06 11:00:27] Production.INFO: count ==4437 [2025-01-06 11:00:29] Production.ERROR: pbx CDR StartTime 2025-01-06 08:00:05 - End Time 2025-01-06 11:00:05 [2025-01-06 11:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187112', 'tblTempUsageDetail_20' ) start [2025-01-06 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187112', 'tblTempUsageDetail_20' ) end [2025-01-06 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187112', 'tblTempVendorCDR_20' ) start [2025-01-06 11:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187112', 'tblTempVendorCDR_20' ) end [2025-01-06 11:00:29] Production.INFO: ProcessCDR(1,14187112,1,1,2) [2025-01-06 11:00:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187112', 'tblTempUsageDetail_20' ) start [2025-01-06 11:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187112', 'tblTempUsageDetail_20' ) end [2025-01-06 11:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:00:34] Production.INFO: ==7469== Releasing lock... [2025-01-06 11:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:00:34] Production.INFO: 61.25 MB #Memory Used# [2025-01-06 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:01:05 [end_date_ymd] => 2025-01-06 11:01:05 [RateCDR] => 1 ) [2025-01-06 11:01: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-01-06 08:01:05' and `end` < '2025-01-06 11:01: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-01-06 11:01:28] Production.INFO: count ==4560 [2025-01-06 11:01:30] Production.ERROR: pbx CDR StartTime 2025-01-06 08:01:05 - End Time 2025-01-06 11:01:05 [2025-01-06 11:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187117', 'tblTempUsageDetail_20' ) start [2025-01-06 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187117', 'tblTempUsageDetail_20' ) end [2025-01-06 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187117', 'tblTempVendorCDR_20' ) start [2025-01-06 11:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187117', 'tblTempVendorCDR_20' ) end [2025-01-06 11:01:30] Production.INFO: ProcessCDR(1,14187117,1,1,2) [2025-01-06 11:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187117', 'tblTempUsageDetail_20' ) start [2025-01-06 11:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187117', 'tblTempUsageDetail_20' ) end [2025-01-06 11:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:01:34] Production.INFO: ==7615== Releasing lock... [2025-01-06 11:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:01:34] Production.INFO: 62 MB #Memory Used# [2025-01-06 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:02:05 [end_date_ymd] => 2025-01-06 11:02:05 [RateCDR] => 1 ) [2025-01-06 11:02: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-01-06 08:02:05' and `end` < '2025-01-06 11:02: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-01-06 11:02:32] Production.INFO: count ==4582 [2025-01-06 11:02:34] Production.ERROR: pbx CDR StartTime 2025-01-06 08:02:05 - End Time 2025-01-06 11:02:05 [2025-01-06 11:02:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187122', 'tblTempUsageDetail_20' ) start [2025-01-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187122', 'tblTempUsageDetail_20' ) end [2025-01-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187122', 'tblTempVendorCDR_20' ) start [2025-01-06 11:02:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187122', 'tblTempVendorCDR_20' ) end [2025-01-06 11:02:34] Production.INFO: ProcessCDR(1,14187122,1,1,2) [2025-01-06 11:02:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:02:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:02:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:02:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187122', 'tblTempUsageDetail_20' ) start [2025-01-06 11:02:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187122', 'tblTempUsageDetail_20' ) end [2025-01-06 11:02:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:02:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:02:39] Production.INFO: ==7715== Releasing lock... [2025-01-06 11:02:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:02:39] Production.INFO: 62.25 MB #Memory Used# [2025-01-06 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:03:05 [end_date_ymd] => 2025-01-06 11:03:05 [RateCDR] => 1 ) [2025-01-06 11:03: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-01-06 08:03:05' and `end` < '2025-01-06 11:03: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-01-06 11:03:33] Production.INFO: count ==4634 [2025-01-06 11:03:35] Production.ERROR: pbx CDR StartTime 2025-01-06 08:03:05 - End Time 2025-01-06 11:03:05 [2025-01-06 11:03:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187127', 'tblTempUsageDetail_20' ) start [2025-01-06 11:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187127', 'tblTempUsageDetail_20' ) end [2025-01-06 11:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187127', 'tblTempVendorCDR_20' ) start [2025-01-06 11:03:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187127', 'tblTempVendorCDR_20' ) end [2025-01-06 11:03:35] Production.INFO: ProcessCDR(1,14187127,1,1,2) [2025-01-06 11:03:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:03:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:03:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:03:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187127', 'tblTempUsageDetail_20' ) start [2025-01-06 11:03:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187127', 'tblTempUsageDetail_20' ) end [2025-01-06 11:03:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:03:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:03:40] Production.INFO: ==7787== Releasing lock... [2025-01-06 11:03:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:03:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:04:05 [end_date_ymd] => 2025-01-06 11:04:05 [RateCDR] => 1 ) [2025-01-06 11:04: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-01-06 08:04:05' and `end` < '2025-01-06 11:04: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-01-06 11:04:33] Production.INFO: count ==4641 [2025-01-06 11:04:35] Production.ERROR: pbx CDR StartTime 2025-01-06 08:04:05 - End Time 2025-01-06 11:04:05 [2025-01-06 11:04:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187132', 'tblTempUsageDetail_20' ) start [2025-01-06 11:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187132', 'tblTempUsageDetail_20' ) end [2025-01-06 11:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187132', 'tblTempVendorCDR_20' ) start [2025-01-06 11:04:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187132', 'tblTempVendorCDR_20' ) end [2025-01-06 11:04:35] Production.INFO: ProcessCDR(1,14187132,1,1,2) [2025-01-06 11:04:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:04:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:04:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:04:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187132', 'tblTempUsageDetail_20' ) start [2025-01-06 11:04:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187132', 'tblTempUsageDetail_20' ) end [2025-01-06 11:04:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:04:40] Production.INFO: ==7858== Releasing lock... [2025-01-06 11:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:04:40] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:05:05 [end_date_ymd] => 2025-01-06 11:05:05 [RateCDR] => 1 ) [2025-01-06 11:05: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-01-06 08:05:05' and `end` < '2025-01-06 11:05: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-01-06 11:05:34] Production.INFO: count ==4653 [2025-01-06 11:05:36] Production.ERROR: pbx CDR StartTime 2025-01-06 08:05:05 - End Time 2025-01-06 11:05:05 [2025-01-06 11:05:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187137', 'tblTempUsageDetail_20' ) start [2025-01-06 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187137', 'tblTempUsageDetail_20' ) end [2025-01-06 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187137', 'tblTempVendorCDR_20' ) start [2025-01-06 11:05:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187137', 'tblTempVendorCDR_20' ) end [2025-01-06 11:05:36] Production.INFO: ProcessCDR(1,14187137,1,1,2) [2025-01-06 11:05:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:05:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:05:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:05:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187137', 'tblTempUsageDetail_20' ) start [2025-01-06 11:05:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187137', 'tblTempUsageDetail_20' ) end [2025-01-06 11:05:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:05:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:05:41] Production.INFO: ==8046== Releasing lock... [2025-01-06 11:05:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:05:41] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:06:05 [end_date_ymd] => 2025-01-06 11:06:05 [RateCDR] => 1 ) [2025-01-06 11:06: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-01-06 08:06:05' and `end` < '2025-01-06 11:06: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-01-06 11:06:31] Production.INFO: count ==4692 [2025-01-06 11:06:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:06:05 - End Time 2025-01-06 11:06:05 [2025-01-06 11:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187142', 'tblTempUsageDetail_20' ) start [2025-01-06 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187142', 'tblTempUsageDetail_20' ) end [2025-01-06 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187142', 'tblTempVendorCDR_20' ) start [2025-01-06 11:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187142', 'tblTempVendorCDR_20' ) end [2025-01-06 11:06:33] Production.INFO: ProcessCDR(1,14187142,1,1,2) [2025-01-06 11:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:06:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187142', 'tblTempUsageDetail_20' ) start [2025-01-06 11:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187142', 'tblTempUsageDetail_20' ) end [2025-01-06 11:06:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:06:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:06:38] Production.INFO: ==8116== Releasing lock... [2025-01-06 11:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:06:38] Production.INFO: 63 MB #Memory Used# [2025-01-06 11:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:07:05 [end_date_ymd] => 2025-01-06 11:07:05 [RateCDR] => 1 ) [2025-01-06 11:07: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-01-06 08:07:05' and `end` < '2025-01-06 11:07: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-01-06 11:07:29] Production.INFO: count ==4697 [2025-01-06 11:07:31] Production.ERROR: pbx CDR StartTime 2025-01-06 08:07:05 - End Time 2025-01-06 11:07:05 [2025-01-06 11:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187147', 'tblTempUsageDetail_20' ) start [2025-01-06 11:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187147', 'tblTempUsageDetail_20' ) end [2025-01-06 11:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187147', 'tblTempVendorCDR_20' ) start [2025-01-06 11:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187147', 'tblTempVendorCDR_20' ) end [2025-01-06 11:07:31] Production.INFO: ProcessCDR(1,14187147,1,1,2) [2025-01-06 11:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:07:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:07:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:07:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187147', 'tblTempUsageDetail_20' ) start [2025-01-06 11:07:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187147', 'tblTempUsageDetail_20' ) end [2025-01-06 11:07:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:07:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:07:36] Production.INFO: ==8188== Releasing lock... [2025-01-06 11:07:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:07:36] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:08:05 [end_date_ymd] => 2025-01-06 11:08:05 [RateCDR] => 1 ) [2025-01-06 11:08: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-01-06 08:08:05' and `end` < '2025-01-06 11:08: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-01-06 11:08:30] Production.INFO: count ==4716 [2025-01-06 11:08:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:08:05 - End Time 2025-01-06 11:08:05 [2025-01-06 11:08:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187152', 'tblTempUsageDetail_20' ) start [2025-01-06 11:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187152', 'tblTempUsageDetail_20' ) end [2025-01-06 11:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187152', 'tblTempVendorCDR_20' ) start [2025-01-06 11:08:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187152', 'tblTempVendorCDR_20' ) end [2025-01-06 11:08:32] Production.INFO: ProcessCDR(1,14187152,1,1,2) [2025-01-06 11:08:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:08:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:08:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:08:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187152', 'tblTempUsageDetail_20' ) start [2025-01-06 11:08:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187152', 'tblTempUsageDetail_20' ) end [2025-01-06 11:08:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:08:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:08:37] Production.INFO: ==8338== Releasing lock... [2025-01-06 11:08:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:08:37] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:09:05 [end_date_ymd] => 2025-01-06 11:09:05 [RateCDR] => 1 ) [2025-01-06 11:09: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-01-06 08:09:05' and `end` < '2025-01-06 11:09: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-01-06 11:09:30] Production.INFO: count ==4742 [2025-01-06 11:09:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:09:05 - End Time 2025-01-06 11:09:05 [2025-01-06 11:09:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187157', 'tblTempUsageDetail_20' ) start [2025-01-06 11:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187157', 'tblTempUsageDetail_20' ) end [2025-01-06 11:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187157', 'tblTempVendorCDR_20' ) start [2025-01-06 11:09:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187157', 'tblTempVendorCDR_20' ) end [2025-01-06 11:09:32] Production.INFO: ProcessCDR(1,14187157,1,1,2) [2025-01-06 11:09:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:09:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:09:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:09:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187157', 'tblTempUsageDetail_20' ) start [2025-01-06 11:09:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187157', 'tblTempUsageDetail_20' ) end [2025-01-06 11:09:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:09:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:09:37] Production.INFO: ==8408== Releasing lock... [2025-01-06 11:09:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:09:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 11:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:10:05 [end_date_ymd] => 2025-01-06 11:10:05 [RateCDR] => 1 ) [2025-01-06 11:10: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-01-06 08:10:05' and `end` < '2025-01-06 11:10: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-01-06 11:10:29] Production.INFO: count ==4747 [2025-01-06 11:10:31] Production.ERROR: pbx CDR StartTime 2025-01-06 08:10:05 - End Time 2025-01-06 11:10:05 [2025-01-06 11:10:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187163', 'tblTempUsageDetail_20' ) start [2025-01-06 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187163', 'tblTempUsageDetail_20' ) end [2025-01-06 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187163', 'tblTempVendorCDR_20' ) start [2025-01-06 11:10:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187163', 'tblTempVendorCDR_20' ) end [2025-01-06 11:10:31] Production.INFO: ProcessCDR(1,14187163,1,1,2) [2025-01-06 11:10:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:10:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:10:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:10:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187163', 'tblTempUsageDetail_20' ) start [2025-01-06 11:10:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187163', 'tblTempUsageDetail_20' ) end [2025-01-06 11:10:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:10:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:10:36] Production.INFO: ==8480== Releasing lock... [2025-01-06 11:10:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:10:36] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 11:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:11:05 [end_date_ymd] => 2025-01-06 11:11:05 [RateCDR] => 1 ) [2025-01-06 11:11: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-01-06 08:11:05' and `end` < '2025-01-06 11:11: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-01-06 11:11:27] Production.INFO: count ==4807 [2025-01-06 11:11:29] Production.ERROR: pbx CDR StartTime 2025-01-06 08:11:05 - End Time 2025-01-06 11:11:05 [2025-01-06 11:11:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187168', 'tblTempUsageDetail_20' ) start [2025-01-06 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187168', 'tblTempUsageDetail_20' ) end [2025-01-06 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187168', 'tblTempVendorCDR_20' ) start [2025-01-06 11:11:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187168', 'tblTempVendorCDR_20' ) end [2025-01-06 11:11:29] Production.INFO: ProcessCDR(1,14187168,1,1,2) [2025-01-06 11:11:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:11:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:11:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:11:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187168', 'tblTempUsageDetail_20' ) start [2025-01-06 11:11:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187168', 'tblTempUsageDetail_20' ) end [2025-01-06 11:11:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:11:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:11:33] Production.INFO: ==8554== Releasing lock... [2025-01-06 11:11:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:11:33] Production.INFO: 64 MB #Memory Used# [2025-01-06 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:12:05 [end_date_ymd] => 2025-01-06 11:12:05 [RateCDR] => 1 ) [2025-01-06 11:12: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-01-06 08:12:05' and `end` < '2025-01-06 11:12: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-01-06 11:12:35] Production.INFO: count ==4840 [2025-01-06 11:12:37] Production.ERROR: pbx CDR StartTime 2025-01-06 08:12:05 - End Time 2025-01-06 11:12:05 [2025-01-06 11:12:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187173', 'tblTempUsageDetail_20' ) start [2025-01-06 11:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187173', 'tblTempUsageDetail_20' ) end [2025-01-06 11:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187173', 'tblTempVendorCDR_20' ) start [2025-01-06 11:12:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187173', 'tblTempVendorCDR_20' ) end [2025-01-06 11:12:37] Production.INFO: ProcessCDR(1,14187173,1,1,2) [2025-01-06 11:12:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:12:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:12:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:12:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187173', 'tblTempUsageDetail_20' ) start [2025-01-06 11:12:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187173', 'tblTempUsageDetail_20' ) end [2025-01-06 11:12:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:12:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:12:42] Production.INFO: ==8704== Releasing lock... [2025-01-06 11:12:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:12:42] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 11:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:13:05 [end_date_ymd] => 2025-01-06 11:13:05 [RateCDR] => 1 ) [2025-01-06 11:13: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-01-06 08:13:05' and `end` < '2025-01-06 11:13: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-01-06 11:13:26] Production.INFO: count ==4864 [2025-01-06 11:13:28] Production.ERROR: pbx CDR StartTime 2025-01-06 08:13:05 - End Time 2025-01-06 11:13:05 [2025-01-06 11:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187178', 'tblTempUsageDetail_20' ) start [2025-01-06 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187178', 'tblTempUsageDetail_20' ) end [2025-01-06 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187178', 'tblTempVendorCDR_20' ) start [2025-01-06 11:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187178', 'tblTempVendorCDR_20' ) end [2025-01-06 11:13:28] Production.INFO: ProcessCDR(1,14187178,1,1,2) [2025-01-06 11:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:13:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:13:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:13:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187178', 'tblTempUsageDetail_20' ) start [2025-01-06 11:13:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187178', 'tblTempUsageDetail_20' ) end [2025-01-06 11:13:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:13:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:13:33] Production.INFO: ==8774== Releasing lock... [2025-01-06 11:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:13:33] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:14:05 [end_date_ymd] => 2025-01-06 11:14:05 [RateCDR] => 1 ) [2025-01-06 11:14: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-01-06 08:14:05' and `end` < '2025-01-06 11:14: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-01-06 11:14:23] Production.INFO: count ==4868 [2025-01-06 11:14:25] Production.ERROR: pbx CDR StartTime 2025-01-06 08:14:05 - End Time 2025-01-06 11:14:05 [2025-01-06 11:14:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187183', 'tblTempUsageDetail_20' ) start [2025-01-06 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187183', 'tblTempUsageDetail_20' ) end [2025-01-06 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187183', 'tblTempVendorCDR_20' ) start [2025-01-06 11:14:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187183', 'tblTempVendorCDR_20' ) end [2025-01-06 11:14:25] Production.INFO: ProcessCDR(1,14187183,1,1,2) [2025-01-06 11:14:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:14:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187183', 'tblTempUsageDetail_20' ) start [2025-01-06 11:14:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187183', 'tblTempUsageDetail_20' ) end [2025-01-06 11:14:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:14:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:14:30] Production.INFO: ==8846== Releasing lock... [2025-01-06 11:14:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:14:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 11:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:15:05 [end_date_ymd] => 2025-01-06 11:15:05 [RateCDR] => 1 ) [2025-01-06 11:15: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-01-06 08:15:05' and `end` < '2025-01-06 11:15: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-01-06 11:15:39] Production.INFO: count ==4877 [2025-01-06 11:15:42] Production.ERROR: pbx CDR StartTime 2025-01-06 08:15:05 - End Time 2025-01-06 11:15:05 [2025-01-06 11:15:42] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:15:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187188', 'tblTempUsageDetail_20' ) start [2025-01-06 11:15:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187188', 'tblTempUsageDetail_20' ) end [2025-01-06 11:15:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187188', 'tblTempVendorCDR_20' ) start [2025-01-06 11:15:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187188', 'tblTempVendorCDR_20' ) end [2025-01-06 11:15:42] Production.INFO: ProcessCDR(1,14187188,1,1,2) [2025-01-06 11:15:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:15:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:15:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:15:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:15:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187188', 'tblTempUsageDetail_20' ) start [2025-01-06 11:15:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187188', 'tblTempUsageDetail_20' ) end [2025-01-06 11:15:46] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:15:46] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:15:46] Production.INFO: ==9000== Releasing lock... [2025-01-06 11:15:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:15:46] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 11:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:16:06 [end_date_ymd] => 2025-01-06 11:16:06 [RateCDR] => 1 ) [2025-01-06 11:16: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-01-06 08:16:06' and `end` < '2025-01-06 11:16: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-01-06 11:16:37] Production.INFO: count ==4891 [2025-01-06 11:16:39] Production.ERROR: pbx CDR StartTime 2025-01-06 08:16:06 - End Time 2025-01-06 11:16:06 [2025-01-06 11:16:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:16:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187193', 'tblTempUsageDetail_20' ) start [2025-01-06 11:16:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187193', 'tblTempUsageDetail_20' ) end [2025-01-06 11:16:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187193', 'tblTempVendorCDR_20' ) start [2025-01-06 11:16:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187193', 'tblTempVendorCDR_20' ) end [2025-01-06 11:16:39] Production.INFO: ProcessCDR(1,14187193,1,1,2) [2025-01-06 11:16:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:16:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:16:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:16:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:16:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187193', 'tblTempUsageDetail_20' ) start [2025-01-06 11:16:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187193', 'tblTempUsageDetail_20' ) end [2025-01-06 11:16:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:16:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:16:44] Production.INFO: ==9076== Releasing lock... [2025-01-06 11:16:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:16:44] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:17:04 [end_date_ymd] => 2025-01-06 11:17:04 [RateCDR] => 1 ) [2025-01-06 11:17: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-01-06 08:17:04' and `end` < '2025-01-06 11:17: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-01-06 11:17:31] Production.INFO: count ==4934 [2025-01-06 11:17:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:17:04 - End Time 2025-01-06 11:17:04 [2025-01-06 11:17:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187198', 'tblTempUsageDetail_20' ) start [2025-01-06 11:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187198', 'tblTempUsageDetail_20' ) end [2025-01-06 11:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187198', 'tblTempVendorCDR_20' ) start [2025-01-06 11:17:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187198', 'tblTempVendorCDR_20' ) end [2025-01-06 11:17:33] Production.INFO: ProcessCDR(1,14187198,1,1,2) [2025-01-06 11:17:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:17:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:17:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:17:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187198', 'tblTempUsageDetail_20' ) start [2025-01-06 11:17:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187198', 'tblTempUsageDetail_20' ) end [2025-01-06 11:17:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:17:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:17:38] Production.INFO: ==9148== Releasing lock... [2025-01-06 11:17:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:17:38] Production.INFO: 65 MB #Memory Used# [2025-01-06 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:18:05 [end_date_ymd] => 2025-01-06 11:18:05 [RateCDR] => 1 ) [2025-01-06 11:18: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-01-06 08:18:05' and `end` < '2025-01-06 11:18: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-01-06 11:18:37] Production.INFO: count ==4957 [2025-01-06 11:18:40] Production.ERROR: pbx CDR StartTime 2025-01-06 08:18:05 - End Time 2025-01-06 11:18:05 [2025-01-06 11:18:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187203', 'tblTempUsageDetail_20' ) start [2025-01-06 11:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187203', 'tblTempUsageDetail_20' ) end [2025-01-06 11:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187203', 'tblTempVendorCDR_20' ) start [2025-01-06 11:18:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187203', 'tblTempVendorCDR_20' ) end [2025-01-06 11:18:40] Production.INFO: ProcessCDR(1,14187203,1,1,2) [2025-01-06 11:18:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:18:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:18:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:18:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:18:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187203', 'tblTempUsageDetail_20' ) start [2025-01-06 11:18:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187203', 'tblTempUsageDetail_20' ) end [2025-01-06 11:18:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:18:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:18:45] Production.INFO: ==9220== Releasing lock... [2025-01-06 11:18:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:18:45] Production.INFO: 65 MB #Memory Used# [2025-01-06 11:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:19:04 [end_date_ymd] => 2025-01-06 11:19:04 [RateCDR] => 1 ) [2025-01-06 11:19: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-01-06 08:19:04' and `end` < '2025-01-06 11:19: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-01-06 11:19:30] Production.INFO: count ==4966 [2025-01-06 11:19:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:19:04 - End Time 2025-01-06 11:19:04 [2025-01-06 11:19:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187208', 'tblTempUsageDetail_20' ) start [2025-01-06 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187208', 'tblTempUsageDetail_20' ) end [2025-01-06 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187208', 'tblTempVendorCDR_20' ) start [2025-01-06 11:19:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187208', 'tblTempVendorCDR_20' ) end [2025-01-06 11:19:32] Production.INFO: ProcessCDR(1,14187208,1,1,2) [2025-01-06 11:19:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:19:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:19:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:19:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187208', 'tblTempUsageDetail_20' ) start [2025-01-06 11:19:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187208', 'tblTempUsageDetail_20' ) end [2025-01-06 11:19:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:19:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:19:37] Production.INFO: ==9290== Releasing lock... [2025-01-06 11:19:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:19:37] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:20:06 [end_date_ymd] => 2025-01-06 11:20:06 [RateCDR] => 1 ) [2025-01-06 11:20: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-01-06 08:20:06' and `end` < '2025-01-06 11:20: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-01-06 11:20:25] Production.INFO: count ==5003 [2025-01-06 11:20:27] Production.ERROR: pbx CDR StartTime 2025-01-06 08:20:06 - End Time 2025-01-06 11:20:06 [2025-01-06 11:20:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187214', 'tblTempUsageDetail_20' ) start [2025-01-06 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187214', 'tblTempUsageDetail_20' ) end [2025-01-06 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187214', 'tblTempVendorCDR_20' ) start [2025-01-06 11:20:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187214', 'tblTempVendorCDR_20' ) end [2025-01-06 11:20:27] Production.INFO: ProcessCDR(1,14187214,1,1,2) [2025-01-06 11:20:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:20:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:20:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:20:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187214', 'tblTempUsageDetail_20' ) start [2025-01-06 11:20:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187214', 'tblTempUsageDetail_20' ) end [2025-01-06 11:20:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:20:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:20:32] Production.INFO: ==9403== Releasing lock... [2025-01-06 11:20:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:20:32] Production.INFO: 65.5 MB #Memory Used# [2025-01-06 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:21:05 [end_date_ymd] => 2025-01-06 11:21:05 [RateCDR] => 1 ) [2025-01-06 11:21: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-01-06 08:21:05' and `end` < '2025-01-06 11:21: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-01-06 11:21:27] Production.INFO: count ==5095 [2025-01-06 11:21:29] Production.ERROR: pbx CDR StartTime 2025-01-06 08:21:05 - End Time 2025-01-06 11:21:05 [2025-01-06 11:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187219', 'tblTempUsageDetail_20' ) start [2025-01-06 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187219', 'tblTempUsageDetail_20' ) end [2025-01-06 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187219', 'tblTempVendorCDR_20' ) start [2025-01-06 11:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187219', 'tblTempVendorCDR_20' ) end [2025-01-06 11:21:29] Production.INFO: ProcessCDR(1,14187219,1,1,2) [2025-01-06 11:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:21:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:21:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187219', 'tblTempUsageDetail_20' ) start [2025-01-06 11:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187219', 'tblTempUsageDetail_20' ) end [2025-01-06 11:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:21:34] Production.INFO: ==9474== Releasing lock... [2025-01-06 11:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:21:34] Production.INFO: 66 MB #Memory Used# [2025-01-06 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:22:06 [end_date_ymd] => 2025-01-06 11:22:06 [RateCDR] => 1 ) [2025-01-06 11:22: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-01-06 08:22:06' and `end` < '2025-01-06 11:22: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-01-06 11:22:24] Production.INFO: count ==5105 [2025-01-06 11:22:26] Production.ERROR: pbx CDR StartTime 2025-01-06 08:22:06 - End Time 2025-01-06 11:22:06 [2025-01-06 11:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187224', 'tblTempUsageDetail_20' ) start [2025-01-06 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187224', 'tblTempUsageDetail_20' ) end [2025-01-06 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187224', 'tblTempVendorCDR_20' ) start [2025-01-06 11:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187224', 'tblTempVendorCDR_20' ) end [2025-01-06 11:22:26] Production.INFO: ProcessCDR(1,14187224,1,1,2) [2025-01-06 11:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187224', 'tblTempUsageDetail_20' ) start [2025-01-06 11:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187224', 'tblTempUsageDetail_20' ) end [2025-01-06 11:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:22:31] Production.INFO: ==9549== Releasing lock... [2025-01-06 11:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:22:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:23:05 [end_date_ymd] => 2025-01-06 11:23:05 [RateCDR] => 1 ) [2025-01-06 11:23: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-01-06 08:23:05' and `end` < '2025-01-06 11:23: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-01-06 11:23:21] Production.INFO: count ==5098 [2025-01-06 11:23:23] Production.ERROR: pbx CDR StartTime 2025-01-06 08:23:05 - End Time 2025-01-06 11:23:05 [2025-01-06 11:23:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187229', 'tblTempUsageDetail_20' ) start [2025-01-06 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187229', 'tblTempUsageDetail_20' ) end [2025-01-06 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187229', 'tblTempVendorCDR_20' ) start [2025-01-06 11:23:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187229', 'tblTempVendorCDR_20' ) end [2025-01-06 11:23:23] Production.INFO: ProcessCDR(1,14187229,1,1,2) [2025-01-06 11:23:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:23:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:23:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:23:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187229', 'tblTempUsageDetail_20' ) start [2025-01-06 11:23:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187229', 'tblTempUsageDetail_20' ) end [2025-01-06 11:23:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:23:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:23:28] Production.INFO: ==9659== Releasing lock... [2025-01-06 11:23:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:23:28] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:24:05 [end_date_ymd] => 2025-01-06 11:24:05 [RateCDR] => 1 ) [2025-01-06 11:24: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-01-06 08:24:05' and `end` < '2025-01-06 11:24: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-01-06 11:24:30] Production.INFO: count ==5137 [2025-01-06 11:24:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:24:05 - End Time 2025-01-06 11:24:05 [2025-01-06 11:24:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187234', 'tblTempUsageDetail_20' ) start [2025-01-06 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187234', 'tblTempUsageDetail_20' ) end [2025-01-06 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187234', 'tblTempVendorCDR_20' ) start [2025-01-06 11:24:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187234', 'tblTempVendorCDR_20' ) end [2025-01-06 11:24:32] Production.INFO: ProcessCDR(1,14187234,1,1,2) [2025-01-06 11:24:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:24:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:24:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:24:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187234', 'tblTempUsageDetail_20' ) start [2025-01-06 11:24:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187234', 'tblTempUsageDetail_20' ) end [2025-01-06 11:24:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:24:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:24:37] Production.INFO: ==9728== Releasing lock... [2025-01-06 11:24:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:24:37] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:25:05 [end_date_ymd] => 2025-01-06 11:25:05 [RateCDR] => 1 ) [2025-01-06 11: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-01-06 08:25:05' and `end` < '2025-01-06 11: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-01-06 11:25:27] Production.INFO: count ==5138 [2025-01-06 11:25:29] Production.ERROR: pbx CDR StartTime 2025-01-06 08:25:05 - End Time 2025-01-06 11:25:05 [2025-01-06 11:25:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187239', 'tblTempUsageDetail_20' ) start [2025-01-06 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187239', 'tblTempUsageDetail_20' ) end [2025-01-06 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187239', 'tblTempVendorCDR_20' ) start [2025-01-06 11:25:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187239', 'tblTempVendorCDR_20' ) end [2025-01-06 11:25:29] Production.INFO: ProcessCDR(1,14187239,1,1,2) [2025-01-06 11:25:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:25:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:25:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:25:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187239', 'tblTempUsageDetail_20' ) start [2025-01-06 11:25:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187239', 'tblTempUsageDetail_20' ) end [2025-01-06 11:25:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:25:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:25:32] Production.INFO: ==9798== Releasing lock... [2025-01-06 11:25:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:25:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:26:05 [end_date_ymd] => 2025-01-06 11:26:05 [RateCDR] => 1 ) [2025-01-06 11:26: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-01-06 08:26:05' and `end` < '2025-01-06 11:26: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-01-06 11:26:34] Production.INFO: count ==5150 [2025-01-06 11:26:36] Production.ERROR: pbx CDR StartTime 2025-01-06 08:26:05 - End Time 2025-01-06 11:26:05 [2025-01-06 11:26:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187244', 'tblTempUsageDetail_20' ) start [2025-01-06 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187244', 'tblTempUsageDetail_20' ) end [2025-01-06 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187244', 'tblTempVendorCDR_20' ) start [2025-01-06 11:26:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187244', 'tblTempVendorCDR_20' ) end [2025-01-06 11:26:36] Production.INFO: ProcessCDR(1,14187244,1,1,2) [2025-01-06 11:26:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:26:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:26:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:26:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187244', 'tblTempUsageDetail_20' ) start [2025-01-06 11:26:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187244', 'tblTempUsageDetail_20' ) end [2025-01-06 11:26:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:26:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:26:41] Production.INFO: ==9869== Releasing lock... [2025-01-06 11:26:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:26:41] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:27:05 [end_date_ymd] => 2025-01-06 11:27:05 [RateCDR] => 1 ) [2025-01-06 11:27: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-01-06 08:27:05' and `end` < '2025-01-06 11:27: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-01-06 11:27:22] Production.INFO: count ==5164 [2025-01-06 11:27:24] Production.ERROR: pbx CDR StartTime 2025-01-06 08:27:05 - End Time 2025-01-06 11:27:05 [2025-01-06 11:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187249', 'tblTempUsageDetail_20' ) start [2025-01-06 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187249', 'tblTempUsageDetail_20' ) end [2025-01-06 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187249', 'tblTempVendorCDR_20' ) start [2025-01-06 11:27:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187249', 'tblTempVendorCDR_20' ) end [2025-01-06 11:27:25] Production.INFO: ProcessCDR(1,14187249,1,1,2) [2025-01-06 11:27:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:27:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:27:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187249', 'tblTempUsageDetail_20' ) start [2025-01-06 11:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187249', 'tblTempUsageDetail_20' ) end [2025-01-06 11:27:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:27:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:27:28] Production.INFO: ==9943== Releasing lock... [2025-01-06 11:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:27:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 11:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:28:04 [end_date_ymd] => 2025-01-06 11:28:04 [RateCDR] => 1 ) [2025-01-06 11:28: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-01-06 08:28:04' and `end` < '2025-01-06 11:28: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-01-06 11:28:19] Production.INFO: count ==5165 [2025-01-06 11:28:22] Production.ERROR: pbx CDR StartTime 2025-01-06 08:28:04 - End Time 2025-01-06 11:28:04 [2025-01-06 11:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187254', 'tblTempUsageDetail_20' ) start [2025-01-06 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187254', 'tblTempUsageDetail_20' ) end [2025-01-06 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187254', 'tblTempVendorCDR_20' ) start [2025-01-06 11:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187254', 'tblTempVendorCDR_20' ) end [2025-01-06 11:28:22] Production.INFO: ProcessCDR(1,14187254,1,1,2) [2025-01-06 11:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187254', 'tblTempUsageDetail_20' ) start [2025-01-06 11:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187254', 'tblTempUsageDetail_20' ) end [2025-01-06 11:28:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:28:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:28:26] Production.INFO: ==10018== Releasing lock... [2025-01-06 11:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:28:26] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:29:05 [end_date_ymd] => 2025-01-06 11:29:05 [RateCDR] => 1 ) [2025-01-06 11:29: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-01-06 08:29:05' and `end` < '2025-01-06 11:29: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-01-06 11:29:25] Production.INFO: count ==5157 [2025-01-06 11:29:27] Production.ERROR: pbx CDR StartTime 2025-01-06 08:29:05 - End Time 2025-01-06 11:29:05 [2025-01-06 11:29:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187259', 'tblTempUsageDetail_20' ) start [2025-01-06 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187259', 'tblTempUsageDetail_20' ) end [2025-01-06 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187259', 'tblTempVendorCDR_20' ) start [2025-01-06 11:29:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187259', 'tblTempVendorCDR_20' ) end [2025-01-06 11:29:27] Production.INFO: ProcessCDR(1,14187259,1,1,2) [2025-01-06 11:29:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187259', 'tblTempUsageDetail_20' ) start [2025-01-06 11:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187259', 'tblTempUsageDetail_20' ) end [2025-01-06 11:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:29:32] Production.INFO: ==10089== Releasing lock... [2025-01-06 11:29:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:29:32] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 11:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:30:06 [end_date_ymd] => 2025-01-06 11:30:06 [RateCDR] => 1 ) [2025-01-06 11:30: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-01-06 08:30:06' and `end` < '2025-01-06 11:30: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-01-06 11:30:38] Production.INFO: count ==5174 [2025-01-06 11:30:40] Production.ERROR: pbx CDR StartTime 2025-01-06 08:30:06 - End Time 2025-01-06 11:30:06 [2025-01-06 11:30:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187265', 'tblTempUsageDetail_20' ) start [2025-01-06 11:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187265', 'tblTempUsageDetail_20' ) end [2025-01-06 11:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187265', 'tblTempVendorCDR_20' ) start [2025-01-06 11:30:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187265', 'tblTempVendorCDR_20' ) end [2025-01-06 11:30:40] Production.INFO: ProcessCDR(1,14187265,1,1,2) [2025-01-06 11:30:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:30:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:30:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:30:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:30:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187265', 'tblTempUsageDetail_20' ) start [2025-01-06 11:30:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187265', 'tblTempUsageDetail_20' ) end [2025-01-06 11:30:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:30:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:30:45] Production.INFO: ==10164== Releasing lock... [2025-01-06 11:30:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:30:45] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 11:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:31:04 [end_date_ymd] => 2025-01-06 11:31:04 [RateCDR] => 1 ) [2025-01-06 11:31: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-01-06 08:31:04' and `end` < '2025-01-06 11:31: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-01-06 11:31:30] Production.INFO: count ==5267 [2025-01-06 11:31:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:31:04 - End Time 2025-01-06 11:31:04 [2025-01-06 11:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187266', 'tblTempUsageDetail_20' ) start [2025-01-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187266', 'tblTempUsageDetail_20' ) end [2025-01-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187266', 'tblTempVendorCDR_20' ) start [2025-01-06 11:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187266', 'tblTempVendorCDR_20' ) end [2025-01-06 11:31:33] Production.INFO: ProcessCDR(1,14187266,1,1,2) [2025-01-06 11:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:31:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187266,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:31:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187266,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187266', 'tblTempUsageDetail_20' ) start [2025-01-06 11:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187266', 'tblTempUsageDetail_20' ) end [2025-01-06 11:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:31:38] Production.INFO: ==10237== Releasing lock... [2025-01-06 11:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:31:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:32:05 [end_date_ymd] => 2025-01-06 11:32:05 [RateCDR] => 1 ) [2025-01-06 11:32: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-01-06 08:32:05' and `end` < '2025-01-06 11:32: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-01-06 11:32:24] Production.INFO: count ==5267 [2025-01-06 11:32:26] Production.ERROR: pbx CDR StartTime 2025-01-06 08:32:05 - End Time 2025-01-06 11:32:05 [2025-01-06 11:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187275', 'tblTempUsageDetail_20' ) start [2025-01-06 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187275', 'tblTempUsageDetail_20' ) end [2025-01-06 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187275', 'tblTempVendorCDR_20' ) start [2025-01-06 11:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187275', 'tblTempVendorCDR_20' ) end [2025-01-06 11:32:26] Production.INFO: ProcessCDR(1,14187275,1,1,2) [2025-01-06 11:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:32:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:32:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187275', 'tblTempUsageDetail_20' ) start [2025-01-06 11:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187275', 'tblTempUsageDetail_20' ) end [2025-01-06 11:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:32:31] Production.INFO: ==10307== Releasing lock... [2025-01-06 11:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:32:31] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:33:04 [end_date_ymd] => 2025-01-06 11:33:04 [RateCDR] => 1 ) [2025-01-06 11:33: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-01-06 08:33:04' and `end` < '2025-01-06 11:33: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-01-06 11:33:21] Production.INFO: count ==5254 [2025-01-06 11:33:23] Production.ERROR: pbx CDR StartTime 2025-01-06 08:33:04 - End Time 2025-01-06 11:33:04 [2025-01-06 11:33:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187280', 'tblTempUsageDetail_20' ) start [2025-01-06 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187280', 'tblTempUsageDetail_20' ) end [2025-01-06 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187280', 'tblTempVendorCDR_20' ) start [2025-01-06 11:33:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187280', 'tblTempVendorCDR_20' ) end [2025-01-06 11:33:23] Production.INFO: ProcessCDR(1,14187280,1,1,2) [2025-01-06 11:33:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:33:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:33:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:33:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:33:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187280', 'tblTempUsageDetail_20' ) start [2025-01-06 11:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187280', 'tblTempUsageDetail_20' ) end [2025-01-06 11:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:33:29] Production.INFO: ==10378== Releasing lock... [2025-01-06 11:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:33:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:34:06 [end_date_ymd] => 2025-01-06 11:34:06 [RateCDR] => 1 ) [2025-01-06 11:34: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-01-06 08:34:06' and `end` < '2025-01-06 11:34: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-01-06 11:34:29] Production.INFO: count ==5265 [2025-01-06 11:34:31] Production.ERROR: pbx CDR StartTime 2025-01-06 08:34:06 - End Time 2025-01-06 11:34:06 [2025-01-06 11:34:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187285', 'tblTempUsageDetail_20' ) start [2025-01-06 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187285', 'tblTempUsageDetail_20' ) end [2025-01-06 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187285', 'tblTempVendorCDR_20' ) start [2025-01-06 11:34:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187285', 'tblTempVendorCDR_20' ) end [2025-01-06 11:34:31] Production.INFO: ProcessCDR(1,14187285,1,1,2) [2025-01-06 11:34:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:34:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:34:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:34:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187285', 'tblTempUsageDetail_20' ) start [2025-01-06 11:34:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187285', 'tblTempUsageDetail_20' ) end [2025-01-06 11:34:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:34:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:34:36] Production.INFO: ==10451== Releasing lock... [2025-01-06 11:34:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:34:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:35:04 [end_date_ymd] => 2025-01-06 11:35:04 [RateCDR] => 1 ) [2025-01-06 11:35: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-01-06 08:35:04' and `end` < '2025-01-06 11:35: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-01-06 11:35:30] Production.INFO: count ==5276 [2025-01-06 11:35:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:35:04 - End Time 2025-01-06 11:35:04 [2025-01-06 11:35:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187290', 'tblTempUsageDetail_20' ) start [2025-01-06 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187290', 'tblTempUsageDetail_20' ) end [2025-01-06 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187290', 'tblTempVendorCDR_20' ) start [2025-01-06 11:35:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187290', 'tblTempVendorCDR_20' ) end [2025-01-06 11:35:32] Production.INFO: ProcessCDR(1,14187290,1,1,2) [2025-01-06 11:35:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:35:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:35:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:35:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187290', 'tblTempUsageDetail_20' ) start [2025-01-06 11:35:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187290', 'tblTempUsageDetail_20' ) end [2025-01-06 11:35:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:35:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:35:37] Production.INFO: ==10522== Releasing lock... [2025-01-06 11:35:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:35:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:36:05 [end_date_ymd] => 2025-01-06 11:36:05 [RateCDR] => 1 ) [2025-01-06 11:36: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-01-06 08:36:05' and `end` < '2025-01-06 11:36: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-01-06 11:36:25] Production.INFO: count ==5277 [2025-01-06 11:36:28] Production.ERROR: pbx CDR StartTime 2025-01-06 08:36:05 - End Time 2025-01-06 11:36:05 [2025-01-06 11:36:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187295', 'tblTempUsageDetail_20' ) start [2025-01-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187295', 'tblTempUsageDetail_20' ) end [2025-01-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187295', 'tblTempVendorCDR_20' ) start [2025-01-06 11:36:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187295', 'tblTempVendorCDR_20' ) end [2025-01-06 11:36:28] Production.INFO: ProcessCDR(1,14187295,1,1,2) [2025-01-06 11:36:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:36:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:36:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:36:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187295', 'tblTempUsageDetail_20' ) start [2025-01-06 11:36:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187295', 'tblTempUsageDetail_20' ) end [2025-01-06 11:36:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:36:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:36:33] Production.INFO: ==10632== Releasing lock... [2025-01-06 11:36:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:36:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:37:06 [end_date_ymd] => 2025-01-06 11:37:06 [RateCDR] => 1 ) [2025-01-06 11:37: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-01-06 08:37:06' and `end` < '2025-01-06 11:37: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-01-06 11:37:28] Production.INFO: count ==5284 [2025-01-06 11:37:30] Production.ERROR: pbx CDR StartTime 2025-01-06 08:37:06 - End Time 2025-01-06 11:37:06 [2025-01-06 11:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187300', 'tblTempUsageDetail_20' ) start [2025-01-06 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187300', 'tblTempUsageDetail_20' ) end [2025-01-06 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187300', 'tblTempVendorCDR_20' ) start [2025-01-06 11:37:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187300', 'tblTempVendorCDR_20' ) end [2025-01-06 11:37:31] Production.INFO: ProcessCDR(1,14187300,1,1,2) [2025-01-06 11:37:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:37:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:37:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:37:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187300', 'tblTempUsageDetail_20' ) start [2025-01-06 11:37:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187300', 'tblTempUsageDetail_20' ) end [2025-01-06 11:37:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:37:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:37:35] Production.INFO: ==10703== Releasing lock... [2025-01-06 11:37:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:37:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:38:05 [end_date_ymd] => 2025-01-06 11:38:05 [RateCDR] => 1 ) [2025-01-06 11:38: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-01-06 08:38:05' and `end` < '2025-01-06 11:38: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-01-06 11:38:21] Production.INFO: count ==5264 [2025-01-06 11:38:23] Production.ERROR: pbx CDR StartTime 2025-01-06 08:38:05 - End Time 2025-01-06 11:38:05 [2025-01-06 11:38:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:38:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187305', 'tblTempUsageDetail_20' ) start [2025-01-06 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187305', 'tblTempUsageDetail_20' ) end [2025-01-06 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187305', 'tblTempVendorCDR_20' ) start [2025-01-06 11:38:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187305', 'tblTempVendorCDR_20' ) end [2025-01-06 11:38:24] Production.INFO: ProcessCDR(1,14187305,1,1,2) [2025-01-06 11:38:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:38:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:38:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:38:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187305', 'tblTempUsageDetail_20' ) start [2025-01-06 11:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187305', 'tblTempUsageDetail_20' ) end [2025-01-06 11:38:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:38:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:38:28] Production.INFO: ==10775== Releasing lock... [2025-01-06 11:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:38:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:39:05 [end_date_ymd] => 2025-01-06 11:39:05 [RateCDR] => 1 ) [2025-01-06 11:39: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-01-06 08:39:05' and `end` < '2025-01-06 11:39: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-01-06 11:39:19] Production.INFO: count ==3820 [2025-01-06 11:39:21] Production.ERROR: pbx CDR StartTime 2025-01-06 08:39:05 - End Time 2025-01-06 11:39:05 [2025-01-06 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187310', 'tblTempUsageDetail_20' ) start [2025-01-06 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187310', 'tblTempUsageDetail_20' ) end [2025-01-06 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187310', 'tblTempVendorCDR_20' ) start [2025-01-06 11:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187310', 'tblTempVendorCDR_20' ) end [2025-01-06 11:39:22] Production.INFO: ProcessCDR(1,14187310,1,1,2) [2025-01-06 11:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187310', 'tblTempUsageDetail_20' ) start [2025-01-06 11:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187310', 'tblTempUsageDetail_20' ) end [2025-01-06 11:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:39:26] Production.INFO: ==10845== Releasing lock... [2025-01-06 11:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:39:26] Production.INFO: 56.5 MB #Memory Used# [2025-01-06 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:40:06 [end_date_ymd] => 2025-01-06 11:40:06 [RateCDR] => 1 ) [2025-01-06 11:40: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-01-06 08:40:06' and `end` < '2025-01-06 11:40: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-01-06 11:40:26] Production.INFO: count ==3821 [2025-01-06 11:40:28] Production.ERROR: pbx CDR StartTime 2025-01-06 08:40:06 - End Time 2025-01-06 11:40:06 [2025-01-06 11:40:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187316', 'tblTempUsageDetail_20' ) start [2025-01-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187316', 'tblTempUsageDetail_20' ) end [2025-01-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187316', 'tblTempVendorCDR_20' ) start [2025-01-06 11:40:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187316', 'tblTempVendorCDR_20' ) end [2025-01-06 11:40:28] Production.INFO: ProcessCDR(1,14187316,1,1,2) [2025-01-06 11:40:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187316', 'tblTempUsageDetail_20' ) start [2025-01-06 11:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187316', 'tblTempUsageDetail_20' ) end [2025-01-06 11:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:40:33] Production.INFO: ==10921== Releasing lock... [2025-01-06 11:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:40:33] Production.INFO: 57 MB #Memory Used# [2025-01-06 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:41:05 [end_date_ymd] => 2025-01-06 11:41:05 [RateCDR] => 1 ) [2025-01-06 11:41: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-01-06 08:41:05' and `end` < '2025-01-06 11:41: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-01-06 11:41:36] Production.INFO: count ==3906 [2025-01-06 11:41:39] Production.ERROR: pbx CDR StartTime 2025-01-06 08:41:05 - End Time 2025-01-06 11:41:05 [2025-01-06 11:41:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187321', 'tblTempUsageDetail_20' ) start [2025-01-06 11:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187321', 'tblTempUsageDetail_20' ) end [2025-01-06 11:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187321', 'tblTempVendorCDR_20' ) start [2025-01-06 11:41:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187321', 'tblTempVendorCDR_20' ) end [2025-01-06 11:41:39] Production.INFO: ProcessCDR(1,14187321,1,1,2) [2025-01-06 11:41:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:41:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:41:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:41:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:41:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187321', 'tblTempUsageDetail_20' ) start [2025-01-06 11:41:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187321', 'tblTempUsageDetail_20' ) end [2025-01-06 11:41:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:41:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:41:44] Production.INFO: ==10997== Releasing lock... [2025-01-06 11:41:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:41:44] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:42:04 [end_date_ymd] => 2025-01-06 11:42:04 [RateCDR] => 1 ) [2025-01-06 11:42: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-01-06 08:42:04' and `end` < '2025-01-06 11:42: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-01-06 11:42:37] Production.INFO: count ==3906 [2025-01-06 11:42:39] Production.ERROR: pbx CDR StartTime 2025-01-06 08:42:04 - End Time 2025-01-06 11:42:04 [2025-01-06 11:42:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187326', 'tblTempUsageDetail_20' ) start [2025-01-06 11:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187326', 'tblTempUsageDetail_20' ) end [2025-01-06 11:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187326', 'tblTempVendorCDR_20' ) start [2025-01-06 11:42:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187326', 'tblTempVendorCDR_20' ) end [2025-01-06 11:42:39] Production.INFO: ProcessCDR(1,14187326,1,1,2) [2025-01-06 11:42:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:42:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:42:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:42:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:42:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187326', 'tblTempUsageDetail_20' ) start [2025-01-06 11:42:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187326', 'tblTempUsageDetail_20' ) end [2025-01-06 11:42:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:42:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:42:44] Production.INFO: ==11071== Releasing lock... [2025-01-06 11:42:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:42:44] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:43:05 [end_date_ymd] => 2025-01-06 11:43:05 [RateCDR] => 1 ) [2025-01-06 11:43: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-01-06 08:43:05' and `end` < '2025-01-06 11:43: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-01-06 11:43:30] Production.INFO: count ==3897 [2025-01-06 11:43:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:43:05 - End Time 2025-01-06 11:43:05 [2025-01-06 11:43:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187331', 'tblTempUsageDetail_20' ) start [2025-01-06 11:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187331', 'tblTempUsageDetail_20' ) end [2025-01-06 11:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187331', 'tblTempVendorCDR_20' ) start [2025-01-06 11:43:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187331', 'tblTempVendorCDR_20' ) end [2025-01-06 11:43:32] Production.INFO: ProcessCDR(1,14187331,1,1,2) [2025-01-06 11:43:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:43:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:43:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:43:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187331', 'tblTempUsageDetail_20' ) start [2025-01-06 11:43:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187331', 'tblTempUsageDetail_20' ) end [2025-01-06 11:43:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:43:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:43:37] Production.INFO: ==11146== Releasing lock... [2025-01-06 11:43:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:43:37] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:44:06 [end_date_ymd] => 2025-01-06 11:44:06 [RateCDR] => 1 ) [2025-01-06 11:44: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-01-06 08:44:06' and `end` < '2025-01-06 11:44: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-01-06 11:44:34] Production.INFO: count ==3914 [2025-01-06 11:44:36] Production.ERROR: pbx CDR StartTime 2025-01-06 08:44:06 - End Time 2025-01-06 11:44:06 [2025-01-06 11:44:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187336', 'tblTempUsageDetail_20' ) start [2025-01-06 11:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187336', 'tblTempUsageDetail_20' ) end [2025-01-06 11:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187336', 'tblTempVendorCDR_20' ) start [2025-01-06 11:44:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187336', 'tblTempVendorCDR_20' ) end [2025-01-06 11:44:36] Production.INFO: ProcessCDR(1,14187336,1,1,2) [2025-01-06 11:44:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:44:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:44:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:44:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187336', 'tblTempUsageDetail_20' ) start [2025-01-06 11:44:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187336', 'tblTempUsageDetail_20' ) end [2025-01-06 11:44:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:44:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:44:41] Production.INFO: ==11217== Releasing lock... [2025-01-06 11:44:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:44:41] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:45:05 [end_date_ymd] => 2025-01-06 11:45:05 [RateCDR] => 1 ) [2025-01-06 11:45: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-01-06 08:45:05' and `end` < '2025-01-06 11:45: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-01-06 11:45:28] Production.INFO: count ==3912 [2025-01-06 11:45:30] Production.ERROR: pbx CDR StartTime 2025-01-06 08:45:05 - End Time 2025-01-06 11:45:05 [2025-01-06 11:45:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187341', 'tblTempUsageDetail_20' ) start [2025-01-06 11:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187341', 'tblTempUsageDetail_20' ) end [2025-01-06 11:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187341', 'tblTempVendorCDR_20' ) start [2025-01-06 11:45:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187341', 'tblTempVendorCDR_20' ) end [2025-01-06 11:45:30] Production.INFO: ProcessCDR(1,14187341,1,1,2) [2025-01-06 11:45:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:45:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:45:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:45:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187341', 'tblTempUsageDetail_20' ) start [2025-01-06 11:45:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187341', 'tblTempUsageDetail_20' ) end [2025-01-06 11:45:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:45:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:45:35] Production.INFO: ==11287== Releasing lock... [2025-01-06 11:45:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:45:35] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:46:06 [end_date_ymd] => 2025-01-06 11:46:06 [RateCDR] => 1 ) [2025-01-06 11:46: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-01-06 08:46:06' and `end` < '2025-01-06 11:46: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-01-06 11:46:23] Production.INFO: count ==3907 [2025-01-06 11:46:26] Production.ERROR: pbx CDR StartTime 2025-01-06 08:46:06 - End Time 2025-01-06 11:46:06 [2025-01-06 11:46:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187346', 'tblTempUsageDetail_20' ) start [2025-01-06 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187346', 'tblTempUsageDetail_20' ) end [2025-01-06 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187346', 'tblTempVendorCDR_20' ) start [2025-01-06 11:46:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187346', 'tblTempVendorCDR_20' ) end [2025-01-06 11:46:26] Production.INFO: ProcessCDR(1,14187346,1,1,2) [2025-01-06 11:46:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:46:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:46:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:46:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187346', 'tblTempUsageDetail_20' ) start [2025-01-06 11:46:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187346', 'tblTempUsageDetail_20' ) end [2025-01-06 11:46:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:46:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:46:31] Production.INFO: ==11359== Releasing lock... [2025-01-06 11:46:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:46:31] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:47:05 [end_date_ymd] => 2025-01-06 11:47:05 [RateCDR] => 1 ) [2025-01-06 11:47: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-01-06 08:47:05' and `end` < '2025-01-06 11:47: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-01-06 11:47:30] Production.INFO: count ==3924 [2025-01-06 11:47:32] Production.ERROR: pbx CDR StartTime 2025-01-06 08:47:05 - End Time 2025-01-06 11:47:05 [2025-01-06 11:47:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187351', 'tblTempUsageDetail_20' ) start [2025-01-06 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187351', 'tblTempUsageDetail_20' ) end [2025-01-06 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187351', 'tblTempVendorCDR_20' ) start [2025-01-06 11:47:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187351', 'tblTempVendorCDR_20' ) end [2025-01-06 11:47:33] Production.INFO: ProcessCDR(1,14187351,1,1,2) [2025-01-06 11:47:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:47:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:47:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:47:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187351', 'tblTempUsageDetail_20' ) start [2025-01-06 11:47:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187351', 'tblTempUsageDetail_20' ) end [2025-01-06 11:47:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:47:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:47:37] Production.INFO: ==11428== Releasing lock... [2025-01-06 11:47:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:47:37] Production.INFO: 57.5 MB #Memory Used# [2025-01-06 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:48:05 [end_date_ymd] => 2025-01-06 11:48:05 [RateCDR] => 1 ) [2025-01-06 11:48: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-01-06 08:48:05' and `end` < '2025-01-06 11:48: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-01-06 11:48:27] Production.INFO: count ==3927 [2025-01-06 11:48:29] Production.ERROR: pbx CDR StartTime 2025-01-06 08:48:05 - End Time 2025-01-06 11:48:05 [2025-01-06 11:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187356', 'tblTempUsageDetail_20' ) start [2025-01-06 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187356', 'tblTempUsageDetail_20' ) end [2025-01-06 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187356', 'tblTempVendorCDR_20' ) start [2025-01-06 11:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187356', 'tblTempVendorCDR_20' ) end [2025-01-06 11:48:29] Production.INFO: ProcessCDR(1,14187356,1,1,2) [2025-01-06 11:48:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187356', 'tblTempUsageDetail_20' ) start [2025-01-06 11:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187356', 'tblTempUsageDetail_20' ) end [2025-01-06 11:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:48:34] Production.INFO: ==11500== Releasing lock... [2025-01-06 11:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:48:34] Production.INFO: 57.5 MB #Memory Used# [2025-01-06 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:49:04 [end_date_ymd] => 2025-01-06 11:49:04 [RateCDR] => 1 ) [2025-01-06 11:49: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-01-06 08:49:04' and `end` < '2025-01-06 11:49: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-01-06 11:49:26] Production.INFO: count ==3931 [2025-01-06 11:49:28] Production.ERROR: pbx CDR StartTime 2025-01-06 08:49:04 - End Time 2025-01-06 11:49:04 [2025-01-06 11:49:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:49:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187361', 'tblTempUsageDetail_20' ) start [2025-01-06 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187361', 'tblTempUsageDetail_20' ) end [2025-01-06 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187361', 'tblTempVendorCDR_20' ) start [2025-01-06 11:49:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187361', 'tblTempVendorCDR_20' ) end [2025-01-06 11:49:29] Production.INFO: ProcessCDR(1,14187361,1,1,2) [2025-01-06 11:49:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:49:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:49:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:49:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187361', 'tblTempUsageDetail_20' ) start [2025-01-06 11:49:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187361', 'tblTempUsageDetail_20' ) end [2025-01-06 11:49:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:49:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:49:33] Production.INFO: ==11573== Releasing lock... [2025-01-06 11:49:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:49:33] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:50:06 [end_date_ymd] => 2025-01-06 11:50:06 [RateCDR] => 1 ) [2025-01-06 11:50: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-01-06 08:50:06' and `end` < '2025-01-06 11:50: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-01-06 11:50:22] Production.INFO: count ==3937 [2025-01-06 11:50:24] Production.ERROR: pbx CDR StartTime 2025-01-06 08:50:06 - End Time 2025-01-06 11:50:06 [2025-01-06 11:50:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187367', 'tblTempUsageDetail_20' ) start [2025-01-06 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187367', 'tblTempUsageDetail_20' ) end [2025-01-06 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187367', 'tblTempVendorCDR_20' ) start [2025-01-06 11:50:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187367', 'tblTempVendorCDR_20' ) end [2025-01-06 11:50:24] Production.INFO: ProcessCDR(1,14187367,1,1,2) [2025-01-06 11:50:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:50:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:50:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:50:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187367', 'tblTempUsageDetail_20' ) start [2025-01-06 11:50:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187367', 'tblTempUsageDetail_20' ) end [2025-01-06 11:50:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:50:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:50:29] Production.INFO: ==11647== Releasing lock... [2025-01-06 11:50:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:50:29] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 11:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:51:05 [end_date_ymd] => 2025-01-06 11:51:05 [RateCDR] => 1 ) [2025-01-06 11:51: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-01-06 08:51:05' and `end` < '2025-01-06 11:51: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-01-06 11:51:23] Production.INFO: count ==4077 [2025-01-06 11:51:25] Production.ERROR: pbx CDR StartTime 2025-01-06 08:51:05 - End Time 2025-01-06 11:51:05 [2025-01-06 11:51:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187372', 'tblTempUsageDetail_20' ) start [2025-01-06 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187372', 'tblTempUsageDetail_20' ) end [2025-01-06 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187372', 'tblTempVendorCDR_20' ) start [2025-01-06 11:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187372', 'tblTempVendorCDR_20' ) end [2025-01-06 11:51:25] Production.INFO: ProcessCDR(1,14187372,1,1,2) [2025-01-06 11:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:51:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:51:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:51:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187372', 'tblTempUsageDetail_20' ) start [2025-01-06 11:51:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187372', 'tblTempUsageDetail_20' ) end [2025-01-06 11:51:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:51:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:51:30] Production.INFO: ==11759== Releasing lock... [2025-01-06 11:51:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:51:30] Production.INFO: 58.5 MB #Memory Used# [2025-01-06 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:52:05 [end_date_ymd] => 2025-01-06 11:52:05 [RateCDR] => 1 ) [2025-01-06 11:52: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-01-06 08:52:05' and `end` < '2025-01-06 11:52: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-01-06 11:52:33] Production.INFO: count ==4096 [2025-01-06 11:52:36] Production.ERROR: pbx CDR StartTime 2025-01-06 08:52:05 - End Time 2025-01-06 11:52:05 [2025-01-06 11:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187377', 'tblTempUsageDetail_20' ) start [2025-01-06 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187377', 'tblTempUsageDetail_20' ) end [2025-01-06 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187377', 'tblTempVendorCDR_20' ) start [2025-01-06 11:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187377', 'tblTempVendorCDR_20' ) end [2025-01-06 11:52:36] Production.INFO: ProcessCDR(1,14187377,1,1,2) [2025-01-06 11:52:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:52:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:52:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187377', 'tblTempUsageDetail_20' ) start [2025-01-06 11:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187377', 'tblTempUsageDetail_20' ) end [2025-01-06 11:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:52:41] Production.INFO: ==11831== Releasing lock... [2025-01-06 11:52:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:52:41] Production.INFO: 58.75 MB #Memory Used# [2025-01-06 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:53:05 [end_date_ymd] => 2025-01-06 11:53:05 [RateCDR] => 1 ) [2025-01-06 11:53: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-01-06 08:53:05' and `end` < '2025-01-06 11:53: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-01-06 11:53:31] Production.INFO: count ==4112 [2025-01-06 11:53:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:53:05 - End Time 2025-01-06 11:53:05 [2025-01-06 11:53:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:53:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187382', 'tblTempUsageDetail_20' ) start [2025-01-06 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187382', 'tblTempUsageDetail_20' ) end [2025-01-06 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187382', 'tblTempVendorCDR_20' ) start [2025-01-06 11:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187382', 'tblTempVendorCDR_20' ) end [2025-01-06 11:53:34] Production.INFO: ProcessCDR(1,14187382,1,1,2) [2025-01-06 11:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187382', 'tblTempUsageDetail_20' ) start [2025-01-06 11:53:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187382', 'tblTempUsageDetail_20' ) end [2025-01-06 11:53:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:53:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:53:39] Production.INFO: ==11903== Releasing lock... [2025-01-06 11:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:53:39] Production.INFO: 58.75 MB #Memory Used# [2025-01-06 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:54:05 [end_date_ymd] => 2025-01-06 11:54:05 [RateCDR] => 1 ) [2025-01-06 11:54: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-01-06 08:54:05' and `end` < '2025-01-06 11:54: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-01-06 11:54:31] Production.INFO: count ==4143 [2025-01-06 11:54:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:54:05 - End Time 2025-01-06 11:54:05 [2025-01-06 11:54:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:54:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187387', 'tblTempUsageDetail_20' ) start [2025-01-06 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187387', 'tblTempUsageDetail_20' ) end [2025-01-06 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187387', 'tblTempVendorCDR_20' ) start [2025-01-06 11:54:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187387', 'tblTempVendorCDR_20' ) end [2025-01-06 11:54:34] Production.INFO: ProcessCDR(1,14187387,1,1,2) [2025-01-06 11:54:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:54:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:54:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:54:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187387', 'tblTempUsageDetail_20' ) start [2025-01-06 11:54:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187387', 'tblTempUsageDetail_20' ) end [2025-01-06 11:54:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:54:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:54:39] Production.INFO: ==11974== Releasing lock... [2025-01-06 11:54:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:54:39] Production.INFO: 59 MB #Memory Used# [2025-01-06 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:55:05 [end_date_ymd] => 2025-01-06 11:55:05 [RateCDR] => 1 ) [2025-01-06 11:55: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-01-06 08:55:05' and `end` < '2025-01-06 11:55: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-01-06 11:55:29] Production.INFO: count ==4171 [2025-01-06 11:55:31] Production.ERROR: pbx CDR StartTime 2025-01-06 08:55:05 - End Time 2025-01-06 11:55:05 [2025-01-06 11:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187392', 'tblTempUsageDetail_20' ) start [2025-01-06 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187392', 'tblTempUsageDetail_20' ) end [2025-01-06 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187392', 'tblTempVendorCDR_20' ) start [2025-01-06 11:55:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187392', 'tblTempVendorCDR_20' ) end [2025-01-06 11:55:32] Production.INFO: ProcessCDR(1,14187392,1,1,2) [2025-01-06 11:55:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187392', 'tblTempUsageDetail_20' ) start [2025-01-06 11:55:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187392', 'tblTempUsageDetail_20' ) end [2025-01-06 11:55:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:55:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:55:37] Production.INFO: ==12046== Releasing lock... [2025-01-06 11:55:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:55:37] Production.INFO: 59.25 MB #Memory Used# [2025-01-06 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:56:05 [end_date_ymd] => 2025-01-06 11:56:05 [RateCDR] => 1 ) [2025-01-06 11:56: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-01-06 08:56:05' and `end` < '2025-01-06 11:56: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-01-06 11:56:30] Production.INFO: count ==4170 [2025-01-06 11:56:33] Production.ERROR: pbx CDR StartTime 2025-01-06 08:56:05 - End Time 2025-01-06 11:56:05 [2025-01-06 11:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187396', 'tblTempUsageDetail_20' ) start [2025-01-06 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187396', 'tblTempUsageDetail_20' ) end [2025-01-06 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187396', 'tblTempVendorCDR_20' ) start [2025-01-06 11:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187396', 'tblTempVendorCDR_20' ) end [2025-01-06 11:56:33] Production.INFO: ProcessCDR(1,14187396,1,1,2) [2025-01-06 11:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:56:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:56:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187396', 'tblTempUsageDetail_20' ) start [2025-01-06 11:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187396', 'tblTempUsageDetail_20' ) end [2025-01-06 11:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:56:38] Production.INFO: ==12118== Releasing lock... [2025-01-06 11:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:56:38] Production.INFO: 59.25 MB #Memory Used# [2025-01-06 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:57:05 [end_date_ymd] => 2025-01-06 11:57:05 [RateCDR] => 1 ) [2025-01-06 11:57: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-01-06 08:57:05' and `end` < '2025-01-06 11:57: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-01-06 11:57:36] Production.INFO: count ==4225 [2025-01-06 11:57:39] Production.ERROR: pbx CDR StartTime 2025-01-06 08:57:05 - End Time 2025-01-06 11:57:05 [2025-01-06 11:57:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:57:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187402', 'tblTempUsageDetail_20' ) start [2025-01-06 11:57:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187402', 'tblTempUsageDetail_20' ) end [2025-01-06 11:57:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187402', 'tblTempVendorCDR_20' ) start [2025-01-06 11:57:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187402', 'tblTempVendorCDR_20' ) end [2025-01-06 11:57:39] Production.INFO: ProcessCDR(1,14187402,1,1,2) [2025-01-06 11:57:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:57:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:57:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:57:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:57:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187402', 'tblTempUsageDetail_20' ) start [2025-01-06 11:57:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187402', 'tblTempUsageDetail_20' ) end [2025-01-06 11:57:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:57:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:57:44] Production.INFO: ==12191== Releasing lock... [2025-01-06 11:57:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:57:44] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:58:05 [end_date_ymd] => 2025-01-06 11:58:05 [RateCDR] => 1 ) [2025-01-06 11:58: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-01-06 08:58:05' and `end` < '2025-01-06 11:58: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-01-06 11:58:38] Production.INFO: count ==4248 [2025-01-06 11:58:40] Production.ERROR: pbx CDR StartTime 2025-01-06 08:58:05 - End Time 2025-01-06 11:58:05 [2025-01-06 11:58:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187407', 'tblTempUsageDetail_20' ) start [2025-01-06 11:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187407', 'tblTempUsageDetail_20' ) end [2025-01-06 11:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187407', 'tblTempVendorCDR_20' ) start [2025-01-06 11:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187407', 'tblTempVendorCDR_20' ) end [2025-01-06 11:58:40] Production.INFO: ProcessCDR(1,14187407,1,1,2) [2025-01-06 11:58:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:58:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:58:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:58:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187407', 'tblTempUsageDetail_20' ) start [2025-01-06 11:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187407', 'tblTempUsageDetail_20' ) end [2025-01-06 11:58:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:58:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:58:45] Production.INFO: ==12260== Releasing lock... [2025-01-06 11:58:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:58:45] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 08:59:05 [end_date_ymd] => 2025-01-06 11:59:05 [RateCDR] => 1 ) [2025-01-06 11:59: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-01-06 08:59:05' and `end` < '2025-01-06 11:59: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-01-06 11:59:29] Production.INFO: count ==4261 [2025-01-06 11:59:31] Production.ERROR: pbx CDR StartTime 2025-01-06 08:59:05 - End Time 2025-01-06 11:59:05 [2025-01-06 11:59:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 11:59:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187412', 'tblTempUsageDetail_20' ) start [2025-01-06 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187412', 'tblTempUsageDetail_20' ) end [2025-01-06 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187412', 'tblTempVendorCDR_20' ) start [2025-01-06 11:59:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187412', 'tblTempVendorCDR_20' ) end [2025-01-06 11:59:32] Production.INFO: ProcessCDR(1,14187412,1,1,2) [2025-01-06 11:59:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:59:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 11:59:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:59:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 11:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187412', 'tblTempUsageDetail_20' ) start [2025-01-06 11:59:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187412', 'tblTempUsageDetail_20' ) end [2025-01-06 11:59:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 11:59:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 11:59:36] Production.INFO: ==12333== Releasing lock... [2025-01-06 11:59:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 11:59:36] Production.INFO: 60 MB #Memory Used# [2025-01-06 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:00:06 [end_date_ymd] => 2025-01-06 12:00:06 [RateCDR] => 1 ) [2025-01-06 12:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 09:00:06' and `end` < '2025-01-06 12:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 12:00:27] Production.INFO: count ==4285 [2025-01-06 12:00:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:00:06 - End Time 2025-01-06 12:00:06 [2025-01-06 12:00:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:00:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187418', 'tblTempUsageDetail_20' ) start [2025-01-06 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187418', 'tblTempUsageDetail_20' ) end [2025-01-06 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187418', 'tblTempVendorCDR_20' ) start [2025-01-06 12:00:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187418', 'tblTempVendorCDR_20' ) end [2025-01-06 12:00:30] Production.INFO: ProcessCDR(1,14187418,1,1,2) [2025-01-06 12:00:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:00:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:00:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:00:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187418', 'tblTempUsageDetail_20' ) start [2025-01-06 12:00:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187418', 'tblTempUsageDetail_20' ) end [2025-01-06 12:00:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:00:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:00:34] Production.INFO: ==12407== Releasing lock... [2025-01-06 12:00:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:00:34] Production.INFO: 60 MB #Memory Used# [2025-01-06 12:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:01:04 [end_date_ymd] => 2025-01-06 12:01:04 [RateCDR] => 1 ) [2025-01-06 12:01: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-01-06 09:01:04' and `end` < '2025-01-06 12:01: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-01-06 12:01:23] Production.INFO: count ==4398 [2025-01-06 12:01:25] Production.ERROR: pbx CDR StartTime 2025-01-06 09:01:04 - End Time 2025-01-06 12:01:04 [2025-01-06 12:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187423', 'tblTempUsageDetail_20' ) start [2025-01-06 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187423', 'tblTempUsageDetail_20' ) end [2025-01-06 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187423', 'tblTempVendorCDR_20' ) start [2025-01-06 12:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187423', 'tblTempVendorCDR_20' ) end [2025-01-06 12:01:25] Production.INFO: ProcessCDR(1,14187423,1,1,2) [2025-01-06 12:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187423', 'tblTempUsageDetail_20' ) start [2025-01-06 12:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187423', 'tblTempUsageDetail_20' ) end [2025-01-06 12:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:01:30] Production.INFO: ==12491== Releasing lock... [2025-01-06 12:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:01:30] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:02:05 [end_date_ymd] => 2025-01-06 12:02:05 [RateCDR] => 1 ) [2025-01-06 12:02: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-01-06 09:02:05' and `end` < '2025-01-06 12:02: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-01-06 12:02:33] Production.INFO: count ==4403 [2025-01-06 12:02:35] Production.ERROR: pbx CDR StartTime 2025-01-06 09:02:05 - End Time 2025-01-06 12:02:05 [2025-01-06 12:02:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187428', 'tblTempUsageDetail_20' ) start [2025-01-06 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187428', 'tblTempUsageDetail_20' ) end [2025-01-06 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187428', 'tblTempVendorCDR_20' ) start [2025-01-06 12:02:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187428', 'tblTempVendorCDR_20' ) end [2025-01-06 12:02:35] Production.INFO: ProcessCDR(1,14187428,1,1,2) [2025-01-06 12:02:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:02:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:02:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:02:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:02:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187428', 'tblTempUsageDetail_20' ) start [2025-01-06 12:02:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187428', 'tblTempUsageDetail_20' ) end [2025-01-06 12:02:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:02:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:02:41] Production.INFO: ==12563== Releasing lock... [2025-01-06 12:02:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:02:41] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:03:05 [end_date_ymd] => 2025-01-06 12:03:05 [RateCDR] => 1 ) [2025-01-06 12:03: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-01-06 09:03:05' and `end` < '2025-01-06 12:03: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-01-06 12:03:38] Production.INFO: count ==4388 [2025-01-06 12:03:41] Production.ERROR: pbx CDR StartTime 2025-01-06 09:03:05 - End Time 2025-01-06 12:03:05 [2025-01-06 12:03:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:03:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187433', 'tblTempUsageDetail_20' ) start [2025-01-06 12:03:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187433', 'tblTempUsageDetail_20' ) end [2025-01-06 12:03:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187433', 'tblTempVendorCDR_20' ) start [2025-01-06 12:03:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187433', 'tblTempVendorCDR_20' ) end [2025-01-06 12:03:41] Production.INFO: ProcessCDR(1,14187433,1,1,2) [2025-01-06 12:03:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:03:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:03:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:03:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:03:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187433', 'tblTempUsageDetail_20' ) start [2025-01-06 12:03:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187433', 'tblTempUsageDetail_20' ) end [2025-01-06 12:03:46] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:03:46] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:03:46] Production.INFO: ==12633== Releasing lock... [2025-01-06 12:03:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:03:46] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:04:05 [end_date_ymd] => 2025-01-06 12:04:05 [RateCDR] => 1 ) [2025-01-06 12:04: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-01-06 09:04:05' and `end` < '2025-01-06 12:04: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-01-06 12:04:26] Production.INFO: count ==4387 [2025-01-06 12:04:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:04:05 - End Time 2025-01-06 12:04:05 [2025-01-06 12:04:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187438', 'tblTempUsageDetail_20' ) start [2025-01-06 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187438', 'tblTempUsageDetail_20' ) end [2025-01-06 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187438', 'tblTempVendorCDR_20' ) start [2025-01-06 12:04:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187438', 'tblTempVendorCDR_20' ) end [2025-01-06 12:04:29] Production.INFO: ProcessCDR(1,14187438,1,1,2) [2025-01-06 12:04:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:04:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:04:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:04:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187438', 'tblTempUsageDetail_20' ) start [2025-01-06 12:04:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187438', 'tblTempUsageDetail_20' ) end [2025-01-06 12:04:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:04:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:04:33] Production.INFO: ==12707== Releasing lock... [2025-01-06 12:04:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:04:33] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 12:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:05:04 [end_date_ymd] => 2025-01-06 12:05:04 [RateCDR] => 1 ) [2025-01-06 12:05: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-01-06 09:05:04' and `end` < '2025-01-06 12:05: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-01-06 12:05:25] Production.INFO: count ==4372 [2025-01-06 12:05:27] Production.ERROR: pbx CDR StartTime 2025-01-06 09:05:04 - End Time 2025-01-06 12:05:04 [2025-01-06 12:05:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187443', 'tblTempUsageDetail_20' ) start [2025-01-06 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187443', 'tblTempUsageDetail_20' ) end [2025-01-06 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187443', 'tblTempVendorCDR_20' ) start [2025-01-06 12:05:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187443', 'tblTempVendorCDR_20' ) end [2025-01-06 12:05:27] Production.INFO: ProcessCDR(1,14187443,1,1,2) [2025-01-06 12:05:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:05:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:05:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:05:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187443', 'tblTempUsageDetail_20' ) start [2025-01-06 12:05:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187443', 'tblTempUsageDetail_20' ) end [2025-01-06 12:05:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:05:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:05:32] Production.INFO: ==12777== Releasing lock... [2025-01-06 12:05:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:05:32] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:06:05 [end_date_ymd] => 2025-01-06 12:06:05 [RateCDR] => 1 ) [2025-01-06 12:06: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-01-06 09:06:05' and `end` < '2025-01-06 12:06: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-01-06 12:06:26] Production.INFO: count ==4386 [2025-01-06 12:06:28] Production.ERROR: pbx CDR StartTime 2025-01-06 09:06:05 - End Time 2025-01-06 12:06:05 [2025-01-06 12:06:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187448', 'tblTempUsageDetail_20' ) start [2025-01-06 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187448', 'tblTempUsageDetail_20' ) end [2025-01-06 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187448', 'tblTempVendorCDR_20' ) start [2025-01-06 12:06:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187448', 'tblTempVendorCDR_20' ) end [2025-01-06 12:06:29] Production.INFO: ProcessCDR(1,14187448,1,1,2) [2025-01-06 12:06:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:06:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:06:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:06:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:06:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187448', 'tblTempUsageDetail_20' ) start [2025-01-06 12:06:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187448', 'tblTempUsageDetail_20' ) end [2025-01-06 12:06:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:06:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:06:34] Production.INFO: ==12848== Releasing lock... [2025-01-06 12:06:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:06:34] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:07:05 [end_date_ymd] => 2025-01-06 12:07:05 [RateCDR] => 1 ) [2025-01-06 12:07: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-01-06 09:07:05' and `end` < '2025-01-06 12:07: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-01-06 12:07:27] Production.INFO: count ==4401 [2025-01-06 12:07:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:07:05 - End Time 2025-01-06 12:07:05 [2025-01-06 12:07:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:07:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187453', 'tblTempUsageDetail_20' ) start [2025-01-06 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187453', 'tblTempUsageDetail_20' ) end [2025-01-06 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187453', 'tblTempVendorCDR_20' ) start [2025-01-06 12:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187453', 'tblTempVendorCDR_20' ) end [2025-01-06 12:07:30] Production.INFO: ProcessCDR(1,14187453,1,1,2) [2025-01-06 12:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:07:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:07:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:07:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187453', 'tblTempUsageDetail_20' ) start [2025-01-06 12:07:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187453', 'tblTempUsageDetail_20' ) end [2025-01-06 12:07:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:07:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:07:34] Production.INFO: ==12957== Releasing lock... [2025-01-06 12:07:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:07:34] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:08:05 [end_date_ymd] => 2025-01-06 12:08:05 [RateCDR] => 1 ) [2025-01-06 12:08: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-01-06 09:08:05' and `end` < '2025-01-06 12:08: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-01-06 12:08:23] Production.INFO: count ==4396 [2025-01-06 12:08:26] Production.ERROR: pbx CDR StartTime 2025-01-06 09:08:05 - End Time 2025-01-06 12:08:05 [2025-01-06 12:08:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187458', 'tblTempUsageDetail_20' ) start [2025-01-06 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187458', 'tblTempUsageDetail_20' ) end [2025-01-06 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187458', 'tblTempVendorCDR_20' ) start [2025-01-06 12:08:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187458', 'tblTempVendorCDR_20' ) end [2025-01-06 12:08:26] Production.INFO: ProcessCDR(1,14187458,1,1,2) [2025-01-06 12:08:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:08:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:08:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:08:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187458', 'tblTempUsageDetail_20' ) start [2025-01-06 12:08:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187458', 'tblTempUsageDetail_20' ) end [2025-01-06 12:08:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:08:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:08:31] Production.INFO: ==13031== Releasing lock... [2025-01-06 12:08:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:08:31] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:09:05 [end_date_ymd] => 2025-01-06 12:09:05 [RateCDR] => 1 ) [2025-01-06 12:09: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-01-06 09:09:05' and `end` < '2025-01-06 12:09: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-01-06 12:09:19] Production.INFO: count ==4400 [2025-01-06 12:09:21] Production.ERROR: pbx CDR StartTime 2025-01-06 09:09:05 - End Time 2025-01-06 12:09:05 [2025-01-06 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187463', 'tblTempUsageDetail_20' ) start [2025-01-06 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187463', 'tblTempUsageDetail_20' ) end [2025-01-06 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187463', 'tblTempVendorCDR_20' ) start [2025-01-06 12:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187463', 'tblTempVendorCDR_20' ) end [2025-01-06 12:09:22] Production.INFO: ProcessCDR(1,14187463,1,1,2) [2025-01-06 12:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187463', 'tblTempUsageDetail_20' ) start [2025-01-06 12:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187463', 'tblTempUsageDetail_20' ) end [2025-01-06 12:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:09:26] Production.INFO: ==13104== Releasing lock... [2025-01-06 12:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:09:26] Production.INFO: 61 MB #Memory Used# [2025-01-06 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:10:05 [end_date_ymd] => 2025-01-06 12:10:05 [RateCDR] => 1 ) [2025-01-06 12:10: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-01-06 09:10:05' and `end` < '2025-01-06 12:10: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-01-06 12:10:31] Production.INFO: count ==4407 [2025-01-06 12:10:34] Production.ERROR: pbx CDR StartTime 2025-01-06 09:10:05 - End Time 2025-01-06 12:10:05 [2025-01-06 12:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187469', 'tblTempUsageDetail_20' ) start [2025-01-06 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187469', 'tblTempUsageDetail_20' ) end [2025-01-06 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187469', 'tblTempVendorCDR_20' ) start [2025-01-06 12:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187469', 'tblTempVendorCDR_20' ) end [2025-01-06 12:10:34] Production.INFO: ProcessCDR(1,14187469,1,1,2) [2025-01-06 12:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:10:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187469', 'tblTempUsageDetail_20' ) start [2025-01-06 12:10:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187469', 'tblTempUsageDetail_20' ) end [2025-01-06 12:10:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:10:39] Production.INFO: ==13178== Releasing lock... [2025-01-06 12:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:10:39] Production.INFO: 61.25 MB #Memory Used# [2025-01-06 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:11:05 [end_date_ymd] => 2025-01-06 12:11:05 [RateCDR] => 1 ) [2025-01-06 12:11: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-01-06 09:11:05' and `end` < '2025-01-06 12:11: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-01-06 12:11:35] Production.INFO: count ==4515 [2025-01-06 12:11:38] Production.ERROR: pbx CDR StartTime 2025-01-06 09:11:05 - End Time 2025-01-06 12:11:05 [2025-01-06 12:11:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187474', 'tblTempUsageDetail_20' ) start [2025-01-06 12:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187474', 'tblTempUsageDetail_20' ) end [2025-01-06 12:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187474', 'tblTempVendorCDR_20' ) start [2025-01-06 12:11:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187474', 'tblTempVendorCDR_20' ) end [2025-01-06 12:11:38] Production.INFO: ProcessCDR(1,14187474,1,1,2) [2025-01-06 12:11:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:11:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187474', 'tblTempUsageDetail_20' ) start [2025-01-06 12:11:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187474', 'tblTempUsageDetail_20' ) end [2025-01-06 12:11:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:11:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:11:43] Production.INFO: ==13254== Releasing lock... [2025-01-06 12:11:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:11:43] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:12:05 [end_date_ymd] => 2025-01-06 12:12:05 [RateCDR] => 1 ) [2025-01-06 12:12: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-01-06 09:12:05' and `end` < '2025-01-06 12:12: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-01-06 12:12:30] Production.INFO: count ==4533 [2025-01-06 12:12:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:12:05 - End Time 2025-01-06 12:12:05 [2025-01-06 12:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187479', 'tblTempUsageDetail_20' ) start [2025-01-06 12:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187479', 'tblTempUsageDetail_20' ) end [2025-01-06 12:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187479', 'tblTempVendorCDR_20' ) start [2025-01-06 12:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187479', 'tblTempVendorCDR_20' ) end [2025-01-06 12:12:32] Production.INFO: ProcessCDR(1,14187479,1,1,2) [2025-01-06 12:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:12:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:12:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:12:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187479', 'tblTempUsageDetail_20' ) start [2025-01-06 12:12:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187479', 'tblTempUsageDetail_20' ) end [2025-01-06 12:12:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:12:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:12:37] Production.INFO: ==13326== Releasing lock... [2025-01-06 12:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:12:37] Production.INFO: 62 MB #Memory Used# [2025-01-06 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:13:05 [end_date_ymd] => 2025-01-06 12:13:05 [RateCDR] => 1 ) [2025-01-06 12:13: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-01-06 09:13:05' and `end` < '2025-01-06 12:13: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-01-06 12:13:23] Production.INFO: count ==4504 [2025-01-06 12:13:25] Production.ERROR: pbx CDR StartTime 2025-01-06 09:13:05 - End Time 2025-01-06 12:13:05 [2025-01-06 12:13:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:13:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187484', 'tblTempUsageDetail_20' ) start [2025-01-06 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187484', 'tblTempUsageDetail_20' ) end [2025-01-06 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187484', 'tblTempVendorCDR_20' ) start [2025-01-06 12:13:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187484', 'tblTempVendorCDR_20' ) end [2025-01-06 12:13:26] Production.INFO: ProcessCDR(1,14187484,1,1,2) [2025-01-06 12:13:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187484', 'tblTempUsageDetail_20' ) start [2025-01-06 12:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187484', 'tblTempUsageDetail_20' ) end [2025-01-06 12:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:13:30] Production.INFO: ==13396== Releasing lock... [2025-01-06 12:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:13:30] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:14:06 [end_date_ymd] => 2025-01-06 12:14:06 [RateCDR] => 1 ) [2025-01-06 12:14: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-01-06 09:14:06' and `end` < '2025-01-06 12:14: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-01-06 12:14:21] Production.INFO: count ==4490 [2025-01-06 12:14:23] Production.ERROR: pbx CDR StartTime 2025-01-06 09:14:06 - End Time 2025-01-06 12:14:06 [2025-01-06 12:14:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:14:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187489', 'tblTempUsageDetail_20' ) start [2025-01-06 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187489', 'tblTempUsageDetail_20' ) end [2025-01-06 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187489', 'tblTempVendorCDR_20' ) start [2025-01-06 12:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187489', 'tblTempVendorCDR_20' ) end [2025-01-06 12:14:24] Production.INFO: ProcessCDR(1,14187489,1,1,2) [2025-01-06 12:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187489', 'tblTempUsageDetail_20' ) start [2025-01-06 12:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187489', 'tblTempUsageDetail_20' ) end [2025-01-06 12:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:14:28] Production.INFO: ==13470== Releasing lock... [2025-01-06 12:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:14:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:15:05 [end_date_ymd] => 2025-01-06 12:15:05 [RateCDR] => 1 ) [2025-01-06 12:15: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-01-06 09:15:05' and `end` < '2025-01-06 12:15: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-01-06 12:15:32] Production.INFO: count ==4505 [2025-01-06 12:15:35] Production.ERROR: pbx CDR StartTime 2025-01-06 09:15:05 - End Time 2025-01-06 12:15:05 [2025-01-06 12:15:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187494', 'tblTempUsageDetail_20' ) start [2025-01-06 12:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187494', 'tblTempUsageDetail_20' ) end [2025-01-06 12:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187494', 'tblTempVendorCDR_20' ) start [2025-01-06 12:15:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187494', 'tblTempVendorCDR_20' ) end [2025-01-06 12:15:35] Production.INFO: ProcessCDR(1,14187494,1,1,2) [2025-01-06 12:15:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:15:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:15:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:15:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:15:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187494', 'tblTempUsageDetail_20' ) start [2025-01-06 12:15:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187494', 'tblTempUsageDetail_20' ) end [2025-01-06 12:15:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:15:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:15:40] Production.INFO: ==13541== Releasing lock... [2025-01-06 12:15:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:15:40] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 12:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:16:06 [end_date_ymd] => 2025-01-06 12:16:06 [RateCDR] => 1 ) [2025-01-06 12:16: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-01-06 09:16:06' and `end` < '2025-01-06 12:16: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-01-06 12:16:29] Production.INFO: count ==4534 [2025-01-06 12:16:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:16:06 - End Time 2025-01-06 12:16:06 [2025-01-06 12:16:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187499', 'tblTempUsageDetail_20' ) start [2025-01-06 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187499', 'tblTempUsageDetail_20' ) end [2025-01-06 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187499', 'tblTempVendorCDR_20' ) start [2025-01-06 12:16:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187499', 'tblTempVendorCDR_20' ) end [2025-01-06 12:16:32] Production.INFO: ProcessCDR(1,14187499,1,1,2) [2025-01-06 12:16:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:16:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:16:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:16:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187499', 'tblTempUsageDetail_20' ) start [2025-01-06 12:16:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187499', 'tblTempUsageDetail_20' ) end [2025-01-06 12:16:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:16:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:16:37] Production.INFO: ==13615== Releasing lock... [2025-01-06 12:16:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:16:37] Production.INFO: 62 MB #Memory Used# [2025-01-06 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:17:05 [end_date_ymd] => 2025-01-06 12:17:05 [RateCDR] => 1 ) [2025-01-06 12:17: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-01-06 09:17:05' and `end` < '2025-01-06 12:17: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-01-06 12:17:26] Production.INFO: count ==4493 [2025-01-06 12:17:28] Production.ERROR: pbx CDR StartTime 2025-01-06 09:17:05 - End Time 2025-01-06 12:17:05 [2025-01-06 12:17:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187504', 'tblTempUsageDetail_20' ) start [2025-01-06 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187504', 'tblTempUsageDetail_20' ) end [2025-01-06 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187504', 'tblTempVendorCDR_20' ) start [2025-01-06 12:17:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187504', 'tblTempVendorCDR_20' ) end [2025-01-06 12:17:28] Production.INFO: ProcessCDR(1,14187504,1,1,2) [2025-01-06 12:17:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:17:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:17:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187504', 'tblTempUsageDetail_20' ) start [2025-01-06 12:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187504', 'tblTempUsageDetail_20' ) end [2025-01-06 12:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:17:33] Production.INFO: ==13685== Releasing lock... [2025-01-06 12:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:17:33] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:18:05 [end_date_ymd] => 2025-01-06 12:18:05 [RateCDR] => 1 ) [2025-01-06 12:18: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-01-06 09:18:05' and `end` < '2025-01-06 12:18: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-01-06 12:18:19] Production.INFO: count ==4476 [2025-01-06 12:18:22] Production.ERROR: pbx CDR StartTime 2025-01-06 09:18:05 - End Time 2025-01-06 12:18:05 [2025-01-06 12:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187509', 'tblTempUsageDetail_20' ) start [2025-01-06 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187509', 'tblTempUsageDetail_20' ) end [2025-01-06 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187509', 'tblTempVendorCDR_20' ) start [2025-01-06 12:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187509', 'tblTempVendorCDR_20' ) end [2025-01-06 12:18:22] Production.INFO: ProcessCDR(1,14187509,1,1,2) [2025-01-06 12:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187509', 'tblTempUsageDetail_20' ) start [2025-01-06 12:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187509', 'tblTempUsageDetail_20' ) end [2025-01-06 12:18:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:18:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:18:27] Production.INFO: ==13767== Releasing lock... [2025-01-06 12:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:18:27] Production.INFO: 61.5 MB #Memory Used# [2025-01-06 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:19:05 [end_date_ymd] => 2025-01-06 12:19:05 [RateCDR] => 1 ) [2025-01-06 12:19: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-01-06 09:19:05' and `end` < '2025-01-06 12:19: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-01-06 12:19:20] Production.INFO: count ==4483 [2025-01-06 12:19:23] Production.ERROR: pbx CDR StartTime 2025-01-06 09:19:05 - End Time 2025-01-06 12:19:05 [2025-01-06 12:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187514', 'tblTempUsageDetail_20' ) start [2025-01-06 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187514', 'tblTempUsageDetail_20' ) end [2025-01-06 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187514', 'tblTempVendorCDR_20' ) start [2025-01-06 12:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187514', 'tblTempVendorCDR_20' ) end [2025-01-06 12:19:23] Production.INFO: ProcessCDR(1,14187514,1,1,2) [2025-01-06 12:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:19:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:19:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187514', 'tblTempUsageDetail_20' ) start [2025-01-06 12:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187514', 'tblTempUsageDetail_20' ) end [2025-01-06 12:19:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:19:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:19:28] Production.INFO: ==13836== Releasing lock... [2025-01-06 12:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:19:28] Production.INFO: 61.5 MB #Memory Used# [2025-01-06 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:20:06 [end_date_ymd] => 2025-01-06 12:20:06 [RateCDR] => 1 ) [2025-01-06 12:20: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-01-06 09:20:06' and `end` < '2025-01-06 12:20: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-01-06 12:20:30] Production.INFO: count ==4521 [2025-01-06 12:20:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:20:06 - End Time 2025-01-06 12:20:06 [2025-01-06 12:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187520', 'tblTempUsageDetail_20' ) start [2025-01-06 12:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187520', 'tblTempUsageDetail_20' ) end [2025-01-06 12:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187520', 'tblTempVendorCDR_20' ) start [2025-01-06 12:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187520', 'tblTempVendorCDR_20' ) end [2025-01-06 12:20:33] Production.INFO: ProcessCDR(1,14187520,1,1,2) [2025-01-06 12:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187520', 'tblTempUsageDetail_20' ) start [2025-01-06 12:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187520', 'tblTempUsageDetail_20' ) end [2025-01-06 12:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:20:38] Production.INFO: ==13911== Releasing lock... [2025-01-06 12:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:20:38] Production.INFO: 62 MB #Memory Used# [2025-01-06 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:21:05 [end_date_ymd] => 2025-01-06 12:21:05 [RateCDR] => 1 ) [2025-01-06 12:21: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-01-06 09:21:05' and `end` < '2025-01-06 12:21: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-01-06 12:21:19] Production.INFO: count ==4634 [2025-01-06 12:21:21] Production.ERROR: pbx CDR StartTime 2025-01-06 09:21:05 - End Time 2025-01-06 12:21:05 [2025-01-06 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187525', 'tblTempUsageDetail_20' ) start [2025-01-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187525', 'tblTempUsageDetail_20' ) end [2025-01-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187525', 'tblTempVendorCDR_20' ) start [2025-01-06 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187525', 'tblTempVendorCDR_20' ) end [2025-01-06 12:21:21] Production.INFO: ProcessCDR(1,14187525,1,1,2) [2025-01-06 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187525', 'tblTempUsageDetail_20' ) start [2025-01-06 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187525', 'tblTempUsageDetail_20' ) end [2025-01-06 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:21:26] Production.INFO: ==13990== Releasing lock... [2025-01-06 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:21:26] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:22:05 [end_date_ymd] => 2025-01-06 12:22:05 [RateCDR] => 1 ) [2025-01-06 12:22: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-01-06 09:22:05' and `end` < '2025-01-06 12:22: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-01-06 12:22:27] Production.INFO: count ==4628 [2025-01-06 12:22:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:22:05 - End Time 2025-01-06 12:22:05 [2025-01-06 12:22:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187530', 'tblTempUsageDetail_20' ) start [2025-01-06 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187530', 'tblTempUsageDetail_20' ) end [2025-01-06 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187530', 'tblTempVendorCDR_20' ) start [2025-01-06 12:22:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187530', 'tblTempVendorCDR_20' ) end [2025-01-06 12:22:29] Production.INFO: ProcessCDR(1,14187530,1,1,2) [2025-01-06 12:22:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:22:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:22:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:22:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187530', 'tblTempUsageDetail_20' ) start [2025-01-06 12:22:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187530', 'tblTempUsageDetail_20' ) end [2025-01-06 12:22:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:22:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:22:34] Production.INFO: ==14064== Releasing lock... [2025-01-06 12:22:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:22:34] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:23:05 [end_date_ymd] => 2025-01-06 12:23:05 [RateCDR] => 1 ) [2025-01-06 12:23: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-01-06 09:23:05' and `end` < '2025-01-06 12:23: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-01-06 12:23:27] Production.INFO: count ==4661 [2025-01-06 12:23:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:23:05 - End Time 2025-01-06 12:23:05 [2025-01-06 12:23:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187535', 'tblTempUsageDetail_20' ) start [2025-01-06 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187535', 'tblTempUsageDetail_20' ) end [2025-01-06 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187535', 'tblTempVendorCDR_20' ) start [2025-01-06 12:23:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187535', 'tblTempVendorCDR_20' ) end [2025-01-06 12:23:30] Production.INFO: ProcessCDR(1,14187535,1,1,2) [2025-01-06 12:23:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:23:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:23:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:23:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187535', 'tblTempUsageDetail_20' ) start [2025-01-06 12:23:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187535', 'tblTempUsageDetail_20' ) end [2025-01-06 12:23:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:23:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:23:35] Production.INFO: ==14172== Releasing lock... [2025-01-06 12:23:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:23:35] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:24:05 [end_date_ymd] => 2025-01-06 12:24:05 [RateCDR] => 1 ) [2025-01-06 12:24: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-01-06 09:24:05' and `end` < '2025-01-06 12:24: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-01-06 12:24:25] Production.INFO: count ==4667 [2025-01-06 12:24:27] Production.ERROR: pbx CDR StartTime 2025-01-06 09:24:05 - End Time 2025-01-06 12:24:05 [2025-01-06 12:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187540', 'tblTempUsageDetail_20' ) start [2025-01-06 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187540', 'tblTempUsageDetail_20' ) end [2025-01-06 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187540', 'tblTempVendorCDR_20' ) start [2025-01-06 12:24:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187540', 'tblTempVendorCDR_20' ) end [2025-01-06 12:24:28] Production.INFO: ProcessCDR(1,14187540,1,1,2) [2025-01-06 12:24:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187540', 'tblTempUsageDetail_20' ) start [2025-01-06 12:24:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187540', 'tblTempUsageDetail_20' ) end [2025-01-06 12:24:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:24:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:24:33] Production.INFO: ==14242== Releasing lock... [2025-01-06 12:24:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:24:33] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:25:05 [end_date_ymd] => 2025-01-06 12:25:05 [RateCDR] => 1 ) [2025-01-06 12:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 09:25:05' and `end` < '2025-01-06 12:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 12:25:21] Production.INFO: count ==4662 [2025-01-06 12:25:23] Production.ERROR: pbx CDR StartTime 2025-01-06 09:25:05 - End Time 2025-01-06 12:25:05 [2025-01-06 12:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187545', 'tblTempUsageDetail_20' ) start [2025-01-06 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187545', 'tblTempUsageDetail_20' ) end [2025-01-06 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187545', 'tblTempVendorCDR_20' ) start [2025-01-06 12:25:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187545', 'tblTempVendorCDR_20' ) end [2025-01-06 12:25:24] Production.INFO: ProcessCDR(1,14187545,1,1,2) [2025-01-06 12:25:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:25:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:25:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187545', 'tblTempUsageDetail_20' ) start [2025-01-06 12:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187545', 'tblTempUsageDetail_20' ) end [2025-01-06 12:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:25:28] Production.INFO: ==14318== Releasing lock... [2025-01-06 12:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:25:28] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:26:04 [end_date_ymd] => 2025-01-06 12:26:04 [RateCDR] => 1 ) [2025-01-06 12:26: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-01-06 09:26:04' and `end` < '2025-01-06 12:26: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-01-06 12:26:30] Production.INFO: count ==4660 [2025-01-06 12:26:33] Production.ERROR: pbx CDR StartTime 2025-01-06 09:26:04 - End Time 2025-01-06 12:26:04 [2025-01-06 12:26:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187550', 'tblTempUsageDetail_20' ) start [2025-01-06 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187550', 'tblTempUsageDetail_20' ) end [2025-01-06 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187550', 'tblTempVendorCDR_20' ) start [2025-01-06 12:26:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187550', 'tblTempVendorCDR_20' ) end [2025-01-06 12:26:33] Production.INFO: ProcessCDR(1,14187550,1,1,2) [2025-01-06 12:26:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:26:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:26:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:26:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187550', 'tblTempUsageDetail_20' ) start [2025-01-06 12:26:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187550', 'tblTempUsageDetail_20' ) end [2025-01-06 12:26:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:26:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:26:38] Production.INFO: ==14395== Releasing lock... [2025-01-06 12:26:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:26:38] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:27:05 [end_date_ymd] => 2025-01-06 12:27:05 [RateCDR] => 1 ) [2025-01-06 12:27: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-01-06 09:27:05' and `end` < '2025-01-06 12:27: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-01-06 12:27:32] Production.INFO: count ==4685 [2025-01-06 12:27:35] Production.ERROR: pbx CDR StartTime 2025-01-06 09:27:05 - End Time 2025-01-06 12:27:05 [2025-01-06 12:27:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187555', 'tblTempUsageDetail_20' ) start [2025-01-06 12:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187555', 'tblTempUsageDetail_20' ) end [2025-01-06 12:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187555', 'tblTempVendorCDR_20' ) start [2025-01-06 12:27:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187555', 'tblTempVendorCDR_20' ) end [2025-01-06 12:27:35] Production.INFO: ProcessCDR(1,14187555,1,1,2) [2025-01-06 12:27:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:27:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:27:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:27:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187555', 'tblTempUsageDetail_20' ) start [2025-01-06 12:27:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187555', 'tblTempUsageDetail_20' ) end [2025-01-06 12:27:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:27:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:27:40] Production.INFO: ==14470== Releasing lock... [2025-01-06 12:27:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:27:40] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:28:05 [end_date_ymd] => 2025-01-06 12:28:05 [RateCDR] => 1 ) [2025-01-06 12:28: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-01-06 09:28:05' and `end` < '2025-01-06 12:28: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-01-06 12:28:27] Production.INFO: count ==4684 [2025-01-06 12:28:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:28:05 - End Time 2025-01-06 12:28:05 [2025-01-06 12:28:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187560', 'tblTempUsageDetail_20' ) start [2025-01-06 12:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187560', 'tblTempUsageDetail_20' ) end [2025-01-06 12:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187560', 'tblTempVendorCDR_20' ) start [2025-01-06 12:28:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187560', 'tblTempVendorCDR_20' ) end [2025-01-06 12:28:29] Production.INFO: ProcessCDR(1,14187560,1,1,2) [2025-01-06 12:28:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:28:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:28:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:28:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187560', 'tblTempUsageDetail_20' ) start [2025-01-06 12:28:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187560', 'tblTempUsageDetail_20' ) end [2025-01-06 12:28:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:28:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:28:34] Production.INFO: ==14549== Releasing lock... [2025-01-06 12:28:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:28:34] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:29:05 [end_date_ymd] => 2025-01-06 12:29:05 [RateCDR] => 1 ) [2025-01-06 12:29: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-01-06 09:29:05' and `end` < '2025-01-06 12:29: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-01-06 12:29:28] Production.INFO: count ==4698 [2025-01-06 12:29:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:29:05 - End Time 2025-01-06 12:29:05 [2025-01-06 12:29:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187565', 'tblTempUsageDetail_20' ) start [2025-01-06 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187565', 'tblTempUsageDetail_20' ) end [2025-01-06 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187565', 'tblTempVendorCDR_20' ) start [2025-01-06 12:29:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187565', 'tblTempVendorCDR_20' ) end [2025-01-06 12:29:30] Production.INFO: ProcessCDR(1,14187565,1,1,2) [2025-01-06 12:29:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:29:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:29:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:29:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187565', 'tblTempUsageDetail_20' ) start [2025-01-06 12:29:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187565', 'tblTempUsageDetail_20' ) end [2025-01-06 12:29:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:29:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:29:35] Production.INFO: ==14625== Releasing lock... [2025-01-06 12:29:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:29:35] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 12:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:30:05 [end_date_ymd] => 2025-01-06 12:30:05 [RateCDR] => 1 ) [2025-01-06 12:30: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-01-06 09:30:05' and `end` < '2025-01-06 12:30: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-01-06 12:30:25] Production.INFO: count ==4684 [2025-01-06 12:30:27] Production.ERROR: pbx CDR StartTime 2025-01-06 09:30:05 - End Time 2025-01-06 12:30:05 [2025-01-06 12:30:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187571', 'tblTempUsageDetail_20' ) start [2025-01-06 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187571', 'tblTempUsageDetail_20' ) end [2025-01-06 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187571', 'tblTempVendorCDR_20' ) start [2025-01-06 12:30:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187571', 'tblTempVendorCDR_20' ) end [2025-01-06 12:30:27] Production.INFO: ProcessCDR(1,14187571,1,1,2) [2025-01-06 12:30:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:30:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:30:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:30:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187571', 'tblTempUsageDetail_20' ) start [2025-01-06 12:30:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187571', 'tblTempUsageDetail_20' ) end [2025-01-06 12:30:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:30:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:30:32] Production.INFO: ==14709== Releasing lock... [2025-01-06 12:30:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:30:32] Production.INFO: 63 MB #Memory Used# [2025-01-06 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:31:05 [end_date_ymd] => 2025-01-06 12:31:05 [RateCDR] => 1 ) [2025-01-06 12:31: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-01-06 09:31:05' and `end` < '2025-01-06 12:31: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-01-06 12:31:28] Production.INFO: count ==4788 [2025-01-06 12:31:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:31:05 - End Time 2025-01-06 12:31:05 [2025-01-06 12:31:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187576', 'tblTempUsageDetail_20' ) start [2025-01-06 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187576', 'tblTempUsageDetail_20' ) end [2025-01-06 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187576', 'tblTempVendorCDR_20' ) start [2025-01-06 12:31:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187576', 'tblTempVendorCDR_20' ) end [2025-01-06 12:31:30] Production.INFO: ProcessCDR(1,14187576,1,1,2) [2025-01-06 12:31:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:31:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:31:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:31:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187576', 'tblTempUsageDetail_20' ) start [2025-01-06 12:31:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187576', 'tblTempUsageDetail_20' ) end [2025-01-06 12:31:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:31:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:31:35] Production.INFO: ==14787== Releasing lock... [2025-01-06 12:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:31:35] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:32:05 [end_date_ymd] => 2025-01-06 12:32:05 [RateCDR] => 1 ) [2025-01-06 12:32: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-01-06 09:32:05' and `end` < '2025-01-06 12:32: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-01-06 12:32:38] Production.INFO: count ==4821 [2025-01-06 12:32:40] Production.ERROR: pbx CDR StartTime 2025-01-06 09:32:05 - End Time 2025-01-06 12:32:05 [2025-01-06 12:32:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187581', 'tblTempUsageDetail_20' ) start [2025-01-06 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187581', 'tblTempUsageDetail_20' ) end [2025-01-06 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187581', 'tblTempVendorCDR_20' ) start [2025-01-06 12:32:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187581', 'tblTempVendorCDR_20' ) end [2025-01-06 12:32:40] Production.INFO: ProcessCDR(1,14187581,1,1,2) [2025-01-06 12:32:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:32:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:32:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:32:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:32:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187581', 'tblTempUsageDetail_20' ) start [2025-01-06 12:32:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187581', 'tblTempUsageDetail_20' ) end [2025-01-06 12:32:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:32:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:32:45] Production.INFO: ==14867== Releasing lock... [2025-01-06 12:32:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:32:45] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:33:05 [end_date_ymd] => 2025-01-06 12:33:05 [RateCDR] => 1 ) [2025-01-06 12:33: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-01-06 09:33:05' and `end` < '2025-01-06 12:33: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-01-06 12:33:38] Production.INFO: count ==4830 [2025-01-06 12:33:41] Production.ERROR: pbx CDR StartTime 2025-01-06 09:33:05 - End Time 2025-01-06 12:33:05 [2025-01-06 12:33:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187586', 'tblTempUsageDetail_20' ) start [2025-01-06 12:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187586', 'tblTempUsageDetail_20' ) end [2025-01-06 12:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187586', 'tblTempVendorCDR_20' ) start [2025-01-06 12:33:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187586', 'tblTempVendorCDR_20' ) end [2025-01-06 12:33:41] Production.INFO: ProcessCDR(1,14187586,1,1,2) [2025-01-06 12:33:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:33:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:33:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:33:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:33:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187586', 'tblTempUsageDetail_20' ) start [2025-01-06 12:33:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187586', 'tblTempUsageDetail_20' ) end [2025-01-06 12:33:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:33:46] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:33:46] Production.INFO: ==14945== Releasing lock... [2025-01-06 12:33:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:33:46] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:34:05 [end_date_ymd] => 2025-01-06 12:34:05 [RateCDR] => 1 ) [2025-01-06 12:34: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-01-06 09:34:05' and `end` < '2025-01-06 12:34: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-01-06 12:34:30] Production.INFO: count ==4832 [2025-01-06 12:34:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:34:05 - End Time 2025-01-06 12:34:05 [2025-01-06 12:34:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187591', 'tblTempUsageDetail_20' ) start [2025-01-06 12:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187591', 'tblTempUsageDetail_20' ) end [2025-01-06 12:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187591', 'tblTempVendorCDR_20' ) start [2025-01-06 12:34:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187591', 'tblTempVendorCDR_20' ) end [2025-01-06 12:34:32] Production.INFO: ProcessCDR(1,14187591,1,1,2) [2025-01-06 12:34:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:34:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:34:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:34:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187591', 'tblTempUsageDetail_20' ) start [2025-01-06 12:34:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187591', 'tblTempUsageDetail_20' ) end [2025-01-06 12:34:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:34:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:34:37] Production.INFO: ==15022== Releasing lock... [2025-01-06 12:34:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:34:37] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:35:05 [end_date_ymd] => 2025-01-06 12:35:05 [RateCDR] => 1 ) [2025-01-06 12:35: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-01-06 09:35:05' and `end` < '2025-01-06 12:35: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-01-06 12:35:28] Production.INFO: count ==4811 [2025-01-06 12:35:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:35:05 - End Time 2025-01-06 12:35:05 [2025-01-06 12:35:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187596', 'tblTempUsageDetail_20' ) start [2025-01-06 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187596', 'tblTempUsageDetail_20' ) end [2025-01-06 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187596', 'tblTempVendorCDR_20' ) start [2025-01-06 12:35:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187596', 'tblTempVendorCDR_20' ) end [2025-01-06 12:35:30] Production.INFO: ProcessCDR(1,14187596,1,1,2) [2025-01-06 12:35:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:35:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:35:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:35:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187596', 'tblTempUsageDetail_20' ) start [2025-01-06 12:35:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187596', 'tblTempUsageDetail_20' ) end [2025-01-06 12:35:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:35:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:35:35] Production.INFO: ==15105== Releasing lock... [2025-01-06 12:35:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:35:35] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:36:05 [end_date_ymd] => 2025-01-06 12:36:05 [RateCDR] => 1 ) [2025-01-06 12:36: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-01-06 09:36:05' and `end` < '2025-01-06 12:36: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-01-06 12:36:28] Production.INFO: count ==4782 [2025-01-06 12:36:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:36:05 - End Time 2025-01-06 12:36:05 [2025-01-06 12:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187601', 'tblTempUsageDetail_20' ) start [2025-01-06 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187601', 'tblTempUsageDetail_20' ) end [2025-01-06 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187601', 'tblTempVendorCDR_20' ) start [2025-01-06 12:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187601', 'tblTempVendorCDR_20' ) end [2025-01-06 12:36:30] Production.INFO: ProcessCDR(1,14187601,1,1,2) [2025-01-06 12:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:36:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:36:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187601', 'tblTempUsageDetail_20' ) start [2025-01-06 12:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187601', 'tblTempUsageDetail_20' ) end [2025-01-06 12:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:36:35] Production.INFO: ==15181== Releasing lock... [2025-01-06 12:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:36:35] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 12:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:37:04 [end_date_ymd] => 2025-01-06 12:37:04 [RateCDR] => 1 ) [2025-01-06 12:37: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-01-06 09:37:04' and `end` < '2025-01-06 12:37: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-01-06 12:37:22] Production.INFO: count ==4779 [2025-01-06 12:37:24] Production.ERROR: pbx CDR StartTime 2025-01-06 09:37:04 - End Time 2025-01-06 12:37:04 [2025-01-06 12:37:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187606', 'tblTempUsageDetail_20' ) start [2025-01-06 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187606', 'tblTempUsageDetail_20' ) end [2025-01-06 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187606', 'tblTempVendorCDR_20' ) start [2025-01-06 12:37:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187606', 'tblTempVendorCDR_20' ) end [2025-01-06 12:37:24] Production.INFO: ProcessCDR(1,14187606,1,1,2) [2025-01-06 12:37:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187606', 'tblTempUsageDetail_20' ) start [2025-01-06 12:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187606', 'tblTempUsageDetail_20' ) end [2025-01-06 12:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:37:29] Production.INFO: ==15254== Releasing lock... [2025-01-06 12:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:37:29] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:38:05 [end_date_ymd] => 2025-01-06 12:38:05 [RateCDR] => 1 ) [2025-01-06 12:38: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-01-06 09:38:05' and `end` < '2025-01-06 12:38: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-01-06 12:38:25] Production.INFO: count ==4792 [2025-01-06 12:38:28] Production.ERROR: pbx CDR StartTime 2025-01-06 09:38:05 - End Time 2025-01-06 12:38:05 [2025-01-06 12:38:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187611', 'tblTempUsageDetail_20' ) start [2025-01-06 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187611', 'tblTempUsageDetail_20' ) end [2025-01-06 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187611', 'tblTempVendorCDR_20' ) start [2025-01-06 12:38:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187611', 'tblTempVendorCDR_20' ) end [2025-01-06 12:38:28] Production.INFO: ProcessCDR(1,14187611,1,1,2) [2025-01-06 12:38:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:38:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:38:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:38:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187611', 'tblTempUsageDetail_20' ) start [2025-01-06 12:38:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187611', 'tblTempUsageDetail_20' ) end [2025-01-06 12:38:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:38:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:38:32] Production.INFO: ==15370== Releasing lock... [2025-01-06 12:38:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:38:32] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:39:05 [end_date_ymd] => 2025-01-06 12:39:05 [RateCDR] => 1 ) [2025-01-06 12:39: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-01-06 09:39:05' and `end` < '2025-01-06 12:39: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-01-06 12:39:30] Production.INFO: count ==4790 [2025-01-06 12:39:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:39:05 - End Time 2025-01-06 12:39:05 [2025-01-06 12:39:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187616', 'tblTempUsageDetail_20' ) start [2025-01-06 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187616', 'tblTempUsageDetail_20' ) end [2025-01-06 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187616', 'tblTempVendorCDR_20' ) start [2025-01-06 12:39:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187616', 'tblTempVendorCDR_20' ) end [2025-01-06 12:39:32] Production.INFO: ProcessCDR(1,14187616,1,1,2) [2025-01-06 12:39:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:39:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:39:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:39:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187616', 'tblTempUsageDetail_20' ) start [2025-01-06 12:39:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187616', 'tblTempUsageDetail_20' ) end [2025-01-06 12:39:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:39:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:39:37] Production.INFO: ==15447== Releasing lock... [2025-01-06 12:39:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:39:37] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:40:06 [end_date_ymd] => 2025-01-06 12:40:06 [RateCDR] => 1 ) [2025-01-06 12:40: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-01-06 09:40:06' and `end` < '2025-01-06 12:40: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-01-06 12:40:28] Production.INFO: count ==4810 [2025-01-06 12:40:31] Production.ERROR: pbx CDR StartTime 2025-01-06 09:40:06 - End Time 2025-01-06 12:40:06 [2025-01-06 12:40:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187622', 'tblTempUsageDetail_20' ) start [2025-01-06 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187622', 'tblTempUsageDetail_20' ) end [2025-01-06 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187622', 'tblTempVendorCDR_20' ) start [2025-01-06 12:40:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187622', 'tblTempVendorCDR_20' ) end [2025-01-06 12:40:31] Production.INFO: ProcessCDR(1,14187622,1,1,2) [2025-01-06 12:40:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:40:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:40:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:40:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187622', 'tblTempUsageDetail_20' ) start [2025-01-06 12:40:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187622', 'tblTempUsageDetail_20' ) end [2025-01-06 12:40:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:40:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:40:36] Production.INFO: ==15529== Releasing lock... [2025-01-06 12:40:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:40:36] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:41:05 [end_date_ymd] => 2025-01-06 12:41:05 [RateCDR] => 1 ) [2025-01-06 12:41: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-01-06 09:41:05' and `end` < '2025-01-06 12:41: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-01-06 12:41:29] Production.INFO: count ==4879 [2025-01-06 12:41:31] Production.ERROR: pbx CDR StartTime 2025-01-06 09:41:05 - End Time 2025-01-06 12:41:05 [2025-01-06 12:41:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187627', 'tblTempUsageDetail_20' ) start [2025-01-06 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187627', 'tblTempUsageDetail_20' ) end [2025-01-06 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187627', 'tblTempVendorCDR_20' ) start [2025-01-06 12:41:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187627', 'tblTempVendorCDR_20' ) end [2025-01-06 12:41:31] Production.INFO: ProcessCDR(1,14187627,1,1,2) [2025-01-06 12:41:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:41:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:41:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:41:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187627', 'tblTempUsageDetail_20' ) start [2025-01-06 12:41:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187627', 'tblTempUsageDetail_20' ) end [2025-01-06 12:41:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:41:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:41:36] Production.INFO: ==15609== Releasing lock... [2025-01-06 12:41:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:41:36] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:42:05 [end_date_ymd] => 2025-01-06 12:42:05 [RateCDR] => 1 ) [2025-01-06 12:42: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-01-06 09:42:05' and `end` < '2025-01-06 12:42: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-01-06 12:42:24] Production.INFO: count ==4880 [2025-01-06 12:42:27] Production.ERROR: pbx CDR StartTime 2025-01-06 09:42:05 - End Time 2025-01-06 12:42:05 [2025-01-06 12:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187632', 'tblTempUsageDetail_20' ) start [2025-01-06 12:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187632', 'tblTempUsageDetail_20' ) end [2025-01-06 12:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187632', 'tblTempVendorCDR_20' ) start [2025-01-06 12:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187632', 'tblTempVendorCDR_20' ) end [2025-01-06 12:42:27] Production.INFO: ProcessCDR(1,14187632,1,1,2) [2025-01-06 12:42:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:42:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:42:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:42:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187632', 'tblTempUsageDetail_20' ) start [2025-01-06 12:42:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187632', 'tblTempUsageDetail_20' ) end [2025-01-06 12:42:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:42:32] Production.INFO: ==15685== Releasing lock... [2025-01-06 12:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:42:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:43:05 [end_date_ymd] => 2025-01-06 12:43:05 [RateCDR] => 1 ) [2025-01-06 12:43: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-01-06 09:43:05' and `end` < '2025-01-06 12:43: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-01-06 12:43:27] Production.INFO: count ==4877 [2025-01-06 12:43:30] Production.ERROR: pbx CDR StartTime 2025-01-06 09:43:05 - End Time 2025-01-06 12:43:05 [2025-01-06 12:43:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187637', 'tblTempUsageDetail_20' ) start [2025-01-06 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187637', 'tblTempUsageDetail_20' ) end [2025-01-06 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187637', 'tblTempVendorCDR_20' ) start [2025-01-06 12:43:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187637', 'tblTempVendorCDR_20' ) end [2025-01-06 12:43:30] Production.INFO: ProcessCDR(1,14187637,1,1,2) [2025-01-06 12:43:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:43:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:43:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:43:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187637', 'tblTempUsageDetail_20' ) start [2025-01-06 12:43:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187637', 'tblTempUsageDetail_20' ) end [2025-01-06 12:43:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:43:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:43:35] Production.INFO: ==15762== Releasing lock... [2025-01-06 12:43:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:43:35] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:44:05 [end_date_ymd] => 2025-01-06 12:44:05 [RateCDR] => 1 ) [2025-01-06 12:44: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-01-06 09:44:05' and `end` < '2025-01-06 12:44: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-01-06 12:44:32] Production.INFO: count ==4896 [2025-01-06 12:44:34] Production.ERROR: pbx CDR StartTime 2025-01-06 09:44:05 - End Time 2025-01-06 12:44:05 [2025-01-06 12:44:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187642', 'tblTempUsageDetail_20' ) start [2025-01-06 12:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187642', 'tblTempUsageDetail_20' ) end [2025-01-06 12:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187642', 'tblTempVendorCDR_20' ) start [2025-01-06 12:44:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187642', 'tblTempVendorCDR_20' ) end [2025-01-06 12:44:34] Production.INFO: ProcessCDR(1,14187642,1,1,2) [2025-01-06 12:44:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:44:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:44:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:44:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187642', 'tblTempUsageDetail_20' ) start [2025-01-06 12:44:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187642', 'tblTempUsageDetail_20' ) end [2025-01-06 12:44:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:44:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:44:39] Production.INFO: ==15841== Releasing lock... [2025-01-06 12:44:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:44:39] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 12:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:45:05 [end_date_ymd] => 2025-01-06 12:45:05 [RateCDR] => 1 ) [2025-01-06 12:45: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-01-06 09:45:05' and `end` < '2025-01-06 12:45: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-01-06 12:45:22] Production.INFO: count ==4892 [2025-01-06 12:45:24] Production.ERROR: pbx CDR StartTime 2025-01-06 09:45:05 - End Time 2025-01-06 12:45:05 [2025-01-06 12:45:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187647', 'tblTempUsageDetail_20' ) start [2025-01-06 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187647', 'tblTempUsageDetail_20' ) end [2025-01-06 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187647', 'tblTempVendorCDR_20' ) start [2025-01-06 12:45:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187647', 'tblTempVendorCDR_20' ) end [2025-01-06 12:45:24] Production.INFO: ProcessCDR(1,14187647,1,1,2) [2025-01-06 12:45:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:45:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:45:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:45:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187647', 'tblTempUsageDetail_20' ) start [2025-01-06 12:45:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187647', 'tblTempUsageDetail_20' ) end [2025-01-06 12:45:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:45:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:45:29] Production.INFO: ==15919== Releasing lock... [2025-01-06 12:45:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:45:29] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:46:05 [end_date_ymd] => 2025-01-06 12:46:05 [RateCDR] => 1 ) [2025-01-06 12:46: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-01-06 09:46:05' and `end` < '2025-01-06 12:46: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-01-06 12:46:20] Production.INFO: count ==4899 [2025-01-06 12:46:22] Production.ERROR: pbx CDR StartTime 2025-01-06 09:46:05 - End Time 2025-01-06 12:46:05 [2025-01-06 12:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187652', 'tblTempUsageDetail_20' ) start [2025-01-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187652', 'tblTempUsageDetail_20' ) end [2025-01-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187652', 'tblTempVendorCDR_20' ) start [2025-01-06 12:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187652', 'tblTempVendorCDR_20' ) end [2025-01-06 12:46:22] Production.INFO: ProcessCDR(1,14187652,1,1,2) [2025-01-06 12:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187652', 'tblTempUsageDetail_20' ) start [2025-01-06 12:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187652', 'tblTempUsageDetail_20' ) end [2025-01-06 12:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:46:27] Production.INFO: ==15995== Releasing lock... [2025-01-06 12:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:46:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:47:05 [end_date_ymd] => 2025-01-06 12:47:05 [RateCDR] => 1 ) [2025-01-06 12:47: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-01-06 09:47:05' and `end` < '2025-01-06 12:47: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-01-06 12:47:19] Production.INFO: count ==4878 [2025-01-06 12:47:21] Production.ERROR: pbx CDR StartTime 2025-01-06 09:47:05 - End Time 2025-01-06 12:47:05 [2025-01-06 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187657', 'tblTempUsageDetail_20' ) start [2025-01-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187657', 'tblTempUsageDetail_20' ) end [2025-01-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187657', 'tblTempVendorCDR_20' ) start [2025-01-06 12:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187657', 'tblTempVendorCDR_20' ) end [2025-01-06 12:47:22] Production.INFO: ProcessCDR(1,14187657,1,1,2) [2025-01-06 12:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187657', 'tblTempUsageDetail_20' ) start [2025-01-06 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187657', 'tblTempUsageDetail_20' ) end [2025-01-06 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:47:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:47:27] Production.INFO: ==16076== Releasing lock... [2025-01-06 12:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:47:27] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:48:05 [end_date_ymd] => 2025-01-06 12:48:05 [RateCDR] => 1 ) [2025-01-06 12:48: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-01-06 09:48:05' and `end` < '2025-01-06 12:48: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-01-06 12:48:23] Production.INFO: count ==4850 [2025-01-06 12:48:26] Production.ERROR: pbx CDR StartTime 2025-01-06 09:48:05 - End Time 2025-01-06 12:48:05 [2025-01-06 12:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187662', 'tblTempUsageDetail_20' ) start [2025-01-06 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187662', 'tblTempUsageDetail_20' ) end [2025-01-06 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187662', 'tblTempVendorCDR_20' ) start [2025-01-06 12:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187662', 'tblTempVendorCDR_20' ) end [2025-01-06 12:48:26] Production.INFO: ProcessCDR(1,14187662,1,1,2) [2025-01-06 12:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:48:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:48:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187662', 'tblTempUsageDetail_20' ) start [2025-01-06 12:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187662', 'tblTempUsageDetail_20' ) end [2025-01-06 12:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:48:31] Production.INFO: ==16154== Releasing lock... [2025-01-06 12:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:48:31] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:49:05 [end_date_ymd] => 2025-01-06 12:49:05 [RateCDR] => 1 ) [2025-01-06 12:49: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-01-06 09:49:05' and `end` < '2025-01-06 12:49: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-01-06 12:49:23] Production.INFO: count ==4835 [2025-01-06 12:49:25] Production.ERROR: pbx CDR StartTime 2025-01-06 09:49:05 - End Time 2025-01-06 12:49:05 [2025-01-06 12:49:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187667', 'tblTempUsageDetail_20' ) start [2025-01-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187667', 'tblTempUsageDetail_20' ) end [2025-01-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187667', 'tblTempVendorCDR_20' ) start [2025-01-06 12:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187667', 'tblTempVendorCDR_20' ) end [2025-01-06 12:49:25] Production.INFO: ProcessCDR(1,14187667,1,1,2) [2025-01-06 12:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:49:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187667', 'tblTempUsageDetail_20' ) start [2025-01-06 12:49:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187667', 'tblTempUsageDetail_20' ) end [2025-01-06 12:49:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:49:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:49:30] Production.INFO: ==16233== Releasing lock... [2025-01-06 12:49:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:49:30] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:50:06 [end_date_ymd] => 2025-01-06 12:50:06 [RateCDR] => 1 ) [2025-01-06 12:50: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-01-06 09:50:06' and `end` < '2025-01-06 12:50: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-01-06 12:50:26] Production.INFO: count ==4825 [2025-01-06 12:50:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:50:06 - End Time 2025-01-06 12:50:06 [2025-01-06 12:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187673', 'tblTempUsageDetail_20' ) start [2025-01-06 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187673', 'tblTempUsageDetail_20' ) end [2025-01-06 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187673', 'tblTempVendorCDR_20' ) start [2025-01-06 12:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187673', 'tblTempVendorCDR_20' ) end [2025-01-06 12:50:29] Production.INFO: ProcessCDR(1,14187673,1,1,2) [2025-01-06 12:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187673', 'tblTempUsageDetail_20' ) start [2025-01-06 12:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187673', 'tblTempUsageDetail_20' ) end [2025-01-06 12:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:50:34] Production.INFO: ==16314== Releasing lock... [2025-01-06 12:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:50:34] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:51:04 [end_date_ymd] => 2025-01-06 12:51:04 [RateCDR] => 1 ) [2025-01-06 12:51: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-01-06 09:51:04' and `end` < '2025-01-06 12:51: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-01-06 12:51:30] Production.INFO: count ==4883 [2025-01-06 12:51:32] Production.ERROR: pbx CDR StartTime 2025-01-06 09:51:04 - End Time 2025-01-06 12:51:04 [2025-01-06 12:51:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187678', 'tblTempUsageDetail_20' ) start [2025-01-06 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187678', 'tblTempUsageDetail_20' ) end [2025-01-06 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187678', 'tblTempVendorCDR_20' ) start [2025-01-06 12:51:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187678', 'tblTempVendorCDR_20' ) end [2025-01-06 12:51:32] Production.INFO: ProcessCDR(1,14187678,1,1,2) [2025-01-06 12:51:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:51:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:51:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:51:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187678', 'tblTempUsageDetail_20' ) start [2025-01-06 12:51:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187678', 'tblTempUsageDetail_20' ) end [2025-01-06 12:51:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:51:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:51:37] Production.INFO: ==16392== Releasing lock... [2025-01-06 12:51:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:51:37] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:52:05 [end_date_ymd] => 2025-01-06 12:52:05 [RateCDR] => 1 ) [2025-01-06 12:52: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-01-06 09:52:05' and `end` < '2025-01-06 12:52: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-01-06 12:52:23] Production.INFO: count ==4871 [2025-01-06 12:52:25] Production.ERROR: pbx CDR StartTime 2025-01-06 09:52:05 - End Time 2025-01-06 12:52:05 [2025-01-06 12:52:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187683', 'tblTempUsageDetail_20' ) start [2025-01-06 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187683', 'tblTempUsageDetail_20' ) end [2025-01-06 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187683', 'tblTempVendorCDR_20' ) start [2025-01-06 12:52:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187683', 'tblTempVendorCDR_20' ) end [2025-01-06 12:52:25] Production.INFO: ProcessCDR(1,14187683,1,1,2) [2025-01-06 12:52:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:52:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:52:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:52:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187683', 'tblTempUsageDetail_20' ) start [2025-01-06 12:52:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187683', 'tblTempUsageDetail_20' ) end [2025-01-06 12:52:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:52:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:52:30] Production.INFO: ==16469== Releasing lock... [2025-01-06 12:52:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:52:30] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:53:05 [end_date_ymd] => 2025-01-06 12:53:05 [RateCDR] => 1 ) [2025-01-06 12:53: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-01-06 09:53:05' and `end` < '2025-01-06 12:53: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-01-06 12:53:19] Production.INFO: count ==4832 [2025-01-06 12:53:22] Production.ERROR: pbx CDR StartTime 2025-01-06 09:53:05 - End Time 2025-01-06 12:53:05 [2025-01-06 12:53:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187688', 'tblTempUsageDetail_20' ) start [2025-01-06 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187688', 'tblTempUsageDetail_20' ) end [2025-01-06 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187688', 'tblTempVendorCDR_20' ) start [2025-01-06 12:53:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187688', 'tblTempVendorCDR_20' ) end [2025-01-06 12:53:22] Production.INFO: ProcessCDR(1,14187688,1,1,2) [2025-01-06 12:53:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:53:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187688', 'tblTempUsageDetail_20' ) start [2025-01-06 12:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187688', 'tblTempUsageDetail_20' ) end [2025-01-06 12:53:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:53:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:53:27] Production.INFO: ==16545== Releasing lock... [2025-01-06 12:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:53:27] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:54:05 [end_date_ymd] => 2025-01-06 12:54:05 [RateCDR] => 1 ) [2025-01-06 12:54: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-01-06 09:54:05' and `end` < '2025-01-06 12:54: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-01-06 12:54:24] Production.INFO: count ==4829 [2025-01-06 12:54:27] Production.ERROR: pbx CDR StartTime 2025-01-06 09:54:05 - End Time 2025-01-06 12:54:05 [2025-01-06 12:54:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187693', 'tblTempUsageDetail_20' ) start [2025-01-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187693', 'tblTempUsageDetail_20' ) end [2025-01-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187693', 'tblTempVendorCDR_20' ) start [2025-01-06 12:54:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187693', 'tblTempVendorCDR_20' ) end [2025-01-06 12:54:27] Production.INFO: ProcessCDR(1,14187693,1,1,2) [2025-01-06 12:54:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:54:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:54:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:54:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187693', 'tblTempUsageDetail_20' ) start [2025-01-06 12:54:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187693', 'tblTempUsageDetail_20' ) end [2025-01-06 12:54:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:54:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:54:32] Production.INFO: ==16660== Releasing lock... [2025-01-06 12:54:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:54:32] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 12:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:55:05 [end_date_ymd] => 2025-01-06 12:55:05 [RateCDR] => 1 ) [2025-01-06 12:55: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-01-06 09:55:05' and `end` < '2025-01-06 12:55: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-01-06 12:55:26] Production.INFO: count ==4801 [2025-01-06 12:55:29] Production.ERROR: pbx CDR StartTime 2025-01-06 09:55:05 - End Time 2025-01-06 12:55:05 [2025-01-06 12:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187698', 'tblTempUsageDetail_20' ) start [2025-01-06 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187698', 'tblTempUsageDetail_20' ) end [2025-01-06 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187698', 'tblTempVendorCDR_20' ) start [2025-01-06 12:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187698', 'tblTempVendorCDR_20' ) end [2025-01-06 12:55:29] Production.INFO: ProcessCDR(1,14187698,1,1,2) [2025-01-06 12:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187698', 'tblTempUsageDetail_20' ) start [2025-01-06 12:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187698', 'tblTempUsageDetail_20' ) end [2025-01-06 12:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:55:34] Production.INFO: ==16743== Releasing lock... [2025-01-06 12:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:55:34] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:56:05 [end_date_ymd] => 2025-01-06 12:56:05 [RateCDR] => 1 ) [2025-01-06 12:56: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-01-06 09:56:05' and `end` < '2025-01-06 12:56: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-01-06 12:56:23] Production.INFO: count ==4786 [2025-01-06 12:56:25] Production.ERROR: pbx CDR StartTime 2025-01-06 09:56:05 - End Time 2025-01-06 12:56:05 [2025-01-06 12:56:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:56:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187703', 'tblTempUsageDetail_20' ) start [2025-01-06 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187703', 'tblTempUsageDetail_20' ) end [2025-01-06 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187703', 'tblTempVendorCDR_20' ) start [2025-01-06 12:56:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187703', 'tblTempVendorCDR_20' ) end [2025-01-06 12:56:26] Production.INFO: ProcessCDR(1,14187703,1,1,2) [2025-01-06 12:56:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:56:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:56:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:56:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187703', 'tblTempUsageDetail_20' ) start [2025-01-06 12:56:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187703', 'tblTempUsageDetail_20' ) end [2025-01-06 12:56:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:56:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:56:30] Production.INFO: ==16819== Releasing lock... [2025-01-06 12:56:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:56:30] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:57:05 [end_date_ymd] => 2025-01-06 12:57:05 [RateCDR] => 1 ) [2025-01-06 12:57: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-01-06 09:57:05' and `end` < '2025-01-06 12:57: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-01-06 12:57:32] Production.INFO: count ==4786 [2025-01-06 12:57:34] Production.ERROR: pbx CDR StartTime 2025-01-06 09:57:05 - End Time 2025-01-06 12:57:05 [2025-01-06 12:57:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187708', 'tblTempUsageDetail_20' ) start [2025-01-06 12:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187708', 'tblTempUsageDetail_20' ) end [2025-01-06 12:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187708', 'tblTempVendorCDR_20' ) start [2025-01-06 12:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187708', 'tblTempVendorCDR_20' ) end [2025-01-06 12:57:35] Production.INFO: ProcessCDR(1,14187708,1,1,2) [2025-01-06 12:57:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:57:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:57:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:57:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:57:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187708', 'tblTempUsageDetail_20' ) start [2025-01-06 12:57:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187708', 'tblTempUsageDetail_20' ) end [2025-01-06 12:57:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:57:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:57:39] Production.INFO: ==16898== Releasing lock... [2025-01-06 12:57:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:57:39] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:58:05 [end_date_ymd] => 2025-01-06 12:58:05 [RateCDR] => 1 ) [2025-01-06 12:58: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-01-06 09:58:05' and `end` < '2025-01-06 12:58: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-01-06 12:58:32] Production.INFO: count ==4786 [2025-01-06 12:58:34] Production.ERROR: pbx CDR StartTime 2025-01-06 09:58:05 - End Time 2025-01-06 12:58:05 [2025-01-06 12:58:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:58:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187713', 'tblTempUsageDetail_20' ) start [2025-01-06 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187713', 'tblTempUsageDetail_20' ) end [2025-01-06 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187713', 'tblTempVendorCDR_20' ) start [2025-01-06 12:58:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187713', 'tblTempVendorCDR_20' ) end [2025-01-06 12:58:35] Production.INFO: ProcessCDR(1,14187713,1,1,2) [2025-01-06 12:58:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:58:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:58:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:58:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187713', 'tblTempUsageDetail_20' ) start [2025-01-06 12:58:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187713', 'tblTempUsageDetail_20' ) end [2025-01-06 12:58:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:58:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:58:40] Production.INFO: ==16974== Releasing lock... [2025-01-06 12:58:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:58:40] Production.INFO: 64 MB #Memory Used# [2025-01-06 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 09:59:05 [end_date_ymd] => 2025-01-06 12:59:05 [RateCDR] => 1 ) [2025-01-06 12:59: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-01-06 09:59:05' and `end` < '2025-01-06 12:59: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-01-06 12:59:31] Production.INFO: count ==4739 [2025-01-06 12:59:34] Production.ERROR: pbx CDR StartTime 2025-01-06 09:59:05 - End Time 2025-01-06 12:59:05 [2025-01-06 12:59:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 12:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187718', 'tblTempUsageDetail_20' ) start [2025-01-06 12:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187718', 'tblTempUsageDetail_20' ) end [2025-01-06 12:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187718', 'tblTempVendorCDR_20' ) start [2025-01-06 12:59:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187718', 'tblTempVendorCDR_20' ) end [2025-01-06 12:59:34] Production.INFO: ProcessCDR(1,14187718,1,1,2) [2025-01-06 12:59:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:59:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 12:59:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:59:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 12:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187718', 'tblTempUsageDetail_20' ) start [2025-01-06 12:59:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187718', 'tblTempUsageDetail_20' ) end [2025-01-06 12:59:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 12:59:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 12:59:38] Production.INFO: ==17055== Releasing lock... [2025-01-06 12:59:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 12:59:38] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:00:06 [end_date_ymd] => 2025-01-06 13:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 10:00:06' and `end` < '2025-01-06 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-01-06 13:00:32] Production.INFO: count ==4701 [2025-01-06 13:00:35] Production.ERROR: pbx CDR StartTime 2025-01-06 10:00:06 - End Time 2025-01-06 13:00:06 [2025-01-06 13:00:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187724', 'tblTempUsageDetail_20' ) start [2025-01-06 13:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187724', 'tblTempUsageDetail_20' ) end [2025-01-06 13:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187724', 'tblTempVendorCDR_20' ) start [2025-01-06 13:00:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187724', 'tblTempVendorCDR_20' ) end [2025-01-06 13:00:35] Production.INFO: ProcessCDR(1,14187724,1,1,2) [2025-01-06 13:00:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:00:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:00:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:00:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187724', 'tblTempUsageDetail_20' ) start [2025-01-06 13:00:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187724', 'tblTempUsageDetail_20' ) end [2025-01-06 13:00:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:00:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:00:40] Production.INFO: ==17131== Releasing lock... [2025-01-06 13:00:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:00:40] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:01:05 [end_date_ymd] => 2025-01-06 13:01:05 [RateCDR] => 1 ) [2025-01-06 13:01: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-01-06 10:01:05' and `end` < '2025-01-06 13:01: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-01-06 13:01:26] Production.INFO: count ==4791 [2025-01-06 13:01:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:01:05 - End Time 2025-01-06 13:01:05 [2025-01-06 13:01:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187729', 'tblTempUsageDetail_20' ) start [2025-01-06 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187729', 'tblTempUsageDetail_20' ) end [2025-01-06 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187729', 'tblTempVendorCDR_20' ) start [2025-01-06 13:01:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187729', 'tblTempVendorCDR_20' ) end [2025-01-06 13:01:29] Production.INFO: ProcessCDR(1,14187729,1,1,2) [2025-01-06 13:01:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:01:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:01:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:01:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187729', 'tblTempUsageDetail_20' ) start [2025-01-06 13:01:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187729', 'tblTempUsageDetail_20' ) end [2025-01-06 13:01:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:01:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:01:33] Production.INFO: ==17225== Releasing lock... [2025-01-06 13:01:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:01:33] Production.INFO: 64 MB #Memory Used# [2025-01-06 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:02:06 [end_date_ymd] => 2025-01-06 13:02:06 [RateCDR] => 1 ) [2025-01-06 13:02: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-01-06 10:02:06' and `end` < '2025-01-06 13:02: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-01-06 13:02:29] Production.INFO: count ==4785 [2025-01-06 13:02:31] Production.ERROR: pbx CDR StartTime 2025-01-06 10:02:06 - End Time 2025-01-06 13:02:06 [2025-01-06 13:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187734', 'tblTempUsageDetail_20' ) start [2025-01-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187734', 'tblTempUsageDetail_20' ) end [2025-01-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187734', 'tblTempVendorCDR_20' ) start [2025-01-06 13:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187734', 'tblTempVendorCDR_20' ) end [2025-01-06 13:02:31] Production.INFO: ProcessCDR(1,14187734,1,1,2) [2025-01-06 13:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187734', 'tblTempUsageDetail_20' ) start [2025-01-06 13:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187734', 'tblTempUsageDetail_20' ) end [2025-01-06 13:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:02:36] Production.INFO: ==17299== Releasing lock... [2025-01-06 13:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:02:36] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:03:05 [end_date_ymd] => 2025-01-06 13:03:05 [RateCDR] => 1 ) [2025-01-06 13:03: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-01-06 10:03:05' and `end` < '2025-01-06 13:03: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-01-06 13:03:30] Production.INFO: count ==4749 [2025-01-06 13:03:32] Production.ERROR: pbx CDR StartTime 2025-01-06 10:03:05 - End Time 2025-01-06 13:03:05 [2025-01-06 13:03:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187739', 'tblTempUsageDetail_20' ) start [2025-01-06 13:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187739', 'tblTempUsageDetail_20' ) end [2025-01-06 13:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187739', 'tblTempVendorCDR_20' ) start [2025-01-06 13:03:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187739', 'tblTempVendorCDR_20' ) end [2025-01-06 13:03:32] Production.INFO: ProcessCDR(1,14187739,1,1,2) [2025-01-06 13:03:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:03:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:03:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:03:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187739', 'tblTempUsageDetail_20' ) start [2025-01-06 13:03:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187739', 'tblTempUsageDetail_20' ) end [2025-01-06 13:03:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:03:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:03:37] Production.INFO: ==17371== Releasing lock... [2025-01-06 13:03:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:03:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:04:05 [end_date_ymd] => 2025-01-06 13:04:05 [RateCDR] => 1 ) [2025-01-06 13:04: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-01-06 10:04:05' and `end` < '2025-01-06 13:04: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-01-06 13:04:24] Production.INFO: count ==4723 [2025-01-06 13:04:26] Production.ERROR: pbx CDR StartTime 2025-01-06 10:04:05 - End Time 2025-01-06 13:04:05 [2025-01-06 13:04:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187744', 'tblTempUsageDetail_20' ) start [2025-01-06 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187744', 'tblTempUsageDetail_20' ) end [2025-01-06 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187744', 'tblTempVendorCDR_20' ) start [2025-01-06 13:04:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187744', 'tblTempVendorCDR_20' ) end [2025-01-06 13:04:26] Production.INFO: ProcessCDR(1,14187744,1,1,2) [2025-01-06 13:04:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:04:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:04:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:04:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187744', 'tblTempUsageDetail_20' ) start [2025-01-06 13:04:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187744', 'tblTempUsageDetail_20' ) end [2025-01-06 13:04:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:04:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:04:31] Production.INFO: ==17447== Releasing lock... [2025-01-06 13:04:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:04:31] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:05:05 [end_date_ymd] => 2025-01-06 13:05:05 [RateCDR] => 1 ) [2025-01-06 13:05: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-01-06 10:05:05' and `end` < '2025-01-06 13:05: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-01-06 13:05:27] Production.INFO: count ==4730 [2025-01-06 13:05:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:05:05 - End Time 2025-01-06 13:05:05 [2025-01-06 13:05:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:05:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187749', 'tblTempUsageDetail_20' ) start [2025-01-06 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187749', 'tblTempUsageDetail_20' ) end [2025-01-06 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187749', 'tblTempVendorCDR_20' ) start [2025-01-06 13:05:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187749', 'tblTempVendorCDR_20' ) end [2025-01-06 13:05:30] Production.INFO: ProcessCDR(1,14187749,1,1,2) [2025-01-06 13:05:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187749', 'tblTempUsageDetail_20' ) start [2025-01-06 13:05:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187749', 'tblTempUsageDetail_20' ) end [2025-01-06 13:05:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:05:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:05:35] Production.INFO: ==17518== Releasing lock... [2025-01-06 13:05:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:05:35] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:06:05 [end_date_ymd] => 2025-01-06 13:06:05 [RateCDR] => 1 ) [2025-01-06 13:06: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-01-06 10:06:05' and `end` < '2025-01-06 13:06: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-01-06 13:06:30] Production.INFO: count ==4720 [2025-01-06 13:06:33] Production.ERROR: pbx CDR StartTime 2025-01-06 10:06:05 - End Time 2025-01-06 13:06:05 [2025-01-06 13:06:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187754', 'tblTempUsageDetail_20' ) start [2025-01-06 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187754', 'tblTempUsageDetail_20' ) end [2025-01-06 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187754', 'tblTempVendorCDR_20' ) start [2025-01-06 13:06:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187754', 'tblTempVendorCDR_20' ) end [2025-01-06 13:06:33] Production.INFO: ProcessCDR(1,14187754,1,1,2) [2025-01-06 13:06:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:06:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:06:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:06:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:06:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187754', 'tblTempUsageDetail_20' ) start [2025-01-06 13:06:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187754', 'tblTempUsageDetail_20' ) end [2025-01-06 13:06:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:06:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:06:38] Production.INFO: ==17593== Releasing lock... [2025-01-06 13:06:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:06:38] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:07:05 [end_date_ymd] => 2025-01-06 13:07:05 [RateCDR] => 1 ) [2025-01-06 13:07: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-01-06 10:07:05' and `end` < '2025-01-06 13:07: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-01-06 13:07:30] Production.INFO: count ==4735 [2025-01-06 13:07:32] Production.ERROR: pbx CDR StartTime 2025-01-06 10:07:05 - End Time 2025-01-06 13:07:05 [2025-01-06 13:07:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187759', 'tblTempUsageDetail_20' ) start [2025-01-06 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187759', 'tblTempUsageDetail_20' ) end [2025-01-06 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187759', 'tblTempVendorCDR_20' ) start [2025-01-06 13:07:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187759', 'tblTempVendorCDR_20' ) end [2025-01-06 13:07:32] Production.INFO: ProcessCDR(1,14187759,1,1,2) [2025-01-06 13:07:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:07:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:07:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:07:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187759', 'tblTempUsageDetail_20' ) start [2025-01-06 13:07:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187759', 'tblTempUsageDetail_20' ) end [2025-01-06 13:07:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:07:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:07:37] Production.INFO: ==17671== Releasing lock... [2025-01-06 13:07:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:07:37] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:08:05 [end_date_ymd] => 2025-01-06 13:08:05 [RateCDR] => 1 ) [2025-01-06 13:08: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-01-06 10:08:05' and `end` < '2025-01-06 13:08: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-01-06 13:08:35] Production.INFO: count ==4767 [2025-01-06 13:08:37] Production.ERROR: pbx CDR StartTime 2025-01-06 10:08:05 - End Time 2025-01-06 13:08:05 [2025-01-06 13:08:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187764', 'tblTempUsageDetail_20' ) start [2025-01-06 13:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187764', 'tblTempUsageDetail_20' ) end [2025-01-06 13:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187764', 'tblTempVendorCDR_20' ) start [2025-01-06 13:08:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187764', 'tblTempVendorCDR_20' ) end [2025-01-06 13:08:37] Production.INFO: ProcessCDR(1,14187764,1,1,2) [2025-01-06 13:08:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:08:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:08:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:08:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187764', 'tblTempUsageDetail_20' ) start [2025-01-06 13:08:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187764', 'tblTempUsageDetail_20' ) end [2025-01-06 13:08:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:08:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:08:42] Production.INFO: ==17747== Releasing lock... [2025-01-06 13:08:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:08:42] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:09:06 [end_date_ymd] => 2025-01-06 13:09:06 [RateCDR] => 1 ) [2025-01-06 13:09: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-01-06 10:09:06' and `end` < '2025-01-06 13:09: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-01-06 13:09:38] Production.INFO: count ==4782 [2025-01-06 13:09:40] Production.ERROR: pbx CDR StartTime 2025-01-06 10:09:06 - End Time 2025-01-06 13:09:06 [2025-01-06 13:09:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187769', 'tblTempUsageDetail_20' ) start [2025-01-06 13:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187769', 'tblTempUsageDetail_20' ) end [2025-01-06 13:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187769', 'tblTempVendorCDR_20' ) start [2025-01-06 13:09:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187769', 'tblTempVendorCDR_20' ) end [2025-01-06 13:09:40] Production.INFO: ProcessCDR(1,14187769,1,1,2) [2025-01-06 13:09:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:09:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:09:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:09:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187769', 'tblTempUsageDetail_20' ) start [2025-01-06 13:09:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187769', 'tblTempUsageDetail_20' ) end [2025-01-06 13:09:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:09:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:09:45] Production.INFO: ==17860== Releasing lock... [2025-01-06 13:09:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:09:45] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:10:06 [end_date_ymd] => 2025-01-06 13:10:06 [RateCDR] => 1 ) [2025-01-06 13:10: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-01-06 10:10:06' and `end` < '2025-01-06 13:10: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-01-06 13:10:32] Production.INFO: count ==4811 [2025-01-06 13:10:35] Production.ERROR: pbx CDR StartTime 2025-01-06 10:10:06 - End Time 2025-01-06 13:10:06 [2025-01-06 13:10:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187774', 'tblTempUsageDetail_20' ) start [2025-01-06 13:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187774', 'tblTempUsageDetail_20' ) end [2025-01-06 13:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187774', 'tblTempVendorCDR_20' ) start [2025-01-06 13:10:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187774', 'tblTempVendorCDR_20' ) end [2025-01-06 13:10:35] Production.INFO: ProcessCDR(1,14187774,1,1,2) [2025-01-06 13:10:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:10:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:10:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:10:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187774', 'tblTempUsageDetail_20' ) start [2025-01-06 13:10:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187774', 'tblTempUsageDetail_20' ) end [2025-01-06 13:10:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:10:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:10:40] Production.INFO: ==17941== Releasing lock... [2025-01-06 13:10:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:10:40] Production.INFO: 64 MB #Memory Used# [2025-01-06 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:11:05 [end_date_ymd] => 2025-01-06 13:11:05 [RateCDR] => 1 ) [2025-01-06 13:11: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-01-06 10:11:05' and `end` < '2025-01-06 13:11: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-01-06 13:11:35] Production.INFO: count ==4889 [2025-01-06 13:11:37] Production.ERROR: pbx CDR StartTime 2025-01-06 10:11:05 - End Time 2025-01-06 13:11:05 [2025-01-06 13:11:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187780', 'tblTempUsageDetail_20' ) start [2025-01-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187780', 'tblTempUsageDetail_20' ) end [2025-01-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187780', 'tblTempVendorCDR_20' ) start [2025-01-06 13:11:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187780', 'tblTempVendorCDR_20' ) end [2025-01-06 13:11:37] Production.INFO: ProcessCDR(1,14187780,1,1,2) [2025-01-06 13:11:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:11:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:11:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:11:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187780', 'tblTempUsageDetail_20' ) start [2025-01-06 13:11:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187780', 'tblTempUsageDetail_20' ) end [2025-01-06 13:11:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:11:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:11:43] Production.INFO: ==18024== Releasing lock... [2025-01-06 13:11:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:11:43] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:12:05 [end_date_ymd] => 2025-01-06 13:12:05 [RateCDR] => 1 ) [2025-01-06 13:12: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-01-06 10:12:05' and `end` < '2025-01-06 13:12: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-01-06 13:12:26] Production.INFO: count ==4873 [2025-01-06 13:12:28] Production.ERROR: pbx CDR StartTime 2025-01-06 10:12:05 - End Time 2025-01-06 13:12:05 [2025-01-06 13:12:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187785', 'tblTempUsageDetail_20' ) start [2025-01-06 13:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187785', 'tblTempUsageDetail_20' ) end [2025-01-06 13:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187785', 'tblTempVendorCDR_20' ) start [2025-01-06 13:12:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187785', 'tblTempVendorCDR_20' ) end [2025-01-06 13:12:28] Production.INFO: ProcessCDR(1,14187785,1,1,2) [2025-01-06 13:12:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:12:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:12:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:12:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:12:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187785', 'tblTempUsageDetail_20' ) start [2025-01-06 13:12:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187785', 'tblTempUsageDetail_20' ) end [2025-01-06 13:12:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:12:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:12:34] Production.INFO: ==18104== Releasing lock... [2025-01-06 13:12:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:12:34] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:13:05 [end_date_ymd] => 2025-01-06 13:13:05 [RateCDR] => 1 ) [2025-01-06 13:13: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-01-06 10:13:05' and `end` < '2025-01-06 13:13: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-01-06 13:13:21] Production.INFO: count ==4857 [2025-01-06 13:13:23] Production.ERROR: pbx CDR StartTime 2025-01-06 10:13:05 - End Time 2025-01-06 13:13:05 [2025-01-06 13:13:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:13:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187790', 'tblTempUsageDetail_20' ) start [2025-01-06 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187790', 'tblTempUsageDetail_20' ) end [2025-01-06 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187790', 'tblTempVendorCDR_20' ) start [2025-01-06 13:13:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187790', 'tblTempVendorCDR_20' ) end [2025-01-06 13:13:24] Production.INFO: ProcessCDR(1,14187790,1,1,2) [2025-01-06 13:13:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:13:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:13:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:13:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187790', 'tblTempUsageDetail_20' ) start [2025-01-06 13:13:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187790', 'tblTempUsageDetail_20' ) end [2025-01-06 13:13:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:13:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:13:28] Production.INFO: ==18184== Releasing lock... [2025-01-06 13:13:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:13:28] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:14:05 [end_date_ymd] => 2025-01-06 13:14:05 [RateCDR] => 1 ) [2025-01-06 13:14: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-01-06 10:14:05' and `end` < '2025-01-06 13:14: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-01-06 13:14:19] Production.INFO: count ==4830 [2025-01-06 13:14:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:14:05 - End Time 2025-01-06 13:14:05 [2025-01-06 13:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187795', 'tblTempUsageDetail_20' ) start [2025-01-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187795', 'tblTempUsageDetail_20' ) end [2025-01-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187795', 'tblTempVendorCDR_20' ) start [2025-01-06 13:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187795', 'tblTempVendorCDR_20' ) end [2025-01-06 13:14:21] Production.INFO: ProcessCDR(1,14187795,1,1,2) [2025-01-06 13:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187795', 'tblTempUsageDetail_20' ) start [2025-01-06 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187795', 'tblTempUsageDetail_20' ) end [2025-01-06 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:14:26] Production.INFO: ==18253== Releasing lock... [2025-01-06 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:14:26] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:15:06 [end_date_ymd] => 2025-01-06 13:15:06 [RateCDR] => 1 ) [2025-01-06 13:15: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-01-06 10:15:06' and `end` < '2025-01-06 13:15: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-01-06 13:15:32] Production.INFO: count ==4825 [2025-01-06 13:15:34] Production.ERROR: pbx CDR StartTime 2025-01-06 10:15:06 - End Time 2025-01-06 13:15:06 [2025-01-06 13:15:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187800', 'tblTempUsageDetail_20' ) start [2025-01-06 13:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187800', 'tblTempUsageDetail_20' ) end [2025-01-06 13:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187800', 'tblTempVendorCDR_20' ) start [2025-01-06 13:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187800', 'tblTempVendorCDR_20' ) end [2025-01-06 13:15:34] Production.INFO: ProcessCDR(1,14187800,1,1,2) [2025-01-06 13:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:15:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:15:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:15:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187800', 'tblTempUsageDetail_20' ) start [2025-01-06 13:15:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187800', 'tblTempUsageDetail_20' ) end [2025-01-06 13:15:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:15:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:15:40] Production.INFO: ==18330== Releasing lock... [2025-01-06 13:15:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:15:40] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:16:06 [end_date_ymd] => 2025-01-06 13:16:06 [RateCDR] => 1 ) [2025-01-06 13:16: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-01-06 10:16:06' and `end` < '2025-01-06 13:16: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-01-06 13:16:28] Production.INFO: count ==4819 [2025-01-06 13:16:30] Production.ERROR: pbx CDR StartTime 2025-01-06 10:16:06 - End Time 2025-01-06 13:16:06 [2025-01-06 13:16:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:16:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187805', 'tblTempUsageDetail_20' ) start [2025-01-06 13:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187805', 'tblTempUsageDetail_20' ) end [2025-01-06 13:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187805', 'tblTempVendorCDR_20' ) start [2025-01-06 13:16:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187805', 'tblTempVendorCDR_20' ) end [2025-01-06 13:16:31] Production.INFO: ProcessCDR(1,14187805,1,1,2) [2025-01-06 13:16:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:16:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:16:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:16:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:16:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187805', 'tblTempUsageDetail_20' ) start [2025-01-06 13:16:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187805', 'tblTempUsageDetail_20' ) end [2025-01-06 13:16:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:16:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:16:36] Production.INFO: ==18408== Releasing lock... [2025-01-06 13:16:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:16:36] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:17:05 [end_date_ymd] => 2025-01-06 13:17:05 [RateCDR] => 1 ) [2025-01-06 13:17: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-01-06 10:17:05' and `end` < '2025-01-06 13:17: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-01-06 13:17:33] Production.INFO: count ==4813 [2025-01-06 13:17:35] Production.ERROR: pbx CDR StartTime 2025-01-06 10:17:05 - End Time 2025-01-06 13:17:05 [2025-01-06 13:17:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187810', 'tblTempUsageDetail_20' ) start [2025-01-06 13:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187810', 'tblTempUsageDetail_20' ) end [2025-01-06 13:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187810', 'tblTempVendorCDR_20' ) start [2025-01-06 13:17:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187810', 'tblTempVendorCDR_20' ) end [2025-01-06 13:17:35] Production.INFO: ProcessCDR(1,14187810,1,1,2) [2025-01-06 13:17:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:17:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:17:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:17:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:17:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187810', 'tblTempUsageDetail_20' ) start [2025-01-06 13:17:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187810', 'tblTempUsageDetail_20' ) end [2025-01-06 13:17:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:17:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:17:40] Production.INFO: ==18484== Releasing lock... [2025-01-06 13:17:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:17:40] Production.INFO: 64 MB #Memory Used# [2025-01-06 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:18:06 [end_date_ymd] => 2025-01-06 13:18:06 [RateCDR] => 1 ) [2025-01-06 13:18: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-01-06 10:18:06' and `end` < '2025-01-06 13:18: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-01-06 13:18:27] Production.INFO: count ==4812 [2025-01-06 13:18:30] Production.ERROR: pbx CDR StartTime 2025-01-06 10:18:06 - End Time 2025-01-06 13:18:06 [2025-01-06 13:18:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187815', 'tblTempUsageDetail_20' ) start [2025-01-06 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187815', 'tblTempUsageDetail_20' ) end [2025-01-06 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187815', 'tblTempVendorCDR_20' ) start [2025-01-06 13:18:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187815', 'tblTempVendorCDR_20' ) end [2025-01-06 13:18:30] Production.INFO: ProcessCDR(1,14187815,1,1,2) [2025-01-06 13:18:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:18:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:18:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:18:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187815', 'tblTempUsageDetail_20' ) start [2025-01-06 13:18:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187815', 'tblTempUsageDetail_20' ) end [2025-01-06 13:18:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:18:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:18:35] Production.INFO: ==18560== Releasing lock... [2025-01-06 13:18:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:18:35] Production.INFO: 64 MB #Memory Used# [2025-01-06 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:19:05 [end_date_ymd] => 2025-01-06 13:19:05 [RateCDR] => 1 ) [2025-01-06 13:19: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-01-06 10:19:05' and `end` < '2025-01-06 13:19: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-01-06 13:19:25] Production.INFO: count ==4829 [2025-01-06 13:19:27] Production.ERROR: pbx CDR StartTime 2025-01-06 10:19:05 - End Time 2025-01-06 13:19:05 [2025-01-06 13:19:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:19:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187820', 'tblTempUsageDetail_20' ) start [2025-01-06 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187820', 'tblTempUsageDetail_20' ) end [2025-01-06 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187820', 'tblTempVendorCDR_20' ) start [2025-01-06 13:19:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187820', 'tblTempVendorCDR_20' ) end [2025-01-06 13:19:28] Production.INFO: ProcessCDR(1,14187820,1,1,2) [2025-01-06 13:19:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:19:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:19:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:19:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187820', 'tblTempUsageDetail_20' ) start [2025-01-06 13:19:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187820', 'tblTempUsageDetail_20' ) end [2025-01-06 13:19:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:19:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:19:33] Production.INFO: ==18637== Releasing lock... [2025-01-06 13:19:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:19:33] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:20:06 [end_date_ymd] => 2025-01-06 13:20:06 [RateCDR] => 1 ) [2025-01-06 13:20: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-01-06 10:20:06' and `end` < '2025-01-06 13:20: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-01-06 13:20:30] Production.INFO: count ==4835 [2025-01-06 13:20:32] Production.ERROR: pbx CDR StartTime 2025-01-06 10:20:06 - End Time 2025-01-06 13:20:06 [2025-01-06 13:20:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187826', 'tblTempUsageDetail_20' ) start [2025-01-06 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187826', 'tblTempUsageDetail_20' ) end [2025-01-06 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187826', 'tblTempVendorCDR_20' ) start [2025-01-06 13:20:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187826', 'tblTempVendorCDR_20' ) end [2025-01-06 13:20:32] Production.INFO: ProcessCDR(1,14187826,1,1,2) [2025-01-06 13:20:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:20:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187826', 'tblTempUsageDetail_20' ) start [2025-01-06 13:20:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187826', 'tblTempUsageDetail_20' ) end [2025-01-06 13:20:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:20:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:20:37] Production.INFO: ==18718== Releasing lock... [2025-01-06 13:20:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:20:37] Production.INFO: 64.25 MB #Memory Used# [2025-01-06 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:21:05 [end_date_ymd] => 2025-01-06 13:21:05 [RateCDR] => 1 ) [2025-01-06 13:21: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-01-06 10:21:05' and `end` < '2025-01-06 13:21: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-01-06 13:21:30] Production.INFO: count ==4943 [2025-01-06 13:21:32] Production.ERROR: pbx CDR StartTime 2025-01-06 10:21:05 - End Time 2025-01-06 13:21:05 [2025-01-06 13:21:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187831', 'tblTempUsageDetail_20' ) start [2025-01-06 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187831', 'tblTempUsageDetail_20' ) end [2025-01-06 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187831', 'tblTempVendorCDR_20' ) start [2025-01-06 13:21:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187831', 'tblTempVendorCDR_20' ) end [2025-01-06 13:21:32] Production.INFO: ProcessCDR(1,14187831,1,1,2) [2025-01-06 13:21:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:21:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:21:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:21:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187831', 'tblTempUsageDetail_20' ) start [2025-01-06 13:21:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187831', 'tblTempUsageDetail_20' ) end [2025-01-06 13:21:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:21:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:21:37] Production.INFO: ==18796== Releasing lock... [2025-01-06 13:21:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:21:37] Production.INFO: 65 MB #Memory Used# [2025-01-06 13:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:22:05 [end_date_ymd] => 2025-01-06 13:22:05 [RateCDR] => 1 ) [2025-01-06 13:22: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-01-06 10:22:05' and `end` < '2025-01-06 13:22: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-01-06 13:22:29] Production.INFO: count ==4954 [2025-01-06 13:22:31] Production.ERROR: pbx CDR StartTime 2025-01-06 10:22:05 - End Time 2025-01-06 13:22:05 [2025-01-06 13:22:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187836', 'tblTempUsageDetail_20' ) start [2025-01-06 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187836', 'tblTempUsageDetail_20' ) end [2025-01-06 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187836', 'tblTempVendorCDR_20' ) start [2025-01-06 13:22:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187836', 'tblTempVendorCDR_20' ) end [2025-01-06 13:22:31] Production.INFO: ProcessCDR(1,14187836,1,1,2) [2025-01-06 13:22:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:22:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:22:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:22:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:22:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187836', 'tblTempUsageDetail_20' ) start [2025-01-06 13:22:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187836', 'tblTempUsageDetail_20' ) end [2025-01-06 13:22:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:22:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:22:37] Production.INFO: ==18875== Releasing lock... [2025-01-06 13:22:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:22:37] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:23:04 [end_date_ymd] => 2025-01-06 13:23:04 [RateCDR] => 1 ) [2025-01-06 13:23: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-01-06 10:23:04' and `end` < '2025-01-06 13:23: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-01-06 13:23:26] Production.INFO: count ==4953 [2025-01-06 13:23:28] Production.ERROR: pbx CDR StartTime 2025-01-06 10:23:04 - End Time 2025-01-06 13:23:04 [2025-01-06 13:23:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187841', 'tblTempUsageDetail_20' ) start [2025-01-06 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187841', 'tblTempUsageDetail_20' ) end [2025-01-06 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187841', 'tblTempVendorCDR_20' ) start [2025-01-06 13:23:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187841', 'tblTempVendorCDR_20' ) end [2025-01-06 13:23:28] Production.INFO: ProcessCDR(1,14187841,1,1,2) [2025-01-06 13:23:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:23:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:23:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:23:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:23:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187841', 'tblTempUsageDetail_20' ) start [2025-01-06 13:23:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187841', 'tblTempUsageDetail_20' ) end [2025-01-06 13:23:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:23:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:23:34] Production.INFO: ==18949== Releasing lock... [2025-01-06 13:23:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:23:34] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:24:05 [end_date_ymd] => 2025-01-06 13:24:05 [RateCDR] => 1 ) [2025-01-06 13:24: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-01-06 10:24:05' and `end` < '2025-01-06 13:24: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-01-06 13:24:25] Production.INFO: count ==4952 [2025-01-06 13:24:27] Production.ERROR: pbx CDR StartTime 2025-01-06 10:24:05 - End Time 2025-01-06 13:24:05 [2025-01-06 13:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187846', 'tblTempUsageDetail_20' ) start [2025-01-06 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187846', 'tblTempUsageDetail_20' ) end [2025-01-06 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187846', 'tblTempVendorCDR_20' ) start [2025-01-06 13:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187846', 'tblTempVendorCDR_20' ) end [2025-01-06 13:24:27] Production.INFO: ProcessCDR(1,14187846,1,1,2) [2025-01-06 13:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187846', 'tblTempUsageDetail_20' ) start [2025-01-06 13:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187846', 'tblTempUsageDetail_20' ) end [2025-01-06 13:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:24:32] Production.INFO: ==19029== Releasing lock... [2025-01-06 13:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:24:32] Production.INFO: 65 MB #Memory Used# [2025-01-06 13:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:25:06 [end_date_ymd] => 2025-01-06 13:25:06 [RateCDR] => 1 ) [2025-01-06 13: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-01-06 10:25:06' and `end` < '2025-01-06 13: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-01-06 13:25:29] Production.INFO: count ==4958 [2025-01-06 13:25:31] Production.ERROR: pbx CDR StartTime 2025-01-06 10:25:06 - End Time 2025-01-06 13:25:06 [2025-01-06 13:25:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187851', 'tblTempUsageDetail_20' ) start [2025-01-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187851', 'tblTempUsageDetail_20' ) end [2025-01-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187851', 'tblTempVendorCDR_20' ) start [2025-01-06 13:25:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187851', 'tblTempVendorCDR_20' ) end [2025-01-06 13:25:31] Production.INFO: ProcessCDR(1,14187851,1,1,2) [2025-01-06 13:25:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187851', 'tblTempUsageDetail_20' ) start [2025-01-06 13:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187851', 'tblTempUsageDetail_20' ) end [2025-01-06 13:25:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:25:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:25:36] Production.INFO: ==19147== Releasing lock... [2025-01-06 13:25:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:25:36] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:26:05 [end_date_ymd] => 2025-01-06 13:26:05 [RateCDR] => 1 ) [2025-01-06 13:26: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-01-06 10:26:05' and `end` < '2025-01-06 13:26: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-01-06 13:26:36] Production.INFO: count ==4966 [2025-01-06 13:26:38] Production.ERROR: pbx CDR StartTime 2025-01-06 10:26:05 - End Time 2025-01-06 13:26:05 [2025-01-06 13:26:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187856', 'tblTempUsageDetail_20' ) start [2025-01-06 13:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187856', 'tblTempUsageDetail_20' ) end [2025-01-06 13:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187856', 'tblTempVendorCDR_20' ) start [2025-01-06 13:26:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187856', 'tblTempVendorCDR_20' ) end [2025-01-06 13:26:38] Production.INFO: ProcessCDR(1,14187856,1,1,2) [2025-01-06 13:26:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:26:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:26:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:26:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:26:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187856', 'tblTempUsageDetail_20' ) start [2025-01-06 13:26:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187856', 'tblTempUsageDetail_20' ) end [2025-01-06 13:26:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:26:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:26:43] Production.INFO: ==19225== Releasing lock... [2025-01-06 13:26:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:26:43] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:27:05 [end_date_ymd] => 2025-01-06 13:27:05 [RateCDR] => 1 ) [2025-01-06 13:27: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-01-06 10:27:05' and `end` < '2025-01-06 13:27: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-01-06 13:27:29] Production.INFO: count ==4961 [2025-01-06 13:27:31] Production.ERROR: pbx CDR StartTime 2025-01-06 10:27:05 - End Time 2025-01-06 13:27:05 [2025-01-06 13:27:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187861', 'tblTempUsageDetail_20' ) start [2025-01-06 13:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187861', 'tblTempUsageDetail_20' ) end [2025-01-06 13:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187861', 'tblTempVendorCDR_20' ) start [2025-01-06 13:27:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187861', 'tblTempVendorCDR_20' ) end [2025-01-06 13:27:31] Production.INFO: ProcessCDR(1,14187861,1,1,2) [2025-01-06 13:27:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:27:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:27:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:27:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187861', 'tblTempUsageDetail_20' ) start [2025-01-06 13:27:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187861', 'tblTempUsageDetail_20' ) end [2025-01-06 13:27:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:27:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:27:36] Production.INFO: ==19299== Releasing lock... [2025-01-06 13:27:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:27:36] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:28:05 [end_date_ymd] => 2025-01-06 13:28:05 [RateCDR] => 1 ) [2025-01-06 13:28: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-01-06 10:28:05' and `end` < '2025-01-06 13:28: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-01-06 13:28:34] Production.INFO: count ==4955 [2025-01-06 13:28:37] Production.ERROR: pbx CDR StartTime 2025-01-06 10:28:05 - End Time 2025-01-06 13:28:05 [2025-01-06 13:28:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187866', 'tblTempUsageDetail_20' ) start [2025-01-06 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187866', 'tblTempUsageDetail_20' ) end [2025-01-06 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187866', 'tblTempVendorCDR_20' ) start [2025-01-06 13:28:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187866', 'tblTempVendorCDR_20' ) end [2025-01-06 13:28:37] Production.INFO: ProcessCDR(1,14187866,1,1,2) [2025-01-06 13:28:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:28:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:28:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:28:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187866', 'tblTempUsageDetail_20' ) start [2025-01-06 13:28:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187866', 'tblTempUsageDetail_20' ) end [2025-01-06 13:28:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:28:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:28:41] Production.INFO: ==19375== Releasing lock... [2025-01-06 13:28:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:28:41] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:29:05 [end_date_ymd] => 2025-01-06 13:29:05 [RateCDR] => 1 ) [2025-01-06 13:29: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-01-06 10:29:05' and `end` < '2025-01-06 13:29: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-01-06 13:29:34] Production.INFO: count ==4969 [2025-01-06 13:29:36] Production.ERROR: pbx CDR StartTime 2025-01-06 10:29:05 - End Time 2025-01-06 13:29:05 [2025-01-06 13:29:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:29:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187871', 'tblTempUsageDetail_20' ) start [2025-01-06 13:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187871', 'tblTempUsageDetail_20' ) end [2025-01-06 13:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187871', 'tblTempVendorCDR_20' ) start [2025-01-06 13:29:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187871', 'tblTempVendorCDR_20' ) end [2025-01-06 13:29:37] Production.INFO: ProcessCDR(1,14187871,1,1,2) [2025-01-06 13:29:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:29:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:29:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:29:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187871', 'tblTempUsageDetail_20' ) start [2025-01-06 13:29:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187871', 'tblTempUsageDetail_20' ) end [2025-01-06 13:29:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:29:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:29:41] Production.INFO: ==19452== Releasing lock... [2025-01-06 13:29:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:29:41] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:30:05 [end_date_ymd] => 2025-01-06 13:30:05 [RateCDR] => 1 ) [2025-01-06 13:30: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-01-06 10:30:05' and `end` < '2025-01-06 13:30: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-01-06 13:30:34] Production.INFO: count ==5004 [2025-01-06 13:30:37] Production.ERROR: pbx CDR StartTime 2025-01-06 10:30:05 - End Time 2025-01-06 13:30:05 [2025-01-06 13:30:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187877', 'tblTempUsageDetail_20' ) start [2025-01-06 13:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187877', 'tblTempUsageDetail_20' ) end [2025-01-06 13:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187877', 'tblTempVendorCDR_20' ) start [2025-01-06 13:30:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187877', 'tblTempVendorCDR_20' ) end [2025-01-06 13:30:37] Production.INFO: ProcessCDR(1,14187877,1,1,2) [2025-01-06 13:30:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:30:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:30:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:30:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187877', 'tblTempUsageDetail_20' ) start [2025-01-06 13:30:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187877', 'tblTempUsageDetail_20' ) end [2025-01-06 13:30:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:30:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:30:42] Production.INFO: ==19530== Releasing lock... [2025-01-06 13:30:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:30:42] Production.INFO: 65.5 MB #Memory Used# [2025-01-06 13:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:31:06 [end_date_ymd] => 2025-01-06 13:31:06 [RateCDR] => 1 ) [2025-01-06 13:31: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-01-06 10:31:06' and `end` < '2025-01-06 13:31: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-01-06 13:31:26] Production.INFO: count ==5100 [2025-01-06 13:31:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:31:06 - End Time 2025-01-06 13:31:06 [2025-01-06 13:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187882', 'tblTempUsageDetail_20' ) start [2025-01-06 13:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187882', 'tblTempUsageDetail_20' ) end [2025-01-06 13:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187882', 'tblTempVendorCDR_20' ) start [2025-01-06 13:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187882', 'tblTempVendorCDR_20' ) end [2025-01-06 13:31:29] Production.INFO: ProcessCDR(1,14187882,1,1,2) [2025-01-06 13:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187882', 'tblTempUsageDetail_20' ) start [2025-01-06 13:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187882', 'tblTempUsageDetail_20' ) end [2025-01-06 13:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:31:34] Production.INFO: ==19606== Releasing lock... [2025-01-06 13:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:31:34] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:32:06 [end_date_ymd] => 2025-01-06 13:32:06 [RateCDR] => 1 ) [2025-01-06 13:32: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-01-06 10:32:06' and `end` < '2025-01-06 13:32: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-01-06 13:32:24] Production.INFO: count ==5101 [2025-01-06 13:32:26] Production.ERROR: pbx CDR StartTime 2025-01-06 10:32:06 - End Time 2025-01-06 13:32:06 [2025-01-06 13:32:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187887', 'tblTempUsageDetail_20' ) start [2025-01-06 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187887', 'tblTempUsageDetail_20' ) end [2025-01-06 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187887', 'tblTempVendorCDR_20' ) start [2025-01-06 13:32:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187887', 'tblTempVendorCDR_20' ) end [2025-01-06 13:32:26] Production.INFO: ProcessCDR(1,14187887,1,1,2) [2025-01-06 13:32:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:32:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:32:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:32:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187887', 'tblTempUsageDetail_20' ) start [2025-01-06 13:32:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187887', 'tblTempUsageDetail_20' ) end [2025-01-06 13:32:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:32:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:32:31] Production.INFO: ==19683== Releasing lock... [2025-01-06 13:32:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:32:31] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:33:05 [end_date_ymd] => 2025-01-06 13:33:05 [RateCDR] => 1 ) [2025-01-06 13:33: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-01-06 10:33:05' and `end` < '2025-01-06 13:33: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-01-06 13:33:23] Production.INFO: count ==5104 [2025-01-06 13:33:26] Production.ERROR: pbx CDR StartTime 2025-01-06 10:33:05 - End Time 2025-01-06 13:33:05 [2025-01-06 13:33:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187892', 'tblTempUsageDetail_20' ) start [2025-01-06 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187892', 'tblTempUsageDetail_20' ) end [2025-01-06 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187892', 'tblTempVendorCDR_20' ) start [2025-01-06 13:33:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187892', 'tblTempVendorCDR_20' ) end [2025-01-06 13:33:26] Production.INFO: ProcessCDR(1,14187892,1,1,2) [2025-01-06 13:33:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:33:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:33:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:33:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187892', 'tblTempUsageDetail_20' ) start [2025-01-06 13:33:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187892', 'tblTempUsageDetail_20' ) end [2025-01-06 13:33:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:33:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:33:29] Production.INFO: ==19753== Releasing lock... [2025-01-06 13:33:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:33:29] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:34:05 [end_date_ymd] => 2025-01-06 13:34:05 [RateCDR] => 1 ) [2025-01-06 13:34: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-01-06 10:34:05' and `end` < '2025-01-06 13:34: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-01-06 13:34:31] Production.INFO: count ==5115 [2025-01-06 13:34:33] Production.ERROR: pbx CDR StartTime 2025-01-06 10:34:05 - End Time 2025-01-06 13:34:05 [2025-01-06 13:34:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187897', 'tblTempUsageDetail_20' ) start [2025-01-06 13:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187897', 'tblTempUsageDetail_20' ) end [2025-01-06 13:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187897', 'tblTempVendorCDR_20' ) start [2025-01-06 13:34:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187897', 'tblTempVendorCDR_20' ) end [2025-01-06 13:34:33] Production.INFO: ProcessCDR(1,14187897,1,1,2) [2025-01-06 13:34:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:34:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:34:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:34:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187897', 'tblTempUsageDetail_20' ) start [2025-01-06 13:34:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187897', 'tblTempUsageDetail_20' ) end [2025-01-06 13:34:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:34:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:34:38] Production.INFO: ==19829== Releasing lock... [2025-01-06 13:34:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:34:38] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:35:04 [end_date_ymd] => 2025-01-06 13:35:04 [RateCDR] => 1 ) [2025-01-06 13:35: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-01-06 10:35:04' and `end` < '2025-01-06 13:35: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-01-06 13:35:25] Production.INFO: count ==5081 [2025-01-06 13:35:28] Production.ERROR: pbx CDR StartTime 2025-01-06 10:35:04 - End Time 2025-01-06 13:35:04 [2025-01-06 13:35:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187902', 'tblTempUsageDetail_20' ) start [2025-01-06 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187902', 'tblTempUsageDetail_20' ) end [2025-01-06 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187902', 'tblTempVendorCDR_20' ) start [2025-01-06 13:35:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187902', 'tblTempVendorCDR_20' ) end [2025-01-06 13:35:28] Production.INFO: ProcessCDR(1,14187902,1,1,2) [2025-01-06 13:35:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:35:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:35:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:35:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187902', 'tblTempUsageDetail_20' ) start [2025-01-06 13:35:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187902', 'tblTempUsageDetail_20' ) end [2025-01-06 13:35:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:35:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:35:33] Production.INFO: ==19904== Releasing lock... [2025-01-06 13:35:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:35:33] Production.INFO: 66 MB #Memory Used# [2025-01-06 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:36:06 [end_date_ymd] => 2025-01-06 13:36:06 [RateCDR] => 1 ) [2025-01-06 13:36: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-01-06 10:36:06' and `end` < '2025-01-06 13:36: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-01-06 13:36:19] Production.INFO: count ==5072 [2025-01-06 13:36:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:36:06 - End Time 2025-01-06 13:36:06 [2025-01-06 13:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187907', 'tblTempUsageDetail_20' ) start [2025-01-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187907', 'tblTempUsageDetail_20' ) end [2025-01-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187907', 'tblTempVendorCDR_20' ) start [2025-01-06 13:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187907', 'tblTempVendorCDR_20' ) end [2025-01-06 13:36:22] Production.INFO: ProcessCDR(1,14187907,1,1,2) [2025-01-06 13:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187907', 'tblTempUsageDetail_20' ) start [2025-01-06 13:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187907', 'tblTempUsageDetail_20' ) end [2025-01-06 13:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:36:27] Production.INFO: ==19991== Releasing lock... [2025-01-06 13:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:36:27] Production.INFO: 66 MB #Memory Used# [2025-01-06 13:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:37:04 [end_date_ymd] => 2025-01-06 13:37:04 [RateCDR] => 1 ) [2025-01-06 13:37: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-01-06 10:37:04' and `end` < '2025-01-06 13:37: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-01-06 13:37:18] Production.INFO: count ==5068 [2025-01-06 13:37:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:37:04 - End Time 2025-01-06 13:37:04 [2025-01-06 13:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187912', 'tblTempUsageDetail_20' ) start [2025-01-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187912', 'tblTempUsageDetail_20' ) end [2025-01-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187912', 'tblTempVendorCDR_20' ) start [2025-01-06 13:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187912', 'tblTempVendorCDR_20' ) end [2025-01-06 13:37:21] Production.INFO: ProcessCDR(1,14187912,1,1,2) [2025-01-06 13:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187912', 'tblTempUsageDetail_20' ) start [2025-01-06 13:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187912', 'tblTempUsageDetail_20' ) end [2025-01-06 13:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:37:26] Production.INFO: ==20082== Releasing lock... [2025-01-06 13:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:37:26] Production.INFO: 66 MB #Memory Used# [2025-01-06 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:38:05 [end_date_ymd] => 2025-01-06 13:38:05 [RateCDR] => 1 ) [2025-01-06 13:38: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-01-06 10:38:05' and `end` < '2025-01-06 13:38: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-01-06 13:38:19] Production.INFO: count ==5073 [2025-01-06 13:38:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:38:05 - End Time 2025-01-06 13:38:05 [2025-01-06 13:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187917', 'tblTempUsageDetail_20' ) start [2025-01-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187917', 'tblTempUsageDetail_20' ) end [2025-01-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187917', 'tblTempVendorCDR_20' ) start [2025-01-06 13:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187917', 'tblTempVendorCDR_20' ) end [2025-01-06 13:38:21] Production.INFO: ProcessCDR(1,14187917,1,1,2) [2025-01-06 13:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187917', 'tblTempUsageDetail_20' ) start [2025-01-06 13:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187917', 'tblTempUsageDetail_20' ) end [2025-01-06 13:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:38:26] Production.INFO: ==20161== Releasing lock... [2025-01-06 13:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:38:26] Production.INFO: 66 MB #Memory Used# [2025-01-06 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:39:05 [end_date_ymd] => 2025-01-06 13:39:05 [RateCDR] => 1 ) [2025-01-06 13:39: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-01-06 10:39:05' and `end` < '2025-01-06 13:39: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-01-06 13:39:19] Production.INFO: count ==5048 [2025-01-06 13:39:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:39:05 - End Time 2025-01-06 13:39:05 [2025-01-06 13:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187922', 'tblTempUsageDetail_20' ) start [2025-01-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187922', 'tblTempUsageDetail_20' ) end [2025-01-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187922', 'tblTempVendorCDR_20' ) start [2025-01-06 13:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187922', 'tblTempVendorCDR_20' ) end [2025-01-06 13:39:22] Production.INFO: ProcessCDR(1,14187922,1,1,2) [2025-01-06 13:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187922', 'tblTempUsageDetail_20' ) start [2025-01-06 13:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187922', 'tblTempUsageDetail_20' ) end [2025-01-06 13:39:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:39:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:39:26] Production.INFO: ==20266== Releasing lock... [2025-01-06 13:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:39:26] Production.INFO: 65.75 MB #Memory Used# [2025-01-06 13:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:40:05 [end_date_ymd] => 2025-01-06 13:40:05 [RateCDR] => 1 ) [2025-01-06 13:40: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-01-06 10:40:05' and `end` < '2025-01-06 13:40: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-01-06 13:40:19] Production.INFO: count ==5063 [2025-01-06 13:40:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:40:05 - End Time 2025-01-06 13:40:05 [2025-01-06 13:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187928', 'tblTempUsageDetail_20' ) start [2025-01-06 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187928', 'tblTempUsageDetail_20' ) end [2025-01-06 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187928', 'tblTempVendorCDR_20' ) start [2025-01-06 13:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187928', 'tblTempVendorCDR_20' ) end [2025-01-06 13:40:22] Production.INFO: ProcessCDR(1,14187928,1,1,2) [2025-01-06 13:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187928', 'tblTempUsageDetail_20' ) start [2025-01-06 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187928', 'tblTempUsageDetail_20' ) end [2025-01-06 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:40:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:40:27] Production.INFO: ==20357== Releasing lock... [2025-01-06 13:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:40:27] Production.INFO: 66 MB #Memory Used# [2025-01-06 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:41:06 [end_date_ymd] => 2025-01-06 13:41:06 [RateCDR] => 1 ) [2025-01-06 13:41: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-01-06 10:41:06' and `end` < '2025-01-06 13:41: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-01-06 13:41:22] Production.INFO: count ==5121 [2025-01-06 13:41:24] Production.ERROR: pbx CDR StartTime 2025-01-06 10:41:06 - End Time 2025-01-06 13:41:06 [2025-01-06 13:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187933', 'tblTempUsageDetail_20' ) start [2025-01-06 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187933', 'tblTempUsageDetail_20' ) end [2025-01-06 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187933', 'tblTempVendorCDR_20' ) start [2025-01-06 13:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187933', 'tblTempVendorCDR_20' ) end [2025-01-06 13:41:24] Production.INFO: ProcessCDR(1,14187933,1,1,2) [2025-01-06 13:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187933', 'tblTempUsageDetail_20' ) start [2025-01-06 13:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187933', 'tblTempUsageDetail_20' ) end [2025-01-06 13:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:41:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:41:28] Production.INFO: ==20496== Releasing lock... [2025-01-06 13:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:41:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:42:05 [end_date_ymd] => 2025-01-06 13:42:05 [RateCDR] => 1 ) [2025-01-06 13:42: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-01-06 10:42:05' and `end` < '2025-01-06 13:42: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-01-06 13:42:19] Production.INFO: count ==5121 [2025-01-06 13:42:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:42:05 - End Time 2025-01-06 13:42:05 [2025-01-06 13:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187938', 'tblTempUsageDetail_20' ) start [2025-01-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187938', 'tblTempUsageDetail_20' ) end [2025-01-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187938', 'tblTempVendorCDR_20' ) start [2025-01-06 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187938', 'tblTempVendorCDR_20' ) end [2025-01-06 13:42:21] Production.INFO: ProcessCDR(1,14187938,1,1,2) [2025-01-06 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187938', 'tblTempUsageDetail_20' ) start [2025-01-06 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187938', 'tblTempUsageDetail_20' ) end [2025-01-06 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:42:26] Production.INFO: ==20574== Releasing lock... [2025-01-06 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:42:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:43:05 [end_date_ymd] => 2025-01-06 13:43:05 [RateCDR] => 1 ) [2025-01-06 13:43: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-01-06 10:43:05' and `end` < '2025-01-06 13:43: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-01-06 13:43:23] Production.INFO: count ==5135 [2025-01-06 13:43:25] Production.ERROR: pbx CDR StartTime 2025-01-06 10:43:05 - End Time 2025-01-06 13:43:05 [2025-01-06 13:43:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187943', 'tblTempUsageDetail_20' ) start [2025-01-06 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187943', 'tblTempUsageDetail_20' ) end [2025-01-06 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187943', 'tblTempVendorCDR_20' ) start [2025-01-06 13:43:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187943', 'tblTempVendorCDR_20' ) end [2025-01-06 13:43:25] Production.INFO: ProcessCDR(1,14187943,1,1,2) [2025-01-06 13:43:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:43:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:43:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:43:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187943', 'tblTempUsageDetail_20' ) start [2025-01-06 13:43:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187943', 'tblTempUsageDetail_20' ) end [2025-01-06 13:43:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:43:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:43:30] Production.INFO: ==20683== Releasing lock... [2025-01-06 13:43:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:43:30] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:44:04 [end_date_ymd] => 2025-01-06 13:44:04 [RateCDR] => 1 ) [2025-01-06 13:44: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-01-06 10:44:04' and `end` < '2025-01-06 13:44: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-01-06 13:44:20] Production.INFO: count ==5151 [2025-01-06 13:44:23] Production.ERROR: pbx CDR StartTime 2025-01-06 10:44:04 - End Time 2025-01-06 13:44:04 [2025-01-06 13:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187948', 'tblTempUsageDetail_20' ) start [2025-01-06 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187948', 'tblTempUsageDetail_20' ) end [2025-01-06 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187948', 'tblTempVendorCDR_20' ) start [2025-01-06 13:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187948', 'tblTempVendorCDR_20' ) end [2025-01-06 13:44:23] Production.INFO: ProcessCDR(1,14187948,1,1,2) [2025-01-06 13:44:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187948', 'tblTempUsageDetail_20' ) start [2025-01-06 13:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187948', 'tblTempUsageDetail_20' ) end [2025-01-06 13:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:44:28] Production.INFO: ==20767== Releasing lock... [2025-01-06 13:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:44:28] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:45:05 [end_date_ymd] => 2025-01-06 13:45:05 [RateCDR] => 1 ) [2025-01-06 13:45: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-01-06 10:45:05' and `end` < '2025-01-06 13:45: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-01-06 13:45:20] Production.INFO: count ==5161 [2025-01-06 13:45:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:45:05 - End Time 2025-01-06 13:45:05 [2025-01-06 13:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187953', 'tblTempUsageDetail_20' ) start [2025-01-06 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187953', 'tblTempUsageDetail_20' ) end [2025-01-06 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187953', 'tblTempVendorCDR_20' ) start [2025-01-06 13:45:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187953', 'tblTempVendorCDR_20' ) end [2025-01-06 13:45:23] Production.INFO: ProcessCDR(1,14187953,1,1,2) [2025-01-06 13:45:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187953', 'tblTempUsageDetail_20' ) start [2025-01-06 13:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187953', 'tblTempUsageDetail_20' ) end [2025-01-06 13:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:45:27] Production.INFO: ==20884== Releasing lock... [2025-01-06 13:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:45:27] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 13:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:46:06 [end_date_ymd] => 2025-01-06 13:46:06 [RateCDR] => 1 ) [2025-01-06 13:46: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-01-06 10:46:06' and `end` < '2025-01-06 13:46: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-01-06 13:46:20] Production.INFO: count ==5151 [2025-01-06 13:46:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:46:06 - End Time 2025-01-06 13:46:06 [2025-01-06 13:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187958', 'tblTempUsageDetail_20' ) start [2025-01-06 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187958', 'tblTempUsageDetail_20' ) end [2025-01-06 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187958', 'tblTempVendorCDR_20' ) start [2025-01-06 13:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187958', 'tblTempVendorCDR_20' ) end [2025-01-06 13:46:22] Production.INFO: ProcessCDR(1,14187958,1,1,2) [2025-01-06 13:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187958', 'tblTempUsageDetail_20' ) start [2025-01-06 13:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187958', 'tblTempUsageDetail_20' ) end [2025-01-06 13:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:46:27] Production.INFO: ==20973== Releasing lock... [2025-01-06 13:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:46:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:47:05 [end_date_ymd] => 2025-01-06 13:47:05 [RateCDR] => 1 ) [2025-01-06 13:47: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-01-06 10:47:05' and `end` < '2025-01-06 13:47: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-01-06 13:47:27] Production.INFO: count ==5135 [2025-01-06 13:47:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:47:05 - End Time 2025-01-06 13:47:05 [2025-01-06 13:47:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187963', 'tblTempUsageDetail_20' ) start [2025-01-06 13:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187963', 'tblTempUsageDetail_20' ) end [2025-01-06 13:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187963', 'tblTempVendorCDR_20' ) start [2025-01-06 13:47:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187963', 'tblTempVendorCDR_20' ) end [2025-01-06 13:47:29] Production.INFO: ProcessCDR(1,14187963,1,1,2) [2025-01-06 13:47:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:47:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:47:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:47:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187963', 'tblTempUsageDetail_20' ) start [2025-01-06 13:47:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187963', 'tblTempUsageDetail_20' ) end [2025-01-06 13:47:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:47:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:47:34] Production.INFO: ==21084== Releasing lock... [2025-01-06 13:47:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:47:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:48:05 [end_date_ymd] => 2025-01-06 13:48:05 [RateCDR] => 1 ) [2025-01-06 13:48: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-01-06 10:48:05' and `end` < '2025-01-06 13:48: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-01-06 13:48:23] Production.INFO: count ==5145 [2025-01-06 13:48:26] Production.ERROR: pbx CDR StartTime 2025-01-06 10:48:05 - End Time 2025-01-06 13:48:05 [2025-01-06 13:48:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187968', 'tblTempUsageDetail_20' ) start [2025-01-06 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187968', 'tblTempUsageDetail_20' ) end [2025-01-06 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187968', 'tblTempVendorCDR_20' ) start [2025-01-06 13:48:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187968', 'tblTempVendorCDR_20' ) end [2025-01-06 13:48:26] Production.INFO: ProcessCDR(1,14187968,1,1,2) [2025-01-06 13:48:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:48:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:48:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:48:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187968', 'tblTempUsageDetail_20' ) start [2025-01-06 13:48:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187968', 'tblTempUsageDetail_20' ) end [2025-01-06 13:48:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:48:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:48:31] Production.INFO: ==21181== Releasing lock... [2025-01-06 13:48:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:48:31] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:49:04 [end_date_ymd] => 2025-01-06 13:49:04 [RateCDR] => 1 ) [2025-01-06 13:49: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-01-06 10:49:04' and `end` < '2025-01-06 13:49: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-01-06 13:49:22] Production.INFO: count ==5159 [2025-01-06 13:49:24] Production.ERROR: pbx CDR StartTime 2025-01-06 10:49:04 - End Time 2025-01-06 13:49:04 [2025-01-06 13:49:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:49:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187973', 'tblTempUsageDetail_20' ) start [2025-01-06 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187973', 'tblTempUsageDetail_20' ) end [2025-01-06 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187973', 'tblTempVendorCDR_20' ) start [2025-01-06 13:49:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187973', 'tblTempVendorCDR_20' ) end [2025-01-06 13:49:25] Production.INFO: ProcessCDR(1,14187973,1,1,2) [2025-01-06 13:49:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:49:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:49:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:49:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187973', 'tblTempUsageDetail_20' ) start [2025-01-06 13:49:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187973', 'tblTempUsageDetail_20' ) end [2025-01-06 13:49:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:49:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:49:29] Production.INFO: ==21291== Releasing lock... [2025-01-06 13:49:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:49:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:50:06 [end_date_ymd] => 2025-01-06 13:50:06 [RateCDR] => 1 ) [2025-01-06 13:50: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-01-06 10:50:06' and `end` < '2025-01-06 13:50: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-01-06 13:50:27] Production.INFO: count ==5164 [2025-01-06 13:50:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:50:06 - End Time 2025-01-06 13:50:06 [2025-01-06 13:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187979', 'tblTempUsageDetail_20' ) start [2025-01-06 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187979', 'tblTempUsageDetail_20' ) end [2025-01-06 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187979', 'tblTempVendorCDR_20' ) start [2025-01-06 13:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187979', 'tblTempVendorCDR_20' ) end [2025-01-06 13:50:29] Production.INFO: ProcessCDR(1,14187979,1,1,2) [2025-01-06 13:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:50:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:50:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187979', 'tblTempUsageDetail_20' ) start [2025-01-06 13:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187979', 'tblTempUsageDetail_20' ) end [2025-01-06 13:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:50:34] Production.INFO: ==21380== Releasing lock... [2025-01-06 13:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:50:34] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:51:05 [end_date_ymd] => 2025-01-06 13:51:05 [RateCDR] => 1 ) [2025-01-06 13:51: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-01-06 10:51:05' and `end` < '2025-01-06 13:51: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-01-06 13:51:18] Production.INFO: count ==5189 [2025-01-06 13:51:21] Production.ERROR: pbx CDR StartTime 2025-01-06 10:51:05 - End Time 2025-01-06 13:51:05 [2025-01-06 13:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187984', 'tblTempUsageDetail_20' ) start [2025-01-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187984', 'tblTempUsageDetail_20' ) end [2025-01-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187984', 'tblTempVendorCDR_20' ) start [2025-01-06 13:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187984', 'tblTempVendorCDR_20' ) end [2025-01-06 13:51:21] Production.INFO: ProcessCDR(1,14187984,1,1,2) [2025-01-06 13:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187984', 'tblTempUsageDetail_20' ) start [2025-01-06 13:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187984', 'tblTempUsageDetail_20' ) end [2025-01-06 13:51:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:51:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:51:26] Production.INFO: ==21482== Releasing lock... [2025-01-06 13:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:51:26] Production.INFO: 67 MB #Memory Used# [2025-01-06 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:52:05 [end_date_ymd] => 2025-01-06 13:52:05 [RateCDR] => 1 ) [2025-01-06 13:52: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-01-06 10:52:05' and `end` < '2025-01-06 13:52: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-01-06 13:52:27] Production.INFO: count ==5201 [2025-01-06 13:52:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:52:05 - End Time 2025-01-06 13:52:05 [2025-01-06 13:52:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:52:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187989', 'tblTempUsageDetail_20' ) start [2025-01-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187989', 'tblTempUsageDetail_20' ) end [2025-01-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187989', 'tblTempVendorCDR_20' ) start [2025-01-06 13:52:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187989', 'tblTempVendorCDR_20' ) end [2025-01-06 13:52:30] Production.INFO: ProcessCDR(1,14187989,1,1,2) [2025-01-06 13:52:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:52:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:52:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:52:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187989', 'tblTempUsageDetail_20' ) start [2025-01-06 13:52:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187989', 'tblTempUsageDetail_20' ) end [2025-01-06 13:52:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:52:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:52:34] Production.INFO: ==21573== Releasing lock... [2025-01-06 13:52:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:52:34] Production.INFO: 67 MB #Memory Used# [2025-01-06 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:53:05 [end_date_ymd] => 2025-01-06 13:53:05 [RateCDR] => 1 ) [2025-01-06 13:53: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-01-06 10:53:05' and `end` < '2025-01-06 13:53: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-01-06 13:53:25] Production.INFO: count ==5177 [2025-01-06 13:53:27] Production.ERROR: pbx CDR StartTime 2025-01-06 10:53:05 - End Time 2025-01-06 13:53:05 [2025-01-06 13:53:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187994', 'tblTempUsageDetail_20' ) start [2025-01-06 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187994', 'tblTempUsageDetail_20' ) end [2025-01-06 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187994', 'tblTempVendorCDR_20' ) start [2025-01-06 13:53:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187994', 'tblTempVendorCDR_20' ) end [2025-01-06 13:53:27] Production.INFO: ProcessCDR(1,14187994,1,1,2) [2025-01-06 13:53:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:53:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:53:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:53:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187994', 'tblTempUsageDetail_20' ) start [2025-01-06 13:53:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187994', 'tblTempUsageDetail_20' ) end [2025-01-06 13:53:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:53:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:53:32] Production.INFO: ==21671== Releasing lock... [2025-01-06 13:53:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:53:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:54:05 [end_date_ymd] => 2025-01-06 13:54:05 [RateCDR] => 1 ) [2025-01-06 13:54: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-01-06 10:54:05' and `end` < '2025-01-06 13:54: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-01-06 13:54:27] Production.INFO: count ==5145 [2025-01-06 13:54:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:54:05 - End Time 2025-01-06 13:54:05 [2025-01-06 13:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187999', 'tblTempUsageDetail_20' ) start [2025-01-06 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14187999', 'tblTempUsageDetail_20' ) end [2025-01-06 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187999', 'tblTempVendorCDR_20' ) start [2025-01-06 13:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14187999', 'tblTempVendorCDR_20' ) end [2025-01-06 13:54:29] Production.INFO: ProcessCDR(1,14187999,1,1,2) [2025-01-06 13:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14187999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14187999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14187999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14187999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187999', 'tblTempUsageDetail_20' ) start [2025-01-06 13:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14187999', 'tblTempUsageDetail_20' ) end [2025-01-06 13:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:54:34] Production.INFO: ==21774== Releasing lock... [2025-01-06 13:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:54:34] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:55:06 [end_date_ymd] => 2025-01-06 13:55:06 [RateCDR] => 1 ) [2025-01-06 13:55: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-01-06 10:55:06' and `end` < '2025-01-06 13:55: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-01-06 13:55:31] Production.INFO: count ==5114 [2025-01-06 13:55:33] Production.ERROR: pbx CDR StartTime 2025-01-06 10:55:06 - End Time 2025-01-06 13:55:06 [2025-01-06 13:55:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:55:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188004', 'tblTempUsageDetail_20' ) start [2025-01-06 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188004', 'tblTempUsageDetail_20' ) end [2025-01-06 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188004', 'tblTempVendorCDR_20' ) start [2025-01-06 13:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188004', 'tblTempVendorCDR_20' ) end [2025-01-06 13:55:34] Production.INFO: ProcessCDR(1,14188004,1,1,2) [2025-01-06 13:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:55:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:55:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188004', 'tblTempUsageDetail_20' ) start [2025-01-06 13:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188004', 'tblTempUsageDetail_20' ) end [2025-01-06 13:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:55:39] Production.INFO: ==21854== Releasing lock... [2025-01-06 13:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:55:39] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:56:05 [end_date_ymd] => 2025-01-06 13:56:05 [RateCDR] => 1 ) [2025-01-06 13:56: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-01-06 10:56:05' and `end` < '2025-01-06 13:56: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-01-06 13:56:26] Production.INFO: count ==5100 [2025-01-06 13:56:29] Production.ERROR: pbx CDR StartTime 2025-01-06 10:56:05 - End Time 2025-01-06 13:56:05 [2025-01-06 13:56:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188009', 'tblTempUsageDetail_20' ) start [2025-01-06 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188009', 'tblTempUsageDetail_20' ) end [2025-01-06 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188009', 'tblTempVendorCDR_20' ) start [2025-01-06 13:56:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188009', 'tblTempVendorCDR_20' ) end [2025-01-06 13:56:29] Production.INFO: ProcessCDR(1,14188009,1,1,2) [2025-01-06 13:56:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:56:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:56:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:56:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188009', 'tblTempUsageDetail_20' ) start [2025-01-06 13:56:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188009', 'tblTempUsageDetail_20' ) end [2025-01-06 13:56:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:56:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:56:34] Production.INFO: ==21972== Releasing lock... [2025-01-06 13:56:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:56:34] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:57:05 [end_date_ymd] => 2025-01-06 13:57:05 [RateCDR] => 1 ) [2025-01-06 13:57: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-01-06 10:57:05' and `end` < '2025-01-06 13:57: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-01-06 13:57:19] Production.INFO: count ==5127 [2025-01-06 13:57:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:57:05 - End Time 2025-01-06 13:57:05 [2025-01-06 13:57:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188014', 'tblTempUsageDetail_20' ) start [2025-01-06 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188014', 'tblTempUsageDetail_20' ) end [2025-01-06 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188014', 'tblTempVendorCDR_20' ) start [2025-01-06 13:57:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188014', 'tblTempVendorCDR_20' ) end [2025-01-06 13:57:22] Production.INFO: ProcessCDR(1,14188014,1,1,2) [2025-01-06 13:57:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188014', 'tblTempUsageDetail_20' ) start [2025-01-06 13:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188014', 'tblTempUsageDetail_20' ) end [2025-01-06 13:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:57:26] Production.INFO: ==22056== Releasing lock... [2025-01-06 13:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:57:26] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:58:05 [end_date_ymd] => 2025-01-06 13:58:05 [RateCDR] => 1 ) [2025-01-06 13:58: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-01-06 10:58:05' and `end` < '2025-01-06 13:58: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-01-06 13:58:19] Production.INFO: count ==5147 [2025-01-06 13:58:22] Production.ERROR: pbx CDR StartTime 2025-01-06 10:58:05 - End Time 2025-01-06 13:58:05 [2025-01-06 13:58:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188019', 'tblTempUsageDetail_20' ) start [2025-01-06 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188019', 'tblTempUsageDetail_20' ) end [2025-01-06 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188019', 'tblTempVendorCDR_20' ) start [2025-01-06 13:58:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188019', 'tblTempVendorCDR_20' ) end [2025-01-06 13:58:22] Production.INFO: ProcessCDR(1,14188019,1,1,2) [2025-01-06 13:58:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188019', 'tblTempUsageDetail_20' ) start [2025-01-06 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188019', 'tblTempUsageDetail_20' ) end [2025-01-06 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:58:25] Production.INFO: ==22133== Releasing lock... [2025-01-06 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:58:25] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 10:59:05 [end_date_ymd] => 2025-01-06 13:59:05 [RateCDR] => 1 ) [2025-01-06 13:59: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-01-06 10:59:05' and `end` < '2025-01-06 13:59: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-01-06 13:59:27] Production.INFO: count ==5159 [2025-01-06 13:59:30] Production.ERROR: pbx CDR StartTime 2025-01-06 10:59:05 - End Time 2025-01-06 13:59:05 [2025-01-06 13:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188024', 'tblTempUsageDetail_20' ) start [2025-01-06 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188024', 'tblTempUsageDetail_20' ) end [2025-01-06 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188024', 'tblTempVendorCDR_20' ) start [2025-01-06 13:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188024', 'tblTempVendorCDR_20' ) end [2025-01-06 13:59:30] Production.INFO: ProcessCDR(1,14188024,1,1,2) [2025-01-06 13:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 13:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:59:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 13:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188024', 'tblTempUsageDetail_20' ) start [2025-01-06 13:59:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188024', 'tblTempUsageDetail_20' ) end [2025-01-06 13:59:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 13:59:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 13:59:35] Production.INFO: ==22212== Releasing lock... [2025-01-06 13:59:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 13:59:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:00:06 [end_date_ymd] => 2025-01-06 14:00:06 [RateCDR] => 1 ) [2025-01-06 14:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 11:00:06' and `end` < '2025-01-06 14:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 14:00:25] Production.INFO: count ==5166 [2025-01-06 14:00:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:00:06 - End Time 2025-01-06 14:00:06 [2025-01-06 14:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188030', 'tblTempUsageDetail_20' ) start [2025-01-06 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188030', 'tblTempUsageDetail_20' ) end [2025-01-06 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188030', 'tblTempVendorCDR_20' ) start [2025-01-06 14:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188030', 'tblTempVendorCDR_20' ) end [2025-01-06 14:00:28] Production.INFO: ProcessCDR(1,14188030,1,1,2) [2025-01-06 14:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:00:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188030', 'tblTempUsageDetail_20' ) start [2025-01-06 14:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188030', 'tblTempUsageDetail_20' ) end [2025-01-06 14:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:00:33] Production.INFO: ==22292== Releasing lock... [2025-01-06 14:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:00:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:01:05 [end_date_ymd] => 2025-01-06 14:01:05 [RateCDR] => 1 ) [2025-01-06 14:01: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-01-06 11:01:05' and `end` < '2025-01-06 14:01: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-01-06 14:01:24] Production.INFO: count ==5246 [2025-01-06 14:01:26] Production.ERROR: pbx CDR StartTime 2025-01-06 11:01:05 - End Time 2025-01-06 14:01:05 [2025-01-06 14:01:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188034', 'tblTempUsageDetail_20' ) start [2025-01-06 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188034', 'tblTempUsageDetail_20' ) end [2025-01-06 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188034', 'tblTempVendorCDR_20' ) start [2025-01-06 14:01:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188034', 'tblTempVendorCDR_20' ) end [2025-01-06 14:01:26] Production.INFO: ProcessCDR(1,14188034,1,1,2) [2025-01-06 14:01:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:01:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:01:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:01:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188034', 'tblTempUsageDetail_20' ) start [2025-01-06 14:01:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188034', 'tblTempUsageDetail_20' ) end [2025-01-06 14:01:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:01:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:01:31] Production.INFO: ==22384== Releasing lock... [2025-01-06 14:01:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:01:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:02:05 [end_date_ymd] => 2025-01-06 14:02:05 [RateCDR] => 1 ) [2025-01-06 14:02: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-01-06 11:02:05' and `end` < '2025-01-06 14:02: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-01-06 14:02:28] Production.INFO: count ==5269 [2025-01-06 14:02:30] Production.ERROR: pbx CDR StartTime 2025-01-06 11:02:05 - End Time 2025-01-06 14:02:05 [2025-01-06 14:02:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:02:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188040', 'tblTempUsageDetail_20' ) start [2025-01-06 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188040', 'tblTempUsageDetail_20' ) end [2025-01-06 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188040', 'tblTempVendorCDR_20' ) start [2025-01-06 14:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188040', 'tblTempVendorCDR_20' ) end [2025-01-06 14:02:31] Production.INFO: ProcessCDR(1,14188040,1,1,2) [2025-01-06 14:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:02:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:02:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:02:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188040', 'tblTempUsageDetail_20' ) start [2025-01-06 14:02:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188040', 'tblTempUsageDetail_20' ) end [2025-01-06 14:02:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:02:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:02:35] Production.INFO: ==22463== Releasing lock... [2025-01-06 14:02:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:02:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:03:05 [end_date_ymd] => 2025-01-06 14:03:05 [RateCDR] => 1 ) [2025-01-06 14:03: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-01-06 11:03:05' and `end` < '2025-01-06 14:03: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-01-06 14:03:25] Production.INFO: count ==5253 [2025-01-06 14:03:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:03:05 - End Time 2025-01-06 14:03:05 [2025-01-06 14:03:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188045', 'tblTempUsageDetail_20' ) start [2025-01-06 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188045', 'tblTempUsageDetail_20' ) end [2025-01-06 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188045', 'tblTempVendorCDR_20' ) start [2025-01-06 14:03:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188045', 'tblTempVendorCDR_20' ) end [2025-01-06 14:03:28] Production.INFO: ProcessCDR(1,14188045,1,1,2) [2025-01-06 14:03:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:03:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:03:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:03:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188045', 'tblTempUsageDetail_20' ) start [2025-01-06 14:03:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188045', 'tblTempUsageDetail_20' ) end [2025-01-06 14:03:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:03:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:03:32] Production.INFO: ==22542== Releasing lock... [2025-01-06 14:03:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:03:32] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:04:05 [end_date_ymd] => 2025-01-06 14:04:05 [RateCDR] => 1 ) [2025-01-06 14:04: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-01-06 11:04:05' and `end` < '2025-01-06 14:04: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-01-06 14:04:19] Production.INFO: count ==5226 [2025-01-06 14:04:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:04:05 - End Time 2025-01-06 14:04:05 [2025-01-06 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188050', 'tblTempUsageDetail_20' ) start [2025-01-06 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188050', 'tblTempUsageDetail_20' ) end [2025-01-06 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188050', 'tblTempVendorCDR_20' ) start [2025-01-06 14:04:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188050', 'tblTempVendorCDR_20' ) end [2025-01-06 14:04:22] Production.INFO: ProcessCDR(1,14188050,1,1,2) [2025-01-06 14:04:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188050', 'tblTempUsageDetail_20' ) start [2025-01-06 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188050', 'tblTempUsageDetail_20' ) end [2025-01-06 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:04:26] Production.INFO: ==22621== Releasing lock... [2025-01-06 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:04:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:05:05 [end_date_ymd] => 2025-01-06 14:05:05 [RateCDR] => 1 ) [2025-01-06 14:05: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-01-06 11:05:05' and `end` < '2025-01-06 14:05: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-01-06 14:05:20] Production.INFO: count ==5228 [2025-01-06 14:05:23] Production.ERROR: pbx CDR StartTime 2025-01-06 11:05:05 - End Time 2025-01-06 14:05:05 [2025-01-06 14:05:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188055', 'tblTempUsageDetail_20' ) start [2025-01-06 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188055', 'tblTempUsageDetail_20' ) end [2025-01-06 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188055', 'tblTempVendorCDR_20' ) start [2025-01-06 14:05:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188055', 'tblTempVendorCDR_20' ) end [2025-01-06 14:05:23] Production.INFO: ProcessCDR(1,14188055,1,1,2) [2025-01-06 14:05:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:05:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:05:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:05:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188055', 'tblTempUsageDetail_20' ) start [2025-01-06 14:05:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188055', 'tblTempUsageDetail_20' ) end [2025-01-06 14:05:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:05:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:05:28] Production.INFO: ==22704== Releasing lock... [2025-01-06 14:05:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:05:28] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:06:05 [end_date_ymd] => 2025-01-06 14:06:05 [RateCDR] => 1 ) [2025-01-06 14:06: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-01-06 11:06:05' and `end` < '2025-01-06 14:06: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-01-06 14:06:28] Production.INFO: count ==5237 [2025-01-06 14:06:30] Production.ERROR: pbx CDR StartTime 2025-01-06 11:06:05 - End Time 2025-01-06 14:06:05 [2025-01-06 14:06:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188060', 'tblTempUsageDetail_20' ) start [2025-01-06 14:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188060', 'tblTempUsageDetail_20' ) end [2025-01-06 14:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188060', 'tblTempVendorCDR_20' ) start [2025-01-06 14:06:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188060', 'tblTempVendorCDR_20' ) end [2025-01-06 14:06:30] Production.INFO: ProcessCDR(1,14188060,1,1,2) [2025-01-06 14:06:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:06:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:06:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:06:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188060', 'tblTempUsageDetail_20' ) start [2025-01-06 14:06:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188060', 'tblTempUsageDetail_20' ) end [2025-01-06 14:06:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:06:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:06:35] Production.INFO: ==22781== Releasing lock... [2025-01-06 14:06:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:06:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:07:05 [end_date_ymd] => 2025-01-06 14:07:05 [RateCDR] => 1 ) [2025-01-06 14:07: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-01-06 11:07:05' and `end` < '2025-01-06 14:07: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-01-06 14:07:25] Production.INFO: count ==5249 [2025-01-06 14:07:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:07:05 - End Time 2025-01-06 14:07:05 [2025-01-06 14:07:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188065', 'tblTempUsageDetail_20' ) start [2025-01-06 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188065', 'tblTempUsageDetail_20' ) end [2025-01-06 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188065', 'tblTempVendorCDR_20' ) start [2025-01-06 14:07:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188065', 'tblTempVendorCDR_20' ) end [2025-01-06 14:07:28] Production.INFO: ProcessCDR(1,14188065,1,1,2) [2025-01-06 14:07:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:07:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:07:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:07:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188065', 'tblTempUsageDetail_20' ) start [2025-01-06 14:07:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188065', 'tblTempUsageDetail_20' ) end [2025-01-06 14:07:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:07:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:07:31] Production.INFO: ==22862== Releasing lock... [2025-01-06 14:07:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:07:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:08:05 [end_date_ymd] => 2025-01-06 14:08:05 [RateCDR] => 1 ) [2025-01-06 14:08: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-01-06 11:08:05' and `end` < '2025-01-06 14:08: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-01-06 14:08:19] Production.INFO: count ==5230 [2025-01-06 14:08:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:08:05 - End Time 2025-01-06 14:08:05 [2025-01-06 14:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188070', 'tblTempUsageDetail_20' ) start [2025-01-06 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188070', 'tblTempUsageDetail_20' ) end [2025-01-06 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188070', 'tblTempVendorCDR_20' ) start [2025-01-06 14:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188070', 'tblTempVendorCDR_20' ) end [2025-01-06 14:08:22] Production.INFO: ProcessCDR(1,14188070,1,1,2) [2025-01-06 14:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188070', 'tblTempUsageDetail_20' ) start [2025-01-06 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188070', 'tblTempUsageDetail_20' ) end [2025-01-06 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:08:26] Production.INFO: ==22937== Releasing lock... [2025-01-06 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:08:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:09:05 [end_date_ymd] => 2025-01-06 14:09:05 [RateCDR] => 1 ) [2025-01-06 14:09: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-01-06 11:09:05' and `end` < '2025-01-06 14:09: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-01-06 14:09:19] Production.INFO: count ==5219 [2025-01-06 14:09:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:09:05 - End Time 2025-01-06 14:09:05 [2025-01-06 14:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188075', 'tblTempUsageDetail_20' ) start [2025-01-06 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188075', 'tblTempUsageDetail_20' ) end [2025-01-06 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188075', 'tblTempVendorCDR_20' ) start [2025-01-06 14:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188075', 'tblTempVendorCDR_20' ) end [2025-01-06 14:09:22] Production.INFO: ProcessCDR(1,14188075,1,1,2) [2025-01-06 14:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188075', 'tblTempUsageDetail_20' ) start [2025-01-06 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188075', 'tblTempUsageDetail_20' ) end [2025-01-06 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:09:26] Production.INFO: ==23008== Releasing lock... [2025-01-06 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:09:26] Production.INFO: 67 MB #Memory Used# [2025-01-06 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:10:05 [end_date_ymd] => 2025-01-06 14:10:05 [RateCDR] => 1 ) [2025-01-06 14:10: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-01-06 11:10:05' and `end` < '2025-01-06 14:10: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-01-06 14:10:20] Production.INFO: count ==5221 [2025-01-06 14:10:22] Production.ERROR: pbx CDR StartTime 2025-01-06 11:10:05 - End Time 2025-01-06 14:10:05 [2025-01-06 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188081', 'tblTempUsageDetail_20' ) start [2025-01-06 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188081', 'tblTempUsageDetail_20' ) end [2025-01-06 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188081', 'tblTempVendorCDR_20' ) start [2025-01-06 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188081', 'tblTempVendorCDR_20' ) end [2025-01-06 14:10:22] Production.INFO: ProcessCDR(1,14188081,1,1,2) [2025-01-06 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188081', 'tblTempUsageDetail_20' ) start [2025-01-06 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188081', 'tblTempUsageDetail_20' ) end [2025-01-06 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:10:27] Production.INFO: ==23082== Releasing lock... [2025-01-06 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:10:27] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:11:05 [end_date_ymd] => 2025-01-06 14:11:05 [RateCDR] => 1 ) [2025-01-06 14:11: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-01-06 11:11:05' and `end` < '2025-01-06 14:11: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-01-06 14:11:21] Production.INFO: count ==5331 [2025-01-06 14:11:23] Production.ERROR: pbx CDR StartTime 2025-01-06 11:11:05 - End Time 2025-01-06 14:11:05 [2025-01-06 14:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188086', 'tblTempUsageDetail_20' ) start [2025-01-06 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188086', 'tblTempUsageDetail_20' ) end [2025-01-06 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188086', 'tblTempVendorCDR_20' ) start [2025-01-06 14:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188086', 'tblTempVendorCDR_20' ) end [2025-01-06 14:11:24] Production.INFO: ProcessCDR(1,14188086,1,1,2) [2025-01-06 14:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188086', 'tblTempUsageDetail_20' ) start [2025-01-06 14:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188086', 'tblTempUsageDetail_20' ) end [2025-01-06 14:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:11:28] Production.INFO: ==23155== Releasing lock... [2025-01-06 14:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:11:28] Production.INFO: 68 MB #Memory Used# [2025-01-06 14:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:12:05 [end_date_ymd] => 2025-01-06 14:12:05 [RateCDR] => 1 ) [2025-01-06 14:12: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-01-06 11:12:05' and `end` < '2025-01-06 14:12: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-01-06 14:12:24] Production.INFO: count ==5315 [2025-01-06 14:12:26] Production.ERROR: pbx CDR StartTime 2025-01-06 11:12:05 - End Time 2025-01-06 14:12:05 [2025-01-06 14:12:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188091', 'tblTempUsageDetail_20' ) start [2025-01-06 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188091', 'tblTempUsageDetail_20' ) end [2025-01-06 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188091', 'tblTempVendorCDR_20' ) start [2025-01-06 14:12:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188091', 'tblTempVendorCDR_20' ) end [2025-01-06 14:12:26] Production.INFO: ProcessCDR(1,14188091,1,1,2) [2025-01-06 14:12:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:12:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:12:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:12:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188091', 'tblTempUsageDetail_20' ) start [2025-01-06 14:12:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188091', 'tblTempUsageDetail_20' ) end [2025-01-06 14:12:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:12:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:12:31] Production.INFO: ==23268== Releasing lock... [2025-01-06 14:12:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:12:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:13:05 [end_date_ymd] => 2025-01-06 14:13:05 [RateCDR] => 1 ) [2025-01-06 14:13: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-01-06 11:13:05' and `end` < '2025-01-06 14:13: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-01-06 14:13:26] Production.INFO: count ==5323 [2025-01-06 14:13:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:13:05 - End Time 2025-01-06 14:13:05 [2025-01-06 14:13:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188096', 'tblTempUsageDetail_20' ) start [2025-01-06 14:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188096', 'tblTempUsageDetail_20' ) end [2025-01-06 14:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188096', 'tblTempVendorCDR_20' ) start [2025-01-06 14:13:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188096', 'tblTempVendorCDR_20' ) end [2025-01-06 14:13:28] Production.INFO: ProcessCDR(1,14188096,1,1,2) [2025-01-06 14:13:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:13:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:13:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:13:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188096', 'tblTempUsageDetail_20' ) start [2025-01-06 14:13:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188096', 'tblTempUsageDetail_20' ) end [2025-01-06 14:13:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:13:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:13:33] Production.INFO: ==23344== Releasing lock... [2025-01-06 14:13:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:13:33] Production.INFO: 68 MB #Memory Used# [2025-01-06 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:14:05 [end_date_ymd] => 2025-01-06 14:14:05 [RateCDR] => 1 ) [2025-01-06 14:14: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-01-06 11:14:05' and `end` < '2025-01-06 14:14: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-01-06 14:14:24] Production.INFO: count ==5333 [2025-01-06 14:14:26] Production.ERROR: pbx CDR StartTime 2025-01-06 11:14:05 - End Time 2025-01-06 14:14:05 [2025-01-06 14:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188101', 'tblTempUsageDetail_20' ) start [2025-01-06 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188101', 'tblTempUsageDetail_20' ) end [2025-01-06 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188101', 'tblTempVendorCDR_20' ) start [2025-01-06 14:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188101', 'tblTempVendorCDR_20' ) end [2025-01-06 14:14:26] Production.INFO: ProcessCDR(1,14188101,1,1,2) [2025-01-06 14:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188101', 'tblTempUsageDetail_20' ) start [2025-01-06 14:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188101', 'tblTempUsageDetail_20' ) end [2025-01-06 14:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:14:31] Production.INFO: ==23429== Releasing lock... [2025-01-06 14:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:14:31] Production.INFO: 68 MB #Memory Used# [2025-01-06 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:15:05 [end_date_ymd] => 2025-01-06 14:15:05 [RateCDR] => 1 ) [2025-01-06 14:15: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-01-06 11:15:05' and `end` < '2025-01-06 14:15: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-01-06 14:15:34] Production.INFO: count ==5308 [2025-01-06 14:15:37] Production.ERROR: pbx CDR StartTime 2025-01-06 11:15:05 - End Time 2025-01-06 14:15:05 [2025-01-06 14:15:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188106', 'tblTempUsageDetail_20' ) start [2025-01-06 14:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188106', 'tblTempUsageDetail_20' ) end [2025-01-06 14:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188106', 'tblTempVendorCDR_20' ) start [2025-01-06 14:15:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188106', 'tblTempVendorCDR_20' ) end [2025-01-06 14:15:37] Production.INFO: ProcessCDR(1,14188106,1,1,2) [2025-01-06 14:15:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:15:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:15:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:15:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:15:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188106', 'tblTempUsageDetail_20' ) start [2025-01-06 14:15:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188106', 'tblTempUsageDetail_20' ) end [2025-01-06 14:15:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:15:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:15:42] Production.INFO: ==23529== Releasing lock... [2025-01-06 14:15:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:15:42] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:16:05 [end_date_ymd] => 2025-01-06 14:16:05 [RateCDR] => 1 ) [2025-01-06 14:16: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-01-06 11:16:05' and `end` < '2025-01-06 14:16: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-01-06 14:16:42] Production.INFO: count ==5311 [2025-01-06 14:16:45] Production.ERROR: pbx CDR StartTime 2025-01-06 11:16:05 - End Time 2025-01-06 14:16:05 [2025-01-06 14:16:45] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:16:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188111', 'tblTempUsageDetail_20' ) start [2025-01-06 14:16:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188111', 'tblTempUsageDetail_20' ) end [2025-01-06 14:16:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188111', 'tblTempVendorCDR_20' ) start [2025-01-06 14:16:45] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188111', 'tblTempVendorCDR_20' ) end [2025-01-06 14:16:45] Production.INFO: ProcessCDR(1,14188111,1,1,2) [2025-01-06 14:16:45] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:16:47] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:16:47] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:16:50] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:16:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188111', 'tblTempUsageDetail_20' ) start [2025-01-06 14:16:50] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188111', 'tblTempUsageDetail_20' ) end [2025-01-06 14:16:50] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:16:50] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:16:50] Production.INFO: ==23626== Releasing lock... [2025-01-06 14:16:50] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:16:50] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:17:05 [end_date_ymd] => 2025-01-06 14:17:05 [RateCDR] => 1 ) [2025-01-06 14:17: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-01-06 11:17:05' and `end` < '2025-01-06 14:17: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-01-06 14:17:39] Production.INFO: count ==5318 [2025-01-06 14:17:41] Production.ERROR: pbx CDR StartTime 2025-01-06 11:17:05 - End Time 2025-01-06 14:17:05 [2025-01-06 14:17:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:17:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188116', 'tblTempUsageDetail_20' ) start [2025-01-06 14:17:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188116', 'tblTempUsageDetail_20' ) end [2025-01-06 14:17:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188116', 'tblTempVendorCDR_20' ) start [2025-01-06 14:17:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188116', 'tblTempVendorCDR_20' ) end [2025-01-06 14:17:41] Production.INFO: ProcessCDR(1,14188116,1,1,2) [2025-01-06 14:17:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:17:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:17:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:17:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:17:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188116', 'tblTempUsageDetail_20' ) start [2025-01-06 14:17:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188116', 'tblTempUsageDetail_20' ) end [2025-01-06 14:17:46] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:17:46] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:17:46] Production.INFO: ==23717== Releasing lock... [2025-01-06 14:17:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:17:46] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:18:05 [end_date_ymd] => 2025-01-06 14:18:05 [RateCDR] => 1 ) [2025-01-06 14:18: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-01-06 11:18:05' and `end` < '2025-01-06 14:18: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-01-06 14:18:41] Production.INFO: count ==5312 [2025-01-06 14:18:43] Production.ERROR: pbx CDR StartTime 2025-01-06 11:18:05 - End Time 2025-01-06 14:18:05 [2025-01-06 14:18:43] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:18:43] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188121', 'tblTempUsageDetail_20' ) start [2025-01-06 14:18:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188121', 'tblTempUsageDetail_20' ) end [2025-01-06 14:18:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188121', 'tblTempVendorCDR_20' ) start [2025-01-06 14:18:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188121', 'tblTempVendorCDR_20' ) end [2025-01-06 14:18:44] Production.INFO: ProcessCDR(1,14188121,1,1,2) [2025-01-06 14:18:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:18:46] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:18:46] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:18:48] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:18:48] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188121', 'tblTempUsageDetail_20' ) start [2025-01-06 14:18:49] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188121', 'tblTempUsageDetail_20' ) end [2025-01-06 14:18:49] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:18:49] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:18:49] Production.INFO: ==23793== Releasing lock... [2025-01-06 14:18:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:18:49] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:19:05 [end_date_ymd] => 2025-01-06 14:19:05 [RateCDR] => 1 ) [2025-01-06 14:19: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-01-06 11:19:05' and `end` < '2025-01-06 14:19: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-01-06 14:19:35] Production.INFO: count ==5306 [2025-01-06 14:19:37] Production.ERROR: pbx CDR StartTime 2025-01-06 11:19:05 - End Time 2025-01-06 14:19:05 [2025-01-06 14:19:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:19:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188126', 'tblTempUsageDetail_20' ) start [2025-01-06 14:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188126', 'tblTempUsageDetail_20' ) end [2025-01-06 14:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188126', 'tblTempVendorCDR_20' ) start [2025-01-06 14:19:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188126', 'tblTempVendorCDR_20' ) end [2025-01-06 14:19:38] Production.INFO: ProcessCDR(1,14188126,1,1,2) [2025-01-06 14:19:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:19:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:19:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:19:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:19:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188126', 'tblTempUsageDetail_20' ) start [2025-01-06 14:19:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188126', 'tblTempUsageDetail_20' ) end [2025-01-06 14:19:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:19:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:19:42] Production.INFO: ==23871== Releasing lock... [2025-01-06 14:19:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:19:42] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:20:06 [end_date_ymd] => 2025-01-06 14:20:06 [RateCDR] => 1 ) [2025-01-06 14:20: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-01-06 11:20:06' and `end` < '2025-01-06 14:20: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-01-06 14:20:30] Production.INFO: count ==5339 [2025-01-06 14:20:33] Production.ERROR: pbx CDR StartTime 2025-01-06 11:20:06 - End Time 2025-01-06 14:20:06 [2025-01-06 14:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188131', 'tblTempUsageDetail_20' ) start [2025-01-06 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188131', 'tblTempUsageDetail_20' ) end [2025-01-06 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188131', 'tblTempVendorCDR_20' ) start [2025-01-06 14:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188131', 'tblTempVendorCDR_20' ) end [2025-01-06 14:20:33] Production.INFO: ProcessCDR(1,14188131,1,1,2) [2025-01-06 14:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:20:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:20:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188131', 'tblTempUsageDetail_20' ) start [2025-01-06 14:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188131', 'tblTempUsageDetail_20' ) end [2025-01-06 14:20:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:20:38] Production.INFO: ==23970== Releasing lock... [2025-01-06 14:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:20:38] Production.INFO: 68 MB #Memory Used# [2025-01-06 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:21:05 [end_date_ymd] => 2025-01-06 14:21:05 [RateCDR] => 1 ) [2025-01-06 14:21: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-01-06 11:21:05' and `end` < '2025-01-06 14:21: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-01-06 14:21:26] Production.INFO: count ==5410 [2025-01-06 14:21:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:21:05 - End Time 2025-01-06 14:21:05 [2025-01-06 14:21:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188137', 'tblTempUsageDetail_20' ) start [2025-01-06 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188137', 'tblTempUsageDetail_20' ) end [2025-01-06 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188137', 'tblTempVendorCDR_20' ) start [2025-01-06 14:21:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188137', 'tblTempVendorCDR_20' ) end [2025-01-06 14:21:29] Production.INFO: ProcessCDR(1,14188137,1,1,2) [2025-01-06 14:21:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:21:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:21:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:21:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188137', 'tblTempUsageDetail_20' ) start [2025-01-06 14:21:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188137', 'tblTempUsageDetail_20' ) end [2025-01-06 14:21:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:21:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:21:34] Production.INFO: ==24070== Releasing lock... [2025-01-06 14:21:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:21:34] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:22:05 [end_date_ymd] => 2025-01-06 14:22:05 [RateCDR] => 1 ) [2025-01-06 14:22: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-01-06 11:22:05' and `end` < '2025-01-06 14:22: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-01-06 14:22:25] Production.INFO: count ==5384 [2025-01-06 14:22:27] Production.ERROR: pbx CDR StartTime 2025-01-06 11:22:05 - End Time 2025-01-06 14:22:05 [2025-01-06 14:22:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188142', 'tblTempUsageDetail_20' ) start [2025-01-06 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188142', 'tblTempUsageDetail_20' ) end [2025-01-06 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188142', 'tblTempVendorCDR_20' ) start [2025-01-06 14:22:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188142', 'tblTempVendorCDR_20' ) end [2025-01-06 14:22:27] Production.INFO: ProcessCDR(1,14188142,1,1,2) [2025-01-06 14:22:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:22:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188142', 'tblTempUsageDetail_20' ) start [2025-01-06 14:22:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188142', 'tblTempUsageDetail_20' ) end [2025-01-06 14:22:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:22:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:22:32] Production.INFO: ==24162== Releasing lock... [2025-01-06 14:22:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:22:32] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:23:05 [end_date_ymd] => 2025-01-06 14:23:05 [RateCDR] => 1 ) [2025-01-06 14:23: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-01-06 11:23:05' and `end` < '2025-01-06 14:23: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-01-06 14:23:24] Production.INFO: count ==5385 [2025-01-06 14:23:27] Production.ERROR: pbx CDR StartTime 2025-01-06 11:23:05 - End Time 2025-01-06 14:23:05 [2025-01-06 14:23:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188147', 'tblTempUsageDetail_20' ) start [2025-01-06 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188147', 'tblTempUsageDetail_20' ) end [2025-01-06 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188147', 'tblTempVendorCDR_20' ) start [2025-01-06 14:23:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188147', 'tblTempVendorCDR_20' ) end [2025-01-06 14:23:27] Production.INFO: ProcessCDR(1,14188147,1,1,2) [2025-01-06 14:23:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188147', 'tblTempUsageDetail_20' ) start [2025-01-06 14:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188147', 'tblTempUsageDetail_20' ) end [2025-01-06 14:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:23:31] Production.INFO: ==24260== Releasing lock... [2025-01-06 14:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:23:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:24:05 [end_date_ymd] => 2025-01-06 14:24:05 [RateCDR] => 1 ) [2025-01-06 14:24: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-01-06 11:24:05' and `end` < '2025-01-06 14:24: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-01-06 14:24:27] Production.INFO: count ==5381 [2025-01-06 14:24:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:24:05 - End Time 2025-01-06 14:24:05 [2025-01-06 14:24:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188152', 'tblTempUsageDetail_20' ) start [2025-01-06 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188152', 'tblTempUsageDetail_20' ) end [2025-01-06 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188152', 'tblTempVendorCDR_20' ) start [2025-01-06 14:24:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188152', 'tblTempVendorCDR_20' ) end [2025-01-06 14:24:29] Production.INFO: ProcessCDR(1,14188152,1,1,2) [2025-01-06 14:24:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:24:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:24:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:24:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188152', 'tblTempUsageDetail_20' ) start [2025-01-06 14:24:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188152', 'tblTempUsageDetail_20' ) end [2025-01-06 14:24:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:24:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:24:34] Production.INFO: ==24344== Releasing lock... [2025-01-06 14:24:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:24:34] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:25:05 [end_date_ymd] => 2025-01-06 14:25:05 [RateCDR] => 1 ) [2025-01-06 14:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 11:25:05' and `end` < '2025-01-06 14:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 14:25:20] Production.INFO: count ==5398 [2025-01-06 14:25:23] Production.ERROR: pbx CDR StartTime 2025-01-06 11:25:05 - End Time 2025-01-06 14:25:05 [2025-01-06 14:25:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188157', 'tblTempUsageDetail_20' ) start [2025-01-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188157', 'tblTempUsageDetail_20' ) end [2025-01-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188157', 'tblTempVendorCDR_20' ) start [2025-01-06 14:25:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188157', 'tblTempVendorCDR_20' ) end [2025-01-06 14:25:23] Production.INFO: ProcessCDR(1,14188157,1,1,2) [2025-01-06 14:25:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:25:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:25:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:25:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188157', 'tblTempUsageDetail_20' ) start [2025-01-06 14:25:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188157', 'tblTempUsageDetail_20' ) end [2025-01-06 14:25:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:25:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:25:28] Production.INFO: ==24439== Releasing lock... [2025-01-06 14:25:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:25:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:26:05 [end_date_ymd] => 2025-01-06 14:26:05 [RateCDR] => 1 ) [2025-01-06 14:26: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-01-06 11:26:05' and `end` < '2025-01-06 14:26: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-01-06 14:26:19] Production.INFO: count ==5378 [2025-01-06 14:26:22] Production.ERROR: pbx CDR StartTime 2025-01-06 11:26:05 - End Time 2025-01-06 14:26:05 [2025-01-06 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188162', 'tblTempUsageDetail_20' ) start [2025-01-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188162', 'tblTempUsageDetail_20' ) end [2025-01-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188162', 'tblTempVendorCDR_20' ) start [2025-01-06 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188162', 'tblTempVendorCDR_20' ) end [2025-01-06 14:26:22] Production.INFO: ProcessCDR(1,14188162,1,1,2) [2025-01-06 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188162', 'tblTempUsageDetail_20' ) start [2025-01-06 14:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188162', 'tblTempUsageDetail_20' ) end [2025-01-06 14:26:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:26:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:26:26] Production.INFO: ==24532== Releasing lock... [2025-01-06 14:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:26:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:27:05 [end_date_ymd] => 2025-01-06 14:27:05 [RateCDR] => 1 ) [2025-01-06 14:27: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-01-06 11:27:05' and `end` < '2025-01-06 14:27: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-01-06 14:27:22] Production.INFO: count ==5359 [2025-01-06 14:27:24] Production.ERROR: pbx CDR StartTime 2025-01-06 11:27:05 - End Time 2025-01-06 14:27:05 [2025-01-06 14:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188167', 'tblTempUsageDetail_20' ) start [2025-01-06 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188167', 'tblTempUsageDetail_20' ) end [2025-01-06 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188167', 'tblTempVendorCDR_20' ) start [2025-01-06 14:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188167', 'tblTempVendorCDR_20' ) end [2025-01-06 14:27:24] Production.INFO: ProcessCDR(1,14188167,1,1,2) [2025-01-06 14:27:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:27:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:27:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:27:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188167', 'tblTempUsageDetail_20' ) start [2025-01-06 14:27:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188167', 'tblTempUsageDetail_20' ) end [2025-01-06 14:27:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:27:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:27:29] Production.INFO: ==24630== Releasing lock... [2025-01-06 14:27:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:27:29] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:28:05 [end_date_ymd] => 2025-01-06 14:28:05 [RateCDR] => 1 ) [2025-01-06 14:28: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-01-06 11:28:05' and `end` < '2025-01-06 14:28: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-01-06 14:28:22] Production.INFO: count ==5361 [2025-01-06 14:28:24] Production.ERROR: pbx CDR StartTime 2025-01-06 11:28:05 - End Time 2025-01-06 14:28:05 [2025-01-06 14:28:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188172', 'tblTempUsageDetail_20' ) start [2025-01-06 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188172', 'tblTempUsageDetail_20' ) end [2025-01-06 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188172', 'tblTempVendorCDR_20' ) start [2025-01-06 14:28:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188172', 'tblTempVendorCDR_20' ) end [2025-01-06 14:28:24] Production.INFO: ProcessCDR(1,14188172,1,1,2) [2025-01-06 14:28:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:28:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:28:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:28:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:28:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188172', 'tblTempUsageDetail_20' ) start [2025-01-06 14:28:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188172', 'tblTempUsageDetail_20' ) end [2025-01-06 14:28:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:28:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:28:30] Production.INFO: ==24764== Releasing lock... [2025-01-06 14:28:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:28:30] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:29:05 [end_date_ymd] => 2025-01-06 14:29:05 [RateCDR] => 1 ) [2025-01-06 14:29: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-01-06 11:29:05' and `end` < '2025-01-06 14:29: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-01-06 14:29:19] Production.INFO: count ==5366 [2025-01-06 14:29:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:29:05 - End Time 2025-01-06 14:29:05 [2025-01-06 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188177', 'tblTempUsageDetail_20' ) start [2025-01-06 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188177', 'tblTempUsageDetail_20' ) end [2025-01-06 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188177', 'tblTempVendorCDR_20' ) start [2025-01-06 14:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188177', 'tblTempVendorCDR_20' ) end [2025-01-06 14:29:22] Production.INFO: ProcessCDR(1,14188177,1,1,2) [2025-01-06 14:29:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188177', 'tblTempUsageDetail_20' ) start [2025-01-06 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188177', 'tblTempUsageDetail_20' ) end [2025-01-06 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:29:26] Production.INFO: ==24860== Releasing lock... [2025-01-06 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:29:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:30:06 [end_date_ymd] => 2025-01-06 14:30:06 [RateCDR] => 1 ) [2025-01-06 14:30: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-01-06 11:30:06' and `end` < '2025-01-06 14:30: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-01-06 14:30:33] Production.INFO: count ==5374 [2025-01-06 14:30:36] Production.ERROR: pbx CDR StartTime 2025-01-06 11:30:06 - End Time 2025-01-06 14:30:06 [2025-01-06 14:30:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188182', 'tblTempUsageDetail_20' ) start [2025-01-06 14:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188182', 'tblTempUsageDetail_20' ) end [2025-01-06 14:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188182', 'tblTempVendorCDR_20' ) start [2025-01-06 14:30:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188182', 'tblTempVendorCDR_20' ) end [2025-01-06 14:30:36] Production.INFO: ProcessCDR(1,14188182,1,1,2) [2025-01-06 14:30:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:30:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:30:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:30:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188182', 'tblTempUsageDetail_20' ) start [2025-01-06 14:30:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188182', 'tblTempUsageDetail_20' ) end [2025-01-06 14:30:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:30:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:30:41] Production.INFO: ==24953== Releasing lock... [2025-01-06 14:30:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:30:41] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:31:05 [end_date_ymd] => 2025-01-06 14:31:05 [RateCDR] => 1 ) [2025-01-06 14:31: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-01-06 11:31:05' and `end` < '2025-01-06 14:31: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-01-06 14:31:34] Production.INFO: count ==5478 [2025-01-06 14:31:36] Production.ERROR: pbx CDR StartTime 2025-01-06 11:31:05 - End Time 2025-01-06 14:31:05 [2025-01-06 14:31:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188188', 'tblTempUsageDetail_20' ) start [2025-01-06 14:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188188', 'tblTempUsageDetail_20' ) end [2025-01-06 14:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188188', 'tblTempVendorCDR_20' ) start [2025-01-06 14:31:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188188', 'tblTempVendorCDR_20' ) end [2025-01-06 14:31:36] Production.INFO: ProcessCDR(1,14188188,1,1,2) [2025-01-06 14:31:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:31:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:31:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:31:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188188', 'tblTempUsageDetail_20' ) start [2025-01-06 14:31:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188188', 'tblTempUsageDetail_20' ) end [2025-01-06 14:31:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:31:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:31:41] Production.INFO: ==25052== Releasing lock... [2025-01-06 14:31:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:31:41] Production.INFO: 69 MB #Memory Used# [2025-01-06 14:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:32:06 [end_date_ymd] => 2025-01-06 14:32:06 [RateCDR] => 1 ) [2025-01-06 14:32: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-01-06 11:32:06' and `end` < '2025-01-06 14:32: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-01-06 14:32:28] Production.INFO: count ==5491 [2025-01-06 14:32:30] Production.ERROR: pbx CDR StartTime 2025-01-06 11:32:06 - End Time 2025-01-06 14:32:06 [2025-01-06 14:32:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:32:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188193', 'tblTempUsageDetail_20' ) start [2025-01-06 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188193', 'tblTempUsageDetail_20' ) end [2025-01-06 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188193', 'tblTempVendorCDR_20' ) start [2025-01-06 14:32:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188193', 'tblTempVendorCDR_20' ) end [2025-01-06 14:32:31] Production.INFO: ProcessCDR(1,14188193,1,1,2) [2025-01-06 14:32:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:32:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:32:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:32:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188193', 'tblTempUsageDetail_20' ) start [2025-01-06 14:32:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188193', 'tblTempUsageDetail_20' ) end [2025-01-06 14:32:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:32:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:32:35] Production.INFO: ==25142== Releasing lock... [2025-01-06 14:32:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:32:35] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:33:05 [end_date_ymd] => 2025-01-06 14:33:05 [RateCDR] => 1 ) [2025-01-06 14:33: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-01-06 11:33:05' and `end` < '2025-01-06 14:33: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-01-06 14:33:28] Production.INFO: count ==5503 [2025-01-06 14:33:31] Production.ERROR: pbx CDR StartTime 2025-01-06 11:33:05 - End Time 2025-01-06 14:33:05 [2025-01-06 14:33:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188198', 'tblTempUsageDetail_20' ) start [2025-01-06 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188198', 'tblTempUsageDetail_20' ) end [2025-01-06 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188198', 'tblTempVendorCDR_20' ) start [2025-01-06 14:33:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188198', 'tblTempVendorCDR_20' ) end [2025-01-06 14:33:31] Production.INFO: ProcessCDR(1,14188198,1,1,2) [2025-01-06 14:33:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:33:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:33:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:33:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188198', 'tblTempUsageDetail_20' ) start [2025-01-06 14:33:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188198', 'tblTempUsageDetail_20' ) end [2025-01-06 14:33:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:33:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:33:36] Production.INFO: ==25236== Releasing lock... [2025-01-06 14:33:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:33:36] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:34:05 [end_date_ymd] => 2025-01-06 14:34:05 [RateCDR] => 1 ) [2025-01-06 14:34: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-01-06 11:34:05' and `end` < '2025-01-06 14:34: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-01-06 14:34:25] Production.INFO: count ==5501 [2025-01-06 14:34:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:34:05 - End Time 2025-01-06 14:34:05 [2025-01-06 14:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188203', 'tblTempUsageDetail_20' ) start [2025-01-06 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188203', 'tblTempUsageDetail_20' ) end [2025-01-06 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188203', 'tblTempVendorCDR_20' ) start [2025-01-06 14:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188203', 'tblTempVendorCDR_20' ) end [2025-01-06 14:34:28] Production.INFO: ProcessCDR(1,14188203,1,1,2) [2025-01-06 14:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:34:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:34:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188203', 'tblTempUsageDetail_20' ) start [2025-01-06 14:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188203', 'tblTempUsageDetail_20' ) end [2025-01-06 14:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:34:33] Production.INFO: ==25334== Releasing lock... [2025-01-06 14:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:34:33] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:35:05 [end_date_ymd] => 2025-01-06 14:35:05 [RateCDR] => 1 ) [2025-01-06 14:35: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-01-06 11:35:05' and `end` < '2025-01-06 14:35: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-01-06 14:35:19] Production.INFO: count ==5494 [2025-01-06 14:35:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:35:05 - End Time 2025-01-06 14:35:05 [2025-01-06 14:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188208', 'tblTempUsageDetail_20' ) start [2025-01-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188208', 'tblTempUsageDetail_20' ) end [2025-01-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188208', 'tblTempVendorCDR_20' ) start [2025-01-06 14:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188208', 'tblTempVendorCDR_20' ) end [2025-01-06 14:35:21] Production.INFO: ProcessCDR(1,14188208,1,1,2) [2025-01-06 14:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188208', 'tblTempUsageDetail_20' ) start [2025-01-06 14:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188208', 'tblTempUsageDetail_20' ) end [2025-01-06 14:35:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:35:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:35:26] Production.INFO: ==25447== Releasing lock... [2025-01-06 14:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:35:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:36:05 [end_date_ymd] => 2025-01-06 14:36:05 [RateCDR] => 1 ) [2025-01-06 14:36: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-01-06 11:36:05' and `end` < '2025-01-06 14:36: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-01-06 14:36:19] Production.INFO: count ==5499 [2025-01-06 14:36:21] Production.ERROR: pbx CDR StartTime 2025-01-06 11:36:05 - End Time 2025-01-06 14:36:05 [2025-01-06 14:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188213', 'tblTempUsageDetail_20' ) start [2025-01-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188213', 'tblTempUsageDetail_20' ) end [2025-01-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188213', 'tblTempVendorCDR_20' ) start [2025-01-06 14:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188213', 'tblTempVendorCDR_20' ) end [2025-01-06 14:36:21] Production.INFO: ProcessCDR(1,14188213,1,1,2) [2025-01-06 14:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188213', 'tblTempUsageDetail_20' ) start [2025-01-06 14:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188213', 'tblTempUsageDetail_20' ) end [2025-01-06 14:36:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:36:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:36:26] Production.INFO: ==25542== Releasing lock... [2025-01-06 14:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:36:26] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:37:05 [end_date_ymd] => 2025-01-06 14:37:05 [RateCDR] => 1 ) [2025-01-06 14:37: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-01-06 11:37:05' and `end` < '2025-01-06 14:37: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-01-06 14:37:23] Production.INFO: count ==5525 [2025-01-06 14:37:26] Production.ERROR: pbx CDR StartTime 2025-01-06 11:37:05 - End Time 2025-01-06 14:37:05 [2025-01-06 14:37:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188218', 'tblTempUsageDetail_20' ) start [2025-01-06 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188218', 'tblTempUsageDetail_20' ) end [2025-01-06 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188218', 'tblTempVendorCDR_20' ) start [2025-01-06 14:37:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188218', 'tblTempVendorCDR_20' ) end [2025-01-06 14:37:26] Production.INFO: ProcessCDR(1,14188218,1,1,2) [2025-01-06 14:37:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:37:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:37:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:37:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188218', 'tblTempUsageDetail_20' ) start [2025-01-06 14:37:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188218', 'tblTempUsageDetail_20' ) end [2025-01-06 14:37:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:37:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:37:30] Production.INFO: ==25636== Releasing lock... [2025-01-06 14:37:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:37:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:38:05 [end_date_ymd] => 2025-01-06 14:38:05 [RateCDR] => 1 ) [2025-01-06 14:38: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-01-06 11:38:05' and `end` < '2025-01-06 14:38: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-01-06 14:38:39] Production.INFO: count ==5583 [2025-01-06 14:38:41] Production.ERROR: pbx CDR StartTime 2025-01-06 11:38:05 - End Time 2025-01-06 14:38:05 [2025-01-06 14:38:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:38:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188223', 'tblTempUsageDetail_20' ) start [2025-01-06 14:38:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188223', 'tblTempUsageDetail_20' ) end [2025-01-06 14:38:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188223', 'tblTempVendorCDR_20' ) start [2025-01-06 14:38:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188223', 'tblTempVendorCDR_20' ) end [2025-01-06 14:38:42] Production.INFO: ProcessCDR(1,14188223,1,1,2) [2025-01-06 14:38:42] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:38:44] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:38:44] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:38:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:38:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188223', 'tblTempUsageDetail_20' ) start [2025-01-06 14:38:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188223', 'tblTempUsageDetail_20' ) end [2025-01-06 14:38:46] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:38:47] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:38:47] Production.INFO: ==25731== Releasing lock... [2025-01-06 14:38:47] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:38:47] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:39:04 [end_date_ymd] => 2025-01-06 14:39:04 [RateCDR] => 1 ) [2025-01-06 14:39: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-01-06 11:39:04' and `end` < '2025-01-06 14:39: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-01-06 14:39:37] Production.INFO: count ==5598 [2025-01-06 14:39:40] Production.ERROR: pbx CDR StartTime 2025-01-06 11:39:04 - End Time 2025-01-06 14:39:04 [2025-01-06 14:39:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:39:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188228', 'tblTempUsageDetail_20' ) start [2025-01-06 14:39:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188228', 'tblTempUsageDetail_20' ) end [2025-01-06 14:39:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188228', 'tblTempVendorCDR_20' ) start [2025-01-06 14:39:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188228', 'tblTempVendorCDR_20' ) end [2025-01-06 14:39:40] Production.INFO: ProcessCDR(1,14188228,1,1,2) [2025-01-06 14:39:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:39:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:39:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:39:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:39:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188228', 'tblTempUsageDetail_20' ) start [2025-01-06 14:39:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188228', 'tblTempUsageDetail_20' ) end [2025-01-06 14:39:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:39:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:39:44] Production.INFO: ==25820== Releasing lock... [2025-01-06 14:39:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:39:44] Production.INFO: 70 MB #Memory Used# [2025-01-06 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:40:05 [end_date_ymd] => 2025-01-06 14:40:05 [RateCDR] => 1 ) [2025-01-06 14:40: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-01-06 11:40:05' and `end` < '2025-01-06 14:40: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-01-06 14:40:34] Production.INFO: count ==5606 [2025-01-06 14:40:37] Production.ERROR: pbx CDR StartTime 2025-01-06 11:40:05 - End Time 2025-01-06 14:40:05 [2025-01-06 14:40:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188234', 'tblTempUsageDetail_20' ) start [2025-01-06 14:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188234', 'tblTempUsageDetail_20' ) end [2025-01-06 14:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188234', 'tblTempVendorCDR_20' ) start [2025-01-06 14:40:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188234', 'tblTempVendorCDR_20' ) end [2025-01-06 14:40:37] Production.INFO: ProcessCDR(1,14188234,1,1,2) [2025-01-06 14:40:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:40:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:40:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:40:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188234', 'tblTempUsageDetail_20' ) start [2025-01-06 14:40:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188234', 'tblTempUsageDetail_20' ) end [2025-01-06 14:40:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:40:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:40:42] Production.INFO: ==25910== Releasing lock... [2025-01-06 14:40:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:40:42] Production.INFO: 70 MB #Memory Used# [2025-01-06 14:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:41:06 [end_date_ymd] => 2025-01-06 14:41:06 [RateCDR] => 1 ) [2025-01-06 14:41: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-01-06 11:41:06' and `end` < '2025-01-06 14:41: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-01-06 14:41:31] Production.INFO: count ==5598 [2025-01-06 14:41:33] Production.ERROR: pbx CDR StartTime 2025-01-06 11:41:06 - End Time 2025-01-06 14:41:06 [2025-01-06 14:41:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:41:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188239', 'tblTempUsageDetail_20' ) start [2025-01-06 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188239', 'tblTempUsageDetail_20' ) end [2025-01-06 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188239', 'tblTempVendorCDR_20' ) start [2025-01-06 14:41:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188239', 'tblTempVendorCDR_20' ) end [2025-01-06 14:41:34] Production.INFO: ProcessCDR(1,14188239,1,1,2) [2025-01-06 14:41:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:41:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:41:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:41:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188239', 'tblTempUsageDetail_20' ) start [2025-01-06 14:41:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188239', 'tblTempUsageDetail_20' ) end [2025-01-06 14:41:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:41:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:41:38] Production.INFO: ==26007== Releasing lock... [2025-01-06 14:41:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:41:38] Production.INFO: 70 MB #Memory Used# [2025-01-06 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:42:05 [end_date_ymd] => 2025-01-06 14:42:05 [RateCDR] => 1 ) [2025-01-06 14:42: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-01-06 11:42:05' and `end` < '2025-01-06 14:42: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-01-06 14:42:25] Production.INFO: count ==5581 [2025-01-06 14:42:27] Production.ERROR: pbx CDR StartTime 2025-01-06 11:42:05 - End Time 2025-01-06 14:42:05 [2025-01-06 14:42:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:42:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188244', 'tblTempUsageDetail_20' ) start [2025-01-06 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188244', 'tblTempUsageDetail_20' ) end [2025-01-06 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188244', 'tblTempVendorCDR_20' ) start [2025-01-06 14:42:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188244', 'tblTempVendorCDR_20' ) end [2025-01-06 14:42:28] Production.INFO: ProcessCDR(1,14188244,1,1,2) [2025-01-06 14:42:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:42:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:42:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:42:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188244', 'tblTempUsageDetail_20' ) start [2025-01-06 14:42:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188244', 'tblTempUsageDetail_20' ) end [2025-01-06 14:42:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:42:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:42:32] Production.INFO: ==26091== Releasing lock... [2025-01-06 14:42:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:42:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:43:05 [end_date_ymd] => 2025-01-06 14:43:05 [RateCDR] => 1 ) [2025-01-06 14:43: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-01-06 11:43:05' and `end` < '2025-01-06 14:43: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-01-06 14:43:31] Production.INFO: count ==5573 [2025-01-06 14:43:33] Production.ERROR: pbx CDR StartTime 2025-01-06 11:43:05 - End Time 2025-01-06 14:43:05 [2025-01-06 14:43:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188249', 'tblTempUsageDetail_20' ) start [2025-01-06 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188249', 'tblTempUsageDetail_20' ) end [2025-01-06 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188249', 'tblTempVendorCDR_20' ) start [2025-01-06 14:43:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188249', 'tblTempVendorCDR_20' ) end [2025-01-06 14:43:33] Production.INFO: ProcessCDR(1,14188249,1,1,2) [2025-01-06 14:43:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:43:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:43:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:43:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188249', 'tblTempUsageDetail_20' ) start [2025-01-06 14:43:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188249', 'tblTempUsageDetail_20' ) end [2025-01-06 14:43:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:43:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:43:38] Production.INFO: ==26212== Releasing lock... [2025-01-06 14:43:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:43:38] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:44:05 [end_date_ymd] => 2025-01-06 14:44:05 [RateCDR] => 1 ) [2025-01-06 14:44: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-01-06 11:44:05' and `end` < '2025-01-06 14:44: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-01-06 14:44:25] Production.INFO: count ==5574 [2025-01-06 14:44:27] Production.ERROR: pbx CDR StartTime 2025-01-06 11:44:05 - End Time 2025-01-06 14:44:05 [2025-01-06 14:44:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188254', 'tblTempUsageDetail_20' ) start [2025-01-06 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188254', 'tblTempUsageDetail_20' ) end [2025-01-06 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188254', 'tblTempVendorCDR_20' ) start [2025-01-06 14:44:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188254', 'tblTempVendorCDR_20' ) end [2025-01-06 14:44:27] Production.INFO: ProcessCDR(1,14188254,1,1,2) [2025-01-06 14:44:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:44:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:44:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:44:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188254', 'tblTempUsageDetail_20' ) start [2025-01-06 14:44:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188254', 'tblTempUsageDetail_20' ) end [2025-01-06 14:44:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:44:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:44:32] Production.INFO: ==26294== Releasing lock... [2025-01-06 14:44:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:44:32] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:45:05 [end_date_ymd] => 2025-01-06 14:45:05 [RateCDR] => 1 ) [2025-01-06 14:45: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-01-06 11:45:05' and `end` < '2025-01-06 14:45: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-01-06 14:45:26] Production.INFO: count ==5530 [2025-01-06 14:45:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:45:05 - End Time 2025-01-06 14:45:05 [2025-01-06 14:45:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188259', 'tblTempUsageDetail_20' ) start [2025-01-06 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188259', 'tblTempUsageDetail_20' ) end [2025-01-06 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188259', 'tblTempVendorCDR_20' ) start [2025-01-06 14:45:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188259', 'tblTempVendorCDR_20' ) end [2025-01-06 14:45:29] Production.INFO: ProcessCDR(1,14188259,1,1,2) [2025-01-06 14:45:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:45:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:45:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:45:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188259', 'tblTempUsageDetail_20' ) start [2025-01-06 14:45:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188259', 'tblTempUsageDetail_20' ) end [2025-01-06 14:45:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:45:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:45:33] Production.INFO: ==26379== Releasing lock... [2025-01-06 14:45:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:45:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:46:05 [end_date_ymd] => 2025-01-06 14:46:05 [RateCDR] => 1 ) [2025-01-06 14:46: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-01-06 11:46:05' and `end` < '2025-01-06 14:46: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-01-06 14:46:27] Production.INFO: count ==5522 [2025-01-06 14:46:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:46:05 - End Time 2025-01-06 14:46:05 [2025-01-06 14:46:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188264', 'tblTempUsageDetail_20' ) start [2025-01-06 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188264', 'tblTempUsageDetail_20' ) end [2025-01-06 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188264', 'tblTempVendorCDR_20' ) start [2025-01-06 14:46:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188264', 'tblTempVendorCDR_20' ) end [2025-01-06 14:46:29] Production.INFO: ProcessCDR(1,14188264,1,1,2) [2025-01-06 14:46:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:46:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188264', 'tblTempUsageDetail_20' ) start [2025-01-06 14:46:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188264', 'tblTempUsageDetail_20' ) end [2025-01-06 14:46:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:46:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:46:34] Production.INFO: ==26460== Releasing lock... [2025-01-06 14:46:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:46:34] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:47:05 [end_date_ymd] => 2025-01-06 14:47:05 [RateCDR] => 1 ) [2025-01-06 14:47: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-01-06 11:47:05' and `end` < '2025-01-06 14:47: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-01-06 14:47:36] Production.INFO: count ==5542 [2025-01-06 14:47:38] Production.ERROR: pbx CDR StartTime 2025-01-06 11:47:05 - End Time 2025-01-06 14:47:05 [2025-01-06 14:47:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188269', 'tblTempUsageDetail_20' ) start [2025-01-06 14:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188269', 'tblTempUsageDetail_20' ) end [2025-01-06 14:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188269', 'tblTempVendorCDR_20' ) start [2025-01-06 14:47:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188269', 'tblTempVendorCDR_20' ) end [2025-01-06 14:47:38] Production.INFO: ProcessCDR(1,14188269,1,1,2) [2025-01-06 14:47:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:47:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:47:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:47:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:47:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188269', 'tblTempUsageDetail_20' ) start [2025-01-06 14:47:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188269', 'tblTempUsageDetail_20' ) end [2025-01-06 14:47:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:47:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:47:44] Production.INFO: ==26541== Releasing lock... [2025-01-06 14:47:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:47:44] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:48:05 [end_date_ymd] => 2025-01-06 14:48:05 [RateCDR] => 1 ) [2025-01-06 14:48: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-01-06 11:48:05' and `end` < '2025-01-06 14:48: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-01-06 14:48:38] Production.INFO: count ==5562 [2025-01-06 14:48:41] Production.ERROR: pbx CDR StartTime 2025-01-06 11:48:05 - End Time 2025-01-06 14:48:05 [2025-01-06 14:48:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188274', 'tblTempUsageDetail_20' ) start [2025-01-06 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188274', 'tblTempUsageDetail_20' ) end [2025-01-06 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188274', 'tblTempVendorCDR_20' ) start [2025-01-06 14:48:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188274', 'tblTempVendorCDR_20' ) end [2025-01-06 14:48:41] Production.INFO: ProcessCDR(1,14188274,1,1,2) [2025-01-06 14:48:41] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:48:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:48:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:48:46] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:48:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188274', 'tblTempUsageDetail_20' ) start [2025-01-06 14:48:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188274', 'tblTempUsageDetail_20' ) end [2025-01-06 14:48:46] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:48:46] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:48:46] Production.INFO: ==26626== Releasing lock... [2025-01-06 14:48:46] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:48:46] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:49:05 [end_date_ymd] => 2025-01-06 14:49:05 [RateCDR] => 1 ) [2025-01-06 14:49: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-01-06 11:49:05' and `end` < '2025-01-06 14:49: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-01-06 14:49:33] Production.INFO: count ==5566 [2025-01-06 14:49:35] Production.ERROR: pbx CDR StartTime 2025-01-06 11:49:05 - End Time 2025-01-06 14:49:05 [2025-01-06 14:49:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188279', 'tblTempUsageDetail_20' ) start [2025-01-06 14:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188279', 'tblTempUsageDetail_20' ) end [2025-01-06 14:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188279', 'tblTempVendorCDR_20' ) start [2025-01-06 14:49:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188279', 'tblTempVendorCDR_20' ) end [2025-01-06 14:49:35] Production.INFO: ProcessCDR(1,14188279,1,1,2) [2025-01-06 14:49:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:49:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:49:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:49:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188279', 'tblTempUsageDetail_20' ) start [2025-01-06 14:49:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188279', 'tblTempUsageDetail_20' ) end [2025-01-06 14:49:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:49:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:49:40] Production.INFO: ==26711== Releasing lock... [2025-01-06 14:49:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:49:40] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:50:06 [end_date_ymd] => 2025-01-06 14:50:06 [RateCDR] => 1 ) [2025-01-06 14:50: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-01-06 11:50:06' and `end` < '2025-01-06 14:50: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-01-06 14:50:29] Production.INFO: count ==5568 [2025-01-06 14:50:31] Production.ERROR: pbx CDR StartTime 2025-01-06 11:50:06 - End Time 2025-01-06 14:50:06 [2025-01-06 14:50:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188285', 'tblTempUsageDetail_20' ) start [2025-01-06 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188285', 'tblTempUsageDetail_20' ) end [2025-01-06 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188285', 'tblTempVendorCDR_20' ) start [2025-01-06 14:50:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188285', 'tblTempVendorCDR_20' ) end [2025-01-06 14:50:31] Production.INFO: ProcessCDR(1,14188285,1,1,2) [2025-01-06 14:50:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:50:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:50:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:50:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188285', 'tblTempUsageDetail_20' ) start [2025-01-06 14:50:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188285', 'tblTempUsageDetail_20' ) end [2025-01-06 14:50:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:50:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:50:36] Production.INFO: ==26795== Releasing lock... [2025-01-06 14:50:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:50:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:51:05 [end_date_ymd] => 2025-01-06 14:51:05 [RateCDR] => 1 ) [2025-01-06 14:51: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-01-06 11:51:05' and `end` < '2025-01-06 14:51: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-01-06 14:51:27] Production.INFO: count ==5578 [2025-01-06 14:51:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:51:05 - End Time 2025-01-06 14:51:05 [2025-01-06 14:51:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:51:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188290', 'tblTempUsageDetail_20' ) start [2025-01-06 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188290', 'tblTempUsageDetail_20' ) end [2025-01-06 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188290', 'tblTempVendorCDR_20' ) start [2025-01-06 14:51:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188290', 'tblTempVendorCDR_20' ) end [2025-01-06 14:51:30] Production.INFO: ProcessCDR(1,14188290,1,1,2) [2025-01-06 14:51:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:51:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:51:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:51:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188290', 'tblTempUsageDetail_20' ) start [2025-01-06 14:51:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188290', 'tblTempUsageDetail_20' ) end [2025-01-06 14:51:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:51:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:51:34] Production.INFO: ==26879== Releasing lock... [2025-01-06 14:51:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:51:34] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:52:05 [end_date_ymd] => 2025-01-06 14:52:05 [RateCDR] => 1 ) [2025-01-06 14:52: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-01-06 11:52:05' and `end` < '2025-01-06 14:52: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-01-06 14:52:32] Production.INFO: count ==5581 [2025-01-06 14:52:34] Production.ERROR: pbx CDR StartTime 2025-01-06 11:52:05 - End Time 2025-01-06 14:52:05 [2025-01-06 14:52:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188295', 'tblTempUsageDetail_20' ) start [2025-01-06 14:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188295', 'tblTempUsageDetail_20' ) end [2025-01-06 14:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188295', 'tblTempVendorCDR_20' ) start [2025-01-06 14:52:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188295', 'tblTempVendorCDR_20' ) end [2025-01-06 14:52:34] Production.INFO: ProcessCDR(1,14188295,1,1,2) [2025-01-06 14:52:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:52:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:52:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:52:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188295', 'tblTempUsageDetail_20' ) start [2025-01-06 14:52:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188295', 'tblTempUsageDetail_20' ) end [2025-01-06 14:52:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:52:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:52:39] Production.INFO: ==26965== Releasing lock... [2025-01-06 14:52:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:52:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:53:04 [end_date_ymd] => 2025-01-06 14:53:04 [RateCDR] => 1 ) [2025-01-06 14:53: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-01-06 11:53:04' and `end` < '2025-01-06 14:53: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-01-06 14:53:31] Production.INFO: count ==5579 [2025-01-06 14:53:34] Production.ERROR: pbx CDR StartTime 2025-01-06 11:53:04 - End Time 2025-01-06 14:53:04 [2025-01-06 14:53:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188300', 'tblTempUsageDetail_20' ) start [2025-01-06 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188300', 'tblTempUsageDetail_20' ) end [2025-01-06 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188300', 'tblTempVendorCDR_20' ) start [2025-01-06 14:53:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188300', 'tblTempVendorCDR_20' ) end [2025-01-06 14:53:34] Production.INFO: ProcessCDR(1,14188300,1,1,2) [2025-01-06 14:53:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:53:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:53:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:53:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188300', 'tblTempUsageDetail_20' ) start [2025-01-06 14:53:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188300', 'tblTempUsageDetail_20' ) end [2025-01-06 14:53:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:53:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:53:39] Production.INFO: ==27043== Releasing lock... [2025-01-06 14:53:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:53:39] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:54:05 [end_date_ymd] => 2025-01-06 14:54:05 [RateCDR] => 1 ) [2025-01-06 14:54: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-01-06 11:54:05' and `end` < '2025-01-06 14:54: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-01-06 14:54:27] Production.INFO: count ==5553 [2025-01-06 14:54:29] Production.ERROR: pbx CDR StartTime 2025-01-06 11:54:05 - End Time 2025-01-06 14:54:05 [2025-01-06 14:54:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188305', 'tblTempUsageDetail_20' ) start [2025-01-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188305', 'tblTempUsageDetail_20' ) end [2025-01-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188305', 'tblTempVendorCDR_20' ) start [2025-01-06 14:54:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188305', 'tblTempVendorCDR_20' ) end [2025-01-06 14:54:29] Production.INFO: ProcessCDR(1,14188305,1,1,2) [2025-01-06 14:54:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:54:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:54:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:54:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188305', 'tblTempUsageDetail_20' ) start [2025-01-06 14:54:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188305', 'tblTempUsageDetail_20' ) end [2025-01-06 14:54:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:54:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:54:34] Production.INFO: ==27125== Releasing lock... [2025-01-06 14:54:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:54:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:55:05 [end_date_ymd] => 2025-01-06 14:55:05 [RateCDR] => 1 ) [2025-01-06 14:55: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-01-06 11:55:05' and `end` < '2025-01-06 14:55: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-01-06 14:55:31] Production.INFO: count ==5524 [2025-01-06 14:55:34] Production.ERROR: pbx CDR StartTime 2025-01-06 11:55:05 - End Time 2025-01-06 14:55:05 [2025-01-06 14:55:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188310', 'tblTempUsageDetail_20' ) start [2025-01-06 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188310', 'tblTempUsageDetail_20' ) end [2025-01-06 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188310', 'tblTempVendorCDR_20' ) start [2025-01-06 14:55:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188310', 'tblTempVendorCDR_20' ) end [2025-01-06 14:55:34] Production.INFO: ProcessCDR(1,14188310,1,1,2) [2025-01-06 14:55:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:55:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:55:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:55:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188310', 'tblTempUsageDetail_20' ) start [2025-01-06 14:55:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188310', 'tblTempUsageDetail_20' ) end [2025-01-06 14:55:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:55:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:55:39] Production.INFO: ==27205== Releasing lock... [2025-01-06 14:55:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:55:39] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:56:05 [end_date_ymd] => 2025-01-06 14:56:05 [RateCDR] => 1 ) [2025-01-06 14:56: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-01-06 11:56:05' and `end` < '2025-01-06 14:56: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-01-06 14:56:37] Production.INFO: count ==5525 [2025-01-06 14:56:40] Production.ERROR: pbx CDR StartTime 2025-01-06 11:56:05 - End Time 2025-01-06 14:56:05 [2025-01-06 14:56:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:56:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188315', 'tblTempUsageDetail_20' ) start [2025-01-06 14:56:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188315', 'tblTempUsageDetail_20' ) end [2025-01-06 14:56:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188315', 'tblTempVendorCDR_20' ) start [2025-01-06 14:56:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188315', 'tblTempVendorCDR_20' ) end [2025-01-06 14:56:40] Production.INFO: ProcessCDR(1,14188315,1,1,2) [2025-01-06 14:56:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:56:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:56:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:56:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:56:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188315', 'tblTempUsageDetail_20' ) start [2025-01-06 14:56:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188315', 'tblTempUsageDetail_20' ) end [2025-01-06 14:56:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:56:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:56:45] Production.INFO: ==27290== Releasing lock... [2025-01-06 14:56:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:56:45] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:57:05 [end_date_ymd] => 2025-01-06 14:57:05 [RateCDR] => 1 ) [2025-01-06 14:57: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-01-06 11:57:05' and `end` < '2025-01-06 14:57: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-01-06 14:57:33] Production.INFO: count ==5532 [2025-01-06 14:57:35] Production.ERROR: pbx CDR StartTime 2025-01-06 11:57:05 - End Time 2025-01-06 14:57:05 [2025-01-06 14:57:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188320', 'tblTempUsageDetail_20' ) start [2025-01-06 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188320', 'tblTempUsageDetail_20' ) end [2025-01-06 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188320', 'tblTempVendorCDR_20' ) start [2025-01-06 14:57:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188320', 'tblTempVendorCDR_20' ) end [2025-01-06 14:57:35] Production.INFO: ProcessCDR(1,14188320,1,1,2) [2025-01-06 14:57:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:57:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:57:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:57:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188320', 'tblTempUsageDetail_20' ) start [2025-01-06 14:57:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188320', 'tblTempUsageDetail_20' ) end [2025-01-06 14:57:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:57:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:57:40] Production.INFO: ==27373== Releasing lock... [2025-01-06 14:57:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:57:40] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:58:04 [end_date_ymd] => 2025-01-06 14:58:04 [RateCDR] => 1 ) [2025-01-06 14:58: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-01-06 11:58:04' and `end` < '2025-01-06 14:58: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-01-06 14:58:25] Production.INFO: count ==5541 [2025-01-06 14:58:28] Production.ERROR: pbx CDR StartTime 2025-01-06 11:58:04 - End Time 2025-01-06 14:58:04 [2025-01-06 14:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188325', 'tblTempUsageDetail_20' ) start [2025-01-06 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188325', 'tblTempUsageDetail_20' ) end [2025-01-06 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188325', 'tblTempVendorCDR_20' ) start [2025-01-06 14:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188325', 'tblTempVendorCDR_20' ) end [2025-01-06 14:58:28] Production.INFO: ProcessCDR(1,14188325,1,1,2) [2025-01-06 14:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188325', 'tblTempUsageDetail_20' ) start [2025-01-06 14:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188325', 'tblTempUsageDetail_20' ) end [2025-01-06 14:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:58:33] Production.INFO: ==27457== Releasing lock... [2025-01-06 14:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:58:33] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 11:59:05 [end_date_ymd] => 2025-01-06 14:59:05 [RateCDR] => 1 ) [2025-01-06 14:59: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-01-06 11:59:05' and `end` < '2025-01-06 14:59: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-01-06 14:59:35] Production.INFO: count ==5535 [2025-01-06 14:59:38] Production.ERROR: pbx CDR StartTime 2025-01-06 11:59:05 - End Time 2025-01-06 14:59:05 [2025-01-06 14:59:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 14:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188330', 'tblTempUsageDetail_20' ) start [2025-01-06 14:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188330', 'tblTempUsageDetail_20' ) end [2025-01-06 14:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188330', 'tblTempVendorCDR_20' ) start [2025-01-06 14:59:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188330', 'tblTempVendorCDR_20' ) end [2025-01-06 14:59:38] Production.INFO: ProcessCDR(1,14188330,1,1,2) [2025-01-06 14:59:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:59:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 14:59:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:59:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 14:59:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188330', 'tblTempUsageDetail_20' ) start [2025-01-06 14:59:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188330', 'tblTempUsageDetail_20' ) end [2025-01-06 14:59:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 14:59:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 14:59:43] Production.INFO: ==27583== Releasing lock... [2025-01-06 14:59:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 14:59:43] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:00:06 [end_date_ymd] => 2025-01-06 15:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 12:00:06' and `end` < '2025-01-06 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-01-06 15:00:30] Production.INFO: count ==5518 [2025-01-06 15:00:32] Production.ERROR: pbx CDR StartTime 2025-01-06 12:00:06 - End Time 2025-01-06 15:00:06 [2025-01-06 15:00:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188336', 'tblTempUsageDetail_20' ) start [2025-01-06 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188336', 'tblTempUsageDetail_20' ) end [2025-01-06 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188336', 'tblTempVendorCDR_20' ) start [2025-01-06 15:00:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188336', 'tblTempVendorCDR_20' ) end [2025-01-06 15:00:32] Production.INFO: ProcessCDR(1,14188336,1,1,2) [2025-01-06 15:00:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:00:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:00:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:00:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188336', 'tblTempUsageDetail_20' ) start [2025-01-06 15:00:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188336', 'tblTempUsageDetail_20' ) end [2025-01-06 15:00:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:00:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:00:37] Production.INFO: ==27683== Releasing lock... [2025-01-06 15:00:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:00:37] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:01:05 [end_date_ymd] => 2025-01-06 15:01:05 [RateCDR] => 1 ) [2025-01-06 15:01: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-01-06 12:01:05' and `end` < '2025-01-06 15:01: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-01-06 15:01:27] Production.INFO: count ==5525 [2025-01-06 15:01:30] Production.ERROR: pbx CDR StartTime 2025-01-06 12:01:05 - End Time 2025-01-06 15:01:05 [2025-01-06 15:01:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188341', 'tblTempUsageDetail_20' ) start [2025-01-06 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188341', 'tblTempUsageDetail_20' ) end [2025-01-06 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188341', 'tblTempVendorCDR_20' ) start [2025-01-06 15:01:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188341', 'tblTempVendorCDR_20' ) end [2025-01-06 15:01:30] Production.INFO: ProcessCDR(1,14188341,1,1,2) [2025-01-06 15:01:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:01:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:01:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:01:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188341', 'tblTempUsageDetail_20' ) start [2025-01-06 15:01:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188341', 'tblTempUsageDetail_20' ) end [2025-01-06 15:01:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:01:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:01:34] Production.INFO: ==27780== Releasing lock... [2025-01-06 15:01:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:01:34] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:02:06 [end_date_ymd] => 2025-01-06 15:02:06 [RateCDR] => 1 ) [2025-01-06 15:02: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-01-06 12:02:06' and `end` < '2025-01-06 15:02: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-01-06 15:02:28] Production.INFO: count ==5560 [2025-01-06 15:02:31] Production.ERROR: pbx CDR StartTime 2025-01-06 12:02:06 - End Time 2025-01-06 15:02:06 [2025-01-06 15:02:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188346', 'tblTempUsageDetail_20' ) start [2025-01-06 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188346', 'tblTempUsageDetail_20' ) end [2025-01-06 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188346', 'tblTempVendorCDR_20' ) start [2025-01-06 15:02:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188346', 'tblTempVendorCDR_20' ) end [2025-01-06 15:02:31] Production.INFO: ProcessCDR(1,14188346,1,1,2) [2025-01-06 15:02:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:02:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:02:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:02:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188346', 'tblTempUsageDetail_20' ) start [2025-01-06 15:02:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188346', 'tblTempUsageDetail_20' ) end [2025-01-06 15:02:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:02:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:02:36] Production.INFO: ==27945== Releasing lock... [2025-01-06 15:02:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:02:36] Production.INFO: 69.75 MB #Memory Used# [2025-01-06 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:03:05 [end_date_ymd] => 2025-01-06 15:03:05 [RateCDR] => 1 ) [2025-01-06 15:03: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-01-06 12:03:05' and `end` < '2025-01-06 15:03: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-01-06 15:03:23] Production.INFO: count ==5552 [2025-01-06 15:03:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:03:05 - End Time 2025-01-06 15:03:05 [2025-01-06 15:03:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188351', 'tblTempUsageDetail_20' ) start [2025-01-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188351', 'tblTempUsageDetail_20' ) end [2025-01-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188351', 'tblTempVendorCDR_20' ) start [2025-01-06 15:03:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188351', 'tblTempVendorCDR_20' ) end [2025-01-06 15:03:25] Production.INFO: ProcessCDR(1,14188351,1,1,2) [2025-01-06 15:03:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:03:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:03:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:03:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188351', 'tblTempUsageDetail_20' ) start [2025-01-06 15:03:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188351', 'tblTempUsageDetail_20' ) end [2025-01-06 15:03:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:03:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:03:30] Production.INFO: ==28029== Releasing lock... [2025-01-06 15:03:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:03:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:04:05 [end_date_ymd] => 2025-01-06 15:04:05 [RateCDR] => 1 ) [2025-01-06 15:04: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-01-06 12:04:05' and `end` < '2025-01-06 15:04: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-01-06 15:04:23] Production.INFO: count ==5550 [2025-01-06 15:04:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:04:05 - End Time 2025-01-06 15:04:05 [2025-01-06 15:04:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188356', 'tblTempUsageDetail_20' ) start [2025-01-06 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188356', 'tblTempUsageDetail_20' ) end [2025-01-06 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188356', 'tblTempVendorCDR_20' ) start [2025-01-06 15:04:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188356', 'tblTempVendorCDR_20' ) end [2025-01-06 15:04:25] Production.INFO: ProcessCDR(1,14188356,1,1,2) [2025-01-06 15:04:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:04:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:04:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:04:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188356', 'tblTempUsageDetail_20' ) start [2025-01-06 15:04:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188356', 'tblTempUsageDetail_20' ) end [2025-01-06 15:04:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:04:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:04:30] Production.INFO: ==28115== Releasing lock... [2025-01-06 15:04:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:04:30] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:05:04 [end_date_ymd] => 2025-01-06 15:05:04 [RateCDR] => 1 ) [2025-01-06 15:05: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-01-06 12:05:04' and `end` < '2025-01-06 15:05: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-01-06 15:05:19] Production.INFO: count ==5551 [2025-01-06 15:05:22] Production.ERROR: pbx CDR StartTime 2025-01-06 12:05:04 - End Time 2025-01-06 15:05:04 [2025-01-06 15:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188361', 'tblTempUsageDetail_20' ) start [2025-01-06 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188361', 'tblTempUsageDetail_20' ) end [2025-01-06 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188361', 'tblTempVendorCDR_20' ) start [2025-01-06 15:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188361', 'tblTempVendorCDR_20' ) end [2025-01-06 15:05:22] Production.INFO: ProcessCDR(1,14188361,1,1,2) [2025-01-06 15:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188361', 'tblTempUsageDetail_20' ) start [2025-01-06 15:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188361', 'tblTempUsageDetail_20' ) end [2025-01-06 15:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:05:26] Production.INFO: ==28277== Releasing lock... [2025-01-06 15:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:05:26] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:06:05 [end_date_ymd] => 2025-01-06 15:06:05 [RateCDR] => 1 ) [2025-01-06 15:06: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-01-06 12:06:05' and `end` < '2025-01-06 15:06: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-01-06 15:06:21] Production.INFO: count ==5525 [2025-01-06 15:06:24] Production.ERROR: pbx CDR StartTime 2025-01-06 12:06:05 - End Time 2025-01-06 15:06:05 [2025-01-06 15:06:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188366', 'tblTempUsageDetail_20' ) start [2025-01-06 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188366', 'tblTempUsageDetail_20' ) end [2025-01-06 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188366', 'tblTempVendorCDR_20' ) start [2025-01-06 15:06:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188366', 'tblTempVendorCDR_20' ) end [2025-01-06 15:06:24] Production.INFO: ProcessCDR(1,14188366,1,1,2) [2025-01-06 15:06:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:06:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:06:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:06:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188366', 'tblTempUsageDetail_20' ) start [2025-01-06 15:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188366', 'tblTempUsageDetail_20' ) end [2025-01-06 15:06:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:06:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:06:29] Production.INFO: ==28365== Releasing lock... [2025-01-06 15:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:06:29] Production.INFO: 69.5 MB #Memory Used# [2025-01-06 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:07:05 [end_date_ymd] => 2025-01-06 15:07:05 [RateCDR] => 1 ) [2025-01-06 15:07: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-01-06 12:07:05' and `end` < '2025-01-06 15:07: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-01-06 15:07:34] Production.INFO: count ==5514 [2025-01-06 15:07:36] Production.ERROR: pbx CDR StartTime 2025-01-06 12:07:05 - End Time 2025-01-06 15:07:05 [2025-01-06 15:07:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188371', 'tblTempUsageDetail_20' ) start [2025-01-06 15:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188371', 'tblTempUsageDetail_20' ) end [2025-01-06 15:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188371', 'tblTempVendorCDR_20' ) start [2025-01-06 15:07:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188371', 'tblTempVendorCDR_20' ) end [2025-01-06 15:07:36] Production.INFO: ProcessCDR(1,14188371,1,1,2) [2025-01-06 15:07:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:07:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:07:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:07:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188371', 'tblTempUsageDetail_20' ) start [2025-01-06 15:07:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188371', 'tblTempUsageDetail_20' ) end [2025-01-06 15:07:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:07:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:07:41] Production.INFO: ==28459== Releasing lock... [2025-01-06 15:07:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:07:41] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:08:05 [end_date_ymd] => 2025-01-06 15:08:05 [RateCDR] => 1 ) [2025-01-06 15:08: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-01-06 12:08:05' and `end` < '2025-01-06 15:08: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-01-06 15:08:37] Production.INFO: count ==5519 [2025-01-06 15:08:39] Production.ERROR: pbx CDR StartTime 2025-01-06 12:08:05 - End Time 2025-01-06 15:08:05 [2025-01-06 15:08:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:08:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188376', 'tblTempUsageDetail_20' ) start [2025-01-06 15:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188376', 'tblTempUsageDetail_20' ) end [2025-01-06 15:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188376', 'tblTempVendorCDR_20' ) start [2025-01-06 15:08:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188376', 'tblTempVendorCDR_20' ) end [2025-01-06 15:08:40] Production.INFO: ProcessCDR(1,14188376,1,1,2) [2025-01-06 15:08:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:08:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:08:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:08:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188376', 'tblTempUsageDetail_20' ) start [2025-01-06 15:08:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188376', 'tblTempUsageDetail_20' ) end [2025-01-06 15:08:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:08:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:08:44] Production.INFO: ==28635== Releasing lock... [2025-01-06 15:08:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:08:44] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:09:05 [end_date_ymd] => 2025-01-06 15:09:05 [RateCDR] => 1 ) [2025-01-06 15:09: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-01-06 12:09:05' and `end` < '2025-01-06 15:09: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-01-06 15:09:24] Production.INFO: count ==5508 [2025-01-06 15:09:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:09:05 - End Time 2025-01-06 15:09:05 [2025-01-06 15:09:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188381', 'tblTempUsageDetail_20' ) start [2025-01-06 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188381', 'tblTempUsageDetail_20' ) end [2025-01-06 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188381', 'tblTempVendorCDR_20' ) start [2025-01-06 15:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188381', 'tblTempVendorCDR_20' ) end [2025-01-06 15:09:26] Production.INFO: ProcessCDR(1,14188381,1,1,2) [2025-01-06 15:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:09:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:09:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188381', 'tblTempUsageDetail_20' ) start [2025-01-06 15:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188381', 'tblTempUsageDetail_20' ) end [2025-01-06 15:09:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:09:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:09:31] Production.INFO: ==28733== Releasing lock... [2025-01-06 15:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:09:31] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 15:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:10:06 [end_date_ymd] => 2025-01-06 15:10:06 [RateCDR] => 1 ) [2025-01-06 15:10: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-01-06 12:10:06' and `end` < '2025-01-06 15:10: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-01-06 15:10:31] Production.INFO: count ==5517 [2025-01-06 15:10:34] Production.ERROR: pbx CDR StartTime 2025-01-06 12:10:06 - End Time 2025-01-06 15:10:06 [2025-01-06 15:10:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188387', 'tblTempUsageDetail_20' ) start [2025-01-06 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188387', 'tblTempUsageDetail_20' ) end [2025-01-06 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188387', 'tblTempVendorCDR_20' ) start [2025-01-06 15:10:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188387', 'tblTempVendorCDR_20' ) end [2025-01-06 15:10:34] Production.INFO: ProcessCDR(1,14188387,1,1,2) [2025-01-06 15:10:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:10:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:10:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:10:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188387', 'tblTempUsageDetail_20' ) start [2025-01-06 15:10:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188387', 'tblTempUsageDetail_20' ) end [2025-01-06 15:10:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:10:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:10:39] Production.INFO: ==28827== Releasing lock... [2025-01-06 15:10:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:10:39] Production.INFO: 69.25 MB #Memory Used# [2025-01-06 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:11:05 [end_date_ymd] => 2025-01-06 15:11:05 [RateCDR] => 1 ) [2025-01-06 15:11: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-01-06 12:11:05' and `end` < '2025-01-06 15:11: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-01-06 15:11:21] Production.INFO: count ==5477 [2025-01-06 15:11:24] Production.ERROR: pbx CDR StartTime 2025-01-06 12:11:05 - End Time 2025-01-06 15:11:05 [2025-01-06 15:11:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188392', 'tblTempUsageDetail_20' ) start [2025-01-06 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188392', 'tblTempUsageDetail_20' ) end [2025-01-06 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188392', 'tblTempVendorCDR_20' ) start [2025-01-06 15:11:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188392', 'tblTempVendorCDR_20' ) end [2025-01-06 15:11:24] Production.INFO: ProcessCDR(1,14188392,1,1,2) [2025-01-06 15:11:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:11:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:11:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:11:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188392', 'tblTempUsageDetail_20' ) start [2025-01-06 15:11:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188392', 'tblTempUsageDetail_20' ) end [2025-01-06 15:11:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:11:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:11:29] Production.INFO: ==28930== Releasing lock... [2025-01-06 15:11:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:11:29] Production.INFO: 69 MB #Memory Used# [2025-01-06 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:12:04 [end_date_ymd] => 2025-01-06 15:12:04 [RateCDR] => 1 ) [2025-01-06 15:12: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-01-06 12:12:04' and `end` < '2025-01-06 15:12: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-01-06 15:12:23] Production.INFO: count ==5453 [2025-01-06 15:12:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:12:04 - End Time 2025-01-06 15:12:04 [2025-01-06 15:12:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188397', 'tblTempUsageDetail_20' ) start [2025-01-06 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188397', 'tblTempUsageDetail_20' ) end [2025-01-06 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188397', 'tblTempVendorCDR_20' ) start [2025-01-06 15:12:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188397', 'tblTempVendorCDR_20' ) end [2025-01-06 15:12:25] Production.INFO: ProcessCDR(1,14188397,1,1,2) [2025-01-06 15:12:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:12:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:12:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:12:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188397', 'tblTempUsageDetail_20' ) start [2025-01-06 15:12:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188397', 'tblTempUsageDetail_20' ) end [2025-01-06 15:12:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:12:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:12:30] Production.INFO: ==29102== Releasing lock... [2025-01-06 15:12:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:12:30] Production.INFO: 68.75 MB #Memory Used# [2025-01-06 15:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:13:05 [end_date_ymd] => 2025-01-06 15:13:05 [RateCDR] => 1 ) [2025-01-06 15:13: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-01-06 12:13:05' and `end` < '2025-01-06 15:13: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-01-06 15:13:27] Production.INFO: count ==5489 [2025-01-06 15:13:29] Production.ERROR: pbx CDR StartTime 2025-01-06 12:13:05 - End Time 2025-01-06 15:13:05 [2025-01-06 15:13:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:13:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188402', 'tblTempUsageDetail_20' ) start [2025-01-06 15:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188402', 'tblTempUsageDetail_20' ) end [2025-01-06 15:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188402', 'tblTempVendorCDR_20' ) start [2025-01-06 15:13:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188402', 'tblTempVendorCDR_20' ) end [2025-01-06 15:13:30] Production.INFO: ProcessCDR(1,14188402,1,1,2) [2025-01-06 15:13:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:13:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:13:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:13:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188402', 'tblTempUsageDetail_20' ) start [2025-01-06 15:13:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188402', 'tblTempUsageDetail_20' ) end [2025-01-06 15:13:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:13:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:13:34] Production.INFO: ==29200== Releasing lock... [2025-01-06 15:13:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:13:34] Production.INFO: 69 MB #Memory Used# [2025-01-06 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:14:05 [end_date_ymd] => 2025-01-06 15:14:05 [RateCDR] => 1 ) [2025-01-06 15:14: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-01-06 12:14:05' and `end` < '2025-01-06 15:14: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-01-06 15:14:24] Production.INFO: count ==5480 [2025-01-06 15:14:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:14:05 - End Time 2025-01-06 15:14:05 [2025-01-06 15:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188407', 'tblTempUsageDetail_20' ) start [2025-01-06 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188407', 'tblTempUsageDetail_20' ) end [2025-01-06 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188407', 'tblTempVendorCDR_20' ) start [2025-01-06 15:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188407', 'tblTempVendorCDR_20' ) end [2025-01-06 15:14:26] Production.INFO: ProcessCDR(1,14188407,1,1,2) [2025-01-06 15:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:14:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:14:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188407', 'tblTempUsageDetail_20' ) start [2025-01-06 15:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188407', 'tblTempUsageDetail_20' ) end [2025-01-06 15:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:14:31] Production.INFO: ==29332== Releasing lock... [2025-01-06 15:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:14:31] Production.INFO: 69 MB #Memory Used# [2025-01-06 15:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:15:05 [end_date_ymd] => 2025-01-06 15:15:05 [RateCDR] => 1 ) [2025-01-06 15:15: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-01-06 12:15:05' and `end` < '2025-01-06 15:15: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-01-06 15:15:19] Production.INFO: count ==5440 [2025-01-06 15:15:21] Production.ERROR: pbx CDR StartTime 2025-01-06 12:15:05 - End Time 2025-01-06 15:15:05 [2025-01-06 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188412', 'tblTempUsageDetail_20' ) start [2025-01-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188412', 'tblTempUsageDetail_20' ) end [2025-01-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188412', 'tblTempVendorCDR_20' ) start [2025-01-06 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188412', 'tblTempVendorCDR_20' ) end [2025-01-06 15:15:21] Production.INFO: ProcessCDR(1,14188412,1,1,2) [2025-01-06 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188412', 'tblTempUsageDetail_20' ) start [2025-01-06 15:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188412', 'tblTempUsageDetail_20' ) end [2025-01-06 15:15:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:15:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:15:26] Production.INFO: ==29506== Releasing lock... [2025-01-06 15:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:15:26] Production.INFO: 68.75 MB #Memory Used# [2025-01-06 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:16:06 [end_date_ymd] => 2025-01-06 15:16:06 [RateCDR] => 1 ) [2025-01-06 15:16: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-01-06 12:16:06' and `end` < '2025-01-06 15:16: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-01-06 15:16:20] Production.INFO: count ==5396 [2025-01-06 15:16:22] Production.ERROR: pbx CDR StartTime 2025-01-06 12:16:06 - End Time 2025-01-06 15:16:06 [2025-01-06 15:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188417', 'tblTempUsageDetail_20' ) start [2025-01-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188417', 'tblTempUsageDetail_20' ) end [2025-01-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188417', 'tblTempVendorCDR_20' ) start [2025-01-06 15:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188417', 'tblTempVendorCDR_20' ) end [2025-01-06 15:16:22] Production.INFO: ProcessCDR(1,14188417,1,1,2) [2025-01-06 15:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:16:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:16:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:16:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188417', 'tblTempUsageDetail_20' ) start [2025-01-06 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188417', 'tblTempUsageDetail_20' ) end [2025-01-06 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:16:27] Production.INFO: ==29600== Releasing lock... [2025-01-06 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:16:27] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:17:05 [end_date_ymd] => 2025-01-06 15:17:05 [RateCDR] => 1 ) [2025-01-06 15:17: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-01-06 12:17:05' and `end` < '2025-01-06 15:17: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-01-06 15:17:19] Production.INFO: count ==5387 [2025-01-06 15:17:21] Production.ERROR: pbx CDR StartTime 2025-01-06 12:17:05 - End Time 2025-01-06 15:17:05 [2025-01-06 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188422', 'tblTempUsageDetail_20' ) start [2025-01-06 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188422', 'tblTempUsageDetail_20' ) end [2025-01-06 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188422', 'tblTempVendorCDR_20' ) start [2025-01-06 15:17:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188422', 'tblTempVendorCDR_20' ) end [2025-01-06 15:17:22] Production.INFO: ProcessCDR(1,14188422,1,1,2) [2025-01-06 15:17:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188422', 'tblTempUsageDetail_20' ) start [2025-01-06 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188422', 'tblTempUsageDetail_20' ) end [2025-01-06 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:17:26] Production.INFO: ==29699== Releasing lock... [2025-01-06 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:17:26] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:18:05 [end_date_ymd] => 2025-01-06 15:18:05 [RateCDR] => 1 ) [2025-01-06 15:18: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-01-06 12:18:05' and `end` < '2025-01-06 15:18: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-01-06 15:18:32] Production.INFO: count ==5378 [2025-01-06 15:18:34] Production.ERROR: pbx CDR StartTime 2025-01-06 12:18:05 - End Time 2025-01-06 15:18:05 [2025-01-06 15:18:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188427', 'tblTempUsageDetail_20' ) start [2025-01-06 15:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188427', 'tblTempUsageDetail_20' ) end [2025-01-06 15:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188427', 'tblTempVendorCDR_20' ) start [2025-01-06 15:18:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188427', 'tblTempVendorCDR_20' ) end [2025-01-06 15:18:34] Production.INFO: ProcessCDR(1,14188427,1,1,2) [2025-01-06 15:18:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:18:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:18:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:18:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188427', 'tblTempUsageDetail_20' ) start [2025-01-06 15:18:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188427', 'tblTempUsageDetail_20' ) end [2025-01-06 15:18:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:18:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:18:39] Production.INFO: ==29790== Releasing lock... [2025-01-06 15:18:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:18:39] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:19:04 [end_date_ymd] => 2025-01-06 15:19:04 [RateCDR] => 1 ) [2025-01-06 15:19: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-01-06 12:19:04' and `end` < '2025-01-06 15:19: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-01-06 15:19:37] Production.INFO: count ==5357 [2025-01-06 15:19:40] Production.ERROR: pbx CDR StartTime 2025-01-06 12:19:04 - End Time 2025-01-06 15:19:04 [2025-01-06 15:19:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188432', 'tblTempUsageDetail_20' ) start [2025-01-06 15:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188432', 'tblTempUsageDetail_20' ) end [2025-01-06 15:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188432', 'tblTempVendorCDR_20' ) start [2025-01-06 15:19:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188432', 'tblTempVendorCDR_20' ) end [2025-01-06 15:19:40] Production.INFO: ProcessCDR(1,14188432,1,1,2) [2025-01-06 15:19:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:19:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:19:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:19:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:19:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188432', 'tblTempUsageDetail_20' ) start [2025-01-06 15:19:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188432', 'tblTempUsageDetail_20' ) end [2025-01-06 15:19:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:19:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:19:45] Production.INFO: ==29881== Releasing lock... [2025-01-06 15:19:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:19:45] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:20:06 [end_date_ymd] => 2025-01-06 15:20:06 [RateCDR] => 1 ) [2025-01-06 15:20: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-01-06 12:20:06' and `end` < '2025-01-06 15:20: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-01-06 15:20:31] Production.INFO: count ==5334 [2025-01-06 15:20:33] Production.ERROR: pbx CDR StartTime 2025-01-06 12:20:06 - End Time 2025-01-06 15:20:06 [2025-01-06 15:20:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188438', 'tblTempUsageDetail_20' ) start [2025-01-06 15:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188438', 'tblTempUsageDetail_20' ) end [2025-01-06 15:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188438', 'tblTempVendorCDR_20' ) start [2025-01-06 15:20:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188438', 'tblTempVendorCDR_20' ) end [2025-01-06 15:20:33] Production.INFO: ProcessCDR(1,14188438,1,1,2) [2025-01-06 15:20:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:20:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:20:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:20:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188438', 'tblTempUsageDetail_20' ) start [2025-01-06 15:20:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188438', 'tblTempUsageDetail_20' ) end [2025-01-06 15:20:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:20:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:20:38] Production.INFO: ==29972== Releasing lock... [2025-01-06 15:20:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:20:38] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:21:05 [end_date_ymd] => 2025-01-06 15:21:05 [RateCDR] => 1 ) [2025-01-06 15:21: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-01-06 12:21:05' and `end` < '2025-01-06 15:21: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-01-06 15:21:22] Production.INFO: count ==5356 [2025-01-06 15:21:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:21:05 - End Time 2025-01-06 15:21:05 [2025-01-06 15:21:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188443', 'tblTempUsageDetail_20' ) start [2025-01-06 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188443', 'tblTempUsageDetail_20' ) end [2025-01-06 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188443', 'tblTempVendorCDR_20' ) start [2025-01-06 15:21:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188443', 'tblTempVendorCDR_20' ) end [2025-01-06 15:21:25] Production.INFO: ProcessCDR(1,14188443,1,1,2) [2025-01-06 15:21:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:21:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:21:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:21:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188443', 'tblTempUsageDetail_20' ) start [2025-01-06 15:21:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188443', 'tblTempUsageDetail_20' ) end [2025-01-06 15:21:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:21:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:21:29] Production.INFO: ==30063== Releasing lock... [2025-01-06 15:21:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:21:29] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:22:06 [end_date_ymd] => 2025-01-06 15:22:06 [RateCDR] => 1 ) [2025-01-06 15:22: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-01-06 12:22:06' and `end` < '2025-01-06 15:22: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-01-06 15:22:24] Production.INFO: count ==5373 [2025-01-06 15:22:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:22:06 - End Time 2025-01-06 15:22:06 [2025-01-06 15:22:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188448', 'tblTempUsageDetail_20' ) start [2025-01-06 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188448', 'tblTempUsageDetail_20' ) end [2025-01-06 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188448', 'tblTempVendorCDR_20' ) start [2025-01-06 15:22:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188448', 'tblTempVendorCDR_20' ) end [2025-01-06 15:22:26] Production.INFO: ProcessCDR(1,14188448,1,1,2) [2025-01-06 15:22:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:22:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:22:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:22:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188448', 'tblTempUsageDetail_20' ) start [2025-01-06 15:22:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188448', 'tblTempUsageDetail_20' ) end [2025-01-06 15:22:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:22:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:22:31] Production.INFO: ==30157== Releasing lock... [2025-01-06 15:22:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:22:31] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 15:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:23:06 [end_date_ymd] => 2025-01-06 15:23:06 [RateCDR] => 1 ) [2025-01-06 15:23: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-01-06 12:23:06' and `end` < '2025-01-06 15:23: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-01-06 15:23:24] Production.INFO: count ==5357 [2025-01-06 15:23:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:23:06 - End Time 2025-01-06 15:23:06 [2025-01-06 15:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188453', 'tblTempUsageDetail_20' ) start [2025-01-06 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188453', 'tblTempUsageDetail_20' ) end [2025-01-06 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188453', 'tblTempVendorCDR_20' ) start [2025-01-06 15:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188453', 'tblTempVendorCDR_20' ) end [2025-01-06 15:23:26] Production.INFO: ProcessCDR(1,14188453,1,1,2) [2025-01-06 15:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:23:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:23:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:23:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188453', 'tblTempUsageDetail_20' ) start [2025-01-06 15:23:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188453', 'tblTempUsageDetail_20' ) end [2025-01-06 15:23:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:23:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:23:29] Production.INFO: ==30251== Releasing lock... [2025-01-06 15:23:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:23:29] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:24:05 [end_date_ymd] => 2025-01-06 15:24:05 [RateCDR] => 1 ) [2025-01-06 15:24: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-01-06 12:24:05' and `end` < '2025-01-06 15:24: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-01-06 15:24:22] Production.INFO: count ==5353 [2025-01-06 15:24:24] Production.ERROR: pbx CDR StartTime 2025-01-06 12:24:05 - End Time 2025-01-06 15:24:05 [2025-01-06 15:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188458', 'tblTempUsageDetail_20' ) start [2025-01-06 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188458', 'tblTempUsageDetail_20' ) end [2025-01-06 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188458', 'tblTempVendorCDR_20' ) start [2025-01-06 15:24:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188458', 'tblTempVendorCDR_20' ) end [2025-01-06 15:24:25] Production.INFO: ProcessCDR(1,14188458,1,1,2) [2025-01-06 15:24:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:24:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:24:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188458', 'tblTempUsageDetail_20' ) start [2025-01-06 15:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188458', 'tblTempUsageDetail_20' ) end [2025-01-06 15:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:24:29] Production.INFO: ==30344== Releasing lock... [2025-01-06 15:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:24:29] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:25:05 [end_date_ymd] => 2025-01-06 15:25:05 [RateCDR] => 1 ) [2025-01-06 15:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 12:25:05' and `end` < '2025-01-06 15:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 15:25:34] Production.INFO: count ==5328 [2025-01-06 15:25:36] Production.ERROR: pbx CDR StartTime 2025-01-06 12:25:05 - End Time 2025-01-06 15:25:05 [2025-01-06 15:25:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188463', 'tblTempUsageDetail_20' ) start [2025-01-06 15:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188463', 'tblTempUsageDetail_20' ) end [2025-01-06 15:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188463', 'tblTempVendorCDR_20' ) start [2025-01-06 15:25:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188463', 'tblTempVendorCDR_20' ) end [2025-01-06 15:25:36] Production.INFO: ProcessCDR(1,14188463,1,1,2) [2025-01-06 15:25:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:25:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:25:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:25:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188463', 'tblTempUsageDetail_20' ) start [2025-01-06 15:25:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188463', 'tblTempUsageDetail_20' ) end [2025-01-06 15:25:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:25:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:25:40] Production.INFO: ==30434== Releasing lock... [2025-01-06 15:25:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:25:40] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:26:04 [end_date_ymd] => 2025-01-06 15:26:04 [RateCDR] => 1 ) [2025-01-06 15:26: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-01-06 12:26:04' and `end` < '2025-01-06 15:26: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-01-06 15:26:28] Production.INFO: count ==5319 [2025-01-06 15:26:31] Production.ERROR: pbx CDR StartTime 2025-01-06 12:26:04 - End Time 2025-01-06 15:26:04 [2025-01-06 15:26:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188468', 'tblTempUsageDetail_20' ) start [2025-01-06 15:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188468', 'tblTempUsageDetail_20' ) end [2025-01-06 15:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188468', 'tblTempVendorCDR_20' ) start [2025-01-06 15:26:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188468', 'tblTempVendorCDR_20' ) end [2025-01-06 15:26:31] Production.INFO: ProcessCDR(1,14188468,1,1,2) [2025-01-06 15:26:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:26:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:26:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:26:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188468', 'tblTempUsageDetail_20' ) start [2025-01-06 15:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188468', 'tblTempUsageDetail_20' ) end [2025-01-06 15:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:26:35] Production.INFO: ==30523== Releasing lock... [2025-01-06 15:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:26:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:27:05 [end_date_ymd] => 2025-01-06 15:27:05 [RateCDR] => 1 ) [2025-01-06 15:27: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-01-06 12:27:05' and `end` < '2025-01-06 15:27: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-01-06 15:27:31] Production.INFO: count ==5307 [2025-01-06 15:27:33] Production.ERROR: pbx CDR StartTime 2025-01-06 12:27:05 - End Time 2025-01-06 15:27:05 [2025-01-06 15:27:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188473', 'tblTempUsageDetail_20' ) start [2025-01-06 15:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188473', 'tblTempUsageDetail_20' ) end [2025-01-06 15:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188473', 'tblTempVendorCDR_20' ) start [2025-01-06 15:27:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188473', 'tblTempVendorCDR_20' ) end [2025-01-06 15:27:33] Production.INFO: ProcessCDR(1,14188473,1,1,2) [2025-01-06 15:27:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:27:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:27:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:27:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188473', 'tblTempUsageDetail_20' ) start [2025-01-06 15:27:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188473', 'tblTempUsageDetail_20' ) end [2025-01-06 15:27:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:27:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:27:38] Production.INFO: ==30614== Releasing lock... [2025-01-06 15:27:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:27:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:28:05 [end_date_ymd] => 2025-01-06 15:28:05 [RateCDR] => 1 ) [2025-01-06 15:28: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-01-06 12:28:05' and `end` < '2025-01-06 15:28: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-01-06 15:28:25] Production.INFO: count ==5317 [2025-01-06 15:28:27] Production.ERROR: pbx CDR StartTime 2025-01-06 12:28:05 - End Time 2025-01-06 15:28:05 [2025-01-06 15:28:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188478', 'tblTempUsageDetail_20' ) start [2025-01-06 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188478', 'tblTempUsageDetail_20' ) end [2025-01-06 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188478', 'tblTempVendorCDR_20' ) start [2025-01-06 15:28:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188478', 'tblTempVendorCDR_20' ) end [2025-01-06 15:28:27] Production.INFO: ProcessCDR(1,14188478,1,1,2) [2025-01-06 15:28:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:28:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:28:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:28:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:28:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188478', 'tblTempUsageDetail_20' ) start [2025-01-06 15:28:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188478', 'tblTempUsageDetail_20' ) end [2025-01-06 15:28:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:28:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:28:32] Production.INFO: ==30699== Releasing lock... [2025-01-06 15:28:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:28:32] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:29:05 [end_date_ymd] => 2025-01-06 15:29:05 [RateCDR] => 1 ) [2025-01-06 15:29: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-01-06 12:29:05' and `end` < '2025-01-06 15:29: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-01-06 15:29:24] Production.INFO: count ==5313 [2025-01-06 15:29:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:29:05 - End Time 2025-01-06 15:29:05 [2025-01-06 15:29:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188483', 'tblTempUsageDetail_20' ) start [2025-01-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188483', 'tblTempUsageDetail_20' ) end [2025-01-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188483', 'tblTempVendorCDR_20' ) start [2025-01-06 15:29:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188483', 'tblTempVendorCDR_20' ) end [2025-01-06 15:29:26] Production.INFO: ProcessCDR(1,14188483,1,1,2) [2025-01-06 15:29:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:29:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:29:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:29:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188483', 'tblTempUsageDetail_20' ) start [2025-01-06 15:29:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188483', 'tblTempUsageDetail_20' ) end [2025-01-06 15:29:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:29:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:29:31] Production.INFO: ==30780== Releasing lock... [2025-01-06 15:29:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:29:31] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:30:05 [end_date_ymd] => 2025-01-06 15:30:05 [RateCDR] => 1 ) [2025-01-06 15:30: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-01-06 12:30:05' and `end` < '2025-01-06 15:30: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-01-06 15:30:24] Production.INFO: count ==5331 [2025-01-06 15:30:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:30:05 - End Time 2025-01-06 15:30:05 [2025-01-06 15:30:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188489', 'tblTempUsageDetail_20' ) start [2025-01-06 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188489', 'tblTempUsageDetail_20' ) end [2025-01-06 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188489', 'tblTempVendorCDR_20' ) start [2025-01-06 15:30:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188489', 'tblTempVendorCDR_20' ) end [2025-01-06 15:30:26] Production.INFO: ProcessCDR(1,14188489,1,1,2) [2025-01-06 15:30:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:30:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188489', 'tblTempUsageDetail_20' ) start [2025-01-06 15:30:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188489', 'tblTempUsageDetail_20' ) end [2025-01-06 15:30:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:30:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:30:31] Production.INFO: ==30899== Releasing lock... [2025-01-06 15:30:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:30:31] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:31:05 [end_date_ymd] => 2025-01-06 15:31:05 [RateCDR] => 1 ) [2025-01-06 15:31: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-01-06 12:31:05' and `end` < '2025-01-06 15:31: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-01-06 15:31:30] Production.INFO: count ==5341 [2025-01-06 15:31:32] Production.ERROR: pbx CDR StartTime 2025-01-06 12:31:05 - End Time 2025-01-06 15:31:05 [2025-01-06 15:31:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188494', 'tblTempUsageDetail_20' ) start [2025-01-06 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188494', 'tblTempUsageDetail_20' ) end [2025-01-06 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188494', 'tblTempVendorCDR_20' ) start [2025-01-06 15:31:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188494', 'tblTempVendorCDR_20' ) end [2025-01-06 15:31:32] Production.INFO: ProcessCDR(1,14188494,1,1,2) [2025-01-06 15:31:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:31:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:31:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:31:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188494', 'tblTempUsageDetail_20' ) start [2025-01-06 15:31:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188494', 'tblTempUsageDetail_20' ) end [2025-01-06 15:31:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:31:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:31:37] Production.INFO: ==30988== Releasing lock... [2025-01-06 15:31:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:31:37] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:32:05 [end_date_ymd] => 2025-01-06 15:32:05 [RateCDR] => 1 ) [2025-01-06 15:32: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-01-06 12:32:05' and `end` < '2025-01-06 15:32: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-01-06 15:32:22] Production.INFO: count ==5330 [2025-01-06 15:32:24] Production.ERROR: pbx CDR StartTime 2025-01-06 12:32:05 - End Time 2025-01-06 15:32:05 [2025-01-06 15:32:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188499', 'tblTempUsageDetail_20' ) start [2025-01-06 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188499', 'tblTempUsageDetail_20' ) end [2025-01-06 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188499', 'tblTempVendorCDR_20' ) start [2025-01-06 15:32:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188499', 'tblTempVendorCDR_20' ) end [2025-01-06 15:32:24] Production.INFO: ProcessCDR(1,14188499,1,1,2) [2025-01-06 15:32:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:32:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:32:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188499', 'tblTempUsageDetail_20' ) start [2025-01-06 15:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188499', 'tblTempUsageDetail_20' ) end [2025-01-06 15:32:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:32:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:32:29] Production.INFO: ==31072== Releasing lock... [2025-01-06 15:32:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:32:29] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:33:05 [end_date_ymd] => 2025-01-06 15:33:05 [RateCDR] => 1 ) [2025-01-06 15:33: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-01-06 12:33:05' and `end` < '2025-01-06 15:33: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-01-06 15:33:32] Production.INFO: count ==5321 [2025-01-06 15:33:34] Production.ERROR: pbx CDR StartTime 2025-01-06 12:33:05 - End Time 2025-01-06 15:33:05 [2025-01-06 15:33:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188504', 'tblTempUsageDetail_20' ) start [2025-01-06 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188504', 'tblTempUsageDetail_20' ) end [2025-01-06 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188504', 'tblTempVendorCDR_20' ) start [2025-01-06 15:33:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188504', 'tblTempVendorCDR_20' ) end [2025-01-06 15:33:34] Production.INFO: ProcessCDR(1,14188504,1,1,2) [2025-01-06 15:33:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:33:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:33:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:33:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188504', 'tblTempUsageDetail_20' ) start [2025-01-06 15:33:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188504', 'tblTempUsageDetail_20' ) end [2025-01-06 15:33:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:33:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:33:39] Production.INFO: ==31148== Releasing lock... [2025-01-06 15:33:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:33:39] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:34:05 [end_date_ymd] => 2025-01-06 15:34:05 [RateCDR] => 1 ) [2025-01-06 15:34: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-01-06 12:34:05' and `end` < '2025-01-06 15:34: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-01-06 15:34:23] Production.INFO: count ==5305 [2025-01-06 15:34:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:34:05 - End Time 2025-01-06 15:34:05 [2025-01-06 15:34:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188509', 'tblTempUsageDetail_20' ) start [2025-01-06 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188509', 'tblTempUsageDetail_20' ) end [2025-01-06 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188509', 'tblTempVendorCDR_20' ) start [2025-01-06 15:34:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188509', 'tblTempVendorCDR_20' ) end [2025-01-06 15:34:25] Production.INFO: ProcessCDR(1,14188509,1,1,2) [2025-01-06 15:34:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:34:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:34:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:34:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188509', 'tblTempUsageDetail_20' ) start [2025-01-06 15:34:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188509', 'tblTempUsageDetail_20' ) end [2025-01-06 15:34:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:34:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:34:29] Production.INFO: ==31223== Releasing lock... [2025-01-06 15:34:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:34:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:35:05 [end_date_ymd] => 2025-01-06 15:35:05 [RateCDR] => 1 ) [2025-01-06 15:35: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-01-06 12:35:05' and `end` < '2025-01-06 15:35: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-01-06 15:35:37] Production.INFO: count ==5288 [2025-01-06 15:35:39] Production.ERROR: pbx CDR StartTime 2025-01-06 12:35:05 - End Time 2025-01-06 15:35:05 [2025-01-06 15:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188514', 'tblTempUsageDetail_20' ) start [2025-01-06 15:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188514', 'tblTempUsageDetail_20' ) end [2025-01-06 15:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188514', 'tblTempVendorCDR_20' ) start [2025-01-06 15:35:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188514', 'tblTempVendorCDR_20' ) end [2025-01-06 15:35:40] Production.INFO: ProcessCDR(1,14188514,1,1,2) [2025-01-06 15:35:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:35:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:35:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:35:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:35:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188514', 'tblTempUsageDetail_20' ) start [2025-01-06 15:35:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188514', 'tblTempUsageDetail_20' ) end [2025-01-06 15:35:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:35:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:35:44] Production.INFO: ==31294== Releasing lock... [2025-01-06 15:35:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:35:44] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:36:05 [end_date_ymd] => 2025-01-06 15:36:05 [RateCDR] => 1 ) [2025-01-06 15:36: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-01-06 12:36:05' and `end` < '2025-01-06 15:36: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-01-06 15:36:35] Production.INFO: count ==5305 [2025-01-06 15:36:37] Production.ERROR: pbx CDR StartTime 2025-01-06 12:36:05 - End Time 2025-01-06 15:36:05 [2025-01-06 15:36:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188519', 'tblTempUsageDetail_20' ) start [2025-01-06 15:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188519', 'tblTempUsageDetail_20' ) end [2025-01-06 15:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188519', 'tblTempVendorCDR_20' ) start [2025-01-06 15:36:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188519', 'tblTempVendorCDR_20' ) end [2025-01-06 15:36:37] Production.INFO: ProcessCDR(1,14188519,1,1,2) [2025-01-06 15:36:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:36:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:36:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:36:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188519', 'tblTempUsageDetail_20' ) start [2025-01-06 15:36:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188519', 'tblTempUsageDetail_20' ) end [2025-01-06 15:36:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:36:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:36:42] Production.INFO: ==31371== Releasing lock... [2025-01-06 15:36:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:36:42] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:37:04 [end_date_ymd] => 2025-01-06 15:37:04 [RateCDR] => 1 ) [2025-01-06 15:37: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-01-06 12:37:04' and `end` < '2025-01-06 15:37: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-01-06 15:37:28] Production.INFO: count ==5279 [2025-01-06 15:37:30] Production.ERROR: pbx CDR StartTime 2025-01-06 12:37:04 - End Time 2025-01-06 15:37:04 [2025-01-06 15:37:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188524', 'tblTempUsageDetail_20' ) start [2025-01-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188524', 'tblTempUsageDetail_20' ) end [2025-01-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188524', 'tblTempVendorCDR_20' ) start [2025-01-06 15:37:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188524', 'tblTempVendorCDR_20' ) end [2025-01-06 15:37:30] Production.INFO: ProcessCDR(1,14188524,1,1,2) [2025-01-06 15:37:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:37:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:37:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:37:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188524', 'tblTempUsageDetail_20' ) start [2025-01-06 15:37:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188524', 'tblTempUsageDetail_20' ) end [2025-01-06 15:37:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:37:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:37:34] Production.INFO: ==31444== Releasing lock... [2025-01-06 15:37:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:37:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:38:05 [end_date_ymd] => 2025-01-06 15:38:05 [RateCDR] => 1 ) [2025-01-06 15:38: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-01-06 12:38:05' and `end` < '2025-01-06 15:38: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-01-06 15:38:23] Production.INFO: count ==5269 [2025-01-06 15:38:25] Production.ERROR: pbx CDR StartTime 2025-01-06 12:38:05 - End Time 2025-01-06 15:38:05 [2025-01-06 15:38:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188529', 'tblTempUsageDetail_20' ) start [2025-01-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188529', 'tblTempUsageDetail_20' ) end [2025-01-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188529', 'tblTempVendorCDR_20' ) start [2025-01-06 15:38:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188529', 'tblTempVendorCDR_20' ) end [2025-01-06 15:38:25] Production.INFO: ProcessCDR(1,14188529,1,1,2) [2025-01-06 15:38:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:38:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:38:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:38:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188529', 'tblTempUsageDetail_20' ) start [2025-01-06 15:38:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188529', 'tblTempUsageDetail_20' ) end [2025-01-06 15:38:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:38:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:38:30] Production.INFO: ==31521== Releasing lock... [2025-01-06 15:38:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:38:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:39:06 [end_date_ymd] => 2025-01-06 15:39:06 [RateCDR] => 1 ) [2025-01-06 15:39: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-01-06 12:39:06' and `end` < '2025-01-06 15:39: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-01-06 15:39:37] Production.INFO: count ==5276 [2025-01-06 15:39:39] Production.ERROR: pbx CDR StartTime 2025-01-06 12:39:06 - End Time 2025-01-06 15:39:06 [2025-01-06 15:39:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:39:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188534', 'tblTempUsageDetail_20' ) start [2025-01-06 15:39:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188534', 'tblTempUsageDetail_20' ) end [2025-01-06 15:39:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188534', 'tblTempVendorCDR_20' ) start [2025-01-06 15:39:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188534', 'tblTempVendorCDR_20' ) end [2025-01-06 15:39:39] Production.INFO: ProcessCDR(1,14188534,1,1,2) [2025-01-06 15:39:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:39:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:39:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:39:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:39:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188534', 'tblTempUsageDetail_20' ) start [2025-01-06 15:39:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188534', 'tblTempUsageDetail_20' ) end [2025-01-06 15:39:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:39:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:39:44] Production.INFO: ==31601== Releasing lock... [2025-01-06 15:39:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:39:44] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:40:05 [end_date_ymd] => 2025-01-06 15:40:05 [RateCDR] => 1 ) [2025-01-06 15:40: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-01-06 12:40:05' and `end` < '2025-01-06 15:40: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-01-06 15:40:36] Production.INFO: count ==5283 [2025-01-06 15:40:38] Production.ERROR: pbx CDR StartTime 2025-01-06 12:40:05 - End Time 2025-01-06 15:40:05 [2025-01-06 15:40:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188540', 'tblTempUsageDetail_20' ) start [2025-01-06 15:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188540', 'tblTempUsageDetail_20' ) end [2025-01-06 15:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188540', 'tblTempVendorCDR_20' ) start [2025-01-06 15:40:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188540', 'tblTempVendorCDR_20' ) end [2025-01-06 15:40:38] Production.INFO: ProcessCDR(1,14188540,1,1,2) [2025-01-06 15:40:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:40:41] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:40:41] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:40:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188540', 'tblTempUsageDetail_20' ) start [2025-01-06 15:40:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188540', 'tblTempUsageDetail_20' ) end [2025-01-06 15:40:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:40:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:40:43] Production.INFO: ==31675== Releasing lock... [2025-01-06 15:40:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:40:43] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:41:05 [end_date_ymd] => 2025-01-06 15:41:05 [RateCDR] => 1 ) [2025-01-06 15:41: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-01-06 12:41:05' and `end` < '2025-01-06 15:41: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-01-06 15:41:34] Production.INFO: count ==5285 [2025-01-06 15:41:36] Production.ERROR: pbx CDR StartTime 2025-01-06 12:41:05 - End Time 2025-01-06 15:41:05 [2025-01-06 15:41:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188545', 'tblTempUsageDetail_20' ) start [2025-01-06 15:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188545', 'tblTempUsageDetail_20' ) end [2025-01-06 15:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188545', 'tblTempVendorCDR_20' ) start [2025-01-06 15:41:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188545', 'tblTempVendorCDR_20' ) end [2025-01-06 15:41:36] Production.INFO: ProcessCDR(1,14188545,1,1,2) [2025-01-06 15:41:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:41:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:41:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:41:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188545', 'tblTempUsageDetail_20' ) start [2025-01-06 15:41:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188545', 'tblTempUsageDetail_20' ) end [2025-01-06 15:41:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:41:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:41:41] Production.INFO: ==31752== Releasing lock... [2025-01-06 15:41:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:41:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:42:05 [end_date_ymd] => 2025-01-06 15:42:05 [RateCDR] => 1 ) [2025-01-06 15:42: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-01-06 12:42:05' and `end` < '2025-01-06 15:42: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-01-06 15:42:34] Production.INFO: count ==5313 [2025-01-06 15:42:36] Production.ERROR: pbx CDR StartTime 2025-01-06 12:42:05 - End Time 2025-01-06 15:42:05 [2025-01-06 15:42:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188550', 'tblTempUsageDetail_20' ) start [2025-01-06 15:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188550', 'tblTempUsageDetail_20' ) end [2025-01-06 15:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188550', 'tblTempVendorCDR_20' ) start [2025-01-06 15:42:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188550', 'tblTempVendorCDR_20' ) end [2025-01-06 15:42:36] Production.INFO: ProcessCDR(1,14188550,1,1,2) [2025-01-06 15:42:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:42:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:42:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:42:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188550', 'tblTempUsageDetail_20' ) start [2025-01-06 15:42:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188550', 'tblTempUsageDetail_20' ) end [2025-01-06 15:42:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:42:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:42:41] Production.INFO: ==31827== Releasing lock... [2025-01-06 15:42:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:42:41] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:43:05 [end_date_ymd] => 2025-01-06 15:43:05 [RateCDR] => 1 ) [2025-01-06 15:43: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-01-06 12:43:05' and `end` < '2025-01-06 15:43: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-01-06 15:43:26] Production.INFO: count ==5309 [2025-01-06 15:43:29] Production.ERROR: pbx CDR StartTime 2025-01-06 12:43:05 - End Time 2025-01-06 15:43:05 [2025-01-06 15:43:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188555', 'tblTempUsageDetail_20' ) start [2025-01-06 15:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188555', 'tblTempUsageDetail_20' ) end [2025-01-06 15:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188555', 'tblTempVendorCDR_20' ) start [2025-01-06 15:43:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188555', 'tblTempVendorCDR_20' ) end [2025-01-06 15:43:29] Production.INFO: ProcessCDR(1,14188555,1,1,2) [2025-01-06 15:43:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:43:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:43:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:43:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188555', 'tblTempUsageDetail_20' ) start [2025-01-06 15:43:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188555', 'tblTempUsageDetail_20' ) end [2025-01-06 15:43:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:43:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:43:33] Production.INFO: ==31900== Releasing lock... [2025-01-06 15:43:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:43:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:44:05 [end_date_ymd] => 2025-01-06 15:44:05 [RateCDR] => 1 ) [2025-01-06 15:44: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-01-06 12:44:05' and `end` < '2025-01-06 15:44: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-01-06 15:44:24] Production.INFO: count ==5300 [2025-01-06 15:44:26] Production.ERROR: pbx CDR StartTime 2025-01-06 12:44:05 - End Time 2025-01-06 15:44:05 [2025-01-06 15:44:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188560', 'tblTempUsageDetail_20' ) start [2025-01-06 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188560', 'tblTempUsageDetail_20' ) end [2025-01-06 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188560', 'tblTempVendorCDR_20' ) start [2025-01-06 15:44:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188560', 'tblTempVendorCDR_20' ) end [2025-01-06 15:44:26] Production.INFO: ProcessCDR(1,14188560,1,1,2) [2025-01-06 15:44:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:44:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:44:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:44:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188560', 'tblTempUsageDetail_20' ) start [2025-01-06 15:44:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188560', 'tblTempUsageDetail_20' ) end [2025-01-06 15:44:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:44:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:44:30] Production.INFO: ==31970== Releasing lock... [2025-01-06 15:44:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:44:30] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:45:05 [end_date_ymd] => 2025-01-06 15:45:05 [RateCDR] => 1 ) [2025-01-06 15:45: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-01-06 12:45:05' and `end` < '2025-01-06 15:45: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-01-06 15:45:30] Production.INFO: count ==5296 [2025-01-06 15:45:32] Production.ERROR: pbx CDR StartTime 2025-01-06 12:45:05 - End Time 2025-01-06 15:45:05 [2025-01-06 15:45:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188565', 'tblTempUsageDetail_20' ) start [2025-01-06 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188565', 'tblTempUsageDetail_20' ) end [2025-01-06 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188565', 'tblTempVendorCDR_20' ) start [2025-01-06 15:45:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188565', 'tblTempVendorCDR_20' ) end [2025-01-06 15:45:32] Production.INFO: ProcessCDR(1,14188565,1,1,2) [2025-01-06 15:45:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:45:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:45:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:45:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188565', 'tblTempUsageDetail_20' ) start [2025-01-06 15:45:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188565', 'tblTempUsageDetail_20' ) end [2025-01-06 15:45:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:45:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:45:37] Production.INFO: ==32051== Releasing lock... [2025-01-06 15:45:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:45:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:46:06 [end_date_ymd] => 2025-01-06 15:46:06 [RateCDR] => 1 ) [2025-01-06 15:46: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-01-06 12:46:06' and `end` < '2025-01-06 15:46: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-01-06 15:46:28] Production.INFO: count ==5274 [2025-01-06 15:46:30] Production.ERROR: pbx CDR StartTime 2025-01-06 12:46:06 - End Time 2025-01-06 15:46:06 [2025-01-06 15:46:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188570', 'tblTempUsageDetail_20' ) start [2025-01-06 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188570', 'tblTempUsageDetail_20' ) end [2025-01-06 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188570', 'tblTempVendorCDR_20' ) start [2025-01-06 15:46:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188570', 'tblTempVendorCDR_20' ) end [2025-01-06 15:46:30] Production.INFO: ProcessCDR(1,14188570,1,1,2) [2025-01-06 15:46:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:46:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:46:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:46:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188570', 'tblTempUsageDetail_20' ) start [2025-01-06 15:46:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188570', 'tblTempUsageDetail_20' ) end [2025-01-06 15:46:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:46:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:46:35] Production.INFO: ==32163== Releasing lock... [2025-01-06 15:46:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:46:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:47:05 [end_date_ymd] => 2025-01-06 15:47:05 [RateCDR] => 1 ) [2025-01-06 15:47: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-01-06 12:47:05' and `end` < '2025-01-06 15:47: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-01-06 15:47:26] Production.INFO: count ==5273 [2025-01-06 15:47:28] Production.ERROR: pbx CDR StartTime 2025-01-06 12:47:05 - End Time 2025-01-06 15:47:05 [2025-01-06 15:47:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188575', 'tblTempUsageDetail_20' ) start [2025-01-06 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188575', 'tblTempUsageDetail_20' ) end [2025-01-06 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188575', 'tblTempVendorCDR_20' ) start [2025-01-06 15:47:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188575', 'tblTempVendorCDR_20' ) end [2025-01-06 15:47:28] Production.INFO: ProcessCDR(1,14188575,1,1,2) [2025-01-06 15:47:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:47:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:47:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:47:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188575', 'tblTempUsageDetail_20' ) start [2025-01-06 15:47:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188575', 'tblTempUsageDetail_20' ) end [2025-01-06 15:47:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:47:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:47:33] Production.INFO: ==32237== Releasing lock... [2025-01-06 15:47:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:47:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:48:05 [end_date_ymd] => 2025-01-06 15:48:05 [RateCDR] => 1 ) [2025-01-06 15:48: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-01-06 12:48:05' and `end` < '2025-01-06 15:48: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-01-06 15:48:27] Production.INFO: count ==5259 [2025-01-06 15:48:29] Production.ERROR: pbx CDR StartTime 2025-01-06 12:48:05 - End Time 2025-01-06 15:48:05 [2025-01-06 15:48:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:48:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188580', 'tblTempUsageDetail_20' ) start [2025-01-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188580', 'tblTempUsageDetail_20' ) end [2025-01-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188580', 'tblTempVendorCDR_20' ) start [2025-01-06 15:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188580', 'tblTempVendorCDR_20' ) end [2025-01-06 15:48:30] Production.INFO: ProcessCDR(1,14188580,1,1,2) [2025-01-06 15:48:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:48:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:48:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:48:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188580', 'tblTempUsageDetail_20' ) start [2025-01-06 15:48:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188580', 'tblTempUsageDetail_20' ) end [2025-01-06 15:48:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:48:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:48:34] Production.INFO: ==32311== Releasing lock... [2025-01-06 15:48:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:48:34] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:49:05 [end_date_ymd] => 2025-01-06 15:49:05 [RateCDR] => 1 ) [2025-01-06 15:49: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-01-06 12:49:05' and `end` < '2025-01-06 15:49: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-01-06 15:49:21] Production.INFO: count ==5262 [2025-01-06 15:49:23] Production.ERROR: pbx CDR StartTime 2025-01-06 12:49:05 - End Time 2025-01-06 15:49:05 [2025-01-06 15:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188585', 'tblTempUsageDetail_20' ) start [2025-01-06 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188585', 'tblTempUsageDetail_20' ) end [2025-01-06 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188585', 'tblTempVendorCDR_20' ) start [2025-01-06 15:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188585', 'tblTempVendorCDR_20' ) end [2025-01-06 15:49:23] Production.INFO: ProcessCDR(1,14188585,1,1,2) [2025-01-06 15:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188585', 'tblTempUsageDetail_20' ) start [2025-01-06 15:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188585', 'tblTempUsageDetail_20' ) end [2025-01-06 15:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:49:28] Production.INFO: ==32385== Releasing lock... [2025-01-06 15:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:49:28] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:50:06 [end_date_ymd] => 2025-01-06 15:50:06 [RateCDR] => 1 ) [2025-01-06 15:50: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-01-06 12:50:06' and `end` < '2025-01-06 15:50: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-01-06 15:50:33] Production.INFO: count ==5276 [2025-01-06 15:50:35] Production.ERROR: pbx CDR StartTime 2025-01-06 12:50:06 - End Time 2025-01-06 15:50:06 [2025-01-06 15:50:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188591', 'tblTempUsageDetail_20' ) start [2025-01-06 15:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188591', 'tblTempUsageDetail_20' ) end [2025-01-06 15:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188591', 'tblTempVendorCDR_20' ) start [2025-01-06 15:50:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188591', 'tblTempVendorCDR_20' ) end [2025-01-06 15:50:35] Production.INFO: ProcessCDR(1,14188591,1,1,2) [2025-01-06 15:50:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:50:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:50:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:50:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188591', 'tblTempUsageDetail_20' ) start [2025-01-06 15:50:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188591', 'tblTempUsageDetail_20' ) end [2025-01-06 15:50:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:50:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:50:40] Production.INFO: ==32461== Releasing lock... [2025-01-06 15:50:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:50:40] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:51:05 [end_date_ymd] => 2025-01-06 15:51:05 [RateCDR] => 1 ) [2025-01-06 15:51: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-01-06 12:51:05' and `end` < '2025-01-06 15:51: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-01-06 15:51:26] Production.INFO: count ==5323 [2025-01-06 15:51:28] Production.ERROR: pbx CDR StartTime 2025-01-06 12:51:05 - End Time 2025-01-06 15:51:05 [2025-01-06 15:51:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188596', 'tblTempUsageDetail_20' ) start [2025-01-06 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188596', 'tblTempUsageDetail_20' ) end [2025-01-06 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188596', 'tblTempVendorCDR_20' ) start [2025-01-06 15:51:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188596', 'tblTempVendorCDR_20' ) end [2025-01-06 15:51:28] Production.INFO: ProcessCDR(1,14188596,1,1,2) [2025-01-06 15:51:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:51:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:51:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:51:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188596', 'tblTempUsageDetail_20' ) start [2025-01-06 15:51:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188596', 'tblTempUsageDetail_20' ) end [2025-01-06 15:51:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:51:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:51:33] Production.INFO: ==32537== Releasing lock... [2025-01-06 15:51:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:51:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:52:05 [end_date_ymd] => 2025-01-06 15:52:05 [RateCDR] => 1 ) [2025-01-06 15:52: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-01-06 12:52:05' and `end` < '2025-01-06 15:52: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-01-06 15:52:34] Production.INFO: count ==5336 [2025-01-06 15:52:36] Production.ERROR: pbx CDR StartTime 2025-01-06 12:52:05 - End Time 2025-01-06 15:52:05 [2025-01-06 15:52:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:52:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188601', 'tblTempUsageDetail_20' ) start [2025-01-06 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188601', 'tblTempUsageDetail_20' ) end [2025-01-06 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188601', 'tblTempVendorCDR_20' ) start [2025-01-06 15:52:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188601', 'tblTempVendorCDR_20' ) end [2025-01-06 15:52:37] Production.INFO: ProcessCDR(1,14188601,1,1,2) [2025-01-06 15:52:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:52:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:52:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:52:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188601', 'tblTempUsageDetail_20' ) start [2025-01-06 15:52:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188601', 'tblTempUsageDetail_20' ) end [2025-01-06 15:52:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:52:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:52:42] Production.INFO: ==32610== Releasing lock... [2025-01-06 15:52:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:52:42] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:53:05 [end_date_ymd] => 2025-01-06 15:53:05 [RateCDR] => 1 ) [2025-01-06 15:53: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-01-06 12:53:05' and `end` < '2025-01-06 15:53: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-01-06 15:53:38] Production.INFO: count ==5347 [2025-01-06 15:53:40] Production.ERROR: pbx CDR StartTime 2025-01-06 12:53:05 - End Time 2025-01-06 15:53:05 [2025-01-06 15:53:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:53:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188606', 'tblTempUsageDetail_20' ) start [2025-01-06 15:53:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188606', 'tblTempUsageDetail_20' ) end [2025-01-06 15:53:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188606', 'tblTempVendorCDR_20' ) start [2025-01-06 15:53:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188606', 'tblTempVendorCDR_20' ) end [2025-01-06 15:53:40] Production.INFO: ProcessCDR(1,14188606,1,1,2) [2025-01-06 15:53:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:53:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:53:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:53:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:53:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188606', 'tblTempUsageDetail_20' ) start [2025-01-06 15:53:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188606', 'tblTempUsageDetail_20' ) end [2025-01-06 15:53:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:53:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:53:45] Production.INFO: ==32682== Releasing lock... [2025-01-06 15:53:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:53:45] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:54:05 [end_date_ymd] => 2025-01-06 15:54:05 [RateCDR] => 1 ) [2025-01-06 15:54: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-01-06 12:54:05' and `end` < '2025-01-06 15:54: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-01-06 15:54:33] Production.INFO: count ==5314 [2025-01-06 15:54:35] Production.ERROR: pbx CDR StartTime 2025-01-06 12:54:05 - End Time 2025-01-06 15:54:05 [2025-01-06 15:54:35] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188611', 'tblTempUsageDetail_20' ) start [2025-01-06 15:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188611', 'tblTempUsageDetail_20' ) end [2025-01-06 15:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188611', 'tblTempVendorCDR_20' ) start [2025-01-06 15:54:35] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188611', 'tblTempVendorCDR_20' ) end [2025-01-06 15:54:35] Production.INFO: ProcessCDR(1,14188611,1,1,2) [2025-01-06 15:54:35] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:54:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:54:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:54:40] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:54:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188611', 'tblTempUsageDetail_20' ) start [2025-01-06 15:54:40] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188611', 'tblTempUsageDetail_20' ) end [2025-01-06 15:54:40] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:54:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:54:40] Production.INFO: ==32756== Releasing lock... [2025-01-06 15:54:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:54:40] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:55:05 [end_date_ymd] => 2025-01-06 15:55:05 [RateCDR] => 1 ) [2025-01-06 15:55: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-01-06 12:55:05' and `end` < '2025-01-06 15:55: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-01-06 15:55:29] Production.INFO: count ==5324 [2025-01-06 15:55:31] Production.ERROR: pbx CDR StartTime 2025-01-06 12:55:05 - End Time 2025-01-06 15:55:05 [2025-01-06 15:55:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188616', 'tblTempUsageDetail_20' ) start [2025-01-06 15:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188616', 'tblTempUsageDetail_20' ) end [2025-01-06 15:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188616', 'tblTempVendorCDR_20' ) start [2025-01-06 15:55:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188616', 'tblTempVendorCDR_20' ) end [2025-01-06 15:55:31] Production.INFO: ProcessCDR(1,14188616,1,1,2) [2025-01-06 15:55:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:55:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:55:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:55:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188616', 'tblTempUsageDetail_20' ) start [2025-01-06 15:55:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188616', 'tblTempUsageDetail_20' ) end [2025-01-06 15:55:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:55:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:55:36] Production.INFO: ==380== Releasing lock... [2025-01-06 15:55:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:55:36] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:56:05 [end_date_ymd] => 2025-01-06 15:56:05 [RateCDR] => 1 ) [2025-01-06 15:56: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-01-06 12:56:05' and `end` < '2025-01-06 15:56: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-01-06 15:56:31] Production.INFO: count ==5324 [2025-01-06 15:56:33] Production.ERROR: pbx CDR StartTime 2025-01-06 12:56:05 - End Time 2025-01-06 15:56:05 [2025-01-06 15:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188621', 'tblTempUsageDetail_20' ) start [2025-01-06 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188621', 'tblTempUsageDetail_20' ) end [2025-01-06 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188621', 'tblTempVendorCDR_20' ) start [2025-01-06 15:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188621', 'tblTempVendorCDR_20' ) end [2025-01-06 15:56:33] Production.INFO: ProcessCDR(1,14188621,1,1,2) [2025-01-06 15:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188621', 'tblTempUsageDetail_20' ) start [2025-01-06 15:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188621', 'tblTempUsageDetail_20' ) end [2025-01-06 15:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:56:38] Production.INFO: ==453== Releasing lock... [2025-01-06 15:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:56:38] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:57:05 [end_date_ymd] => 2025-01-06 15:57:05 [RateCDR] => 1 ) [2025-01-06 15:57: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-01-06 12:57:05' and `end` < '2025-01-06 15:57: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-01-06 15:57:31] Production.INFO: count ==5350 [2025-01-06 15:57:34] Production.ERROR: pbx CDR StartTime 2025-01-06 12:57:05 - End Time 2025-01-06 15:57:05 [2025-01-06 15:57:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188626', 'tblTempUsageDetail_20' ) start [2025-01-06 15:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188626', 'tblTempUsageDetail_20' ) end [2025-01-06 15:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188626', 'tblTempVendorCDR_20' ) start [2025-01-06 15:57:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188626', 'tblTempVendorCDR_20' ) end [2025-01-06 15:57:34] Production.INFO: ProcessCDR(1,14188626,1,1,2) [2025-01-06 15:57:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:57:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:57:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:57:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188626', 'tblTempUsageDetail_20' ) start [2025-01-06 15:57:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188626', 'tblTempUsageDetail_20' ) end [2025-01-06 15:57:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:57:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:57:38] Production.INFO: ==529== Releasing lock... [2025-01-06 15:57:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:57:38] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:58:04 [end_date_ymd] => 2025-01-06 15:58:04 [RateCDR] => 1 ) [2025-01-06 15:58: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-01-06 12:58:04' and `end` < '2025-01-06 15:58: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-01-06 15:58:38] Production.INFO: count ==5334 [2025-01-06 15:58:40] Production.ERROR: pbx CDR StartTime 2025-01-06 12:58:04 - End Time 2025-01-06 15:58:04 [2025-01-06 15:58:40] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188631', 'tblTempUsageDetail_20' ) start [2025-01-06 15:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188631', 'tblTempUsageDetail_20' ) end [2025-01-06 15:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188631', 'tblTempVendorCDR_20' ) start [2025-01-06 15:58:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188631', 'tblTempVendorCDR_20' ) end [2025-01-06 15:58:40] Production.INFO: ProcessCDR(1,14188631,1,1,2) [2025-01-06 15:58:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:58:43] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:58:43] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:58:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188631', 'tblTempUsageDetail_20' ) start [2025-01-06 15:58:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188631', 'tblTempUsageDetail_20' ) end [2025-01-06 15:58:45] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:58:45] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:58:45] Production.INFO: ==604== Releasing lock... [2025-01-06 15:58:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:58:45] Production.INFO: 68 MB #Memory Used# [2025-01-06 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 12:59:05 [end_date_ymd] => 2025-01-06 15:59:05 [RateCDR] => 1 ) [2025-01-06 15:59: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-01-06 12:59:05' and `end` < '2025-01-06 15:59: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-01-06 15:59:28] Production.INFO: count ==5336 [2025-01-06 15:59:30] Production.ERROR: pbx CDR StartTime 2025-01-06 12:59:05 - End Time 2025-01-06 15:59:05 [2025-01-06 15:59:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188636', 'tblTempUsageDetail_20' ) start [2025-01-06 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188636', 'tblTempUsageDetail_20' ) end [2025-01-06 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188636', 'tblTempVendorCDR_20' ) start [2025-01-06 15:59:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188636', 'tblTempVendorCDR_20' ) end [2025-01-06 15:59:30] Production.INFO: ProcessCDR(1,14188636,1,1,2) [2025-01-06 15:59:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:59:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 15:59:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:59:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188636', 'tblTempUsageDetail_20' ) start [2025-01-06 15:59:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188636', 'tblTempUsageDetail_20' ) end [2025-01-06 15:59:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 15:59:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 15:59:34] Production.INFO: ==708== Releasing lock... [2025-01-06 15:59:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 15:59:34] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:00:06 [end_date_ymd] => 2025-01-06 16:00:06 [RateCDR] => 1 ) [2025-01-06 16:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 13:00:06' and `end` < '2025-01-06 16:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 16:00:29] Production.INFO: count ==5346 [2025-01-06 16:00:31] Production.ERROR: pbx CDR StartTime 2025-01-06 13:00:06 - End Time 2025-01-06 16:00:06 [2025-01-06 16:00:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188642', 'tblTempUsageDetail_20' ) start [2025-01-06 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188642', 'tblTempUsageDetail_20' ) end [2025-01-06 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188642', 'tblTempVendorCDR_20' ) start [2025-01-06 16:00:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188642', 'tblTempVendorCDR_20' ) end [2025-01-06 16:00:31] Production.INFO: ProcessCDR(1,14188642,1,1,2) [2025-01-06 16:00:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:00:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:00:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:00:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188642', 'tblTempUsageDetail_20' ) start [2025-01-06 16:00:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188642', 'tblTempUsageDetail_20' ) end [2025-01-06 16:00:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:00:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:00:36] Production.INFO: ==788== Releasing lock... [2025-01-06 16:00:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:00:36] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:01:04 [end_date_ymd] => 2025-01-06 16:01:04 [RateCDR] => 1 ) [2025-01-06 16:01: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-01-06 13:01:04' and `end` < '2025-01-06 16:01: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-01-06 16:01:23] Production.INFO: count ==5350 [2025-01-06 16:01:25] Production.ERROR: pbx CDR StartTime 2025-01-06 13:01:04 - End Time 2025-01-06 16:01:04 [2025-01-06 16:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188647', 'tblTempUsageDetail_20' ) start [2025-01-06 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188647', 'tblTempUsageDetail_20' ) end [2025-01-06 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188647', 'tblTempVendorCDR_20' ) start [2025-01-06 16:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188647', 'tblTempVendorCDR_20' ) end [2025-01-06 16:01:25] Production.INFO: ProcessCDR(1,14188647,1,1,2) [2025-01-06 16:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188647', 'tblTempUsageDetail_20' ) start [2025-01-06 16:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188647', 'tblTempUsageDetail_20' ) end [2025-01-06 16:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:01:30] Production.INFO: ==915== Releasing lock... [2025-01-06 16:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:01:30] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:02:05 [end_date_ymd] => 2025-01-06 16:02:05 [RateCDR] => 1 ) [2025-01-06 16:02: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-01-06 13:02:05' and `end` < '2025-01-06 16:02: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-01-06 16:02:35] Production.INFO: count ==5361 [2025-01-06 16:02:37] Production.ERROR: pbx CDR StartTime 2025-01-06 13:02:05 - End Time 2025-01-06 16:02:05 [2025-01-06 16:02:37] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188652', 'tblTempUsageDetail_20' ) start [2025-01-06 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188652', 'tblTempUsageDetail_20' ) end [2025-01-06 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188652', 'tblTempVendorCDR_20' ) start [2025-01-06 16:02:37] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188652', 'tblTempVendorCDR_20' ) end [2025-01-06 16:02:37] Production.INFO: ProcessCDR(1,14188652,1,1,2) [2025-01-06 16:02:37] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:02:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:02:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:02:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188652', 'tblTempUsageDetail_20' ) start [2025-01-06 16:02:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188652', 'tblTempUsageDetail_20' ) end [2025-01-06 16:02:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:02:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:02:42] Production.INFO: ==996== Releasing lock... [2025-01-06 16:02:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:02:42] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:03:05 [end_date_ymd] => 2025-01-06 16:03:05 [RateCDR] => 1 ) [2025-01-06 16:03: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-01-06 13:03:05' and `end` < '2025-01-06 16:03: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-01-06 16:03:29] Production.INFO: count ==5408 [2025-01-06 16:03:31] Production.ERROR: pbx CDR StartTime 2025-01-06 13:03:05 - End Time 2025-01-06 16:03:05 [2025-01-06 16:03:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188657', 'tblTempUsageDetail_20' ) start [2025-01-06 16:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188657', 'tblTempUsageDetail_20' ) end [2025-01-06 16:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188657', 'tblTempVendorCDR_20' ) start [2025-01-06 16:03:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188657', 'tblTempVendorCDR_20' ) end [2025-01-06 16:03:31] Production.INFO: ProcessCDR(1,14188657,1,1,2) [2025-01-06 16:03:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:03:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:03:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:03:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188657', 'tblTempUsageDetail_20' ) start [2025-01-06 16:03:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188657', 'tblTempUsageDetail_20' ) end [2025-01-06 16:03:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:03:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:03:36] Production.INFO: ==1070== Releasing lock... [2025-01-06 16:03:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:03:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:04:05 [end_date_ymd] => 2025-01-06 16:04:05 [RateCDR] => 1 ) [2025-01-06 16:04: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-01-06 13:04:05' and `end` < '2025-01-06 16:04: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-01-06 16:04:32] Production.INFO: count ==5416 [2025-01-06 16:04:34] Production.ERROR: pbx CDR StartTime 2025-01-06 13:04:05 - End Time 2025-01-06 16:04:05 [2025-01-06 16:04:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188662', 'tblTempUsageDetail_20' ) start [2025-01-06 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188662', 'tblTempUsageDetail_20' ) end [2025-01-06 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188662', 'tblTempVendorCDR_20' ) start [2025-01-06 16:04:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188662', 'tblTempVendorCDR_20' ) end [2025-01-06 16:04:34] Production.INFO: ProcessCDR(1,14188662,1,1,2) [2025-01-06 16:04:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:04:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:04:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:04:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188662', 'tblTempUsageDetail_20' ) start [2025-01-06 16:04:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188662', 'tblTempUsageDetail_20' ) end [2025-01-06 16:04:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:04:40] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:04:40] Production.INFO: ==1149== Releasing lock... [2025-01-06 16:04:40] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:04:40] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:05:04 [end_date_ymd] => 2025-01-06 16:05:04 [RateCDR] => 1 ) [2025-01-06 16:05: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-01-06 13:05:04' and `end` < '2025-01-06 16:05: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-01-06 16:05:29] Production.INFO: count ==5402 [2025-01-06 16:05:31] Production.ERROR: pbx CDR StartTime 2025-01-06 13:05:04 - End Time 2025-01-06 16:05:04 [2025-01-06 16:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188667', 'tblTempUsageDetail_20' ) start [2025-01-06 16:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188667', 'tblTempUsageDetail_20' ) end [2025-01-06 16:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188667', 'tblTempVendorCDR_20' ) start [2025-01-06 16:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188667', 'tblTempVendorCDR_20' ) end [2025-01-06 16:05:31] Production.INFO: ProcessCDR(1,14188667,1,1,2) [2025-01-06 16:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:05:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:05:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:05:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188667', 'tblTempUsageDetail_20' ) start [2025-01-06 16:05:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188667', 'tblTempUsageDetail_20' ) end [2025-01-06 16:05:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:05:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:05:36] Production.INFO: ==1261== Releasing lock... [2025-01-06 16:05:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:05:36] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:06:05 [end_date_ymd] => 2025-01-06 16:06:05 [RateCDR] => 1 ) [2025-01-06 16:06: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-01-06 13:06:05' and `end` < '2025-01-06 16:06: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-01-06 16:06:25] Production.INFO: count ==5418 [2025-01-06 16:06:27] Production.ERROR: pbx CDR StartTime 2025-01-06 13:06:05 - End Time 2025-01-06 16:06:05 [2025-01-06 16:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188672', 'tblTempUsageDetail_20' ) start [2025-01-06 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188672', 'tblTempUsageDetail_20' ) end [2025-01-06 16:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188672', 'tblTempVendorCDR_20' ) start [2025-01-06 16:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188672', 'tblTempVendorCDR_20' ) end [2025-01-06 16:06:28] Production.INFO: ProcessCDR(1,14188672,1,1,2) [2025-01-06 16:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188672', 'tblTempUsageDetail_20' ) start [2025-01-06 16:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188672', 'tblTempUsageDetail_20' ) end [2025-01-06 16:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:06:32] Production.INFO: ==1343== Releasing lock... [2025-01-06 16:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:06:32] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:07:06 [end_date_ymd] => 2025-01-06 16:07:06 [RateCDR] => 1 ) [2025-01-06 16:07: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-01-06 13:07:06' and `end` < '2025-01-06 16:07: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-01-06 16:07:28] Production.INFO: count ==5414 [2025-01-06 16:07:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:07:06 - End Time 2025-01-06 16:07:06 [2025-01-06 16:07:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188677', 'tblTempUsageDetail_20' ) start [2025-01-06 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188677', 'tblTempUsageDetail_20' ) end [2025-01-06 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188677', 'tblTempVendorCDR_20' ) start [2025-01-06 16:07:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188677', 'tblTempVendorCDR_20' ) end [2025-01-06 16:07:30] Production.INFO: ProcessCDR(1,14188677,1,1,2) [2025-01-06 16:07:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188677', 'tblTempUsageDetail_20' ) start [2025-01-06 16:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188677', 'tblTempUsageDetail_20' ) end [2025-01-06 16:07:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:07:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:07:35] Production.INFO: ==1415== Releasing lock... [2025-01-06 16:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:07:35] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:08:04 [end_date_ymd] => 2025-01-06 16:08:04 [RateCDR] => 1 ) [2025-01-06 16:08: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-01-06 13:08:04' and `end` < '2025-01-06 16:08: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-01-06 16:08:19] Production.INFO: count ==5405 [2025-01-06 16:08:22] Production.ERROR: pbx CDR StartTime 2025-01-06 13:08:04 - End Time 2025-01-06 16:08:04 [2025-01-06 16:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188682', 'tblTempUsageDetail_20' ) start [2025-01-06 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188682', 'tblTempUsageDetail_20' ) end [2025-01-06 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188682', 'tblTempVendorCDR_20' ) start [2025-01-06 16:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188682', 'tblTempVendorCDR_20' ) end [2025-01-06 16:08:22] Production.INFO: ProcessCDR(1,14188682,1,1,2) [2025-01-06 16:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188682', 'tblTempUsageDetail_20' ) start [2025-01-06 16:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188682', 'tblTempUsageDetail_20' ) end [2025-01-06 16:08:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:08:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:08:25] Production.INFO: ==1485== Releasing lock... [2025-01-06 16:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:08:25] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:09:05 [end_date_ymd] => 2025-01-06 16:09:05 [RateCDR] => 1 ) [2025-01-06 16:09: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-01-06 13:09:05' and `end` < '2025-01-06 16:09: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-01-06 16:09:23] Production.INFO: count ==5398 [2025-01-06 16:09:25] Production.ERROR: pbx CDR StartTime 2025-01-06 13:09:05 - End Time 2025-01-06 16:09:05 [2025-01-06 16:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188687', 'tblTempUsageDetail_20' ) start [2025-01-06 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188687', 'tblTempUsageDetail_20' ) end [2025-01-06 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188687', 'tblTempVendorCDR_20' ) start [2025-01-06 16:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188687', 'tblTempVendorCDR_20' ) end [2025-01-06 16:09:26] Production.INFO: ProcessCDR(1,14188687,1,1,2) [2025-01-06 16:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188687', 'tblTempUsageDetail_20' ) start [2025-01-06 16:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188687', 'tblTempUsageDetail_20' ) end [2025-01-06 16:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:09:29] Production.INFO: ==1598== Releasing lock... [2025-01-06 16:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:09:29] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:10:05 [end_date_ymd] => 2025-01-06 16:10:05 [RateCDR] => 1 ) [2025-01-06 16:10: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-01-06 13:10:05' and `end` < '2025-01-06 16:10: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-01-06 16:10:19] Production.INFO: count ==5397 [2025-01-06 16:10:21] Production.ERROR: pbx CDR StartTime 2025-01-06 13:10:05 - End Time 2025-01-06 16:10:05 [2025-01-06 16:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188693', 'tblTempUsageDetail_20' ) start [2025-01-06 16:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188693', 'tblTempUsageDetail_20' ) end [2025-01-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188693', 'tblTempVendorCDR_20' ) start [2025-01-06 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188693', 'tblTempVendorCDR_20' ) end [2025-01-06 16:10:22] Production.INFO: ProcessCDR(1,14188693,1,1,2) [2025-01-06 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188693', 'tblTempUsageDetail_20' ) start [2025-01-06 16:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188693', 'tblTempUsageDetail_20' ) end [2025-01-06 16:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:10:26] Production.INFO: ==1674== Releasing lock... [2025-01-06 16:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:10:26] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:11:05 [end_date_ymd] => 2025-01-06 16:11:05 [RateCDR] => 1 ) [2025-01-06 16:11: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-01-06 13:11:05' and `end` < '2025-01-06 16:11: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-01-06 16:11:20] Production.INFO: count ==5401 [2025-01-06 16:11:23] Production.ERROR: pbx CDR StartTime 2025-01-06 13:11:05 - End Time 2025-01-06 16:11:05 [2025-01-06 16:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188698', 'tblTempUsageDetail_20' ) start [2025-01-06 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188698', 'tblTempUsageDetail_20' ) end [2025-01-06 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188698', 'tblTempVendorCDR_20' ) start [2025-01-06 16:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188698', 'tblTempVendorCDR_20' ) end [2025-01-06 16:11:23] Production.INFO: ProcessCDR(1,14188698,1,1,2) [2025-01-06 16:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188698', 'tblTempUsageDetail_20' ) start [2025-01-06 16:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188698', 'tblTempUsageDetail_20' ) end [2025-01-06 16:11:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:11:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:11:28] Production.INFO: ==1750== Releasing lock... [2025-01-06 16:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:11:28] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:12:05 [end_date_ymd] => 2025-01-06 16:12:05 [RateCDR] => 1 ) [2025-01-06 16:12: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-01-06 13:12:05' and `end` < '2025-01-06 16:12: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-01-06 16:12:30] Production.INFO: count ==5391 [2025-01-06 16:12:32] Production.ERROR: pbx CDR StartTime 2025-01-06 13:12:05 - End Time 2025-01-06 16:12:05 [2025-01-06 16:12:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188703', 'tblTempUsageDetail_20' ) start [2025-01-06 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188703', 'tblTempUsageDetail_20' ) end [2025-01-06 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188703', 'tblTempVendorCDR_20' ) start [2025-01-06 16:12:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188703', 'tblTempVendorCDR_20' ) end [2025-01-06 16:12:32] Production.INFO: ProcessCDR(1,14188703,1,1,2) [2025-01-06 16:12:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:12:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:12:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:12:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188703', 'tblTempUsageDetail_20' ) start [2025-01-06 16:12:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188703', 'tblTempUsageDetail_20' ) end [2025-01-06 16:12:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:12:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:12:37] Production.INFO: ==1823== Releasing lock... [2025-01-06 16:12:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:12:37] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:13:05 [end_date_ymd] => 2025-01-06 16:13:05 [RateCDR] => 1 ) [2025-01-06 16:13: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-01-06 13:13:05' and `end` < '2025-01-06 16:13: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-01-06 16:13:24] Production.INFO: count ==5402 [2025-01-06 16:13:27] Production.ERROR: pbx CDR StartTime 2025-01-06 13:13:05 - End Time 2025-01-06 16:13:05 [2025-01-06 16:13:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188708', 'tblTempUsageDetail_20' ) start [2025-01-06 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188708', 'tblTempUsageDetail_20' ) end [2025-01-06 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188708', 'tblTempVendorCDR_20' ) start [2025-01-06 16:13:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188708', 'tblTempVendorCDR_20' ) end [2025-01-06 16:13:27] Production.INFO: ProcessCDR(1,14188708,1,1,2) [2025-01-06 16:13:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:13:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:13:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:13:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188708', 'tblTempUsageDetail_20' ) start [2025-01-06 16:13:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188708', 'tblTempUsageDetail_20' ) end [2025-01-06 16:13:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:13:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:13:30] Production.INFO: ==1903== Releasing lock... [2025-01-06 16:13:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:13:30] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:14:05 [end_date_ymd] => 2025-01-06 16:14:05 [RateCDR] => 1 ) [2025-01-06 16:14: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-01-06 13:14:05' and `end` < '2025-01-06 16:14: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-01-06 16:14:24] Production.INFO: count ==5403 [2025-01-06 16:14:26] Production.ERROR: pbx CDR StartTime 2025-01-06 13:14:05 - End Time 2025-01-06 16:14:05 [2025-01-06 16:14:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188713', 'tblTempUsageDetail_20' ) start [2025-01-06 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188713', 'tblTempUsageDetail_20' ) end [2025-01-06 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188713', 'tblTempVendorCDR_20' ) start [2025-01-06 16:14:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188713', 'tblTempVendorCDR_20' ) end [2025-01-06 16:14:26] Production.INFO: ProcessCDR(1,14188713,1,1,2) [2025-01-06 16:14:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:14:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:14:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:14:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188713', 'tblTempUsageDetail_20' ) start [2025-01-06 16:14:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188713', 'tblTempUsageDetail_20' ) end [2025-01-06 16:14:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:14:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:14:31] Production.INFO: ==1975== Releasing lock... [2025-01-06 16:14:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:14:31] Production.INFO: 68.5 MB #Memory Used# [2025-01-06 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:15:05 [end_date_ymd] => 2025-01-06 16:15:05 [RateCDR] => 1 ) [2025-01-06 16:15: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-01-06 13:15:05' and `end` < '2025-01-06 16:15: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-01-06 16:15:31] Production.INFO: count ==5385 [2025-01-06 16:15:34] Production.ERROR: pbx CDR StartTime 2025-01-06 13:15:05 - End Time 2025-01-06 16:15:05 [2025-01-06 16:15:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188718', 'tblTempUsageDetail_20' ) start [2025-01-06 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188718', 'tblTempUsageDetail_20' ) end [2025-01-06 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188718', 'tblTempVendorCDR_20' ) start [2025-01-06 16:15:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188718', 'tblTempVendorCDR_20' ) end [2025-01-06 16:15:34] Production.INFO: ProcessCDR(1,14188718,1,1,2) [2025-01-06 16:15:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:15:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:15:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:15:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188718', 'tblTempUsageDetail_20' ) start [2025-01-06 16:15:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188718', 'tblTempUsageDetail_20' ) end [2025-01-06 16:15:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:15:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:15:39] Production.INFO: ==2052== Releasing lock... [2025-01-06 16:15:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:15:39] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:16:05 [end_date_ymd] => 2025-01-06 16:16:05 [RateCDR] => 1 ) [2025-01-06 16:16: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-01-06 13:16:05' and `end` < '2025-01-06 16:16: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-01-06 16:16:34] Production.INFO: count ==5373 [2025-01-06 16:16:36] Production.ERROR: pbx CDR StartTime 2025-01-06 13:16:05 - End Time 2025-01-06 16:16:05 [2025-01-06 16:16:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188723', 'tblTempUsageDetail_20' ) start [2025-01-06 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188723', 'tblTempUsageDetail_20' ) end [2025-01-06 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188723', 'tblTempVendorCDR_20' ) start [2025-01-06 16:16:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188723', 'tblTempVendorCDR_20' ) end [2025-01-06 16:16:36] Production.INFO: ProcessCDR(1,14188723,1,1,2) [2025-01-06 16:16:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:16:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:16:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:16:42] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:16:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188723', 'tblTempUsageDetail_20' ) start [2025-01-06 16:16:42] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188723', 'tblTempUsageDetail_20' ) end [2025-01-06 16:16:42] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:16:42] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:16:42] Production.INFO: ==2128== Releasing lock... [2025-01-06 16:16:42] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:16:42] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:17:05 [end_date_ymd] => 2025-01-06 16:17:05 [RateCDR] => 1 ) [2025-01-06 16:17: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-01-06 13:17:05' and `end` < '2025-01-06 16:17: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-01-06 16:17:27] Production.INFO: count ==5361 [2025-01-06 16:17:29] Production.ERROR: pbx CDR StartTime 2025-01-06 13:17:05 - End Time 2025-01-06 16:17:05 [2025-01-06 16:17:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188728', 'tblTempUsageDetail_20' ) start [2025-01-06 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188728', 'tblTempUsageDetail_20' ) end [2025-01-06 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188728', 'tblTempVendorCDR_20' ) start [2025-01-06 16:17:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188728', 'tblTempVendorCDR_20' ) end [2025-01-06 16:17:29] Production.INFO: ProcessCDR(1,14188728,1,1,2) [2025-01-06 16:17:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:17:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:17:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:17:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188728', 'tblTempUsageDetail_20' ) start [2025-01-06 16:17:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188728', 'tblTempUsageDetail_20' ) end [2025-01-06 16:17:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:17:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:17:33] Production.INFO: ==2241== Releasing lock... [2025-01-06 16:17:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:17:33] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:18:05 [end_date_ymd] => 2025-01-06 16:18:05 [RateCDR] => 1 ) [2025-01-06 16:18: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-01-06 13:18:05' and `end` < '2025-01-06 16:18: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-01-06 16:18:25] Production.INFO: count ==5341 [2025-01-06 16:18:27] Production.ERROR: pbx CDR StartTime 2025-01-06 13:18:05 - End Time 2025-01-06 16:18:05 [2025-01-06 16:18:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188733', 'tblTempUsageDetail_20' ) start [2025-01-06 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188733', 'tblTempUsageDetail_20' ) end [2025-01-06 16:18:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188733', 'tblTempVendorCDR_20' ) start [2025-01-06 16:18:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188733', 'tblTempVendorCDR_20' ) end [2025-01-06 16:18:28] Production.INFO: ProcessCDR(1,14188733,1,1,2) [2025-01-06 16:18:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:18:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:18:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:18:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188733', 'tblTempUsageDetail_20' ) start [2025-01-06 16:18:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188733', 'tblTempUsageDetail_20' ) end [2025-01-06 16:18:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:18:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:18:32] Production.INFO: ==2327== Releasing lock... [2025-01-06 16:18:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:18:32] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:19:05 [end_date_ymd] => 2025-01-06 16:19:05 [RateCDR] => 1 ) [2025-01-06 16:19: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-01-06 13:19:05' and `end` < '2025-01-06 16:19: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-01-06 16:19:28] Production.INFO: count ==5362 [2025-01-06 16:19:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:19:05 - End Time 2025-01-06 16:19:05 [2025-01-06 16:19:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188738', 'tblTempUsageDetail_20' ) start [2025-01-06 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188738', 'tblTempUsageDetail_20' ) end [2025-01-06 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188738', 'tblTempVendorCDR_20' ) start [2025-01-06 16:19:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188738', 'tblTempVendorCDR_20' ) end [2025-01-06 16:19:30] Production.INFO: ProcessCDR(1,14188738,1,1,2) [2025-01-06 16:19:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:19:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:19:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:19:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188738', 'tblTempUsageDetail_20' ) start [2025-01-06 16:19:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188738', 'tblTempUsageDetail_20' ) end [2025-01-06 16:19:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:19:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:19:35] Production.INFO: ==2398== Releasing lock... [2025-01-06 16:19:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:19:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:20:06 [end_date_ymd] => 2025-01-06 16:20:06 [RateCDR] => 1 ) [2025-01-06 16:20: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-01-06 13:20:06' and `end` < '2025-01-06 16:20: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-01-06 16:20:29] Production.INFO: count ==5338 [2025-01-06 16:20:31] Production.ERROR: pbx CDR StartTime 2025-01-06 13:20:06 - End Time 2025-01-06 16:20:06 [2025-01-06 16:20:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188743', 'tblTempUsageDetail_20' ) start [2025-01-06 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188743', 'tblTempUsageDetail_20' ) end [2025-01-06 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188743', 'tblTempVendorCDR_20' ) start [2025-01-06 16:20:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188743', 'tblTempVendorCDR_20' ) end [2025-01-06 16:20:31] Production.INFO: ProcessCDR(1,14188743,1,1,2) [2025-01-06 16:20:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:20:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:20:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:20:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188743', 'tblTempUsageDetail_20' ) start [2025-01-06 16:20:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188743', 'tblTempUsageDetail_20' ) end [2025-01-06 16:20:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:20:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:20:36] Production.INFO: ==2473== Releasing lock... [2025-01-06 16:20:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:20:36] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:21:05 [end_date_ymd] => 2025-01-06 16:21:05 [RateCDR] => 1 ) [2025-01-06 16:21: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-01-06 13:21:05' and `end` < '2025-01-06 16:21: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-01-06 16:21:28] Production.INFO: count ==5328 [2025-01-06 16:21:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:21:05 - End Time 2025-01-06 16:21:05 [2025-01-06 16:21:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188749', 'tblTempUsageDetail_20' ) start [2025-01-06 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188749', 'tblTempUsageDetail_20' ) end [2025-01-06 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188749', 'tblTempVendorCDR_20' ) start [2025-01-06 16:21:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188749', 'tblTempVendorCDR_20' ) end [2025-01-06 16:21:30] Production.INFO: ProcessCDR(1,14188749,1,1,2) [2025-01-06 16:21:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:21:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:21:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:21:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188749', 'tblTempUsageDetail_20' ) start [2025-01-06 16:21:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188749', 'tblTempUsageDetail_20' ) end [2025-01-06 16:21:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:21:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:21:35] Production.INFO: ==2549== Releasing lock... [2025-01-06 16:21:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:21:35] Production.INFO: 68.25 MB #Memory Used# [2025-01-06 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:22:05 [end_date_ymd] => 2025-01-06 16:22:05 [RateCDR] => 1 ) [2025-01-06 16:22: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-01-06 13:22:05' and `end` < '2025-01-06 16:22: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-01-06 16:22:26] Production.INFO: count ==5340 [2025-01-06 16:22:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:22:05 - End Time 2025-01-06 16:22:05 [2025-01-06 16:22:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188754', 'tblTempUsageDetail_20' ) start [2025-01-06 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188754', 'tblTempUsageDetail_20' ) end [2025-01-06 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188754', 'tblTempVendorCDR_20' ) start [2025-01-06 16:22:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188754', 'tblTempVendorCDR_20' ) end [2025-01-06 16:22:28] Production.INFO: ProcessCDR(1,14188754,1,1,2) [2025-01-06 16:22:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:22:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:22:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:22:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188754', 'tblTempUsageDetail_20' ) start [2025-01-06 16:22:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188754', 'tblTempUsageDetail_20' ) end [2025-01-06 16:22:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:22:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:22:33] Production.INFO: ==2619== Releasing lock... [2025-01-06 16:22:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:22:33] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:23:05 [end_date_ymd] => 2025-01-06 16:23:05 [RateCDR] => 1 ) [2025-01-06 16:23: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-01-06 13:23:05' and `end` < '2025-01-06 16:23: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-01-06 16:23:24] Production.INFO: count ==5335 [2025-01-06 16:23:26] Production.ERROR: pbx CDR StartTime 2025-01-06 13:23:05 - End Time 2025-01-06 16:23:05 [2025-01-06 16:23:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188759', 'tblTempUsageDetail_20' ) start [2025-01-06 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188759', 'tblTempUsageDetail_20' ) end [2025-01-06 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188759', 'tblTempVendorCDR_20' ) start [2025-01-06 16:23:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188759', 'tblTempVendorCDR_20' ) end [2025-01-06 16:23:26] Production.INFO: ProcessCDR(1,14188759,1,1,2) [2025-01-06 16:23:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:23:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:23:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:23:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188759', 'tblTempUsageDetail_20' ) start [2025-01-06 16:23:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188759', 'tblTempUsageDetail_20' ) end [2025-01-06 16:23:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:23:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:23:31] Production.INFO: ==2696== Releasing lock... [2025-01-06 16:23:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:23:31] Production.INFO: 68 MB #Memory Used# [2025-01-06 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:24:05 [end_date_ymd] => 2025-01-06 16:24:05 [RateCDR] => 1 ) [2025-01-06 16:24: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-01-06 13:24:05' and `end` < '2025-01-06 16:24: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-01-06 16:24:22] Production.INFO: count ==5320 [2025-01-06 16:24:24] Production.ERROR: pbx CDR StartTime 2025-01-06 13:24:05 - End Time 2025-01-06 16:24:05 [2025-01-06 16:24:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188764', 'tblTempUsageDetail_20' ) start [2025-01-06 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188764', 'tblTempUsageDetail_20' ) end [2025-01-06 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188764', 'tblTempVendorCDR_20' ) start [2025-01-06 16:24:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188764', 'tblTempVendorCDR_20' ) end [2025-01-06 16:24:24] Production.INFO: ProcessCDR(1,14188764,1,1,2) [2025-01-06 16:24:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:24:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:24:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:24:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188764', 'tblTempUsageDetail_20' ) start [2025-01-06 16:24:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188764', 'tblTempUsageDetail_20' ) end [2025-01-06 16:24:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:24:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:24:29] Production.INFO: ==2771== Releasing lock... [2025-01-06 16:24:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:24:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:25:05 [end_date_ymd] => 2025-01-06 16:25:05 [RateCDR] => 1 ) [2025-01-06 16:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 13:25:05' and `end` < '2025-01-06 16:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 16:25:30] Production.INFO: count ==5321 [2025-01-06 16:25:32] Production.ERROR: pbx CDR StartTime 2025-01-06 13:25:05 - End Time 2025-01-06 16:25:05 [2025-01-06 16:25:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188769', 'tblTempUsageDetail_20' ) start [2025-01-06 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188769', 'tblTempUsageDetail_20' ) end [2025-01-06 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188769', 'tblTempVendorCDR_20' ) start [2025-01-06 16:25:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188769', 'tblTempVendorCDR_20' ) end [2025-01-06 16:25:32] Production.INFO: ProcessCDR(1,14188769,1,1,2) [2025-01-06 16:25:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:25:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:25:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:25:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:25:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188769', 'tblTempUsageDetail_20' ) start [2025-01-06 16:25:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188769', 'tblTempUsageDetail_20' ) end [2025-01-06 16:25:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:25:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:25:37] Production.INFO: ==2844== Releasing lock... [2025-01-06 16:25:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:25:37] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:26:05 [end_date_ymd] => 2025-01-06 16:26:05 [RateCDR] => 1 ) [2025-01-06 16:26: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-01-06 13:26:05' and `end` < '2025-01-06 16:26: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-01-06 16:26:28] Production.INFO: count ==5319 [2025-01-06 16:26:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:26:05 - End Time 2025-01-06 16:26:05 [2025-01-06 16:26:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188774', 'tblTempUsageDetail_20' ) start [2025-01-06 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188774', 'tblTempUsageDetail_20' ) end [2025-01-06 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188774', 'tblTempVendorCDR_20' ) start [2025-01-06 16:26:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188774', 'tblTempVendorCDR_20' ) end [2025-01-06 16:26:30] Production.INFO: ProcessCDR(1,14188774,1,1,2) [2025-01-06 16:26:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:26:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:26:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:26:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:26:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188774', 'tblTempUsageDetail_20' ) start [2025-01-06 16:26:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188774', 'tblTempUsageDetail_20' ) end [2025-01-06 16:26:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:26:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:26:35] Production.INFO: ==2919== Releasing lock... [2025-01-06 16:26:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:26:35] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:27:05 [end_date_ymd] => 2025-01-06 16:27:05 [RateCDR] => 1 ) [2025-01-06 16:27: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-01-06 13:27:05' and `end` < '2025-01-06 16:27: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-01-06 16:27:26] Production.INFO: count ==5310 [2025-01-06 16:27:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:27:05 - End Time 2025-01-06 16:27:05 [2025-01-06 16:27:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:27:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188779', 'tblTempUsageDetail_20' ) start [2025-01-06 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188779', 'tblTempUsageDetail_20' ) end [2025-01-06 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188779', 'tblTempVendorCDR_20' ) start [2025-01-06 16:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188779', 'tblTempVendorCDR_20' ) end [2025-01-06 16:27:29] Production.INFO: ProcessCDR(1,14188779,1,1,2) [2025-01-06 16:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:27:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:27:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:27:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188779', 'tblTempUsageDetail_20' ) start [2025-01-06 16:27:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188779', 'tblTempUsageDetail_20' ) end [2025-01-06 16:27:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:27:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:27:33] Production.INFO: ==2995== Releasing lock... [2025-01-06 16:27:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:27:33] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:28:06 [end_date_ymd] => 2025-01-06 16:28:06 [RateCDR] => 1 ) [2025-01-06 16:28: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-01-06 13:28:06' and `end` < '2025-01-06 16:28: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-01-06 16:28:26] Production.INFO: count ==5289 [2025-01-06 16:28:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:28:06 - End Time 2025-01-06 16:28:06 [2025-01-06 16:28:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188784', 'tblTempUsageDetail_20' ) start [2025-01-06 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188784', 'tblTempUsageDetail_20' ) end [2025-01-06 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188784', 'tblTempVendorCDR_20' ) start [2025-01-06 16:28:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188784', 'tblTempVendorCDR_20' ) end [2025-01-06 16:28:28] Production.INFO: ProcessCDR(1,14188784,1,1,2) [2025-01-06 16:28:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:28:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:28:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:28:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188784', 'tblTempUsageDetail_20' ) start [2025-01-06 16:28:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188784', 'tblTempUsageDetail_20' ) end [2025-01-06 16:28:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:28:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:28:33] Production.INFO: ==3071== Releasing lock... [2025-01-06 16:28:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:28:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:29:05 [end_date_ymd] => 2025-01-06 16:29:05 [RateCDR] => 1 ) [2025-01-06 16:29: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-01-06 13:29:05' and `end` < '2025-01-06 16:29: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-01-06 16:29:23] Production.INFO: count ==5271 [2025-01-06 16:29:25] Production.ERROR: pbx CDR StartTime 2025-01-06 13:29:05 - End Time 2025-01-06 16:29:05 [2025-01-06 16:29:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188789', 'tblTempUsageDetail_20' ) start [2025-01-06 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188789', 'tblTempUsageDetail_20' ) end [2025-01-06 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188789', 'tblTempVendorCDR_20' ) start [2025-01-06 16:29:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188789', 'tblTempVendorCDR_20' ) end [2025-01-06 16:29:25] Production.INFO: ProcessCDR(1,14188789,1,1,2) [2025-01-06 16:29:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:29:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:29:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:29:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188789', 'tblTempUsageDetail_20' ) start [2025-01-06 16:29:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188789', 'tblTempUsageDetail_20' ) end [2025-01-06 16:29:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:29:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:29:30] Production.INFO: ==3147== Releasing lock... [2025-01-06 16:29:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:29:30] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:30:06 [end_date_ymd] => 2025-01-06 16:30:06 [RateCDR] => 1 ) [2025-01-06 16:30: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-01-06 13:30:06' and `end` < '2025-01-06 16:30: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-01-06 16:30:28] Production.INFO: count ==5269 [2025-01-06 16:30:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:30:06 - End Time 2025-01-06 16:30:06 [2025-01-06 16:30:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188795', 'tblTempUsageDetail_20' ) start [2025-01-06 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188795', 'tblTempUsageDetail_20' ) end [2025-01-06 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188795', 'tblTempVendorCDR_20' ) start [2025-01-06 16:30:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188795', 'tblTempVendorCDR_20' ) end [2025-01-06 16:30:30] Production.INFO: ProcessCDR(1,14188795,1,1,2) [2025-01-06 16:30:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:30:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:30:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:30:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188795', 'tblTempUsageDetail_20' ) start [2025-01-06 16:30:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188795', 'tblTempUsageDetail_20' ) end [2025-01-06 16:30:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:30:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:30:36] Production.INFO: ==3222== Releasing lock... [2025-01-06 16:30:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:30:36] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:31:05 [end_date_ymd] => 2025-01-06 16:31:05 [RateCDR] => 1 ) [2025-01-06 16:31: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-01-06 13:31:05' and `end` < '2025-01-06 16:31: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-01-06 16:31:27] Production.INFO: count ==5250 [2025-01-06 16:31:29] Production.ERROR: pbx CDR StartTime 2025-01-06 13:31:05 - End Time 2025-01-06 16:31:05 [2025-01-06 16:31:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188800', 'tblTempUsageDetail_20' ) start [2025-01-06 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188800', 'tblTempUsageDetail_20' ) end [2025-01-06 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188800', 'tblTempVendorCDR_20' ) start [2025-01-06 16:31:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188800', 'tblTempVendorCDR_20' ) end [2025-01-06 16:31:29] Production.INFO: ProcessCDR(1,14188800,1,1,2) [2025-01-06 16:31:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:31:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:31:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:31:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:31:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188800', 'tblTempUsageDetail_20' ) start [2025-01-06 16:31:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188800', 'tblTempUsageDetail_20' ) end [2025-01-06 16:31:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:31:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:31:34] Production.INFO: ==3299== Releasing lock... [2025-01-06 16:31:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:31:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:32:05 [end_date_ymd] => 2025-01-06 16:32:05 [RateCDR] => 1 ) [2025-01-06 16:32: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-01-06 13:32:05' and `end` < '2025-01-06 16:32: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-01-06 16:32:26] Production.INFO: count ==5253 [2025-01-06 16:32:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:32:05 - End Time 2025-01-06 16:32:05 [2025-01-06 16:32:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188805', 'tblTempUsageDetail_20' ) start [2025-01-06 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188805', 'tblTempUsageDetail_20' ) end [2025-01-06 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188805', 'tblTempVendorCDR_20' ) start [2025-01-06 16:32:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188805', 'tblTempVendorCDR_20' ) end [2025-01-06 16:32:28] Production.INFO: ProcessCDR(1,14188805,1,1,2) [2025-01-06 16:32:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:32:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:32:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:32:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188805', 'tblTempUsageDetail_20' ) start [2025-01-06 16:32:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188805', 'tblTempUsageDetail_20' ) end [2025-01-06 16:32:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:32:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:32:33] Production.INFO: ==3411== Releasing lock... [2025-01-06 16:32:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:32:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:33:05 [end_date_ymd] => 2025-01-06 16:33:05 [RateCDR] => 1 ) [2025-01-06 16:33: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-01-06 13:33:05' and `end` < '2025-01-06 16:33: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-01-06 16:33:34] Production.INFO: count ==5271 [2025-01-06 16:33:36] Production.ERROR: pbx CDR StartTime 2025-01-06 13:33:05 - End Time 2025-01-06 16:33:05 [2025-01-06 16:33:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188810', 'tblTempUsageDetail_20' ) start [2025-01-06 16:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188810', 'tblTempUsageDetail_20' ) end [2025-01-06 16:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188810', 'tblTempVendorCDR_20' ) start [2025-01-06 16:33:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188810', 'tblTempVendorCDR_20' ) end [2025-01-06 16:33:36] Production.INFO: ProcessCDR(1,14188810,1,1,2) [2025-01-06 16:33:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:33:39] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:33:39] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:33:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:33:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188810', 'tblTempUsageDetail_20' ) start [2025-01-06 16:33:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188810', 'tblTempUsageDetail_20' ) end [2025-01-06 16:33:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:33:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:33:41] Production.INFO: ==3490== Releasing lock... [2025-01-06 16:33:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:33:41] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:34:05 [end_date_ymd] => 2025-01-06 16:34:05 [RateCDR] => 1 ) [2025-01-06 16:34: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-01-06 13:34:05' and `end` < '2025-01-06 16:34: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-01-06 16:34:26] Production.INFO: count ==5272 [2025-01-06 16:34:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:34:05 - End Time 2025-01-06 16:34:05 [2025-01-06 16:34:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188815', 'tblTempUsageDetail_20' ) start [2025-01-06 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188815', 'tblTempUsageDetail_20' ) end [2025-01-06 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188815', 'tblTempVendorCDR_20' ) start [2025-01-06 16:34:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188815', 'tblTempVendorCDR_20' ) end [2025-01-06 16:34:28] Production.INFO: ProcessCDR(1,14188815,1,1,2) [2025-01-06 16:34:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:34:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:34:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:34:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188815', 'tblTempUsageDetail_20' ) start [2025-01-06 16:34:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188815', 'tblTempUsageDetail_20' ) end [2025-01-06 16:34:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:34:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:34:33] Production.INFO: ==3585== Releasing lock... [2025-01-06 16:34:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:34:33] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:35:05 [end_date_ymd] => 2025-01-06 16:35:05 [RateCDR] => 1 ) [2025-01-06 16:35: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-01-06 13:35:05' and `end` < '2025-01-06 16:35: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-01-06 16:35:37] Production.INFO: count ==5281 [2025-01-06 16:35:39] Production.ERROR: pbx CDR StartTime 2025-01-06 13:35:05 - End Time 2025-01-06 16:35:05 [2025-01-06 16:35:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188820', 'tblTempUsageDetail_20' ) start [2025-01-06 16:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188820', 'tblTempUsageDetail_20' ) end [2025-01-06 16:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188820', 'tblTempVendorCDR_20' ) start [2025-01-06 16:35:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188820', 'tblTempVendorCDR_20' ) end [2025-01-06 16:35:39] Production.INFO: ProcessCDR(1,14188820,1,1,2) [2025-01-06 16:35:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:35:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:35:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:35:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:35:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188820', 'tblTempUsageDetail_20' ) start [2025-01-06 16:35:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188820', 'tblTempUsageDetail_20' ) end [2025-01-06 16:35:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:35:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:35:44] Production.INFO: ==3680== Releasing lock... [2025-01-06 16:35:44] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:35:44] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:36:05 [end_date_ymd] => 2025-01-06 16:36:05 [RateCDR] => 1 ) [2025-01-06 16:36: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-01-06 13:36:05' and `end` < '2025-01-06 16:36: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-01-06 16:36:28] Production.INFO: count ==5280 [2025-01-06 16:36:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:36:05 - End Time 2025-01-06 16:36:05 [2025-01-06 16:36:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188825', 'tblTempUsageDetail_20' ) start [2025-01-06 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188825', 'tblTempUsageDetail_20' ) end [2025-01-06 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188825', 'tblTempVendorCDR_20' ) start [2025-01-06 16:36:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188825', 'tblTempVendorCDR_20' ) end [2025-01-06 16:36:30] Production.INFO: ProcessCDR(1,14188825,1,1,2) [2025-01-06 16:36:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:36:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:36:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:36:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188825', 'tblTempUsageDetail_20' ) start [2025-01-06 16:36:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188825', 'tblTempUsageDetail_20' ) end [2025-01-06 16:36:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:36:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:36:35] Production.INFO: ==3779== Releasing lock... [2025-01-06 16:36:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:36:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:37:05 [end_date_ymd] => 2025-01-06 16:37:05 [RateCDR] => 1 ) [2025-01-06 16:37: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-01-06 13:37:05' and `end` < '2025-01-06 16:37: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-01-06 16:37:23] Production.INFO: count ==5265 [2025-01-06 16:37:25] Production.ERROR: pbx CDR StartTime 2025-01-06 13:37:05 - End Time 2025-01-06 16:37:05 [2025-01-06 16:37:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188830', 'tblTempUsageDetail_20' ) start [2025-01-06 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188830', 'tblTempUsageDetail_20' ) end [2025-01-06 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188830', 'tblTempVendorCDR_20' ) start [2025-01-06 16:37:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188830', 'tblTempVendorCDR_20' ) end [2025-01-06 16:37:25] Production.INFO: ProcessCDR(1,14188830,1,1,2) [2025-01-06 16:37:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:37:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:37:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:37:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188830', 'tblTempUsageDetail_20' ) start [2025-01-06 16:37:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188830', 'tblTempUsageDetail_20' ) end [2025-01-06 16:37:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:37:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:37:29] Production.INFO: ==3879== Releasing lock... [2025-01-06 16:37:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:37:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:38:05 [end_date_ymd] => 2025-01-06 16:38:05 [RateCDR] => 1 ) [2025-01-06 16:38: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-01-06 13:38:05' and `end` < '2025-01-06 16:38: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-01-06 16:38:24] Production.INFO: count ==5252 [2025-01-06 16:38:26] Production.ERROR: pbx CDR StartTime 2025-01-06 13:38:05 - End Time 2025-01-06 16:38:05 [2025-01-06 16:38:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:38:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188835', 'tblTempUsageDetail_20' ) start [2025-01-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188835', 'tblTempUsageDetail_20' ) end [2025-01-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188835', 'tblTempVendorCDR_20' ) start [2025-01-06 16:38:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188835', 'tblTempVendorCDR_20' ) end [2025-01-06 16:38:27] Production.INFO: ProcessCDR(1,14188835,1,1,2) [2025-01-06 16:38:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:38:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:38:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:38:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188835', 'tblTempUsageDetail_20' ) start [2025-01-06 16:38:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188835', 'tblTempUsageDetail_20' ) end [2025-01-06 16:38:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:38:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:38:31] Production.INFO: ==3979== Releasing lock... [2025-01-06 16:38:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:38:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:39:05 [end_date_ymd] => 2025-01-06 16:39:05 [RateCDR] => 1 ) [2025-01-06 16:39: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-01-06 13:39:05' and `end` < '2025-01-06 16:39: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-01-06 16:39:34] Production.INFO: count ==5244 [2025-01-06 16:39:36] Production.ERROR: pbx CDR StartTime 2025-01-06 13:39:05 - End Time 2025-01-06 16:39:05 [2025-01-06 16:39:36] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188840', 'tblTempUsageDetail_20' ) start [2025-01-06 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188840', 'tblTempUsageDetail_20' ) end [2025-01-06 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188840', 'tblTempVendorCDR_20' ) start [2025-01-06 16:39:36] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188840', 'tblTempVendorCDR_20' ) end [2025-01-06 16:39:36] Production.INFO: ProcessCDR(1,14188840,1,1,2) [2025-01-06 16:39:36] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:39:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:39:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:39:41] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188840', 'tblTempUsageDetail_20' ) start [2025-01-06 16:39:41] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188840', 'tblTempUsageDetail_20' ) end [2025-01-06 16:39:41] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:39:41] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:39:41] Production.INFO: ==4079== Releasing lock... [2025-01-06 16:39:41] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:39:41] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:40:06 [end_date_ymd] => 2025-01-06 16:40:06 [RateCDR] => 1 ) [2025-01-06 16:40: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-01-06 13:40:06' and `end` < '2025-01-06 16:40: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-01-06 16:40:28] Production.INFO: count ==5249 [2025-01-06 16:40:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:40:06 - End Time 2025-01-06 16:40:06 [2025-01-06 16:40:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188846', 'tblTempUsageDetail_20' ) start [2025-01-06 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188846', 'tblTempUsageDetail_20' ) end [2025-01-06 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188846', 'tblTempVendorCDR_20' ) start [2025-01-06 16:40:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188846', 'tblTempVendorCDR_20' ) end [2025-01-06 16:40:30] Production.INFO: ProcessCDR(1,14188846,1,1,2) [2025-01-06 16:40:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:40:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:40:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:40:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188846', 'tblTempUsageDetail_20' ) start [2025-01-06 16:40:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188846', 'tblTempUsageDetail_20' ) end [2025-01-06 16:40:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:40:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:40:33] Production.INFO: ==4193== Releasing lock... [2025-01-06 16:40:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:40:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:41:05 [end_date_ymd] => 2025-01-06 16:41:05 [RateCDR] => 1 ) [2025-01-06 16:41: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-01-06 13:41:05' and `end` < '2025-01-06 16:41: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-01-06 16:41:22] Production.INFO: count ==5246 [2025-01-06 16:41:24] Production.ERROR: pbx CDR StartTime 2025-01-06 13:41:05 - End Time 2025-01-06 16:41:05 [2025-01-06 16:41:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188851', 'tblTempUsageDetail_20' ) start [2025-01-06 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188851', 'tblTempUsageDetail_20' ) end [2025-01-06 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188851', 'tblTempVendorCDR_20' ) start [2025-01-06 16:41:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188851', 'tblTempVendorCDR_20' ) end [2025-01-06 16:41:24] Production.INFO: ProcessCDR(1,14188851,1,1,2) [2025-01-06 16:41:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:41:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:41:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:41:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188851', 'tblTempUsageDetail_20' ) start [2025-01-06 16:41:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188851', 'tblTempUsageDetail_20' ) end [2025-01-06 16:41:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:41:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:41:29] Production.INFO: ==4301== Releasing lock... [2025-01-06 16:41:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:41:29] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:42:06 [end_date_ymd] => 2025-01-06 16:42:06 [RateCDR] => 1 ) [2025-01-06 16:42: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-01-06 13:42:06' and `end` < '2025-01-06 16:42: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-01-06 16:42:20] Production.INFO: count ==5234 [2025-01-06 16:42:22] Production.ERROR: pbx CDR StartTime 2025-01-06 13:42:06 - End Time 2025-01-06 16:42:06 [2025-01-06 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188856', 'tblTempUsageDetail_20' ) start [2025-01-06 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188856', 'tblTempUsageDetail_20' ) end [2025-01-06 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188856', 'tblTempVendorCDR_20' ) start [2025-01-06 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188856', 'tblTempVendorCDR_20' ) end [2025-01-06 16:42:22] Production.INFO: ProcessCDR(1,14188856,1,1,2) [2025-01-06 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188856', 'tblTempUsageDetail_20' ) start [2025-01-06 16:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188856', 'tblTempUsageDetail_20' ) end [2025-01-06 16:42:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:42:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:42:26] Production.INFO: ==4409== Releasing lock... [2025-01-06 16:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:42:26] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:43:05 [end_date_ymd] => 2025-01-06 16:43:05 [RateCDR] => 1 ) [2025-01-06 16:43: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-01-06 13:43:05' and `end` < '2025-01-06 16:43: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-01-06 16:43:25] Production.INFO: count ==5213 [2025-01-06 16:43:27] Production.ERROR: pbx CDR StartTime 2025-01-06 13:43:05 - End Time 2025-01-06 16:43:05 [2025-01-06 16:43:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188861', 'tblTempUsageDetail_20' ) start [2025-01-06 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188861', 'tblTempUsageDetail_20' ) end [2025-01-06 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188861', 'tblTempVendorCDR_20' ) start [2025-01-06 16:43:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188861', 'tblTempVendorCDR_20' ) end [2025-01-06 16:43:27] Production.INFO: ProcessCDR(1,14188861,1,1,2) [2025-01-06 16:43:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:43:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:43:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:43:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188861', 'tblTempUsageDetail_20' ) start [2025-01-06 16:43:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188861', 'tblTempUsageDetail_20' ) end [2025-01-06 16:43:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:43:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:43:32] Production.INFO: ==4509== Releasing lock... [2025-01-06 16:43:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:43:32] Production.INFO: 67 MB #Memory Used# [2025-01-06 16:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:44:06 [end_date_ymd] => 2025-01-06 16:44:06 [RateCDR] => 1 ) [2025-01-06 16:44: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-01-06 13:44:06' and `end` < '2025-01-06 16:44: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-01-06 16:44:26] Production.INFO: count ==5191 [2025-01-06 16:44:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:44:06 - End Time 2025-01-06 16:44:06 [2025-01-06 16:44:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188866', 'tblTempUsageDetail_20' ) start [2025-01-06 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188866', 'tblTempUsageDetail_20' ) end [2025-01-06 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188866', 'tblTempVendorCDR_20' ) start [2025-01-06 16:44:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188866', 'tblTempVendorCDR_20' ) end [2025-01-06 16:44:28] Production.INFO: ProcessCDR(1,14188866,1,1,2) [2025-01-06 16:44:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:44:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:44:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:44:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188866', 'tblTempUsageDetail_20' ) start [2025-01-06 16:44:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188866', 'tblTempUsageDetail_20' ) end [2025-01-06 16:44:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:44:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:44:33] Production.INFO: ==4624== Releasing lock... [2025-01-06 16:44:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:44:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:45:05 [end_date_ymd] => 2025-01-06 16:45:05 [RateCDR] => 1 ) [2025-01-06 16:45: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-01-06 13:45:05' and `end` < '2025-01-06 16:45: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-01-06 16:45:32] Production.INFO: count ==5178 [2025-01-06 16:45:34] Production.ERROR: pbx CDR StartTime 2025-01-06 13:45:05 - End Time 2025-01-06 16:45:05 [2025-01-06 16:45:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188871', 'tblTempUsageDetail_20' ) start [2025-01-06 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188871', 'tblTempUsageDetail_20' ) end [2025-01-06 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188871', 'tblTempVendorCDR_20' ) start [2025-01-06 16:45:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188871', 'tblTempVendorCDR_20' ) end [2025-01-06 16:45:34] Production.INFO: ProcessCDR(1,14188871,1,1,2) [2025-01-06 16:45:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:45:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:45:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:45:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188871', 'tblTempUsageDetail_20' ) start [2025-01-06 16:45:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188871', 'tblTempUsageDetail_20' ) end [2025-01-06 16:45:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:45:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:45:38] Production.INFO: ==4725== Releasing lock... [2025-01-06 16:45:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:45:38] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:46:05 [end_date_ymd] => 2025-01-06 16:46:05 [RateCDR] => 1 ) [2025-01-06 16:46: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-01-06 13:46:05' and `end` < '2025-01-06 16:46: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-01-06 16:46:35] Production.INFO: count ==5193 [2025-01-06 16:46:38] Production.ERROR: pbx CDR StartTime 2025-01-06 13:46:05 - End Time 2025-01-06 16:46:05 [2025-01-06 16:46:38] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188876', 'tblTempUsageDetail_20' ) start [2025-01-06 16:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188876', 'tblTempUsageDetail_20' ) end [2025-01-06 16:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188876', 'tblTempVendorCDR_20' ) start [2025-01-06 16:46:38] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188876', 'tblTempVendorCDR_20' ) end [2025-01-06 16:46:38] Production.INFO: ProcessCDR(1,14188876,1,1,2) [2025-01-06 16:46:38] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:46:40] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:46:40] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:46:43] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188876', 'tblTempUsageDetail_20' ) start [2025-01-06 16:46:43] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188876', 'tblTempUsageDetail_20' ) end [2025-01-06 16:46:43] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:46:43] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:46:43] Production.INFO: ==4827== Releasing lock... [2025-01-06 16:46:43] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:46:43] Production.INFO: 67 MB #Memory Used# [2025-01-06 16:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:47:04 [end_date_ymd] => 2025-01-06 16:47:04 [RateCDR] => 1 ) [2025-01-06 16:47: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-01-06 13:47:04' and `end` < '2025-01-06 16:47: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-01-06 16:47:32] Production.INFO: count ==5202 [2025-01-06 16:47:34] Production.ERROR: pbx CDR StartTime 2025-01-06 13:47:04 - End Time 2025-01-06 16:47:04 [2025-01-06 16:47:34] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188881', 'tblTempUsageDetail_20' ) start [2025-01-06 16:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188881', 'tblTempUsageDetail_20' ) end [2025-01-06 16:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188881', 'tblTempVendorCDR_20' ) start [2025-01-06 16:47:34] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188881', 'tblTempVendorCDR_20' ) end [2025-01-06 16:47:34] Production.INFO: ProcessCDR(1,14188881,1,1,2) [2025-01-06 16:47:34] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:47:37] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:47:37] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:47:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188881', 'tblTempUsageDetail_20' ) start [2025-01-06 16:47:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188881', 'tblTempUsageDetail_20' ) end [2025-01-06 16:47:39] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:47:39] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:47:39] Production.INFO: ==4936== Releasing lock... [2025-01-06 16:47:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:47:39] Production.INFO: 67 MB #Memory Used# [2025-01-06 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:48:05 [end_date_ymd] => 2025-01-06 16:48:05 [RateCDR] => 1 ) [2025-01-06 16:48: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-01-06 13:48:05' and `end` < '2025-01-06 16:48: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-01-06 16:48:29] Production.INFO: count ==5235 [2025-01-06 16:48:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:48:05 - End Time 2025-01-06 16:48:05 [2025-01-06 16:48:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:48:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188886', 'tblTempUsageDetail_20' ) start [2025-01-06 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188886', 'tblTempUsageDetail_20' ) end [2025-01-06 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188886', 'tblTempVendorCDR_20' ) start [2025-01-06 16:48:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188886', 'tblTempVendorCDR_20' ) end [2025-01-06 16:48:31] Production.INFO: ProcessCDR(1,14188886,1,1,2) [2025-01-06 16:48:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:48:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:48:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:48:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188886', 'tblTempUsageDetail_20' ) start [2025-01-06 16:48:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188886', 'tblTempUsageDetail_20' ) end [2025-01-06 16:48:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:48:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:48:35] Production.INFO: ==5082== Releasing lock... [2025-01-06 16:48:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:48:35] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:49:05 [end_date_ymd] => 2025-01-06 16:49:05 [RateCDR] => 1 ) [2025-01-06 16:49: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-01-06 13:49:05' and `end` < '2025-01-06 16:49: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-01-06 16:49:25] Production.INFO: count ==5231 [2025-01-06 16:49:27] Production.ERROR: pbx CDR StartTime 2025-01-06 13:49:05 - End Time 2025-01-06 16:49:05 [2025-01-06 16:49:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188891', 'tblTempUsageDetail_20' ) start [2025-01-06 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188891', 'tblTempUsageDetail_20' ) end [2025-01-06 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188891', 'tblTempVendorCDR_20' ) start [2025-01-06 16:49:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188891', 'tblTempVendorCDR_20' ) end [2025-01-06 16:49:27] Production.INFO: ProcessCDR(1,14188891,1,1,2) [2025-01-06 16:49:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:49:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:49:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:49:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188891', 'tblTempUsageDetail_20' ) start [2025-01-06 16:49:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188891', 'tblTempUsageDetail_20' ) end [2025-01-06 16:49:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:49:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:49:31] Production.INFO: ==5191== Releasing lock... [2025-01-06 16:49:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:49:31] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:50:05 [end_date_ymd] => 2025-01-06 16:50:05 [RateCDR] => 1 ) [2025-01-06 16:50: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-01-06 13:50:05' and `end` < '2025-01-06 16:50: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-01-06 16:50:27] Production.INFO: count ==5227 [2025-01-06 16:50:29] Production.ERROR: pbx CDR StartTime 2025-01-06 13:50:05 - End Time 2025-01-06 16:50:05 [2025-01-06 16:50:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188897', 'tblTempUsageDetail_20' ) start [2025-01-06 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188897', 'tblTempUsageDetail_20' ) end [2025-01-06 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188897', 'tblTempVendorCDR_20' ) start [2025-01-06 16:50:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188897', 'tblTempVendorCDR_20' ) end [2025-01-06 16:50:29] Production.INFO: ProcessCDR(1,14188897,1,1,2) [2025-01-06 16:50:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:50:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:50:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:50:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188897', 'tblTempUsageDetail_20' ) start [2025-01-06 16:50:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188897', 'tblTempUsageDetail_20' ) end [2025-01-06 16:50:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:50:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:50:34] Production.INFO: ==5293== Releasing lock... [2025-01-06 16:50:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:50:34] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:51:05 [end_date_ymd] => 2025-01-06 16:51:05 [RateCDR] => 1 ) [2025-01-06 16:51: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-01-06 13:51:05' and `end` < '2025-01-06 16:51: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-01-06 16:51:22] Production.INFO: count ==5300 [2025-01-06 16:51:24] Production.ERROR: pbx CDR StartTime 2025-01-06 13:51:05 - End Time 2025-01-06 16:51:05 [2025-01-06 16:51:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:51:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188902', 'tblTempUsageDetail_20' ) start [2025-01-06 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188902', 'tblTempUsageDetail_20' ) end [2025-01-06 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188902', 'tblTempVendorCDR_20' ) start [2025-01-06 16:51:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188902', 'tblTempVendorCDR_20' ) end [2025-01-06 16:51:25] Production.INFO: ProcessCDR(1,14188902,1,1,2) [2025-01-06 16:51:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:51:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:51:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:51:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188902', 'tblTempUsageDetail_20' ) start [2025-01-06 16:51:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188902', 'tblTempUsageDetail_20' ) end [2025-01-06 16:51:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:51:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:51:29] Production.INFO: ==5400== Releasing lock... [2025-01-06 16:51:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:51:29] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:52:05 [end_date_ymd] => 2025-01-06 16:52:05 [RateCDR] => 1 ) [2025-01-06 16:52: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-01-06 13:52:05' and `end` < '2025-01-06 16:52: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-01-06 16:52:22] Production.INFO: count ==5275 [2025-01-06 16:52:24] Production.ERROR: pbx CDR StartTime 2025-01-06 13:52:05 - End Time 2025-01-06 16:52:05 [2025-01-06 16:52:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188907', 'tblTempUsageDetail_20' ) start [2025-01-06 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188907', 'tblTempUsageDetail_20' ) end [2025-01-06 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188907', 'tblTempVendorCDR_20' ) start [2025-01-06 16:52:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188907', 'tblTempVendorCDR_20' ) end [2025-01-06 16:52:24] Production.INFO: ProcessCDR(1,14188907,1,1,2) [2025-01-06 16:52:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:52:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:52:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:52:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188907', 'tblTempUsageDetail_20' ) start [2025-01-06 16:52:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188907', 'tblTempUsageDetail_20' ) end [2025-01-06 16:52:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:52:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:52:29] Production.INFO: ==5503== Releasing lock... [2025-01-06 16:52:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:52:29] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:53:05 [end_date_ymd] => 2025-01-06 16:53:05 [RateCDR] => 1 ) [2025-01-06 16:53: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-01-06 13:53:05' and `end` < '2025-01-06 16:53: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-01-06 16:53:30] Production.INFO: count ==5284 [2025-01-06 16:53:32] Production.ERROR: pbx CDR StartTime 2025-01-06 13:53:05 - End Time 2025-01-06 16:53:05 [2025-01-06 16:53:32] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188912', 'tblTempUsageDetail_20' ) start [2025-01-06 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188912', 'tblTempUsageDetail_20' ) end [2025-01-06 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188912', 'tblTempVendorCDR_20' ) start [2025-01-06 16:53:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188912', 'tblTempVendorCDR_20' ) end [2025-01-06 16:53:32] Production.INFO: ProcessCDR(1,14188912,1,1,2) [2025-01-06 16:53:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:53:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:53:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:53:37] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188912', 'tblTempUsageDetail_20' ) start [2025-01-06 16:53:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188912', 'tblTempUsageDetail_20' ) end [2025-01-06 16:53:37] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:53:37] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:53:37] Production.INFO: ==5614== Releasing lock... [2025-01-06 16:53:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:53:37] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:54:05 [end_date_ymd] => 2025-01-06 16:54:05 [RateCDR] => 1 ) [2025-01-06 16:54: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-01-06 13:54:05' and `end` < '2025-01-06 16:54: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-01-06 16:54:28] Production.INFO: count ==5278 [2025-01-06 16:54:30] Production.ERROR: pbx CDR StartTime 2025-01-06 13:54:05 - End Time 2025-01-06 16:54:05 [2025-01-06 16:54:30] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188917', 'tblTempUsageDetail_20' ) start [2025-01-06 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188917', 'tblTempUsageDetail_20' ) end [2025-01-06 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188917', 'tblTempVendorCDR_20' ) start [2025-01-06 16:54:30] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188917', 'tblTempVendorCDR_20' ) end [2025-01-06 16:54:30] Production.INFO: ProcessCDR(1,14188917,1,1,2) [2025-01-06 16:54:30] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:54:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:54:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:54:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188917', 'tblTempUsageDetail_20' ) start [2025-01-06 16:54:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188917', 'tblTempUsageDetail_20' ) end [2025-01-06 16:54:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:54:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:54:35] Production.INFO: ==5720== Releasing lock... [2025-01-06 16:54:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:54:35] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:55:05 [end_date_ymd] => 2025-01-06 16:55:05 [RateCDR] => 1 ) [2025-01-06 16:55: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-01-06 13:55:05' and `end` < '2025-01-06 16:55: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-01-06 16:55:27] Production.INFO: count ==5291 [2025-01-06 16:55:29] Production.ERROR: pbx CDR StartTime 2025-01-06 13:55:05 - End Time 2025-01-06 16:55:05 [2025-01-06 16:55:29] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188922', 'tblTempUsageDetail_20' ) start [2025-01-06 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188922', 'tblTempUsageDetail_20' ) end [2025-01-06 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188922', 'tblTempVendorCDR_20' ) start [2025-01-06 16:55:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188922', 'tblTempVendorCDR_20' ) end [2025-01-06 16:55:29] Production.INFO: ProcessCDR(1,14188922,1,1,2) [2025-01-06 16:55:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:55:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:55:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:55:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188922', 'tblTempUsageDetail_20' ) start [2025-01-06 16:55:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188922', 'tblTempUsageDetail_20' ) end [2025-01-06 16:55:34] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:55:34] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:55:34] Production.INFO: ==5815== Releasing lock... [2025-01-06 16:55:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:55:34] Production.INFO: 67.75 MB #Memory Used# [2025-01-06 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:56:05 [end_date_ymd] => 2025-01-06 16:56:05 [RateCDR] => 1 ) [2025-01-06 16:56: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-01-06 13:56:05' and `end` < '2025-01-06 16:56: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-01-06 16:56:31] Production.INFO: count ==5271 [2025-01-06 16:56:33] Production.ERROR: pbx CDR StartTime 2025-01-06 13:56:05 - End Time 2025-01-06 16:56:05 [2025-01-06 16:56:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188927', 'tblTempUsageDetail_20' ) start [2025-01-06 16:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188927', 'tblTempUsageDetail_20' ) end [2025-01-06 16:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188927', 'tblTempVendorCDR_20' ) start [2025-01-06 16:56:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188927', 'tblTempVendorCDR_20' ) end [2025-01-06 16:56:33] Production.INFO: ProcessCDR(1,14188927,1,1,2) [2025-01-06 16:56:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:56:35] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:56:35] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:56:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188927', 'tblTempUsageDetail_20' ) start [2025-01-06 16:56:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188927', 'tblTempUsageDetail_20' ) end [2025-01-06 16:56:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:56:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:56:38] Production.INFO: ==5913== Releasing lock... [2025-01-06 16:56:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:56:38] Production.INFO: 67.5 MB #Memory Used# [2025-01-06 16:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:57:05 [end_date_ymd] => 2025-01-06 16:57:05 [RateCDR] => 1 ) [2025-01-06 16:57: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-01-06 13:57:05' and `end` < '2025-01-06 16:57: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-01-06 16:57:29] Production.INFO: count ==5256 [2025-01-06 16:57:31] Production.ERROR: pbx CDR StartTime 2025-01-06 13:57:05 - End Time 2025-01-06 16:57:05 [2025-01-06 16:57:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188932', 'tblTempUsageDetail_20' ) start [2025-01-06 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188932', 'tblTempUsageDetail_20' ) end [2025-01-06 16:57:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188932', 'tblTempVendorCDR_20' ) start [2025-01-06 16:57:32] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188932', 'tblTempVendorCDR_20' ) end [2025-01-06 16:57:32] Production.INFO: ProcessCDR(1,14188932,1,1,2) [2025-01-06 16:57:32] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:57:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:57:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:57:36] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188932', 'tblTempUsageDetail_20' ) start [2025-01-06 16:57:36] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188932', 'tblTempUsageDetail_20' ) end [2025-01-06 16:57:36] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:57:36] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:57:36] Production.INFO: ==6015== Releasing lock... [2025-01-06 16:57:36] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:57:36] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:58:06 [end_date_ymd] => 2025-01-06 16:58:06 [RateCDR] => 1 ) [2025-01-06 16:58: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-01-06 13:58:06' and `end` < '2025-01-06 16:58: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-01-06 16:58:26] Production.INFO: count ==5242 [2025-01-06 16:58:28] Production.ERROR: pbx CDR StartTime 2025-01-06 13:58:06 - End Time 2025-01-06 16:58:06 [2025-01-06 16:58:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188937', 'tblTempUsageDetail_20' ) start [2025-01-06 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188937', 'tblTempUsageDetail_20' ) end [2025-01-06 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188937', 'tblTempVendorCDR_20' ) start [2025-01-06 16:58:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188937', 'tblTempVendorCDR_20' ) end [2025-01-06 16:58:28] Production.INFO: ProcessCDR(1,14188937,1,1,2) [2025-01-06 16:58:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:58:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:58:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:58:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:58:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188937', 'tblTempUsageDetail_20' ) start [2025-01-06 16:58:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188937', 'tblTempUsageDetail_20' ) end [2025-01-06 16:58:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:58:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:58:33] Production.INFO: ==6117== Releasing lock... [2025-01-06 16:58:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:58:33] Production.INFO: 67.25 MB #Memory Used# [2025-01-06 16:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 13:59:04 [end_date_ymd] => 2025-01-06 16:59:04 [RateCDR] => 1 ) [2025-01-06 16:59: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-01-06 13:59:04' and `end` < '2025-01-06 16:59: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-01-06 16:59:22] Production.INFO: count ==5206 [2025-01-06 16:59:24] Production.ERROR: pbx CDR StartTime 2025-01-06 13:59:04 - End Time 2025-01-06 16:59:04 [2025-01-06 16:59:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188942', 'tblTempUsageDetail_20' ) start [2025-01-06 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188942', 'tblTempUsageDetail_20' ) end [2025-01-06 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188942', 'tblTempVendorCDR_20' ) start [2025-01-06 16:59:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188942', 'tblTempVendorCDR_20' ) end [2025-01-06 16:59:24] Production.INFO: ProcessCDR(1,14188942,1,1,2) [2025-01-06 16:59:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:59:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 16:59:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:59:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188942', 'tblTempUsageDetail_20' ) start [2025-01-06 16:59:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188942', 'tblTempUsageDetail_20' ) end [2025-01-06 16:59:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 16:59:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 16:59:28] Production.INFO: ==6218== Releasing lock... [2025-01-06 16:59:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 16:59:28] Production.INFO: 67 MB #Memory Used# [2025-01-06 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:00:05 [end_date_ymd] => 2025-01-06 17:00:05 [RateCDR] => 1 ) [2025-01-06 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-01-06 14:00:05' and `end` < '2025-01-06 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-01-06 17:00:26] Production.INFO: count ==5188 [2025-01-06 17:00:28] Production.ERROR: pbx CDR StartTime 2025-01-06 14:00:05 - End Time 2025-01-06 17:00:05 [2025-01-06 17:00:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188947', 'tblTempUsageDetail_20' ) start [2025-01-06 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188947', 'tblTempUsageDetail_20' ) end [2025-01-06 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188947', 'tblTempVendorCDR_20' ) start [2025-01-06 17:00:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188947', 'tblTempVendorCDR_20' ) end [2025-01-06 17:00:28] Production.INFO: ProcessCDR(1,14188947,1,1,2) [2025-01-06 17:00:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:00:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:00:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:00:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:00:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188947', 'tblTempUsageDetail_20' ) start [2025-01-06 17:00:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188947', 'tblTempUsageDetail_20' ) end [2025-01-06 17:00:33] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:00:33] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:00:33] Production.INFO: ==6298== Releasing lock... [2025-01-06 17:00:33] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:00:33] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:01:05 [end_date_ymd] => 2025-01-06 17:01:05 [RateCDR] => 1 ) [2025-01-06 17:01: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-01-06 14:01:05' and `end` < '2025-01-06 17:01: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-01-06 17:01:23] Production.INFO: count ==5206 [2025-01-06 17:01:25] Production.ERROR: pbx CDR StartTime 2025-01-06 14:01:05 - End Time 2025-01-06 17:01:05 [2025-01-06 17:01:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188953', 'tblTempUsageDetail_20' ) start [2025-01-06 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188953', 'tblTempUsageDetail_20' ) end [2025-01-06 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188953', 'tblTempVendorCDR_20' ) start [2025-01-06 17:01:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188953', 'tblTempVendorCDR_20' ) end [2025-01-06 17:01:25] Production.INFO: ProcessCDR(1,14188953,1,1,2) [2025-01-06 17:01:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:01:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:01:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:01:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:01:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188953', 'tblTempUsageDetail_20' ) start [2025-01-06 17:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188953', 'tblTempUsageDetail_20' ) end [2025-01-06 17:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:01:30] Production.INFO: ==6392== Releasing lock... [2025-01-06 17:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:01:30] Production.INFO: 67 MB #Memory Used# [2025-01-06 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:02:05 [end_date_ymd] => 2025-01-06 17:02:05 [RateCDR] => 1 ) [2025-01-06 17:02: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-01-06 14:02:05' and `end` < '2025-01-06 17:02: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-01-06 17:02:19] Production.INFO: count ==5207 [2025-01-06 17:02:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:02:05 - End Time 2025-01-06 17:02:05 [2025-01-06 17:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188958', 'tblTempUsageDetail_20' ) start [2025-01-06 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188958', 'tblTempUsageDetail_20' ) end [2025-01-06 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188958', 'tblTempVendorCDR_20' ) start [2025-01-06 17:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188958', 'tblTempVendorCDR_20' ) end [2025-01-06 17:02:22] Production.INFO: ProcessCDR(1,14188958,1,1,2) [2025-01-06 17:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188958', 'tblTempUsageDetail_20' ) start [2025-01-06 17:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188958', 'tblTempUsageDetail_20' ) end [2025-01-06 17:02:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:02:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:02:26] Production.INFO: ==6473== Releasing lock... [2025-01-06 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:02:26] Production.INFO: 67 MB #Memory Used# [2025-01-06 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:03:05 [end_date_ymd] => 2025-01-06 17:03:05 [RateCDR] => 1 ) [2025-01-06 17:03: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-01-06 14:03:05' and `end` < '2025-01-06 17:03: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-01-06 17:03:19] Production.INFO: count ==5211 [2025-01-06 17:03:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:03:05 - End Time 2025-01-06 17:03:05 [2025-01-06 17:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188963', 'tblTempUsageDetail_20' ) start [2025-01-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188963', 'tblTempUsageDetail_20' ) end [2025-01-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188963', 'tblTempVendorCDR_20' ) start [2025-01-06 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188963', 'tblTempVendorCDR_20' ) end [2025-01-06 17:03:21] Production.INFO: ProcessCDR(1,14188963,1,1,2) [2025-01-06 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188963', 'tblTempUsageDetail_20' ) start [2025-01-06 17:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188963', 'tblTempUsageDetail_20' ) end [2025-01-06 17:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:03:24] Production.INFO: ==6555== Releasing lock... [2025-01-06 17:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:03:24] Production.INFO: 67 MB #Memory Used# [2025-01-06 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:04:05 [end_date_ymd] => 2025-01-06 17:04:05 [RateCDR] => 1 ) [2025-01-06 17:04: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-01-06 14:04:05' and `end` < '2025-01-06 17:04: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-01-06 17:04:19] Production.INFO: count ==5204 [2025-01-06 17:04:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:04:05 - End Time 2025-01-06 17:04:05 [2025-01-06 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188968', 'tblTempUsageDetail_20' ) start [2025-01-06 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188968', 'tblTempUsageDetail_20' ) end [2025-01-06 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188968', 'tblTempVendorCDR_20' ) start [2025-01-06 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188968', 'tblTempVendorCDR_20' ) end [2025-01-06 17:04:21] Production.INFO: ProcessCDR(1,14188968,1,1,2) [2025-01-06 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188968', 'tblTempUsageDetail_20' ) start [2025-01-06 17:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188968', 'tblTempUsageDetail_20' ) end [2025-01-06 17:04:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:04:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:04:26] Production.INFO: ==6696== Releasing lock... [2025-01-06 17:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:04:26] Production.INFO: 67 MB #Memory Used# [2025-01-06 17:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:05:04 [end_date_ymd] => 2025-01-06 17:05:04 [RateCDR] => 1 ) [2025-01-06 17:05: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-01-06 14:05:04' and `end` < '2025-01-06 17:05: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-01-06 17:05:38] Production.INFO: count ==5182 [2025-01-06 17:05:39] Production.ERROR: pbx CDR StartTime 2025-01-06 14:05:04 - End Time 2025-01-06 17:05:04 [2025-01-06 17:05:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:05:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188973', 'tblTempUsageDetail_20' ) start [2025-01-06 17:05:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188973', 'tblTempUsageDetail_20' ) end [2025-01-06 17:05:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188973', 'tblTempVendorCDR_20' ) start [2025-01-06 17:05:40] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188973', 'tblTempVendorCDR_20' ) end [2025-01-06 17:05:40] Production.INFO: ProcessCDR(1,14188973,1,1,2) [2025-01-06 17:05:40] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:05:42] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:05:42] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:05:44] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:05:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188973', 'tblTempUsageDetail_20' ) start [2025-01-06 17:05:44] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188973', 'tblTempUsageDetail_20' ) end [2025-01-06 17:05:44] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:05:44] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:05:45] Production.INFO: ==6781== Releasing lock... [2025-01-06 17:05:45] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:05:45] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:06:05 [end_date_ymd] => 2025-01-06 17:06:05 [RateCDR] => 1 ) [2025-01-06 17:06: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-01-06 14:06:05' and `end` < '2025-01-06 17:06: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-01-06 17:06:25] Production.INFO: count ==5188 [2025-01-06 17:06:27] Production.ERROR: pbx CDR StartTime 2025-01-06 14:06:05 - End Time 2025-01-06 17:06:05 [2025-01-06 17:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188978', 'tblTempUsageDetail_20' ) start [2025-01-06 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188978', 'tblTempUsageDetail_20' ) end [2025-01-06 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188978', 'tblTempVendorCDR_20' ) start [2025-01-06 17:06:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188978', 'tblTempVendorCDR_20' ) end [2025-01-06 17:06:28] Production.INFO: ProcessCDR(1,14188978,1,1,2) [2025-01-06 17:06:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:06:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:06:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:06:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188978', 'tblTempUsageDetail_20' ) start [2025-01-06 17:06:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188978', 'tblTempUsageDetail_20' ) end [2025-01-06 17:06:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:06:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:06:32] Production.INFO: ==6864== Releasing lock... [2025-01-06 17:06:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:06:32] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:07:05 [end_date_ymd] => 2025-01-06 17:07:05 [RateCDR] => 1 ) [2025-01-06 17:07: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-01-06 14:07:05' and `end` < '2025-01-06 17:07: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-01-06 17:07:29] Production.INFO: count ==5171 [2025-01-06 17:07:31] Production.ERROR: pbx CDR StartTime 2025-01-06 14:07:05 - End Time 2025-01-06 17:07:05 [2025-01-06 17:07:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188983', 'tblTempUsageDetail_20' ) start [2025-01-06 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188983', 'tblTempUsageDetail_20' ) end [2025-01-06 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188983', 'tblTempVendorCDR_20' ) start [2025-01-06 17:07:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188983', 'tblTempVendorCDR_20' ) end [2025-01-06 17:07:31] Production.INFO: ProcessCDR(1,14188983,1,1,2) [2025-01-06 17:07:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:07:33] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:07:33] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:07:35] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188983', 'tblTempUsageDetail_20' ) start [2025-01-06 17:07:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188983', 'tblTempUsageDetail_20' ) end [2025-01-06 17:07:35] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:07:35] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:07:35] Production.INFO: ==6943== Releasing lock... [2025-01-06 17:07:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:07:35] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:08:05 [end_date_ymd] => 2025-01-06 17:08:05 [RateCDR] => 1 ) [2025-01-06 17:08: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-01-06 14:08:05' and `end` < '2025-01-06 17:08: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-01-06 17:08:23] Production.INFO: count ==5169 [2025-01-06 17:08:25] Production.ERROR: pbx CDR StartTime 2025-01-06 14:08:05 - End Time 2025-01-06 17:08:05 [2025-01-06 17:08:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188988', 'tblTempUsageDetail_20' ) start [2025-01-06 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188988', 'tblTempUsageDetail_20' ) end [2025-01-06 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188988', 'tblTempVendorCDR_20' ) start [2025-01-06 17:08:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188988', 'tblTempVendorCDR_20' ) end [2025-01-06 17:08:25] Production.INFO: ProcessCDR(1,14188988,1,1,2) [2025-01-06 17:08:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:08:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:08:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:08:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188988', 'tblTempUsageDetail_20' ) start [2025-01-06 17:08:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188988', 'tblTempUsageDetail_20' ) end [2025-01-06 17:08:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:08:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:08:28] Production.INFO: ==7024== Releasing lock... [2025-01-06 17:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:08:28] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:09:05 [end_date_ymd] => 2025-01-06 17:09:05 [RateCDR] => 1 ) [2025-01-06 17:09: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-01-06 14:09:05' and `end` < '2025-01-06 17:09: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-01-06 17:09:22] Production.INFO: count ==5165 [2025-01-06 17:09:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:09:05 - End Time 2025-01-06 17:09:05 [2025-01-06 17:09:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:09:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188993', 'tblTempUsageDetail_20' ) start [2025-01-06 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188993', 'tblTempUsageDetail_20' ) end [2025-01-06 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188993', 'tblTempVendorCDR_20' ) start [2025-01-06 17:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188993', 'tblTempVendorCDR_20' ) end [2025-01-06 17:09:25] Production.INFO: ProcessCDR(1,14188993,1,1,2) [2025-01-06 17:09:25] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:09:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:09:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:09:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188993', 'tblTempUsageDetail_20' ) start [2025-01-06 17:09:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188993', 'tblTempUsageDetail_20' ) end [2025-01-06 17:09:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:09:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:09:29] Production.INFO: ==7113== Releasing lock... [2025-01-06 17:09:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:09:29] Production.INFO: 66.75 MB #Memory Used# [2025-01-06 17:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:10:05 [end_date_ymd] => 2025-01-06 17:10:05 [RateCDR] => 1 ) [2025-01-06 17:10: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-01-06 14:10:05' and `end` < '2025-01-06 17:10: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-01-06 17:10:21] Production.INFO: count ==5150 [2025-01-06 17:10:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:10:05 - End Time 2025-01-06 17:10:05 [2025-01-06 17:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188999', 'tblTempUsageDetail_20' ) start [2025-01-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14188999', 'tblTempUsageDetail_20' ) end [2025-01-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188999', 'tblTempVendorCDR_20' ) start [2025-01-06 17:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14188999', 'tblTempVendorCDR_20' ) end [2025-01-06 17:10:23] Production.INFO: ProcessCDR(1,14188999,1,1,2) [2025-01-06 17:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14188999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14188999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14188999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14188999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188999', 'tblTempUsageDetail_20' ) start [2025-01-06 17:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14188999', 'tblTempUsageDetail_20' ) end [2025-01-06 17:10:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:10:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:10:27] Production.INFO: ==7193== Releasing lock... [2025-01-06 17:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:10:27] Production.INFO: 66.5 MB #Memory Used# [2025-01-06 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:11:05 [end_date_ymd] => 2025-01-06 17:11:05 [RateCDR] => 1 ) [2025-01-06 17:11: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-01-06 14:11:05' and `end` < '2025-01-06 17:11: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-01-06 17:11:19] Production.INFO: count ==5113 [2025-01-06 17:11:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:11:05 - End Time 2025-01-06 17:11:05 [2025-01-06 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189004', 'tblTempUsageDetail_20' ) start [2025-01-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189004', 'tblTempUsageDetail_20' ) end [2025-01-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189004', 'tblTempVendorCDR_20' ) start [2025-01-06 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189004', 'tblTempVendorCDR_20' ) end [2025-01-06 17:11:21] Production.INFO: ProcessCDR(1,14189004,1,1,2) [2025-01-06 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189004', 'tblTempUsageDetail_20' ) start [2025-01-06 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189004', 'tblTempUsageDetail_20' ) end [2025-01-06 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:11:26] Production.INFO: ==7272== Releasing lock... [2025-01-06 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:11:26] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 17:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:12:04 [end_date_ymd] => 2025-01-06 17:12:04 [RateCDR] => 1 ) [2025-01-06 17:12: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-01-06 14:12:04' and `end` < '2025-01-06 17:12: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-01-06 17:12:18] Production.INFO: count ==5092 [2025-01-06 17:12:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:12:04 - End Time 2025-01-06 17:12:04 [2025-01-06 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189009', 'tblTempUsageDetail_20' ) start [2025-01-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189009', 'tblTempUsageDetail_20' ) end [2025-01-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189009', 'tblTempVendorCDR_20' ) start [2025-01-06 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189009', 'tblTempVendorCDR_20' ) end [2025-01-06 17:12:20] Production.INFO: ProcessCDR(1,14189009,1,1,2) [2025-01-06 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189009', 'tblTempUsageDetail_20' ) start [2025-01-06 17:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189009', 'tblTempUsageDetail_20' ) end [2025-01-06 17:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:12:25] Production.INFO: ==7349== Releasing lock... [2025-01-06 17:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:12:25] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:13:05 [end_date_ymd] => 2025-01-06 17:13:05 [RateCDR] => 1 ) [2025-01-06 17:13: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-01-06 14:13:05' and `end` < '2025-01-06 17:13: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-01-06 17:13:20] Production.INFO: count ==5101 [2025-01-06 17:13:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:13:05 - End Time 2025-01-06 17:13:05 [2025-01-06 17:13:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189014', 'tblTempUsageDetail_20' ) start [2025-01-06 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189014', 'tblTempUsageDetail_20' ) end [2025-01-06 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189014', 'tblTempVendorCDR_20' ) start [2025-01-06 17:13:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189014', 'tblTempVendorCDR_20' ) end [2025-01-06 17:13:22] Production.INFO: ProcessCDR(1,14189014,1,1,2) [2025-01-06 17:13:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189014', 'tblTempUsageDetail_20' ) start [2025-01-06 17:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189014', 'tblTempUsageDetail_20' ) end [2025-01-06 17:13:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:13:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:13:27] Production.INFO: ==7424== Releasing lock... [2025-01-06 17:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-01-06 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:14:05 [end_date_ymd] => 2025-01-06 17:14:05 [RateCDR] => 1 ) [2025-01-06 17:14: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-01-06 14:14:05' and `end` < '2025-01-06 17:14: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-01-06 17:14:22] Production.INFO: count ==5071 [2025-01-06 17:14:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:14:05 - End Time 2025-01-06 17:14:05 [2025-01-06 17:14:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189019', 'tblTempUsageDetail_20' ) start [2025-01-06 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189019', 'tblTempUsageDetail_20' ) end [2025-01-06 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189019', 'tblTempVendorCDR_20' ) start [2025-01-06 17:14:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189019', 'tblTempVendorCDR_20' ) end [2025-01-06 17:14:24] Production.INFO: ProcessCDR(1,14189019,1,1,2) [2025-01-06 17:14:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:14:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:14:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189019', 'tblTempUsageDetail_20' ) start [2025-01-06 17:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189019', 'tblTempUsageDetail_20' ) end [2025-01-06 17:14:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:14:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:14:28] Production.INFO: ==7504== Releasing lock... [2025-01-06 17:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:14:28] Production.INFO: 66 MB #Memory Used# [2025-01-06 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:15:04 [end_date_ymd] => 2025-01-06 17:15:04 [RateCDR] => 1 ) [2025-01-06 17:15: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-01-06 14:15:04' and `end` < '2025-01-06 17:15: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-01-06 17:15:18] Production.INFO: count ==5022 [2025-01-06 17:15:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:15:04 - End Time 2025-01-06 17:15:04 [2025-01-06 17:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189024', 'tblTempUsageDetail_20' ) start [2025-01-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189024', 'tblTempUsageDetail_20' ) end [2025-01-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189024', 'tblTempVendorCDR_20' ) start [2025-01-06 17:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189024', 'tblTempVendorCDR_20' ) end [2025-01-06 17:15:20] Production.INFO: ProcessCDR(1,14189024,1,1,2) [2025-01-06 17:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189024', 'tblTempUsageDetail_20' ) start [2025-01-06 17:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189024', 'tblTempUsageDetail_20' ) end [2025-01-06 17:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:15:25] Production.INFO: ==7580== Releasing lock... [2025-01-06 17:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:15:25] Production.INFO: 65.5 MB #Memory Used# [2025-01-06 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:16:05 [end_date_ymd] => 2025-01-06 17:16:05 [RateCDR] => 1 ) [2025-01-06 17:16: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-01-06 14:16:05' and `end` < '2025-01-06 17:16: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-01-06 17:16:22] Production.INFO: count ==5017 [2025-01-06 17:16:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:16:05 - End Time 2025-01-06 17:16:05 [2025-01-06 17:16:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189029', 'tblTempUsageDetail_20' ) start [2025-01-06 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189029', 'tblTempUsageDetail_20' ) end [2025-01-06 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189029', 'tblTempVendorCDR_20' ) start [2025-01-06 17:16:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189029', 'tblTempVendorCDR_20' ) end [2025-01-06 17:16:24] Production.INFO: ProcessCDR(1,14189029,1,1,2) [2025-01-06 17:16:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:16:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189029', 'tblTempUsageDetail_20' ) start [2025-01-06 17:16:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189029', 'tblTempUsageDetail_20' ) end [2025-01-06 17:16:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:16:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:16:29] Production.INFO: ==7655== Releasing lock... [2025-01-06 17:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:16:29] Production.INFO: 65.5 MB #Memory Used# [2025-01-06 17:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:17:05 [end_date_ymd] => 2025-01-06 17:17:05 [RateCDR] => 1 ) [2025-01-06 17:17: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-01-06 14:17:05' and `end` < '2025-01-06 17:17: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-01-06 17:17:22] Production.INFO: count ==4973 [2025-01-06 17:17:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:17:05 - End Time 2025-01-06 17:17:05 [2025-01-06 17:17:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189034', 'tblTempUsageDetail_20' ) start [2025-01-06 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189034', 'tblTempUsageDetail_20' ) end [2025-01-06 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189034', 'tblTempVendorCDR_20' ) start [2025-01-06 17:17:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189034', 'tblTempVendorCDR_20' ) end [2025-01-06 17:17:24] Production.INFO: ProcessCDR(1,14189034,1,1,2) [2025-01-06 17:17:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:17:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:17:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:17:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189034', 'tblTempUsageDetail_20' ) start [2025-01-06 17:17:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189034', 'tblTempUsageDetail_20' ) end [2025-01-06 17:17:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:17:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:17:29] Production.INFO: ==7730== Releasing lock... [2025-01-06 17:17:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:17:29] Production.INFO: 65.25 MB #Memory Used# [2025-01-06 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:18:05 [end_date_ymd] => 2025-01-06 17:18:05 [RateCDR] => 1 ) [2025-01-06 17:18: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-01-06 14:18:05' and `end` < '2025-01-06 17:18: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-01-06 17:18:19] Production.INFO: count ==4949 [2025-01-06 17:18:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:18:05 - End Time 2025-01-06 17:18:05 [2025-01-06 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189039', 'tblTempUsageDetail_20' ) start [2025-01-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189039', 'tblTempUsageDetail_20' ) end [2025-01-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189039', 'tblTempVendorCDR_20' ) start [2025-01-06 17:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189039', 'tblTempVendorCDR_20' ) end [2025-01-06 17:18:21] Production.INFO: ProcessCDR(1,14189039,1,1,2) [2025-01-06 17:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189039', 'tblTempUsageDetail_20' ) start [2025-01-06 17:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189039', 'tblTempUsageDetail_20' ) end [2025-01-06 17:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:18:24] Production.INFO: ==7809== Releasing lock... [2025-01-06 17:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:18:24] Production.INFO: 65 MB #Memory Used# [2025-01-06 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:19:05 [end_date_ymd] => 2025-01-06 17:19:05 [RateCDR] => 1 ) [2025-01-06 17:19: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-01-06 14:19:05' and `end` < '2025-01-06 17:19: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-01-06 17:19:19] Production.INFO: count ==4929 [2025-01-06 17:19:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:19:05 - End Time 2025-01-06 17:19:05 [2025-01-06 17:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189044', 'tblTempUsageDetail_20' ) start [2025-01-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189044', 'tblTempUsageDetail_20' ) end [2025-01-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189044', 'tblTempVendorCDR_20' ) start [2025-01-06 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189044', 'tblTempVendorCDR_20' ) end [2025-01-06 17:19:21] Production.INFO: ProcessCDR(1,14189044,1,1,2) [2025-01-06 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189044', 'tblTempUsageDetail_20' ) start [2025-01-06 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189044', 'tblTempUsageDetail_20' ) end [2025-01-06 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:19:26] Production.INFO: ==7923== Releasing lock... [2025-01-06 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:19:26] Production.INFO: 65 MB #Memory Used# [2025-01-06 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:20:05 [end_date_ymd] => 2025-01-06 17:20:05 [RateCDR] => 1 ) [2025-01-06 17:20: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-01-06 14:20:05' and `end` < '2025-01-06 17:20: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-01-06 17:20:19] Production.INFO: count ==4916 [2025-01-06 17:20:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:20:05 - End Time 2025-01-06 17:20:05 [2025-01-06 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189050', 'tblTempUsageDetail_20' ) start [2025-01-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189050', 'tblTempUsageDetail_20' ) end [2025-01-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189050', 'tblTempVendorCDR_20' ) start [2025-01-06 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189050', 'tblTempVendorCDR_20' ) end [2025-01-06 17:20:21] Production.INFO: ProcessCDR(1,14189050,1,1,2) [2025-01-06 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189050', 'tblTempUsageDetail_20' ) start [2025-01-06 17:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189050', 'tblTempUsageDetail_20' ) end [2025-01-06 17:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:20:24] Production.INFO: ==8002== Releasing lock... [2025-01-06 17:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:20:24] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:21:05 [end_date_ymd] => 2025-01-06 17:21:05 [RateCDR] => 1 ) [2025-01-06 17:21: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-01-06 14:21:05' and `end` < '2025-01-06 17:21: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-01-06 17:21:19] Production.INFO: count ==4900 [2025-01-06 17:21:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:21:05 - End Time 2025-01-06 17:21:05 [2025-01-06 17:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189055', 'tblTempUsageDetail_20' ) start [2025-01-06 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189055', 'tblTempUsageDetail_20' ) end [2025-01-06 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189055', 'tblTempVendorCDR_20' ) start [2025-01-06 17:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189055', 'tblTempVendorCDR_20' ) end [2025-01-06 17:21:21] Production.INFO: ProcessCDR(1,14189055,1,1,2) [2025-01-06 17:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189055', 'tblTempUsageDetail_20' ) start [2025-01-06 17:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189055', 'tblTempUsageDetail_20' ) end [2025-01-06 17:21:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:21:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:21:26] Production.INFO: ==8079== Releasing lock... [2025-01-06 17:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:21:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:22:05 [end_date_ymd] => 2025-01-06 17:22:05 [RateCDR] => 1 ) [2025-01-06 17:22: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-01-06 14:22:05' and `end` < '2025-01-06 17:22: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-01-06 17:22:20] Production.INFO: count ==4895 [2025-01-06 17:22:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:22:05 - End Time 2025-01-06 17:22:05 [2025-01-06 17:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189060', 'tblTempUsageDetail_20' ) start [2025-01-06 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189060', 'tblTempUsageDetail_20' ) end [2025-01-06 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189060', 'tblTempVendorCDR_20' ) start [2025-01-06 17:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189060', 'tblTempVendorCDR_20' ) end [2025-01-06 17:22:22] Production.INFO: ProcessCDR(1,14189060,1,1,2) [2025-01-06 17:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189060', 'tblTempUsageDetail_20' ) start [2025-01-06 17:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189060', 'tblTempUsageDetail_20' ) end [2025-01-06 17:22:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:22:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:22:27] Production.INFO: ==8154== Releasing lock... [2025-01-06 17:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:22:27] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:23:05 [end_date_ymd] => 2025-01-06 17:23:05 [RateCDR] => 1 ) [2025-01-06 17:23: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-01-06 14:23:05' and `end` < '2025-01-06 17:23: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-01-06 17:23:19] Production.INFO: count ==4895 [2025-01-06 17:23:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:23:05 - End Time 2025-01-06 17:23:05 [2025-01-06 17:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189065', 'tblTempUsageDetail_20' ) start [2025-01-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189065', 'tblTempUsageDetail_20' ) end [2025-01-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189065', 'tblTempVendorCDR_20' ) start [2025-01-06 17:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189065', 'tblTempVendorCDR_20' ) end [2025-01-06 17:23:21] Production.INFO: ProcessCDR(1,14189065,1,1,2) [2025-01-06 17:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189065', 'tblTempUsageDetail_20' ) start [2025-01-06 17:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189065', 'tblTempUsageDetail_20' ) end [2025-01-06 17:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:23:26] Production.INFO: ==8231== Releasing lock... [2025-01-06 17:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:23:26] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:24:05 [end_date_ymd] => 2025-01-06 17:24:05 [RateCDR] => 1 ) [2025-01-06 17:24: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-01-06 14:24:05' and `end` < '2025-01-06 17:24: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-01-06 17:24:25] Production.INFO: count ==4888 [2025-01-06 17:24:27] Production.ERROR: pbx CDR StartTime 2025-01-06 14:24:05 - End Time 2025-01-06 17:24:05 [2025-01-06 17:24:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189070', 'tblTempUsageDetail_20' ) start [2025-01-06 17:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189070', 'tblTempUsageDetail_20' ) end [2025-01-06 17:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189070', 'tblTempVendorCDR_20' ) start [2025-01-06 17:24:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189070', 'tblTempVendorCDR_20' ) end [2025-01-06 17:24:27] Production.INFO: ProcessCDR(1,14189070,1,1,2) [2025-01-06 17:24:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:24:30] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:24:30] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:24:32] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189070', 'tblTempUsageDetail_20' ) start [2025-01-06 17:24:32] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189070', 'tblTempUsageDetail_20' ) end [2025-01-06 17:24:32] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:24:32] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:24:32] Production.INFO: ==8307== Releasing lock... [2025-01-06 17:24:32] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:24:32] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:25:05 [end_date_ymd] => 2025-01-06 17:25:05 [RateCDR] => 1 ) [2025-01-06 17: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-01-06 14:25:05' and `end` < '2025-01-06 17: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-01-06 17:25:18] Production.INFO: count ==4894 [2025-01-06 17:25:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:25:05 - End Time 2025-01-06 17:25:05 [2025-01-06 17:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189075', 'tblTempUsageDetail_20' ) start [2025-01-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189075', 'tblTempUsageDetail_20' ) end [2025-01-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189075', 'tblTempVendorCDR_20' ) start [2025-01-06 17:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189075', 'tblTempVendorCDR_20' ) end [2025-01-06 17:25:20] Production.INFO: ProcessCDR(1,14189075,1,1,2) [2025-01-06 17:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189075', 'tblTempUsageDetail_20' ) start [2025-01-06 17:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189075', 'tblTempUsageDetail_20' ) end [2025-01-06 17:25:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:25:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:25:25] Production.INFO: ==8379== Releasing lock... [2025-01-06 17:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:25:25] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:26:16] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:26:16 [end_date_ymd] => 2025-01-06 17:26:16 [RateCDR] => 1 ) [2025-01-06 17:26:16] 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-01-06 14:26:16' and `end` < '2025-01-06 17:26:16' 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-01-06 17:26:34] Production.INFO: count ==4894 [2025-01-06 17:27:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:26:16 - End Time 2025-01-06 17:26:16 [2025-01-06 17:27:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:27:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189080', 'tblTempUsageDetail_20' ) start [2025-01-06 17:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189080', 'tblTempUsageDetail_20' ) end [2025-01-06 17:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189080', 'tblTempVendorCDR_20' ) start [2025-01-06 17:27:29] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189080', 'tblTempVendorCDR_20' ) end [2025-01-06 17:27:29] Production.INFO: ProcessCDR(1,14189080,1,1,2) [2025-01-06 17:27:29] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:27:34] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:27:34] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:27:56] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:27:56] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189080', 'tblTempUsageDetail_20' ) start [2025-01-06 17:28:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189080', 'tblTempUsageDetail_20' ) end [2025-01-06 17:28:02] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:28:02] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:28:07] Production.INFO: ==8456== Releasing lock... [2025-01-06 17:28:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:28:07] Production.INFO: 64.75 MB #Memory Used# [2025-01-06 17:29:15] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:29:15 [end_date_ymd] => 2025-01-06 17:29:15 [RateCDR] => 1 ) [2025-01-06 17:29:15] 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-01-06 14:29:15' and `end` < '2025-01-06 17:29:15' 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-01-06 17:29:30] Production.INFO: count ==4873 [2025-01-06 17:30:05] Production.ERROR: pbx CDR StartTime 2025-01-06 14:29:15 - End Time 2025-01-06 17:29:15 [2025-01-06 17:30:05] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:30:05] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189091', 'tblTempUsageDetail_20' ) start [2025-01-06 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189091', 'tblTempUsageDetail_20' ) end [2025-01-06 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189091', 'tblTempVendorCDR_20' ) start [2025-01-06 17:30:15] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189091', 'tblTempVendorCDR_20' ) end [2025-01-06 17:30:15] Production.INFO: ProcessCDR(1,14189091,1,1,2) [2025-01-06 17:30:15] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:30:29] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:30:29] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:30:47] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:30:47] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189091', 'tblTempUsageDetail_20' ) start [2025-01-06 17:30:51] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189091', 'tblTempUsageDetail_20' ) end [2025-01-06 17:30:51] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:30:51] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:30:53] Production.INFO: ==8676== Releasing lock... [2025-01-06 17:30:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:30:53] Production.INFO: 64.5 MB #Memory Used# [2025-01-06 17:31:14] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:31:14 [end_date_ymd] => 2025-01-06 17:31:14 [RateCDR] => 1 ) [2025-01-06 17:31:14] 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-01-06 14:31:14' and `end` < '2025-01-06 17:31:14' 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-01-06 17:31:31] Production.INFO: count ==4781 [2025-01-06 17:31:33] Production.ERROR: pbx CDR StartTime 2025-01-06 14:31:14 - End Time 2025-01-06 17:31:14 [2025-01-06 17:31:33] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189100', 'tblTempUsageDetail_20' ) start [2025-01-06 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189100', 'tblTempUsageDetail_20' ) end [2025-01-06 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189100', 'tblTempVendorCDR_20' ) start [2025-01-06 17:31:33] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189100', 'tblTempVendorCDR_20' ) end [2025-01-06 17:31:33] Production.INFO: ProcessCDR(1,14189100,1,1,2) [2025-01-06 17:31:33] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:31:36] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:31:36] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:31:38] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189100', 'tblTempUsageDetail_20' ) start [2025-01-06 17:31:38] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189100', 'tblTempUsageDetail_20' ) end [2025-01-06 17:31:38] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:31:38] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:31:38] Production.INFO: ==8845== Releasing lock... [2025-01-06 17:31:38] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:31:38] Production.INFO: 63.75 MB #Memory Used# [2025-01-06 17:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:32:05 [end_date_ymd] => 2025-01-06 17:32:05 [RateCDR] => 1 ) [2025-01-06 17:32: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-01-06 14:32:05' and `end` < '2025-01-06 17:32: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-01-06 17:32:19] Production.INFO: count ==4749 [2025-01-06 17:32:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:32:05 - End Time 2025-01-06 17:32:05 [2025-01-06 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189105', 'tblTempUsageDetail_20' ) start [2025-01-06 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189105', 'tblTempUsageDetail_20' ) end [2025-01-06 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189105', 'tblTempVendorCDR_20' ) start [2025-01-06 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189105', 'tblTempVendorCDR_20' ) end [2025-01-06 17:32:21] Production.INFO: ProcessCDR(1,14189105,1,1,2) [2025-01-06 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189105', 'tblTempUsageDetail_20' ) start [2025-01-06 17:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189105', 'tblTempUsageDetail_20' ) end [2025-01-06 17:32:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:32:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:32:26] Production.INFO: ==8948== Releasing lock... [2025-01-06 17:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:32:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:33:05 [end_date_ymd] => 2025-01-06 17:33:05 [RateCDR] => 1 ) [2025-01-06 17:33: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-01-06 14:33:05' and `end` < '2025-01-06 17:33: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-01-06 17:33:19] Production.INFO: count ==4726 [2025-01-06 17:33:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:33:05 - End Time 2025-01-06 17:33:05 [2025-01-06 17:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189110', 'tblTempUsageDetail_20' ) start [2025-01-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189110', 'tblTempUsageDetail_20' ) end [2025-01-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189110', 'tblTempVendorCDR_20' ) start [2025-01-06 17:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189110', 'tblTempVendorCDR_20' ) end [2025-01-06 17:33:21] Production.INFO: ProcessCDR(1,14189110,1,1,2) [2025-01-06 17:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189110', 'tblTempUsageDetail_20' ) start [2025-01-06 17:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189110', 'tblTempUsageDetail_20' ) end [2025-01-06 17:33:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:33:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:33:26] Production.INFO: ==9058== Releasing lock... [2025-01-06 17:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:33:26] Production.INFO: 63.5 MB #Memory Used# [2025-01-06 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:34:06 [end_date_ymd] => 2025-01-06 17:34:06 [RateCDR] => 1 ) [2025-01-06 17:34: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-01-06 14:34:06' and `end` < '2025-01-06 17:34: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-01-06 17:34:24] Production.INFO: count ==4713 [2025-01-06 17:34:26] Production.ERROR: pbx CDR StartTime 2025-01-06 14:34:06 - End Time 2025-01-06 17:34:06 [2025-01-06 17:34:26] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189115', 'tblTempUsageDetail_20' ) start [2025-01-06 17:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189115', 'tblTempUsageDetail_20' ) end [2025-01-06 17:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189115', 'tblTempVendorCDR_20' ) start [2025-01-06 17:34:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189115', 'tblTempVendorCDR_20' ) end [2025-01-06 17:34:26] Production.INFO: ProcessCDR(1,14189115,1,1,2) [2025-01-06 17:34:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:34:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:34:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:34:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189115', 'tblTempUsageDetail_20' ) start [2025-01-06 17:34:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189115', 'tblTempUsageDetail_20' ) end [2025-01-06 17:34:31] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:34:31] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:34:31] Production.INFO: ==9153== Releasing lock... [2025-01-06 17:34:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:34:31] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:35:05 [end_date_ymd] => 2025-01-06 17:35:05 [RateCDR] => 1 ) [2025-01-06 17:35: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-01-06 14:35:05' and `end` < '2025-01-06 17:35: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-01-06 17:35:19] Production.INFO: count ==4710 [2025-01-06 17:35:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:35:05 - End Time 2025-01-06 17:35:05 [2025-01-06 17:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189120', 'tblTempUsageDetail_20' ) start [2025-01-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189120', 'tblTempUsageDetail_20' ) end [2025-01-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189120', 'tblTempVendorCDR_20' ) start [2025-01-06 17:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189120', 'tblTempVendorCDR_20' ) end [2025-01-06 17:35:21] Production.INFO: ProcessCDR(1,14189120,1,1,2) [2025-01-06 17:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189120', 'tblTempUsageDetail_20' ) start [2025-01-06 17:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189120', 'tblTempUsageDetail_20' ) end [2025-01-06 17:35:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:35:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:35:27] Production.INFO: ==9309== Releasing lock... [2025-01-06 17:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:35:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:36:05 [end_date_ymd] => 2025-01-06 17:36:05 [RateCDR] => 1 ) [2025-01-06 17:36: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-01-06 14:36:05' and `end` < '2025-01-06 17:36: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-01-06 17:36:20] Production.INFO: count ==4695 [2025-01-06 17:36:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:36:05 - End Time 2025-01-06 17:36:05 [2025-01-06 17:36:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189125', 'tblTempUsageDetail_20' ) start [2025-01-06 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189125', 'tblTempUsageDetail_20' ) end [2025-01-06 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189125', 'tblTempVendorCDR_20' ) start [2025-01-06 17:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189125', 'tblTempVendorCDR_20' ) end [2025-01-06 17:36:22] Production.INFO: ProcessCDR(1,14189125,1,1,2) [2025-01-06 17:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:36:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189125', 'tblTempUsageDetail_20' ) start [2025-01-06 17:36:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189125', 'tblTempUsageDetail_20' ) end [2025-01-06 17:36:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:36:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:36:27] Production.INFO: ==9436== Releasing lock... [2025-01-06 17:36:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:36:27] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:37:05 [end_date_ymd] => 2025-01-06 17:37:05 [RateCDR] => 1 ) [2025-01-06 17:37: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-01-06 14:37:05' and `end` < '2025-01-06 17:37: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-01-06 17:37:19] Production.INFO: count ==4682 [2025-01-06 17:37:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:37:05 - End Time 2025-01-06 17:37:05 [2025-01-06 17:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189130', 'tblTempUsageDetail_20' ) start [2025-01-06 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189130', 'tblTempUsageDetail_20' ) end [2025-01-06 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189130', 'tblTempVendorCDR_20' ) start [2025-01-06 17:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189130', 'tblTempVendorCDR_20' ) end [2025-01-06 17:37:21] Production.INFO: ProcessCDR(1,14189130,1,1,2) [2025-01-06 17:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189130', 'tblTempUsageDetail_20' ) start [2025-01-06 17:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189130', 'tblTempUsageDetail_20' ) end [2025-01-06 17:37:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:37:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:37:26] Production.INFO: ==9589== Releasing lock... [2025-01-06 17:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:37:26] Production.INFO: 63.25 MB #Memory Used# [2025-01-06 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:38:05 [end_date_ymd] => 2025-01-06 17:38:05 [RateCDR] => 1 ) [2025-01-06 17:38: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-01-06 14:38:05' and `end` < '2025-01-06 17:38: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-01-06 17:38:19] Production.INFO: count ==4659 [2025-01-06 17:38:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:38:05 - End Time 2025-01-06 17:38:05 [2025-01-06 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189135', 'tblTempUsageDetail_20' ) start [2025-01-06 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189135', 'tblTempUsageDetail_20' ) end [2025-01-06 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189135', 'tblTempVendorCDR_20' ) start [2025-01-06 17:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189135', 'tblTempVendorCDR_20' ) end [2025-01-06 17:38:21] Production.INFO: ProcessCDR(1,14189135,1,1,2) [2025-01-06 17:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189135', 'tblTempUsageDetail_20' ) start [2025-01-06 17:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189135', 'tblTempUsageDetail_20' ) end [2025-01-06 17:38:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:38:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:38:26] Production.INFO: ==9678== Releasing lock... [2025-01-06 17:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:38:26] Production.INFO: 63 MB #Memory Used# [2025-01-06 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:39:05 [end_date_ymd] => 2025-01-06 17:39:05 [RateCDR] => 1 ) [2025-01-06 17:39: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-01-06 14:39:05' and `end` < '2025-01-06 17:39: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-01-06 17:39:18] Production.INFO: count ==4651 [2025-01-06 17:39:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:39:05 - End Time 2025-01-06 17:39:05 [2025-01-06 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189140', 'tblTempUsageDetail_20' ) start [2025-01-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189140', 'tblTempUsageDetail_20' ) end [2025-01-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189140', 'tblTempVendorCDR_20' ) start [2025-01-06 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189140', 'tblTempVendorCDR_20' ) end [2025-01-06 17:39:20] Production.INFO: ProcessCDR(1,14189140,1,1,2) [2025-01-06 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189140', 'tblTempUsageDetail_20' ) start [2025-01-06 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189140', 'tblTempUsageDetail_20' ) end [2025-01-06 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:39:25] Production.INFO: ==9788== Releasing lock... [2025-01-06 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:39:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:40:07 [end_date_ymd] => 2025-01-06 17:40:07 [RateCDR] => 1 ) [2025-01-06 17:40: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-01-06 14:40:07' and `end` < '2025-01-06 17:40: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-01-06 17:40:22] Production.INFO: count ==4636 [2025-01-06 17:40:24] Production.ERROR: pbx CDR StartTime 2025-01-06 14:40:07 - End Time 2025-01-06 17:40:07 [2025-01-06 17:40:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189146', 'tblTempUsageDetail_20' ) start [2025-01-06 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189146', 'tblTempUsageDetail_20' ) end [2025-01-06 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189146', 'tblTempVendorCDR_20' ) start [2025-01-06 17:40:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189146', 'tblTempVendorCDR_20' ) end [2025-01-06 17:40:24] Production.INFO: ProcessCDR(1,14189146,1,1,2) [2025-01-06 17:40:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:40:27] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:40:27] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:40:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189146', 'tblTempUsageDetail_20' ) start [2025-01-06 17:40:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189146', 'tblTempUsageDetail_20' ) end [2025-01-06 17:40:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:40:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:40:29] Production.INFO: ==9887== Releasing lock... [2025-01-06 17:40:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:40:29] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:41:04 [end_date_ymd] => 2025-01-06 17:41:04 [RateCDR] => 1 ) [2025-01-06 17:41: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-01-06 14:41:04' and `end` < '2025-01-06 17:41: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-01-06 17:41:21] Production.INFO: count ==4643 [2025-01-06 17:41:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:41:04 - End Time 2025-01-06 17:41:04 [2025-01-06 17:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189151', 'tblTempUsageDetail_20' ) start [2025-01-06 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189151', 'tblTempUsageDetail_20' ) end [2025-01-06 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189151', 'tblTempVendorCDR_20' ) start [2025-01-06 17:41:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189151', 'tblTempVendorCDR_20' ) end [2025-01-06 17:41:23] Production.INFO: ProcessCDR(1,14189151,1,1,2) [2025-01-06 17:41:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189151', 'tblTempUsageDetail_20' ) start [2025-01-06 17:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189151', 'tblTempUsageDetail_20' ) end [2025-01-06 17:41:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:41:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:41:28] Production.INFO: ==10009== Releasing lock... [2025-01-06 17:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:41:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:42:05 [end_date_ymd] => 2025-01-06 17:42:05 [RateCDR] => 1 ) [2025-01-06 17:42: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-01-06 14:42:05' and `end` < '2025-01-06 17:42: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-01-06 17:42:20] Production.INFO: count ==4649 [2025-01-06 17:42:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:42:05 - End Time 2025-01-06 17:42:05 [2025-01-06 17:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189156', 'tblTempUsageDetail_20' ) start [2025-01-06 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189156', 'tblTempUsageDetail_20' ) end [2025-01-06 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189156', 'tblTempVendorCDR_20' ) start [2025-01-06 17:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189156', 'tblTempVendorCDR_20' ) end [2025-01-06 17:42:22] Production.INFO: ProcessCDR(1,14189156,1,1,2) [2025-01-06 17:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189156', 'tblTempUsageDetail_20' ) start [2025-01-06 17:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189156', 'tblTempUsageDetail_20' ) end [2025-01-06 17:42:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:42:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:42:27] Production.INFO: ==10104== Releasing lock... [2025-01-06 17:42:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:42:27] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:43:05 [end_date_ymd] => 2025-01-06 17:43:05 [RateCDR] => 1 ) [2025-01-06 17:43: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-01-06 14:43:05' and `end` < '2025-01-06 17:43: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-01-06 17:43:19] Production.INFO: count ==4649 [2025-01-06 17:43:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:43:05 - End Time 2025-01-06 17:43:05 [2025-01-06 17:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189161', 'tblTempUsageDetail_20' ) start [2025-01-06 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189161', 'tblTempUsageDetail_20' ) end [2025-01-06 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189161', 'tblTempVendorCDR_20' ) start [2025-01-06 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189161', 'tblTempVendorCDR_20' ) end [2025-01-06 17:43:21] Production.INFO: ProcessCDR(1,14189161,1,1,2) [2025-01-06 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189161', 'tblTempUsageDetail_20' ) start [2025-01-06 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189161', 'tblTempUsageDetail_20' ) end [2025-01-06 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:43:25] Production.INFO: ==10233== Releasing lock... [2025-01-06 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:43:25] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:44:05 [end_date_ymd] => 2025-01-06 17:44:05 [RateCDR] => 1 ) [2025-01-06 17:44: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-01-06 14:44:05' and `end` < '2025-01-06 17:44: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-01-06 17:44:22] Production.INFO: count ==4626 [2025-01-06 17:44:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:44:05 - End Time 2025-01-06 17:44:05 [2025-01-06 17:44:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:44:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189166', 'tblTempUsageDetail_20' ) start [2025-01-06 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189166', 'tblTempUsageDetail_20' ) end [2025-01-06 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189166', 'tblTempVendorCDR_20' ) start [2025-01-06 17:44:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189166', 'tblTempVendorCDR_20' ) end [2025-01-06 17:44:24] Production.INFO: ProcessCDR(1,14189166,1,1,2) [2025-01-06 17:44:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:44:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:44:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:44:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189166', 'tblTempUsageDetail_20' ) start [2025-01-06 17:44:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189166', 'tblTempUsageDetail_20' ) end [2025-01-06 17:44:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:44:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:44:28] Production.INFO: ==10345== Releasing lock... [2025-01-06 17:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:44:28] Production.INFO: 62.75 MB #Memory Used# [2025-01-06 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:45:05 [end_date_ymd] => 2025-01-06 17:45:05 [RateCDR] => 1 ) [2025-01-06 17:45: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-01-06 14:45:05' and `end` < '2025-01-06 17:45: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-01-06 17:45:20] Production.INFO: count ==4567 [2025-01-06 17:45:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:45:05 - End Time 2025-01-06 17:45:05 [2025-01-06 17:45:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189171', 'tblTempUsageDetail_20' ) start [2025-01-06 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189171', 'tblTempUsageDetail_20' ) end [2025-01-06 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189171', 'tblTempVendorCDR_20' ) start [2025-01-06 17:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189171', 'tblTempVendorCDR_20' ) end [2025-01-06 17:45:22] Production.INFO: ProcessCDR(1,14189171,1,1,2) [2025-01-06 17:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:45:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:45:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189171', 'tblTempUsageDetail_20' ) start [2025-01-06 17:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189171', 'tblTempUsageDetail_20' ) end [2025-01-06 17:45:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:45:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:45:27] Production.INFO: ==10459== Releasing lock... [2025-01-06 17:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:45:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-06 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:46:05 [end_date_ymd] => 2025-01-06 17:46:05 [RateCDR] => 1 ) [2025-01-06 17:46: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-01-06 14:46:05' and `end` < '2025-01-06 17:46: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-01-06 17:46:20] Production.INFO: count ==4572 [2025-01-06 17:46:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:46:05 - End Time 2025-01-06 17:46:05 [2025-01-06 17:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189176', 'tblTempUsageDetail_20' ) start [2025-01-06 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189176', 'tblTempUsageDetail_20' ) end [2025-01-06 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189176', 'tblTempVendorCDR_20' ) start [2025-01-06 17:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189176', 'tblTempVendorCDR_20' ) end [2025-01-06 17:46:22] Production.INFO: ProcessCDR(1,14189176,1,1,2) [2025-01-06 17:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189176', 'tblTempUsageDetail_20' ) start [2025-01-06 17:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189176', 'tblTempUsageDetail_20' ) end [2025-01-06 17:46:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:46:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:46:27] Production.INFO: ==10567== Releasing lock... [2025-01-06 17:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:46:27] Production.INFO: 62.25 MB #Memory Used# [2025-01-06 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:47:05 [end_date_ymd] => 2025-01-06 17:47:05 [RateCDR] => 1 ) [2025-01-06 17:47: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-01-06 14:47:05' and `end` < '2025-01-06 17:47: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-01-06 17:47:22] Production.INFO: count ==4545 [2025-01-06 17:47:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:47:05 - End Time 2025-01-06 17:47:05 [2025-01-06 17:47:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189181', 'tblTempUsageDetail_20' ) start [2025-01-06 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189181', 'tblTempUsageDetail_20' ) end [2025-01-06 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189181', 'tblTempVendorCDR_20' ) start [2025-01-06 17:47:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189181', 'tblTempVendorCDR_20' ) end [2025-01-06 17:47:23] Production.INFO: ProcessCDR(1,14189181,1,1,2) [2025-01-06 17:47:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:47:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:47:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:47:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189181', 'tblTempUsageDetail_20' ) start [2025-01-06 17:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189181', 'tblTempUsageDetail_20' ) end [2025-01-06 17:47:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:47:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:47:29] Production.INFO: ==10688== Releasing lock... [2025-01-06 17:47:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:47:29] Production.INFO: 62 MB #Memory Used# [2025-01-06 17:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:48:06 [end_date_ymd] => 2025-01-06 17:48:06 [RateCDR] => 1 ) [2025-01-06 17:48: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-01-06 14:48:06' and `end` < '2025-01-06 17:48: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-01-06 17:48:22] Production.INFO: count ==4515 [2025-01-06 17:48:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:48:06 - End Time 2025-01-06 17:48:06 [2025-01-06 17:48:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189186', 'tblTempUsageDetail_20' ) start [2025-01-06 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189186', 'tblTempUsageDetail_20' ) end [2025-01-06 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189186', 'tblTempVendorCDR_20' ) start [2025-01-06 17:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189186', 'tblTempVendorCDR_20' ) end [2025-01-06 17:48:23] Production.INFO: ProcessCDR(1,14189186,1,1,2) [2025-01-06 17:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:48:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:48:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189186', 'tblTempUsageDetail_20' ) start [2025-01-06 17:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189186', 'tblTempUsageDetail_20' ) end [2025-01-06 17:48:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:48:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:48:28] Production.INFO: ==10810== Releasing lock... [2025-01-06 17:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:48:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:49:05 [end_date_ymd] => 2025-01-06 17:49:05 [RateCDR] => 1 ) [2025-01-06 17:49: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-01-06 14:49:05' and `end` < '2025-01-06 17:49: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-01-06 17:49:21] Production.INFO: count ==4504 [2025-01-06 17:49:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:49:05 - End Time 2025-01-06 17:49:05 [2025-01-06 17:49:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189191', 'tblTempUsageDetail_20' ) start [2025-01-06 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189191', 'tblTempUsageDetail_20' ) end [2025-01-06 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189191', 'tblTempVendorCDR_20' ) start [2025-01-06 17:49:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189191', 'tblTempVendorCDR_20' ) end [2025-01-06 17:49:23] Production.INFO: ProcessCDR(1,14189191,1,1,2) [2025-01-06 17:49:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:49:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189191', 'tblTempUsageDetail_20' ) start [2025-01-06 17:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189191', 'tblTempUsageDetail_20' ) end [2025-01-06 17:49:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:49:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:49:28] Production.INFO: ==10915== Releasing lock... [2025-01-06 17:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:49:28] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 17:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:50:05 [end_date_ymd] => 2025-01-06 17:50:05 [RateCDR] => 1 ) [2025-01-06 17:50: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-01-06 14:50:05' and `end` < '2025-01-06 17:50: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-01-06 17:50:18] Production.INFO: count ==4498 [2025-01-06 17:50:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:50:05 - End Time 2025-01-06 17:50:05 [2025-01-06 17:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189196', 'tblTempUsageDetail_20' ) start [2025-01-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189196', 'tblTempUsageDetail_20' ) end [2025-01-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189196', 'tblTempVendorCDR_20' ) start [2025-01-06 17:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189196', 'tblTempVendorCDR_20' ) end [2025-01-06 17:50:20] Production.INFO: ProcessCDR(1,14189196,1,1,2) [2025-01-06 17:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189196', 'tblTempUsageDetail_20' ) start [2025-01-06 17:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189196', 'tblTempUsageDetail_20' ) end [2025-01-06 17:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:50:25] Production.INFO: ==11068== Releasing lock... [2025-01-06 17:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:50:25] Production.INFO: 61.75 MB #Memory Used# [2025-01-06 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:51:05 [end_date_ymd] => 2025-01-06 17:51:05 [RateCDR] => 1 ) [2025-01-06 17:51: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-01-06 14:51:05' and `end` < '2025-01-06 17:51: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-01-06 17:51:19] Production.INFO: count ==4414 [2025-01-06 17:51:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:51:05 - End Time 2025-01-06 17:51:05 [2025-01-06 17:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189202', 'tblTempUsageDetail_20' ) start [2025-01-06 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189202', 'tblTempUsageDetail_20' ) end [2025-01-06 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189202', 'tblTempVendorCDR_20' ) start [2025-01-06 17:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189202', 'tblTempVendorCDR_20' ) end [2025-01-06 17:51:21] Production.INFO: ProcessCDR(1,14189202,1,1,2) [2025-01-06 17:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189202', 'tblTempUsageDetail_20' ) start [2025-01-06 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189202', 'tblTempUsageDetail_20' ) end [2025-01-06 17:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:51:24] Production.INFO: ==11169== Releasing lock... [2025-01-06 17:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:51:24] Production.INFO: 61 MB #Memory Used# [2025-01-06 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:52:05 [end_date_ymd] => 2025-01-06 17:52:05 [RateCDR] => 1 ) [2025-01-06 17:52: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-01-06 14:52:05' and `end` < '2025-01-06 17:52: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-01-06 17:52:19] Production.INFO: count ==4402 [2025-01-06 17:52:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:52:05 - End Time 2025-01-06 17:52:05 [2025-01-06 17:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189207', 'tblTempUsageDetail_20' ) start [2025-01-06 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189207', 'tblTempUsageDetail_20' ) end [2025-01-06 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189207', 'tblTempVendorCDR_20' ) start [2025-01-06 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189207', 'tblTempVendorCDR_20' ) end [2025-01-06 17:52:21] Production.INFO: ProcessCDR(1,14189207,1,1,2) [2025-01-06 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189207', 'tblTempUsageDetail_20' ) start [2025-01-06 17:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189207', 'tblTempUsageDetail_20' ) end [2025-01-06 17:52:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:52:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:52:25] Production.INFO: ==11265== Releasing lock... [2025-01-06 17:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:52:25] Production.INFO: 61 MB #Memory Used# [2025-01-06 17:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:53:05 [end_date_ymd] => 2025-01-06 17:53:05 [RateCDR] => 1 ) [2025-01-06 17:53: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-01-06 14:53:05' and `end` < '2025-01-06 17:53: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-01-06 17:53:19] Production.INFO: count ==4381 [2025-01-06 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:53:05 - End Time 2025-01-06 17:53:05 [2025-01-06 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189212', 'tblTempUsageDetail_20' ) start [2025-01-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189212', 'tblTempUsageDetail_20' ) end [2025-01-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189212', 'tblTempVendorCDR_20' ) start [2025-01-06 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189212', 'tblTempVendorCDR_20' ) end [2025-01-06 17:53:20] Production.INFO: ProcessCDR(1,14189212,1,1,2) [2025-01-06 17:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189212', 'tblTempUsageDetail_20' ) start [2025-01-06 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189212', 'tblTempUsageDetail_20' ) end [2025-01-06 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:53:25] Production.INFO: ==11352== Releasing lock... [2025-01-06 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:53:25] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:54:05 [end_date_ymd] => 2025-01-06 17:54:05 [RateCDR] => 1 ) [2025-01-06 17:54: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-01-06 14:54:05' and `end` < '2025-01-06 17:54: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-01-06 17:54:21] Production.INFO: count ==4373 [2025-01-06 17:54:23] Production.ERROR: pbx CDR StartTime 2025-01-06 14:54:05 - End Time 2025-01-06 17:54:05 [2025-01-06 17:54:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189217', 'tblTempUsageDetail_20' ) start [2025-01-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189217', 'tblTempUsageDetail_20' ) end [2025-01-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189217', 'tblTempVendorCDR_20' ) start [2025-01-06 17:54:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189217', 'tblTempVendorCDR_20' ) end [2025-01-06 17:54:23] Production.INFO: ProcessCDR(1,14189217,1,1,2) [2025-01-06 17:54:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:54:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:54:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:54:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189217', 'tblTempUsageDetail_20' ) start [2025-01-06 17:54:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189217', 'tblTempUsageDetail_20' ) end [2025-01-06 17:54:28] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:54:28] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:54:28] Production.INFO: ==11432== Releasing lock... [2025-01-06 17:54:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:54:28] Production.INFO: 60.75 MB #Memory Used# [2025-01-06 17:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:55:06 [end_date_ymd] => 2025-01-06 17:55:06 [RateCDR] => 1 ) [2025-01-06 17:55: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-01-06 14:55:06' and `end` < '2025-01-06 17:55: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-01-06 17:55:20] Production.INFO: count ==4350 [2025-01-06 17:55:22] Production.ERROR: pbx CDR StartTime 2025-01-06 14:55:06 - End Time 2025-01-06 17:55:06 [2025-01-06 17:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189222', 'tblTempUsageDetail_20' ) start [2025-01-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189222', 'tblTempUsageDetail_20' ) end [2025-01-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189222', 'tblTempVendorCDR_20' ) start [2025-01-06 17:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189222', 'tblTempVendorCDR_20' ) end [2025-01-06 17:55:22] Production.INFO: ProcessCDR(1,14189222,1,1,2) [2025-01-06 17:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189222', 'tblTempUsageDetail_20' ) start [2025-01-06 17:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189222', 'tblTempUsageDetail_20' ) end [2025-01-06 17:55:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:55:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:55:27] Production.INFO: ==11543== Releasing lock... [2025-01-06 17:55:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:55:27] Production.INFO: 60.5 MB #Memory Used# [2025-01-06 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:56:05 [end_date_ymd] => 2025-01-06 17:56:05 [RateCDR] => 1 ) [2025-01-06 17:56: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-01-06 14:56:05' and `end` < '2025-01-06 17:56: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-01-06 17:56:19] Production.INFO: count ==4329 [2025-01-06 17:56:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:56:05 - End Time 2025-01-06 17:56:05 [2025-01-06 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189227', 'tblTempUsageDetail_20' ) start [2025-01-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189227', 'tblTempUsageDetail_20' ) end [2025-01-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189227', 'tblTempVendorCDR_20' ) start [2025-01-06 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189227', 'tblTempVendorCDR_20' ) end [2025-01-06 17:56:20] Production.INFO: ProcessCDR(1,14189227,1,1,2) [2025-01-06 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:56:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189227', 'tblTempUsageDetail_20' ) start [2025-01-06 17:56:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189227', 'tblTempUsageDetail_20' ) end [2025-01-06 17:56:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:56:24] Production.INFO: ==11651== Releasing lock... [2025-01-06 17:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:56:24] Production.INFO: 60.5 MB #Memory Used# [2025-01-06 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:57:05 [end_date_ymd] => 2025-01-06 17:57:05 [RateCDR] => 1 ) [2025-01-06 17:57: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-01-06 14:57:05' and `end` < '2025-01-06 17:57: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-01-06 17:57:19] Production.INFO: count ==4297 [2025-01-06 17:57:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:57:05 - End Time 2025-01-06 17:57:05 [2025-01-06 17:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189232', 'tblTempUsageDetail_20' ) start [2025-01-06 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189232', 'tblTempUsageDetail_20' ) end [2025-01-06 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189232', 'tblTempVendorCDR_20' ) start [2025-01-06 17:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189232', 'tblTempVendorCDR_20' ) end [2025-01-06 17:57:21] Production.INFO: ProcessCDR(1,14189232,1,1,2) [2025-01-06 17:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189232', 'tblTempUsageDetail_20' ) start [2025-01-06 17:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189232', 'tblTempUsageDetail_20' ) end [2025-01-06 17:57:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:57:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:57:26] Production.INFO: ==11763== Releasing lock... [2025-01-06 17:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:57:26] Production.INFO: 60.25 MB #Memory Used# [2025-01-06 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:58:05 [end_date_ymd] => 2025-01-06 17:58:05 [RateCDR] => 1 ) [2025-01-06 17:58: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-01-06 14:58:05' and `end` < '2025-01-06 17:58: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-01-06 17:58:19] Production.INFO: count ==4255 [2025-01-06 17:58:20] Production.ERROR: pbx CDR StartTime 2025-01-06 14:58:05 - End Time 2025-01-06 17:58:05 [2025-01-06 17:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189237', 'tblTempUsageDetail_20' ) start [2025-01-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189237', 'tblTempUsageDetail_20' ) end [2025-01-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189237', 'tblTempVendorCDR_20' ) start [2025-01-06 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189237', 'tblTempVendorCDR_20' ) end [2025-01-06 17:58:20] Production.INFO: ProcessCDR(1,14189237,1,1,2) [2025-01-06 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189237', 'tblTempUsageDetail_20' ) start [2025-01-06 17:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189237', 'tblTempUsageDetail_20' ) end [2025-01-06 17:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:58:24] Production.INFO: ==11860== Releasing lock... [2025-01-06 17:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:58:24] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 14:59:05 [end_date_ymd] => 2025-01-06 17:59:05 [RateCDR] => 1 ) [2025-01-06 17:59: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-01-06 14:59:05' and `end` < '2025-01-06 17:59: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-01-06 17:59:19] Production.INFO: count ==4235 [2025-01-06 17:59:21] Production.ERROR: pbx CDR StartTime 2025-01-06 14:59:05 - End Time 2025-01-06 17:59:05 [2025-01-06 17:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189242', 'tblTempUsageDetail_20' ) start [2025-01-06 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189242', 'tblTempUsageDetail_20' ) end [2025-01-06 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189242', 'tblTempVendorCDR_20' ) start [2025-01-06 17:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189242', 'tblTempVendorCDR_20' ) end [2025-01-06 17:59:21] Production.INFO: ProcessCDR(1,14189242,1,1,2) [2025-01-06 17:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189242', 'tblTempUsageDetail_20' ) start [2025-01-06 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189242', 'tblTempUsageDetail_20' ) end [2025-01-06 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 17:59:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 17:59:26] Production.INFO: ==11945== Releasing lock... [2025-01-06 17:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 17:59:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:00:06 [end_date_ymd] => 2025-01-06 18:00:06 [RateCDR] => 1 ) [2025-01-06 18: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-01-06 15:00:06' and `end` < '2025-01-06 18: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-01-06 18:00:21] Production.INFO: count ==4223 [2025-01-06 18:00:23] Production.ERROR: pbx CDR StartTime 2025-01-06 15:00:06 - End Time 2025-01-06 18:00:06 [2025-01-06 18:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189247', 'tblTempUsageDetail_20' ) start [2025-01-06 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189247', 'tblTempUsageDetail_20' ) end [2025-01-06 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189247', 'tblTempVendorCDR_20' ) start [2025-01-06 18:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189247', 'tblTempVendorCDR_20' ) end [2025-01-06 18:00:23] Production.INFO: ProcessCDR(1,14189247,1,1,2) [2025-01-06 18:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189247', 'tblTempUsageDetail_20' ) start [2025-01-06 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189247', 'tblTempUsageDetail_20' ) end [2025-01-06 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:00:26] Production.INFO: ==12023== Releasing lock... [2025-01-06 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:00:26] Production.INFO: 59.75 MB #Memory Used# [2025-01-06 18:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:01:04 [end_date_ymd] => 2025-01-06 18:01:04 [RateCDR] => 1 ) [2025-01-06 18:01: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-01-06 15:01:04' and `end` < '2025-01-06 18:01: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-01-06 18:01:18] Production.INFO: count ==4166 [2025-01-06 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:01:04 - End Time 2025-01-06 18:01:04 [2025-01-06 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189253', 'tblTempUsageDetail_20' ) start [2025-01-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189253', 'tblTempUsageDetail_20' ) end [2025-01-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189253', 'tblTempVendorCDR_20' ) start [2025-01-06 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189253', 'tblTempVendorCDR_20' ) end [2025-01-06 18:01:19] Production.INFO: ProcessCDR(1,14189253,1,1,2) [2025-01-06 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189253', 'tblTempUsageDetail_20' ) start [2025-01-06 18:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189253', 'tblTempUsageDetail_20' ) end [2025-01-06 18:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:01:24] Production.INFO: ==12115== Releasing lock... [2025-01-06 18:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:01:24] Production.INFO: 59.25 MB #Memory Used# [2025-01-06 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:02:05 [end_date_ymd] => 2025-01-06 18:02:05 [RateCDR] => 1 ) [2025-01-06 18:02: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-01-06 15:02:05' and `end` < '2025-01-06 18:02: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-01-06 18:02:19] Production.INFO: count ==4159 [2025-01-06 18:02:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:02:05 - End Time 2025-01-06 18:02:05 [2025-01-06 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189258', 'tblTempUsageDetail_20' ) start [2025-01-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189258', 'tblTempUsageDetail_20' ) end [2025-01-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189258', 'tblTempVendorCDR_20' ) start [2025-01-06 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189258', 'tblTempVendorCDR_20' ) end [2025-01-06 18:02:20] Production.INFO: ProcessCDR(1,14189258,1,1,2) [2025-01-06 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189258', 'tblTempUsageDetail_20' ) start [2025-01-06 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189258', 'tblTempUsageDetail_20' ) end [2025-01-06 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:02:25] Production.INFO: ==12195== Releasing lock... [2025-01-06 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:02:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-06 18:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:03:04 [end_date_ymd] => 2025-01-06 18:03:04 [RateCDR] => 1 ) [2025-01-06 18:03: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-01-06 15:03:04' and `end` < '2025-01-06 18:03: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-01-06 18:03:18] Production.INFO: count ==4153 [2025-01-06 18:03:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:03:04 - End Time 2025-01-06 18:03:04 [2025-01-06 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189263', 'tblTempUsageDetail_20' ) start [2025-01-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189263', 'tblTempUsageDetail_20' ) end [2025-01-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189263', 'tblTempVendorCDR_20' ) start [2025-01-06 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189263', 'tblTempVendorCDR_20' ) end [2025-01-06 18:03:20] Production.INFO: ProcessCDR(1,14189263,1,1,2) [2025-01-06 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189263', 'tblTempUsageDetail_20' ) start [2025-01-06 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189263', 'tblTempUsageDetail_20' ) end [2025-01-06 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:03:24] Production.INFO: ==12271== Releasing lock... [2025-01-06 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:03:24] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:04:05 [end_date_ymd] => 2025-01-06 18:04:05 [RateCDR] => 1 ) [2025-01-06 18:04: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-01-06 15:04:05' and `end` < '2025-01-06 18:04: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-01-06 18:04:20] Production.INFO: count ==4149 [2025-01-06 18:04:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:04:05 - End Time 2025-01-06 18:04:05 [2025-01-06 18:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189268', 'tblTempUsageDetail_20' ) start [2025-01-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189268', 'tblTempUsageDetail_20' ) end [2025-01-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189268', 'tblTempVendorCDR_20' ) start [2025-01-06 18:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189268', 'tblTempVendorCDR_20' ) end [2025-01-06 18:04:21] Production.INFO: ProcessCDR(1,14189268,1,1,2) [2025-01-06 18:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189268', 'tblTempUsageDetail_20' ) start [2025-01-06 18:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189268', 'tblTempUsageDetail_20' ) end [2025-01-06 18:04:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:04:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:04:25] Production.INFO: ==12354== Releasing lock... [2025-01-06 18:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:04:25] Production.INFO: 59.25 MB #Memory Used# [2025-01-06 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:05:05 [end_date_ymd] => 2025-01-06 18:05:05 [RateCDR] => 1 ) [2025-01-06 18:05: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-01-06 15:05:05' and `end` < '2025-01-06 18:05: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-01-06 18:05:20] Production.INFO: count ==4155 [2025-01-06 18:05:22] Production.ERROR: pbx CDR StartTime 2025-01-06 15:05:05 - End Time 2025-01-06 18:05:05 [2025-01-06 18:05:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189273', 'tblTempUsageDetail_20' ) start [2025-01-06 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189273', 'tblTempUsageDetail_20' ) end [2025-01-06 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189273', 'tblTempVendorCDR_20' ) start [2025-01-06 18:05:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189273', 'tblTempVendorCDR_20' ) end [2025-01-06 18:05:22] Production.INFO: ProcessCDR(1,14189273,1,1,2) [2025-01-06 18:05:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189273', 'tblTempUsageDetail_20' ) start [2025-01-06 18:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189273', 'tblTempUsageDetail_20' ) end [2025-01-06 18:05:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:05:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:05:26] Production.INFO: ==12438== Releasing lock... [2025-01-06 18:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:05:26] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:06:05 [end_date_ymd] => 2025-01-06 18:06:05 [RateCDR] => 1 ) [2025-01-06 18:06: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-01-06 15:06:05' and `end` < '2025-01-06 18:06: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-01-06 18:06:20] Production.INFO: count ==4152 [2025-01-06 18:06:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:06:05 - End Time 2025-01-06 18:06:05 [2025-01-06 18:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189278', 'tblTempUsageDetail_20' ) start [2025-01-06 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189278', 'tblTempUsageDetail_20' ) end [2025-01-06 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189278', 'tblTempVendorCDR_20' ) start [2025-01-06 18:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189278', 'tblTempVendorCDR_20' ) end [2025-01-06 18:06:22] Production.INFO: ProcessCDR(1,14189278,1,1,2) [2025-01-06 18:06:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189278', 'tblTempUsageDetail_20' ) start [2025-01-06 18:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189278', 'tblTempUsageDetail_20' ) end [2025-01-06 18:06:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:06:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:06:26] Production.INFO: ==12550== Releasing lock... [2025-01-06 18:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:06:26] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:07:05 [end_date_ymd] => 2025-01-06 18:07:05 [RateCDR] => 1 ) [2025-01-06 18:07: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-01-06 15:07:05' and `end` < '2025-01-06 18:07: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-01-06 18:07:18] Production.INFO: count ==4152 [2025-01-06 18:07:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:07:05 - End Time 2025-01-06 18:07:05 [2025-01-06 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189283', 'tblTempUsageDetail_20' ) start [2025-01-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189283', 'tblTempUsageDetail_20' ) end [2025-01-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189283', 'tblTempVendorCDR_20' ) start [2025-01-06 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189283', 'tblTempVendorCDR_20' ) end [2025-01-06 18:07:20] Production.INFO: ProcessCDR(1,14189283,1,1,2) [2025-01-06 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189283', 'tblTempUsageDetail_20' ) start [2025-01-06 18:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189283', 'tblTempUsageDetail_20' ) end [2025-01-06 18:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:07:24] Production.INFO: ==12623== Releasing lock... [2025-01-06 18:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:07:24] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:08:05 [end_date_ymd] => 2025-01-06 18:08:05 [RateCDR] => 1 ) [2025-01-06 18:08: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-01-06 15:08:05' and `end` < '2025-01-06 18:08: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-01-06 18:08:18] Production.INFO: count ==4138 [2025-01-06 18:08:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:08:05 - End Time 2025-01-06 18:08:05 [2025-01-06 18:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189288', 'tblTempUsageDetail_20' ) start [2025-01-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189288', 'tblTempUsageDetail_20' ) end [2025-01-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189288', 'tblTempVendorCDR_20' ) start [2025-01-06 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189288', 'tblTempVendorCDR_20' ) end [2025-01-06 18:08:20] Production.INFO: ProcessCDR(1,14189288,1,1,2) [2025-01-06 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189288', 'tblTempUsageDetail_20' ) start [2025-01-06 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189288', 'tblTempUsageDetail_20' ) end [2025-01-06 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:08:24] Production.INFO: ==12694== Releasing lock... [2025-01-06 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:08:24] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:09:05 [end_date_ymd] => 2025-01-06 18:09:05 [RateCDR] => 1 ) [2025-01-06 18:09: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-01-06 15:09:05' and `end` < '2025-01-06 18:09: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-01-06 18:09:18] Production.INFO: count ==4143 [2025-01-06 18:09:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:09:05 - End Time 2025-01-06 18:09:05 [2025-01-06 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189293', 'tblTempUsageDetail_20' ) start [2025-01-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189293', 'tblTempUsageDetail_20' ) end [2025-01-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189293', 'tblTempVendorCDR_20' ) start [2025-01-06 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189293', 'tblTempVendorCDR_20' ) end [2025-01-06 18:09:20] Production.INFO: ProcessCDR(1,14189293,1,1,2) [2025-01-06 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189293', 'tblTempUsageDetail_20' ) start [2025-01-06 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189293', 'tblTempUsageDetail_20' ) end [2025-01-06 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:09:23] Production.INFO: ==12766== Releasing lock... [2025-01-06 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:09:23] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:10:06 [end_date_ymd] => 2025-01-06 18:10:06 [RateCDR] => 1 ) [2025-01-06 18:10: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-01-06 15:10:06' and `end` < '2025-01-06 18:10: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-01-06 18:10:19] Production.INFO: count ==4114 [2025-01-06 18:10:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:10:06 - End Time 2025-01-06 18:10:06 [2025-01-06 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189299', 'tblTempUsageDetail_20' ) start [2025-01-06 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189299', 'tblTempUsageDetail_20' ) end [2025-01-06 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189299', 'tblTempVendorCDR_20' ) start [2025-01-06 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189299', 'tblTempVendorCDR_20' ) end [2025-01-06 18:10:21] Production.INFO: ProcessCDR(1,14189299,1,1,2) [2025-01-06 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189299', 'tblTempUsageDetail_20' ) start [2025-01-06 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189299', 'tblTempUsageDetail_20' ) end [2025-01-06 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:10:26] Production.INFO: ==12839== Releasing lock... [2025-01-06 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:10:26] Production.INFO: 59 MB #Memory Used# [2025-01-06 18:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:11:04 [end_date_ymd] => 2025-01-06 18:11:04 [RateCDR] => 1 ) [2025-01-06 18:11: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-01-06 15:11:04' and `end` < '2025-01-06 18:11: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-01-06 18:11:18] Production.INFO: count ==4077 [2025-01-06 18:11:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:11:04 - End Time 2025-01-06 18:11:04 [2025-01-06 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189304', 'tblTempUsageDetail_20' ) start [2025-01-06 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189304', 'tblTempUsageDetail_20' ) end [2025-01-06 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189304', 'tblTempVendorCDR_20' ) start [2025-01-06 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189304', 'tblTempVendorCDR_20' ) end [2025-01-06 18:11:20] Production.INFO: ProcessCDR(1,14189304,1,1,2) [2025-01-06 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189304', 'tblTempUsageDetail_20' ) start [2025-01-06 18:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189304', 'tblTempUsageDetail_20' ) end [2025-01-06 18:11:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:11:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:11:25] Production.INFO: ==12911== Releasing lock... [2025-01-06 18:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:11:25] Production.INFO: 58.5 MB #Memory Used# [2025-01-06 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:12:05 [end_date_ymd] => 2025-01-06 18:12:05 [RateCDR] => 1 ) [2025-01-06 18:12: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-01-06 15:12:05' and `end` < '2025-01-06 18:12: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-01-06 18:12:19] Production.INFO: count ==4047 [2025-01-06 18:12:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:12:05 - End Time 2025-01-06 18:12:05 [2025-01-06 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189309', 'tblTempUsageDetail_20' ) start [2025-01-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189309', 'tblTempUsageDetail_20' ) end [2025-01-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189309', 'tblTempVendorCDR_20' ) start [2025-01-06 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189309', 'tblTempVendorCDR_20' ) end [2025-01-06 18:12:20] Production.INFO: ProcessCDR(1,14189309,1,1,2) [2025-01-06 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189309', 'tblTempUsageDetail_20' ) start [2025-01-06 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189309', 'tblTempUsageDetail_20' ) end [2025-01-06 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:12:25] Production.INFO: ==12981== Releasing lock... [2025-01-06 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:12:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:13:04 [end_date_ymd] => 2025-01-06 18:13:04 [RateCDR] => 1 ) [2025-01-06 18:13: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-01-06 15:13:04' and `end` < '2025-01-06 18:13: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-01-06 18:13:19] Production.INFO: count ==4037 [2025-01-06 18:13:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:13:04 - End Time 2025-01-06 18:13:04 [2025-01-06 18:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189314', 'tblTempUsageDetail_20' ) start [2025-01-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189314', 'tblTempUsageDetail_20' ) end [2025-01-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189314', 'tblTempVendorCDR_20' ) start [2025-01-06 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189314', 'tblTempVendorCDR_20' ) end [2025-01-06 18:13:20] Production.INFO: ProcessCDR(1,14189314,1,1,2) [2025-01-06 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189314', 'tblTempUsageDetail_20' ) start [2025-01-06 18:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189314', 'tblTempUsageDetail_20' ) end [2025-01-06 18:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:13:25] Production.INFO: ==13051== Releasing lock... [2025-01-06 18:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:13:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:14:05 [end_date_ymd] => 2025-01-06 18:14:05 [RateCDR] => 1 ) [2025-01-06 18:14: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-01-06 15:14:05' and `end` < '2025-01-06 18:14: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-01-06 18:14:19] Production.INFO: count ==4041 [2025-01-06 18:14:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:14:05 - End Time 2025-01-06 18:14:05 [2025-01-06 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189319', 'tblTempUsageDetail_20' ) start [2025-01-06 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189319', 'tblTempUsageDetail_20' ) end [2025-01-06 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189319', 'tblTempVendorCDR_20' ) start [2025-01-06 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189319', 'tblTempVendorCDR_20' ) end [2025-01-06 18:14:21] Production.INFO: ProcessCDR(1,14189319,1,1,2) [2025-01-06 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189319', 'tblTempUsageDetail_20' ) start [2025-01-06 18:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189319', 'tblTempUsageDetail_20' ) end [2025-01-06 18:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:14:24] Production.INFO: ==13126== Releasing lock... [2025-01-06 18:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:14:24] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:15:06 [end_date_ymd] => 2025-01-06 18:15:06 [RateCDR] => 1 ) [2025-01-06 18:15: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-01-06 15:15:06' and `end` < '2025-01-06 18:15: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-01-06 18:15:23] Production.INFO: count ==4050 [2025-01-06 18:15:24] Production.ERROR: pbx CDR StartTime 2025-01-06 15:15:06 - End Time 2025-01-06 18:15:06 [2025-01-06 18:15:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189324', 'tblTempUsageDetail_20' ) start [2025-01-06 18:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189324', 'tblTempUsageDetail_20' ) end [2025-01-06 18:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189324', 'tblTempVendorCDR_20' ) start [2025-01-06 18:15:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189324', 'tblTempVendorCDR_20' ) end [2025-01-06 18:15:24] Production.INFO: ProcessCDR(1,14189324,1,1,2) [2025-01-06 18:15:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:15:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:15:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:15:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189324', 'tblTempUsageDetail_20' ) start [2025-01-06 18:15:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189324', 'tblTempUsageDetail_20' ) end [2025-01-06 18:15:29] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:15:29] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:15:29] Production.INFO: ==13202== Releasing lock... [2025-01-06 18:15:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:15:29] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:16:05 [end_date_ymd] => 2025-01-06 18:16:05 [RateCDR] => 1 ) [2025-01-06 18:16: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-01-06 15:16:05' and `end` < '2025-01-06 18:16: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-01-06 18:16:20] Production.INFO: count ==4039 [2025-01-06 18:16:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:16:05 - End Time 2025-01-06 18:16:05 [2025-01-06 18:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189329', 'tblTempUsageDetail_20' ) start [2025-01-06 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189329', 'tblTempUsageDetail_20' ) end [2025-01-06 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189329', 'tblTempVendorCDR_20' ) start [2025-01-06 18:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189329', 'tblTempVendorCDR_20' ) end [2025-01-06 18:16:22] Production.INFO: ProcessCDR(1,14189329,1,1,2) [2025-01-06 18:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189329', 'tblTempUsageDetail_20' ) start [2025-01-06 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189329', 'tblTempUsageDetail_20' ) end [2025-01-06 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:16:25] Production.INFO: ==13276== Releasing lock... [2025-01-06 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:16:25] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:17:05 [end_date_ymd] => 2025-01-06 18:17:05 [RateCDR] => 1 ) [2025-01-06 18:17: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-01-06 15:17:05' and `end` < '2025-01-06 18:17: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-01-06 18:17:19] Production.INFO: count ==4033 [2025-01-06 18:17:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:17:05 - End Time 2025-01-06 18:17:05 [2025-01-06 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189334', 'tblTempUsageDetail_20' ) start [2025-01-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189334', 'tblTempUsageDetail_20' ) end [2025-01-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189334', 'tblTempVendorCDR_20' ) start [2025-01-06 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189334', 'tblTempVendorCDR_20' ) end [2025-01-06 18:17:20] Production.INFO: ProcessCDR(1,14189334,1,1,2) [2025-01-06 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189334', 'tblTempUsageDetail_20' ) start [2025-01-06 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189334', 'tblTempUsageDetail_20' ) end [2025-01-06 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:17:23] Production.INFO: ==13348== Releasing lock... [2025-01-06 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:17:23] Production.INFO: 58.25 MB #Memory Used# [2025-01-06 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:18:05 [end_date_ymd] => 2025-01-06 18:18:05 [RateCDR] => 1 ) [2025-01-06 18:18: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-01-06 15:18:05' and `end` < '2025-01-06 18:18: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-01-06 18:18:19] Production.INFO: count ==4024 [2025-01-06 18:18:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:18:05 - End Time 2025-01-06 18:18:05 [2025-01-06 18:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189339', 'tblTempUsageDetail_20' ) start [2025-01-06 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189339', 'tblTempUsageDetail_20' ) end [2025-01-06 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189339', 'tblTempVendorCDR_20' ) start [2025-01-06 18:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189339', 'tblTempVendorCDR_20' ) end [2025-01-06 18:18:21] Production.INFO: ProcessCDR(1,14189339,1,1,2) [2025-01-06 18:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189339', 'tblTempUsageDetail_20' ) start [2025-01-06 18:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189339', 'tblTempUsageDetail_20' ) end [2025-01-06 18:18:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:18:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:18:25] Production.INFO: ==13422== Releasing lock... [2025-01-06 18:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:18:25] Production.INFO: 58 MB #Memory Used# [2025-01-06 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:19:05 [end_date_ymd] => 2025-01-06 18:19:05 [RateCDR] => 1 ) [2025-01-06 18:19: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-01-06 15:19:05' and `end` < '2025-01-06 18:19: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-01-06 18:19:22] Production.INFO: count ==3992 [2025-01-06 18:19:23] Production.ERROR: pbx CDR StartTime 2025-01-06 15:19:05 - End Time 2025-01-06 18:19:05 [2025-01-06 18:19:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189344', 'tblTempUsageDetail_20' ) start [2025-01-06 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189344', 'tblTempUsageDetail_20' ) end [2025-01-06 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189344', 'tblTempVendorCDR_20' ) start [2025-01-06 18:19:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189344', 'tblTempVendorCDR_20' ) end [2025-01-06 18:19:23] Production.INFO: ProcessCDR(1,14189344,1,1,2) [2025-01-06 18:19:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189344', 'tblTempUsageDetail_20' ) start [2025-01-06 18:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189344', 'tblTempUsageDetail_20' ) end [2025-01-06 18:19:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:19:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:19:26] Production.INFO: ==13494== Releasing lock... [2025-01-06 18:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:19:26] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 18:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:20:05 [end_date_ymd] => 2025-01-06 18:20:05 [RateCDR] => 1 ) [2025-01-06 18:20: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-01-06 15:20:05' and `end` < '2025-01-06 18:20: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-01-06 18:20:19] Production.INFO: count ==3992 [2025-01-06 18:20:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:20:05 - End Time 2025-01-06 18:20:05 [2025-01-06 18:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189350', 'tblTempUsageDetail_20' ) start [2025-01-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189350', 'tblTempUsageDetail_20' ) end [2025-01-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189350', 'tblTempVendorCDR_20' ) start [2025-01-06 18:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189350', 'tblTempVendorCDR_20' ) end [2025-01-06 18:20:20] Production.INFO: ProcessCDR(1,14189350,1,1,2) [2025-01-06 18:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189350', 'tblTempUsageDetail_20' ) start [2025-01-06 18:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189350', 'tblTempUsageDetail_20' ) end [2025-01-06 18:20:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:20:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:20:25] Production.INFO: ==13566== Releasing lock... [2025-01-06 18:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:20:25] Production.INFO: 57.75 MB #Memory Used# [2025-01-06 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:21:05 [end_date_ymd] => 2025-01-06 18:21:05 [RateCDR] => 1 ) [2025-01-06 18:21: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-01-06 15:21:05' and `end` < '2025-01-06 18:21: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-01-06 18:21:18] Production.INFO: count ==3906 [2025-01-06 18:21:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:21:05 - End Time 2025-01-06 18:21:05 [2025-01-06 18:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189355', 'tblTempUsageDetail_20' ) start [2025-01-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189355', 'tblTempUsageDetail_20' ) end [2025-01-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189355', 'tblTempVendorCDR_20' ) start [2025-01-06 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189355', 'tblTempVendorCDR_20' ) end [2025-01-06 18:21:20] Production.INFO: ProcessCDR(1,14189355,1,1,2) [2025-01-06 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189355', 'tblTempUsageDetail_20' ) start [2025-01-06 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189355', 'tblTempUsageDetail_20' ) end [2025-01-06 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:21:25] Production.INFO: ==13642== Releasing lock... [2025-01-06 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:21:25] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:22:05 [end_date_ymd] => 2025-01-06 18:22:05 [RateCDR] => 1 ) [2025-01-06 18:22: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-01-06 15:22:05' and `end` < '2025-01-06 18:22: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-01-06 18:22:19] Production.INFO: count ==3891 [2025-01-06 18:22:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:22:05 - End Time 2025-01-06 18:22:05 [2025-01-06 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189360', 'tblTempUsageDetail_20' ) start [2025-01-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189360', 'tblTempUsageDetail_20' ) end [2025-01-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189360', 'tblTempVendorCDR_20' ) start [2025-01-06 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189360', 'tblTempVendorCDR_20' ) end [2025-01-06 18:22:20] Production.INFO: ProcessCDR(1,14189360,1,1,2) [2025-01-06 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189360', 'tblTempUsageDetail_20' ) start [2025-01-06 18:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189360', 'tblTempUsageDetail_20' ) end [2025-01-06 18:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:22:24] Production.INFO: ==13754== Releasing lock... [2025-01-06 18:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:22:24] Production.INFO: 57.25 MB #Memory Used# [2025-01-06 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:23:05 [end_date_ymd] => 2025-01-06 18:23:05 [RateCDR] => 1 ) [2025-01-06 18:23: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-01-06 15:23:05' and `end` < '2025-01-06 18:23: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-01-06 18:23:19] Production.INFO: count ==3872 [2025-01-06 18:23:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:23:05 - End Time 2025-01-06 18:23:05 [2025-01-06 18:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189365', 'tblTempUsageDetail_20' ) start [2025-01-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189365', 'tblTempUsageDetail_20' ) end [2025-01-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189365', 'tblTempVendorCDR_20' ) start [2025-01-06 18:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189365', 'tblTempVendorCDR_20' ) end [2025-01-06 18:23:20] Production.INFO: ProcessCDR(1,14189365,1,1,2) [2025-01-06 18:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189365', 'tblTempUsageDetail_20' ) start [2025-01-06 18:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189365', 'tblTempUsageDetail_20' ) end [2025-01-06 18:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:23:23] Production.INFO: ==13826== Releasing lock... [2025-01-06 18:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:23:23] Production.INFO: 57 MB #Memory Used# [2025-01-06 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:24:05 [end_date_ymd] => 2025-01-06 18:24:05 [RateCDR] => 1 ) [2025-01-06 18:24: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-01-06 15:24:05' and `end` < '2025-01-06 18:24: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-01-06 18:24:18] Production.INFO: count ==3861 [2025-01-06 18:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:24:05 - End Time 2025-01-06 18:24:05 [2025-01-06 18:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189370', 'tblTempUsageDetail_20' ) start [2025-01-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189370', 'tblTempUsageDetail_20' ) end [2025-01-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189370', 'tblTempVendorCDR_20' ) start [2025-01-06 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189370', 'tblTempVendorCDR_20' ) end [2025-01-06 18:24:20] Production.INFO: ProcessCDR(1,14189370,1,1,2) [2025-01-06 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189370', 'tblTempUsageDetail_20' ) start [2025-01-06 18:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189370', 'tblTempUsageDetail_20' ) end [2025-01-06 18:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:24:23] Production.INFO: ==13896== Releasing lock... [2025-01-06 18:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:24:23] Production.INFO: 56.75 MB #Memory Used# [2025-01-06 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:25:05 [end_date_ymd] => 2025-01-06 18:25:05 [RateCDR] => 1 ) [2025-01-06 18:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 15:25:05' and `end` < '2025-01-06 18:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 18:25:20] Production.INFO: count ==3849 [2025-01-06 18:25:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:25:05 - End Time 2025-01-06 18:25:05 [2025-01-06 18:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189375', 'tblTempUsageDetail_20' ) start [2025-01-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189375', 'tblTempUsageDetail_20' ) end [2025-01-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189375', 'tblTempVendorCDR_20' ) start [2025-01-06 18:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189375', 'tblTempVendorCDR_20' ) end [2025-01-06 18:25:21] Production.INFO: ProcessCDR(1,14189375,1,1,2) [2025-01-06 18:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189375', 'tblTempUsageDetail_20' ) start [2025-01-06 18:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189375', 'tblTempUsageDetail_20' ) end [2025-01-06 18:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:25:24] Production.INFO: ==13967== Releasing lock... [2025-01-06 18:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:25:24] Production.INFO: 57 MB #Memory Used# [2025-01-06 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:26:05 [end_date_ymd] => 2025-01-06 18:26:05 [RateCDR] => 1 ) [2025-01-06 18:26: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-01-06 15:26:05' and `end` < '2025-01-06 18:26: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-01-06 18:26:18] Production.INFO: count ==3829 [2025-01-06 18:26:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:26:05 - End Time 2025-01-06 18:26:05 [2025-01-06 18:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189380', 'tblTempUsageDetail_20' ) start [2025-01-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189380', 'tblTempUsageDetail_20' ) end [2025-01-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189380', 'tblTempVendorCDR_20' ) start [2025-01-06 18:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189380', 'tblTempVendorCDR_20' ) end [2025-01-06 18:26:20] Production.INFO: ProcessCDR(1,14189380,1,1,2) [2025-01-06 18:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189380', 'tblTempUsageDetail_20' ) start [2025-01-06 18:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189380', 'tblTempUsageDetail_20' ) end [2025-01-06 18:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:26:23] Production.INFO: ==14039== Releasing lock... [2025-01-06 18:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:26:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-06 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:27:05 [end_date_ymd] => 2025-01-06 18:27:05 [RateCDR] => 1 ) [2025-01-06 18:27: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-01-06 15:27:05' and `end` < '2025-01-06 18:27: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-01-06 18:27:20] Production.INFO: count ==3816 [2025-01-06 18:27:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:27:05 - End Time 2025-01-06 18:27:05 [2025-01-06 18:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189385', 'tblTempUsageDetail_20' ) start [2025-01-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189385', 'tblTempUsageDetail_20' ) end [2025-01-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189385', 'tblTempVendorCDR_20' ) start [2025-01-06 18:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189385', 'tblTempVendorCDR_20' ) end [2025-01-06 18:27:21] Production.INFO: ProcessCDR(1,14189385,1,1,2) [2025-01-06 18:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189385', 'tblTempUsageDetail_20' ) start [2025-01-06 18:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189385', 'tblTempUsageDetail_20' ) end [2025-01-06 18:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:27:24] Production.INFO: ==14111== Releasing lock... [2025-01-06 18:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:27:24] Production.INFO: 57 MB #Memory Used# [2025-01-06 18:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:28:04 [end_date_ymd] => 2025-01-06 18:28:04 [RateCDR] => 1 ) [2025-01-06 18:28: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-01-06 15:28:04' and `end` < '2025-01-06 18:28: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-01-06 18:28:18] Production.INFO: count ==3811 [2025-01-06 18:28:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:28:04 - End Time 2025-01-06 18:28:04 [2025-01-06 18:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189390', 'tblTempUsageDetail_20' ) start [2025-01-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189390', 'tblTempUsageDetail_20' ) end [2025-01-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189390', 'tblTempVendorCDR_20' ) start [2025-01-06 18:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189390', 'tblTempVendorCDR_20' ) end [2025-01-06 18:28:20] Production.INFO: ProcessCDR(1,14189390,1,1,2) [2025-01-06 18:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189390', 'tblTempUsageDetail_20' ) start [2025-01-06 18:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189390', 'tblTempUsageDetail_20' ) end [2025-01-06 18:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:28:25] Production.INFO: ==14181== Releasing lock... [2025-01-06 18:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:28:25] Production.INFO: 57 MB #Memory Used# [2025-01-06 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:29:05 [end_date_ymd] => 2025-01-06 18:29:05 [RateCDR] => 1 ) [2025-01-06 18:29: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-01-06 15:29:05' and `end` < '2025-01-06 18:29: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-01-06 18:29:21] Production.INFO: count ==3802 [2025-01-06 18:29:22] Production.ERROR: pbx CDR StartTime 2025-01-06 15:29:05 - End Time 2025-01-06 18:29:05 [2025-01-06 18:29:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:29:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189395', 'tblTempUsageDetail_20' ) start [2025-01-06 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189395', 'tblTempUsageDetail_20' ) end [2025-01-06 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189395', 'tblTempVendorCDR_20' ) start [2025-01-06 18:29:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189395', 'tblTempVendorCDR_20' ) end [2025-01-06 18:29:23] Production.INFO: ProcessCDR(1,14189395,1,1,2) [2025-01-06 18:29:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:29:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:29:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:29:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189395', 'tblTempUsageDetail_20' ) start [2025-01-06 18:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189395', 'tblTempUsageDetail_20' ) end [2025-01-06 18:29:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:29:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:29:27] Production.INFO: ==14259== Releasing lock... [2025-01-06 18:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:29:27] Production.INFO: 56.75 MB #Memory Used# [2025-01-06 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:30:06 [end_date_ymd] => 2025-01-06 18:30:06 [RateCDR] => 1 ) [2025-01-06 18:30: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-01-06 15:30:06' and `end` < '2025-01-06 18:30: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-01-06 18:30:19] Production.INFO: count ==3794 [2025-01-06 18:30:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:30:06 - End Time 2025-01-06 18:30:06 [2025-01-06 18:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189400', 'tblTempUsageDetail_20' ) start [2025-01-06 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189400', 'tblTempUsageDetail_20' ) end [2025-01-06 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189400', 'tblTempVendorCDR_20' ) start [2025-01-06 18:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189400', 'tblTempVendorCDR_20' ) end [2025-01-06 18:30:21] Production.INFO: ProcessCDR(1,14189400,1,1,2) [2025-01-06 18:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189400', 'tblTempUsageDetail_20' ) start [2025-01-06 18:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189400', 'tblTempUsageDetail_20' ) end [2025-01-06 18:30:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:30:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:30:25] Production.INFO: ==14333== Releasing lock... [2025-01-06 18:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:30:25] Production.INFO: 56.75 MB #Memory Used# [2025-01-06 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:31:04 [end_date_ymd] => 2025-01-06 18:31:04 [RateCDR] => 1 ) [2025-01-06 18:31: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-01-06 15:31:04' and `end` < '2025-01-06 18:31: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-01-06 18:31:19] Production.INFO: count ==3709 [2025-01-06 18:31:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:31:04 - End Time 2025-01-06 18:31:04 [2025-01-06 18:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189406', 'tblTempUsageDetail_20' ) start [2025-01-06 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189406', 'tblTempUsageDetail_20' ) end [2025-01-06 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189406', 'tblTempVendorCDR_20' ) start [2025-01-06 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189406', 'tblTempVendorCDR_20' ) end [2025-01-06 18:31:21] Production.INFO: ProcessCDR(1,14189406,1,1,2) [2025-01-06 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189406', 'tblTempUsageDetail_20' ) start [2025-01-06 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189406', 'tblTempUsageDetail_20' ) end [2025-01-06 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:31:24] Production.INFO: ==14405== Releasing lock... [2025-01-06 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:31:24] Production.INFO: 55.75 MB #Memory Used# [2025-01-06 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:32:05 [end_date_ymd] => 2025-01-06 18:32:05 [RateCDR] => 1 ) [2025-01-06 18:32: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-01-06 15:32:05' and `end` < '2025-01-06 18:32: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-01-06 18:32:18] Production.INFO: count ==3685 [2025-01-06 18:32:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:32:05 - End Time 2025-01-06 18:32:05 [2025-01-06 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189411', 'tblTempUsageDetail_20' ) start [2025-01-06 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189411', 'tblTempUsageDetail_20' ) end [2025-01-06 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189411', 'tblTempVendorCDR_20' ) start [2025-01-06 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189411', 'tblTempVendorCDR_20' ) end [2025-01-06 18:32:20] Production.INFO: ProcessCDR(1,14189411,1,1,2) [2025-01-06 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189411', 'tblTempUsageDetail_20' ) start [2025-01-06 18:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189411', 'tblTempUsageDetail_20' ) end [2025-01-06 18:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:32:23] Production.INFO: ==14482== Releasing lock... [2025-01-06 18:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:32:23] Production.INFO: 56.5 MB #Memory Used# [2025-01-06 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:33:05 [end_date_ymd] => 2025-01-06 18:33:05 [RateCDR] => 1 ) [2025-01-06 18:33: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-01-06 15:33:05' and `end` < '2025-01-06 18:33: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-01-06 18:33:18] Production.INFO: count ==3674 [2025-01-06 18:33:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:33:05 - End Time 2025-01-06 18:33:05 [2025-01-06 18:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189416', 'tblTempUsageDetail_20' ) start [2025-01-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189416', 'tblTempUsageDetail_20' ) end [2025-01-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189416', 'tblTempVendorCDR_20' ) start [2025-01-06 18:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189416', 'tblTempVendorCDR_20' ) end [2025-01-06 18:33:20] Production.INFO: ProcessCDR(1,14189416,1,1,2) [2025-01-06 18:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189416', 'tblTempUsageDetail_20' ) start [2025-01-06 18:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189416', 'tblTempUsageDetail_20' ) end [2025-01-06 18:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:33:23] Production.INFO: ==14552== Releasing lock... [2025-01-06 18:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:33:23] Production.INFO: 57 MB #Memory Used# [2025-01-06 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:34:05 [end_date_ymd] => 2025-01-06 18:34:05 [RateCDR] => 1 ) [2025-01-06 18:34: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-01-06 15:34:05' and `end` < '2025-01-06 18:34: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-01-06 18:34:19] Production.INFO: count ==3669 [2025-01-06 18:34:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:34:05 - End Time 2025-01-06 18:34:05 [2025-01-06 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189421', 'tblTempUsageDetail_20' ) start [2025-01-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189421', 'tblTempUsageDetail_20' ) end [2025-01-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189421', 'tblTempVendorCDR_20' ) start [2025-01-06 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189421', 'tblTempVendorCDR_20' ) end [2025-01-06 18:34:20] Production.INFO: ProcessCDR(1,14189421,1,1,2) [2025-01-06 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189421', 'tblTempUsageDetail_20' ) start [2025-01-06 18:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189421', 'tblTempUsageDetail_20' ) end [2025-01-06 18:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:34:23] Production.INFO: ==14625== Releasing lock... [2025-01-06 18:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:34:23] Production.INFO: 56 MB #Memory Used# [2025-01-06 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:35:04 [end_date_ymd] => 2025-01-06 18:35:04 [RateCDR] => 1 ) [2025-01-06 18:35: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-01-06 15:35:04' and `end` < '2025-01-06 18:35: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-01-06 18:35:18] Production.INFO: count ==3663 [2025-01-06 18:35:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:35:04 - End Time 2025-01-06 18:35:04 [2025-01-06 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189426', 'tblTempUsageDetail_20' ) start [2025-01-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189426', 'tblTempUsageDetail_20' ) end [2025-01-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189426', 'tblTempVendorCDR_20' ) start [2025-01-06 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189426', 'tblTempVendorCDR_20' ) end [2025-01-06 18:35:19] Production.INFO: ProcessCDR(1,14189426,1,1,2) [2025-01-06 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189426', 'tblTempUsageDetail_20' ) start [2025-01-06 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189426', 'tblTempUsageDetail_20' ) end [2025-01-06 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:35:22] Production.INFO: ==14698== Releasing lock... [2025-01-06 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:35:22] Production.INFO: 56.25 MB #Memory Used# [2025-01-06 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:36:05 [end_date_ymd] => 2025-01-06 18:36:05 [RateCDR] => 1 ) [2025-01-06 18:36: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-01-06 15:36:05' and `end` < '2025-01-06 18:36: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-01-06 18:36:19] Production.INFO: count ==3648 [2025-01-06 18:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:36:05 - End Time 2025-01-06 18:36:05 [2025-01-06 18:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189431', 'tblTempUsageDetail_20' ) start [2025-01-06 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189431', 'tblTempUsageDetail_20' ) end [2025-01-06 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189431', 'tblTempVendorCDR_20' ) start [2025-01-06 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189431', 'tblTempVendorCDR_20' ) end [2025-01-06 18:36:20] Production.INFO: ProcessCDR(1,14189431,1,1,2) [2025-01-06 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189431', 'tblTempUsageDetail_20' ) start [2025-01-06 18:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189431', 'tblTempUsageDetail_20' ) end [2025-01-06 18:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:36:25] Production.INFO: ==14770== Releasing lock... [2025-01-06 18:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:36:25] Production.INFO: 55.5 MB #Memory Used# [2025-01-06 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:37:04 [end_date_ymd] => 2025-01-06 18:37:04 [RateCDR] => 1 ) [2025-01-06 18:37: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-01-06 15:37:04' and `end` < '2025-01-06 18:37: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-01-06 18:37:18] Production.INFO: count ==3647 [2025-01-06 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:37:04 - End Time 2025-01-06 18:37:04 [2025-01-06 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189436', 'tblTempUsageDetail_20' ) start [2025-01-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189436', 'tblTempUsageDetail_20' ) end [2025-01-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189436', 'tblTempVendorCDR_20' ) start [2025-01-06 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189436', 'tblTempVendorCDR_20' ) end [2025-01-06 18:37:19] Production.INFO: ProcessCDR(1,14189436,1,1,2) [2025-01-06 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189436', 'tblTempUsageDetail_20' ) start [2025-01-06 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189436', 'tblTempUsageDetail_20' ) end [2025-01-06 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:37:24] Production.INFO: ==14879== Releasing lock... [2025-01-06 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:37:24] Production.INFO: 55.5 MB #Memory Used# [2025-01-06 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:38:05 [end_date_ymd] => 2025-01-06 18:38:05 [RateCDR] => 1 ) [2025-01-06 18:38: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-01-06 15:38:05' and `end` < '2025-01-06 18:38: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-01-06 18:38:18] Production.INFO: count ==3639 [2025-01-06 18:38:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:38:05 - End Time 2025-01-06 18:38:05 [2025-01-06 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189441', 'tblTempUsageDetail_20' ) start [2025-01-06 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189441', 'tblTempUsageDetail_20' ) end [2025-01-06 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189441', 'tblTempVendorCDR_20' ) start [2025-01-06 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189441', 'tblTempVendorCDR_20' ) end [2025-01-06 18:38:19] Production.INFO: ProcessCDR(1,14189441,1,1,2) [2025-01-06 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189441', 'tblTempUsageDetail_20' ) start [2025-01-06 18:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189441', 'tblTempUsageDetail_20' ) end [2025-01-06 18:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:38:23] Production.INFO: ==14950== Releasing lock... [2025-01-06 18:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:38:23] Production.INFO: 55.5 MB #Memory Used# [2025-01-06 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:39:05 [end_date_ymd] => 2025-01-06 18:39:05 [RateCDR] => 1 ) [2025-01-06 18:39: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-01-06 15:39:05' and `end` < '2025-01-06 18:39: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-01-06 18:39:21] Production.INFO: count ==3643 [2025-01-06 18:39:22] Production.ERROR: pbx CDR StartTime 2025-01-06 15:39:05 - End Time 2025-01-06 18:39:05 [2025-01-06 18:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189446', 'tblTempUsageDetail_20' ) start [2025-01-06 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189446', 'tblTempUsageDetail_20' ) end [2025-01-06 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189446', 'tblTempVendorCDR_20' ) start [2025-01-06 18:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189446', 'tblTempVendorCDR_20' ) end [2025-01-06 18:39:22] Production.INFO: ProcessCDR(1,14189446,1,1,2) [2025-01-06 18:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189446', 'tblTempUsageDetail_20' ) start [2025-01-06 18:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189446', 'tblTempUsageDetail_20' ) end [2025-01-06 18:39:27] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:39:27] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:39:27] Production.INFO: ==15021== Releasing lock... [2025-01-06 18:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:39:27] Production.INFO: 55.25 MB #Memory Used# [2025-01-06 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:40:05 [end_date_ymd] => 2025-01-06 18:40:05 [RateCDR] => 1 ) [2025-01-06 18:40: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-01-06 15:40:05' and `end` < '2025-01-06 18:40: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-01-06 18:40:19] Production.INFO: count ==3624 [2025-01-06 18:40:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:40:05 - End Time 2025-01-06 18:40:05 [2025-01-06 18:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189452', 'tblTempUsageDetail_20' ) start [2025-01-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189452', 'tblTempUsageDetail_20' ) end [2025-01-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189452', 'tblTempVendorCDR_20' ) start [2025-01-06 18:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189452', 'tblTempVendorCDR_20' ) end [2025-01-06 18:40:20] Production.INFO: ProcessCDR(1,14189452,1,1,2) [2025-01-06 18:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189452', 'tblTempUsageDetail_20' ) start [2025-01-06 18:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189452', 'tblTempUsageDetail_20' ) end [2025-01-06 18:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:40:23] Production.INFO: ==15093== Releasing lock... [2025-01-06 18:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:40:23] Production.INFO: 55.25 MB #Memory Used# [2025-01-06 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:41:05 [end_date_ymd] => 2025-01-06 18:41:05 [RateCDR] => 1 ) [2025-01-06 18:41: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-01-06 15:41:05' and `end` < '2025-01-06 18:41: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-01-06 18:41:19] Production.INFO: count ==3541 [2025-01-06 18:41:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:41:05 - End Time 2025-01-06 18:41:05 [2025-01-06 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189457', 'tblTempUsageDetail_20' ) start [2025-01-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189457', 'tblTempUsageDetail_20' ) end [2025-01-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189457', 'tblTempVendorCDR_20' ) start [2025-01-06 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189457', 'tblTempVendorCDR_20' ) end [2025-01-06 18:41:20] Production.INFO: ProcessCDR(1,14189457,1,1,2) [2025-01-06 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189457', 'tblTempUsageDetail_20' ) start [2025-01-06 18:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189457', 'tblTempUsageDetail_20' ) end [2025-01-06 18:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:41:23] Production.INFO: ==15169== Releasing lock... [2025-01-06 18:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:41:23] Production.INFO: 54.75 MB #Memory Used# [2025-01-06 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:42:05 [end_date_ymd] => 2025-01-06 18:42:05 [RateCDR] => 1 ) [2025-01-06 18:42: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-01-06 15:42:05' and `end` < '2025-01-06 18:42: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-01-06 18:42:18] Production.INFO: count ==3507 [2025-01-06 18:42:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:42:05 - End Time 2025-01-06 18:42:05 [2025-01-06 18:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189462', 'tblTempUsageDetail_20' ) start [2025-01-06 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189462', 'tblTempUsageDetail_20' ) end [2025-01-06 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189462', 'tblTempVendorCDR_20' ) start [2025-01-06 18:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189462', 'tblTempVendorCDR_20' ) end [2025-01-06 18:42:20] Production.INFO: ProcessCDR(1,14189462,1,1,2) [2025-01-06 18:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189462', 'tblTempUsageDetail_20' ) start [2025-01-06 18:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189462', 'tblTempUsageDetail_20' ) end [2025-01-06 18:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:42:24] Production.INFO: ==15241== Releasing lock... [2025-01-06 18:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:42:24] Production.INFO: 54.5 MB #Memory Used# [2025-01-06 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:43:05 [end_date_ymd] => 2025-01-06 18:43:05 [RateCDR] => 1 ) [2025-01-06 18:43: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-01-06 15:43:05' and `end` < '2025-01-06 18:43: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-01-06 18:43:19] Production.INFO: count ==3499 [2025-01-06 18:43:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:43:05 - End Time 2025-01-06 18:43:05 [2025-01-06 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189467', 'tblTempUsageDetail_20' ) start [2025-01-06 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189467', 'tblTempUsageDetail_20' ) end [2025-01-06 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189467', 'tblTempVendorCDR_20' ) start [2025-01-06 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189467', 'tblTempVendorCDR_20' ) end [2025-01-06 18:43:20] Production.INFO: ProcessCDR(1,14189467,1,1,2) [2025-01-06 18:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189467', 'tblTempUsageDetail_20' ) start [2025-01-06 18:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189467', 'tblTempUsageDetail_20' ) end [2025-01-06 18:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:43:24] Production.INFO: ==15314== Releasing lock... [2025-01-06 18:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:43:24] Production.INFO: 55 MB #Memory Used# [2025-01-06 18:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:44:04 [end_date_ymd] => 2025-01-06 18:44:04 [RateCDR] => 1 ) [2025-01-06 18:44: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-01-06 15:44:04' and `end` < '2025-01-06 18:44: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-01-06 18:44:20] Production.INFO: count ==3487 [2025-01-06 18:44:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:44:04 - End Time 2025-01-06 18:44:04 [2025-01-06 18:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189472', 'tblTempUsageDetail_20' ) start [2025-01-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189472', 'tblTempUsageDetail_20' ) end [2025-01-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189472', 'tblTempVendorCDR_20' ) start [2025-01-06 18:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189472', 'tblTempVendorCDR_20' ) end [2025-01-06 18:44:21] Production.INFO: ProcessCDR(1,14189472,1,1,2) [2025-01-06 18:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189472', 'tblTempUsageDetail_20' ) start [2025-01-06 18:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189472', 'tblTempUsageDetail_20' ) end [2025-01-06 18:44:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:44:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:44:26] Production.INFO: ==15386== Releasing lock... [2025-01-06 18:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:44:26] Production.INFO: 54.5 MB #Memory Used# [2025-01-06 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:45:05 [end_date_ymd] => 2025-01-06 18:45:05 [RateCDR] => 1 ) [2025-01-06 18:45: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-01-06 15:45:05' and `end` < '2025-01-06 18:45: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-01-06 18:45:18] Production.INFO: count ==3477 [2025-01-06 18:45:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:45:05 - End Time 2025-01-06 18:45:05 [2025-01-06 18:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189477', 'tblTempUsageDetail_20' ) start [2025-01-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189477', 'tblTempUsageDetail_20' ) end [2025-01-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189477', 'tblTempVendorCDR_20' ) start [2025-01-06 18:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189477', 'tblTempVendorCDR_20' ) end [2025-01-06 18:45:20] Production.INFO: ProcessCDR(1,14189477,1,1,2) [2025-01-06 18:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189477', 'tblTempUsageDetail_20' ) start [2025-01-06 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189477', 'tblTempUsageDetail_20' ) end [2025-01-06 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:45:23] Production.INFO: ==15455== Releasing lock... [2025-01-06 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:45:23] Production.INFO: 54.25 MB #Memory Used# [2025-01-06 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:46:05 [end_date_ymd] => 2025-01-06 18:46:05 [RateCDR] => 1 ) [2025-01-06 18:46: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-01-06 15:46:05' and `end` < '2025-01-06 18:46: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-01-06 18:46:18] Production.INFO: count ==3462 [2025-01-06 18:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:46:05 - End Time 2025-01-06 18:46:05 [2025-01-06 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189482', 'tblTempUsageDetail_20' ) start [2025-01-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189482', 'tblTempUsageDetail_20' ) end [2025-01-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189482', 'tblTempVendorCDR_20' ) start [2025-01-06 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189482', 'tblTempVendorCDR_20' ) end [2025-01-06 18:46:19] Production.INFO: ProcessCDR(1,14189482,1,1,2) [2025-01-06 18:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189482', 'tblTempUsageDetail_20' ) start [2025-01-06 18:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189482', 'tblTempUsageDetail_20' ) end [2025-01-06 18:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:46:23] Production.INFO: ==15533== Releasing lock... [2025-01-06 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:46:23] Production.INFO: 54.5 MB #Memory Used# [2025-01-06 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:47:05 [end_date_ymd] => 2025-01-06 18:47:05 [RateCDR] => 1 ) [2025-01-06 18:47: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-01-06 15:47:05' and `end` < '2025-01-06 18:47: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-01-06 18:47:19] Production.INFO: count ==3456 [2025-01-06 18:47:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:47:05 - End Time 2025-01-06 18:47:05 [2025-01-06 18:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189487', 'tblTempUsageDetail_20' ) start [2025-01-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189487', 'tblTempUsageDetail_20' ) end [2025-01-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189487', 'tblTempVendorCDR_20' ) start [2025-01-06 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189487', 'tblTempVendorCDR_20' ) end [2025-01-06 18:47:20] Production.INFO: ProcessCDR(1,14189487,1,1,2) [2025-01-06 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189487', 'tblTempUsageDetail_20' ) start [2025-01-06 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189487', 'tblTempUsageDetail_20' ) end [2025-01-06 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:47:23] Production.INFO: ==15607== Releasing lock... [2025-01-06 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:47:23] Production.INFO: 54 MB #Memory Used# [2025-01-06 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:48:05 [end_date_ymd] => 2025-01-06 18:48:05 [RateCDR] => 1 ) [2025-01-06 18:48: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-01-06 15:48:05' and `end` < '2025-01-06 18:48: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-01-06 18:48:20] Production.INFO: count ==3442 [2025-01-06 18:48:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:48:05 - End Time 2025-01-06 18:48:05 [2025-01-06 18:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189492', 'tblTempUsageDetail_20' ) start [2025-01-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189492', 'tblTempUsageDetail_20' ) end [2025-01-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189492', 'tblTempVendorCDR_20' ) start [2025-01-06 18:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189492', 'tblTempVendorCDR_20' ) end [2025-01-06 18:48:21] Production.INFO: ProcessCDR(1,14189492,1,1,2) [2025-01-06 18:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189492', 'tblTempUsageDetail_20' ) start [2025-01-06 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189492', 'tblTempUsageDetail_20' ) end [2025-01-06 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:48:24] Production.INFO: ==15681== Releasing lock... [2025-01-06 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:48:24] Production.INFO: 53.75 MB #Memory Used# [2025-01-06 18:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:49:04 [end_date_ymd] => 2025-01-06 18:49:04 [RateCDR] => 1 ) [2025-01-06 18:49: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-01-06 15:49:04' and `end` < '2025-01-06 18:49: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-01-06 18:49:17] Production.INFO: count ==3430 [2025-01-06 18:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 15:49:04 - End Time 2025-01-06 18:49:04 [2025-01-06 18:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189497', 'tblTempUsageDetail_20' ) start [2025-01-06 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189497', 'tblTempUsageDetail_20' ) end [2025-01-06 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189497', 'tblTempVendorCDR_20' ) start [2025-01-06 18:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189497', 'tblTempVendorCDR_20' ) end [2025-01-06 18:49:18] Production.INFO: ProcessCDR(1,14189497,1,1,2) [2025-01-06 18:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189497', 'tblTempUsageDetail_20' ) start [2025-01-06 18:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189497', 'tblTempUsageDetail_20' ) end [2025-01-06 18:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:49:21] Production.INFO: ==15759== Releasing lock... [2025-01-06 18:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:49:21] Production.INFO: 54.5 MB #Memory Used# [2025-01-06 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:50:06 [end_date_ymd] => 2025-01-06 18:50:06 [RateCDR] => 1 ) [2025-01-06 18:50: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-01-06 15:50:06' and `end` < '2025-01-06 18:50: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-01-06 18:50:19] Production.INFO: count ==3415 [2025-01-06 18:50:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:50:06 - End Time 2025-01-06 18:50:06 [2025-01-06 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189503', 'tblTempUsageDetail_20' ) start [2025-01-06 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189503', 'tblTempUsageDetail_20' ) end [2025-01-06 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189503', 'tblTempVendorCDR_20' ) start [2025-01-06 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189503', 'tblTempVendorCDR_20' ) end [2025-01-06 18:50:20] Production.INFO: ProcessCDR(1,14189503,1,1,2) [2025-01-06 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189503', 'tblTempUsageDetail_20' ) start [2025-01-06 18:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189503', 'tblTempUsageDetail_20' ) end [2025-01-06 18:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:50:23] Production.INFO: ==15840== Releasing lock... [2025-01-06 18:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:50:23] Production.INFO: 54 MB #Memory Used# [2025-01-06 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:51:05 [end_date_ymd] => 2025-01-06 18:51:05 [RateCDR] => 1 ) [2025-01-06 18:51: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-01-06 15:51:05' and `end` < '2025-01-06 18:51: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-01-06 18:51:21] Production.INFO: count ==3321 [2025-01-06 18:51:22] Production.ERROR: pbx CDR StartTime 2025-01-06 15:51:05 - End Time 2025-01-06 18:51:05 [2025-01-06 18:51:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189508', 'tblTempUsageDetail_20' ) start [2025-01-06 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189508', 'tblTempUsageDetail_20' ) end [2025-01-06 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189508', 'tblTempVendorCDR_20' ) start [2025-01-06 18:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189508', 'tblTempVendorCDR_20' ) end [2025-01-06 18:51:22] Production.INFO: ProcessCDR(1,14189508,1,1,2) [2025-01-06 18:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189508', 'tblTempUsageDetail_20' ) start [2025-01-06 18:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189508', 'tblTempUsageDetail_20' ) end [2025-01-06 18:51:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:51:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:51:25] Production.INFO: ==15927== Releasing lock... [2025-01-06 18:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:51:25] Production.INFO: 53.25 MB #Memory Used# [2025-01-06 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:52:05 [end_date_ymd] => 2025-01-06 18:52:05 [RateCDR] => 1 ) [2025-01-06 18:52: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-01-06 15:52:05' and `end` < '2025-01-06 18:52: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-01-06 18:52:18] Production.INFO: count ==3314 [2025-01-06 18:52:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:52:05 - End Time 2025-01-06 18:52:05 [2025-01-06 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189513', 'tblTempUsageDetail_20' ) start [2025-01-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189513', 'tblTempUsageDetail_20' ) end [2025-01-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189513', 'tblTempVendorCDR_20' ) start [2025-01-06 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189513', 'tblTempVendorCDR_20' ) end [2025-01-06 18:52:19] Production.INFO: ProcessCDR(1,14189513,1,1,2) [2025-01-06 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189513', 'tblTempUsageDetail_20' ) start [2025-01-06 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189513', 'tblTempUsageDetail_20' ) end [2025-01-06 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:52:22] Production.INFO: ==16006== Releasing lock... [2025-01-06 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:52:22] Production.INFO: 54.25 MB #Memory Used# [2025-01-06 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:53:05 [end_date_ymd] => 2025-01-06 18:53:05 [RateCDR] => 1 ) [2025-01-06 18:53: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-01-06 15:53:05' and `end` < '2025-01-06 18:53: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-01-06 18:53:19] Production.INFO: count ==3294 [2025-01-06 18:53:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:53:05 - End Time 2025-01-06 18:53:05 [2025-01-06 18:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189518', 'tblTempUsageDetail_20' ) start [2025-01-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189518', 'tblTempUsageDetail_20' ) end [2025-01-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189518', 'tblTempVendorCDR_20' ) start [2025-01-06 18:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189518', 'tblTempVendorCDR_20' ) end [2025-01-06 18:53:20] Production.INFO: ProcessCDR(1,14189518,1,1,2) [2025-01-06 18:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189518', 'tblTempUsageDetail_20' ) start [2025-01-06 18:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189518', 'tblTempUsageDetail_20' ) end [2025-01-06 18:53:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:53:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:53:24] Production.INFO: ==16129== Releasing lock... [2025-01-06 18:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:53:24] Production.INFO: 52.5 MB #Memory Used# [2025-01-06 18:54:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:54:04 [end_date_ymd] => 2025-01-06 18:54:04 [RateCDR] => 1 ) [2025-01-06 18:54: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-01-06 15:54:04' and `end` < '2025-01-06 18:54: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-01-06 18:54:18] Production.INFO: count ==3292 [2025-01-06 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:54:04 - End Time 2025-01-06 18:54:04 [2025-01-06 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189523', 'tblTempUsageDetail_20' ) start [2025-01-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189523', 'tblTempUsageDetail_20' ) end [2025-01-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189523', 'tblTempVendorCDR_20' ) start [2025-01-06 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189523', 'tblTempVendorCDR_20' ) end [2025-01-06 18:54:19] Production.INFO: ProcessCDR(1,14189523,1,1,2) [2025-01-06 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189523', 'tblTempUsageDetail_20' ) start [2025-01-06 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189523', 'tblTempUsageDetail_20' ) end [2025-01-06 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:54:22] Production.INFO: ==16215== Releasing lock... [2025-01-06 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:54:22] Production.INFO: 52.5 MB #Memory Used# [2025-01-06 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:55:05 [end_date_ymd] => 2025-01-06 18:55:05 [RateCDR] => 1 ) [2025-01-06 18:55: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-01-06 15:55:05' and `end` < '2025-01-06 18:55: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-01-06 18:55:18] Production.INFO: count ==3278 [2025-01-06 18:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:55:05 - End Time 2025-01-06 18:55:05 [2025-01-06 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189528', 'tblTempUsageDetail_20' ) start [2025-01-06 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189528', 'tblTempUsageDetail_20' ) end [2025-01-06 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189528', 'tblTempVendorCDR_20' ) start [2025-01-06 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189528', 'tblTempVendorCDR_20' ) end [2025-01-06 18:55:19] Production.INFO: ProcessCDR(1,14189528,1,1,2) [2025-01-06 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189528', 'tblTempUsageDetail_20' ) start [2025-01-06 18:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189528', 'tblTempUsageDetail_20' ) end [2025-01-06 18:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:55:23] Production.INFO: ==16297== Releasing lock... [2025-01-06 18:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:55:23] Production.INFO: 52.5 MB #Memory Used# [2025-01-06 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:56:05 [end_date_ymd] => 2025-01-06 18:56:05 [RateCDR] => 1 ) [2025-01-06 18:56: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-01-06 15:56:05' and `end` < '2025-01-06 18:56: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-01-06 18:56:18] Production.INFO: count ==3271 [2025-01-06 18:56:20] Production.ERROR: pbx CDR StartTime 2025-01-06 15:56:05 - End Time 2025-01-06 18:56:05 [2025-01-06 18:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189533', 'tblTempUsageDetail_20' ) start [2025-01-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189533', 'tblTempUsageDetail_20' ) end [2025-01-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189533', 'tblTempVendorCDR_20' ) start [2025-01-06 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189533', 'tblTempVendorCDR_20' ) end [2025-01-06 18:56:20] Production.INFO: ProcessCDR(1,14189533,1,1,2) [2025-01-06 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189533', 'tblTempUsageDetail_20' ) start [2025-01-06 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189533', 'tblTempUsageDetail_20' ) end [2025-01-06 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:56:23] Production.INFO: ==16381== Releasing lock... [2025-01-06 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:56:23] Production.INFO: 52.75 MB #Memory Used# [2025-01-06 18:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:57:04 [end_date_ymd] => 2025-01-06 18:57:04 [RateCDR] => 1 ) [2025-01-06 18:57: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-01-06 15:57:04' and `end` < '2025-01-06 18:57: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-01-06 18:57:18] Production.INFO: count ==3255 [2025-01-06 18:57:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:57:04 - End Time 2025-01-06 18:57:04 [2025-01-06 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189538', 'tblTempUsageDetail_20' ) start [2025-01-06 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189538', 'tblTempUsageDetail_20' ) end [2025-01-06 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189538', 'tblTempVendorCDR_20' ) start [2025-01-06 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189538', 'tblTempVendorCDR_20' ) end [2025-01-06 18:57:19] Production.INFO: ProcessCDR(1,14189538,1,1,2) [2025-01-06 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189538', 'tblTempUsageDetail_20' ) start [2025-01-06 18:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189538', 'tblTempUsageDetail_20' ) end [2025-01-06 18:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:57:22] Production.INFO: ==16464== Releasing lock... [2025-01-06 18:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:57:22] Production.INFO: 52.25 MB #Memory Used# [2025-01-06 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:58:06 [end_date_ymd] => 2025-01-06 18:58:06 [RateCDR] => 1 ) [2025-01-06 18:58: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-01-06 15:58:06' and `end` < '2025-01-06 18:58: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-01-06 18:58:20] Production.INFO: count ==3247 [2025-01-06 18:58:21] Production.ERROR: pbx CDR StartTime 2025-01-06 15:58:06 - End Time 2025-01-06 18:58:06 [2025-01-06 18:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189543', 'tblTempUsageDetail_20' ) start [2025-01-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189543', 'tblTempUsageDetail_20' ) end [2025-01-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189543', 'tblTempVendorCDR_20' ) start [2025-01-06 18:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189543', 'tblTempVendorCDR_20' ) end [2025-01-06 18:58:21] Production.INFO: ProcessCDR(1,14189543,1,1,2) [2025-01-06 18:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189543', 'tblTempUsageDetail_20' ) start [2025-01-06 18:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189543', 'tblTempUsageDetail_20' ) end [2025-01-06 18:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:58:25] Production.INFO: ==16546== Releasing lock... [2025-01-06 18:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:58:25] Production.INFO: 52.25 MB #Memory Used# [2025-01-06 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 15:59:05 [end_date_ymd] => 2025-01-06 18:59:05 [RateCDR] => 1 ) [2025-01-06 18:59: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-01-06 15:59:05' and `end` < '2025-01-06 18:59: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-01-06 18:59:18] Production.INFO: count ==3229 [2025-01-06 18:59:19] Production.ERROR: pbx CDR StartTime 2025-01-06 15:59:05 - End Time 2025-01-06 18:59:05 [2025-01-06 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189548', 'tblTempUsageDetail_20' ) start [2025-01-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189548', 'tblTempUsageDetail_20' ) end [2025-01-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189548', 'tblTempVendorCDR_20' ) start [2025-01-06 18:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189548', 'tblTempVendorCDR_20' ) end [2025-01-06 18:59:20] Production.INFO: ProcessCDR(1,14189548,1,1,2) [2025-01-06 18:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189548', 'tblTempUsageDetail_20' ) start [2025-01-06 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189548', 'tblTempUsageDetail_20' ) end [2025-01-06 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 18:59:23] Production.INFO: ==16629== Releasing lock... [2025-01-06 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 18:59:23] Production.INFO: 52 MB #Memory Used# [2025-01-06 19:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:00:05 [end_date_ymd] => 2025-01-06 19:00:05 [RateCDR] => 1 ) [2025-01-06 19: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-01-06 16:00:05' and `end` < '2025-01-06 19: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-01-06 19:00:19] Production.INFO: count ==3221 [2025-01-06 19:00:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:00:05 - End Time 2025-01-06 19:00:05 [2025-01-06 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189554', 'tblTempUsageDetail_20' ) start [2025-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189554', 'tblTempUsageDetail_20' ) end [2025-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189554', 'tblTempVendorCDR_20' ) start [2025-01-06 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189554', 'tblTempVendorCDR_20' ) end [2025-01-06 19:00:20] Production.INFO: ProcessCDR(1,14189554,1,1,2) [2025-01-06 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189554', 'tblTempUsageDetail_20' ) start [2025-01-06 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189554', 'tblTempUsageDetail_20' ) end [2025-01-06 19:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:00:23] Production.INFO: ==16716== Releasing lock... [2025-01-06 19:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:00:23] Production.INFO: 52 MB #Memory Used# [2025-01-06 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:01:05 [end_date_ymd] => 2025-01-06 19:01:05 [RateCDR] => 1 ) [2025-01-06 19:01: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-01-06 16:01:05' and `end` < '2025-01-06 19:01: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-01-06 19:01:18] Production.INFO: count ==3143 [2025-01-06 19:01:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:01:05 - End Time 2025-01-06 19:01:05 [2025-01-06 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189559', 'tblTempUsageDetail_20' ) start [2025-01-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189559', 'tblTempUsageDetail_20' ) end [2025-01-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189559', 'tblTempVendorCDR_20' ) start [2025-01-06 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189559', 'tblTempVendorCDR_20' ) end [2025-01-06 19:01:19] Production.INFO: ProcessCDR(1,14189559,1,1,2) [2025-01-06 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189559', 'tblTempUsageDetail_20' ) start [2025-01-06 19:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189559', 'tblTempUsageDetail_20' ) end [2025-01-06 19:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:01:23] Production.INFO: ==16893== Releasing lock... [2025-01-06 19:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:01:23] Production.INFO: 52 MB #Memory Used# [2025-01-06 19:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:02:04 [end_date_ymd] => 2025-01-06 19:02:04 [RateCDR] => 1 ) [2025-01-06 19:02: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-01-06 16:02:04' and `end` < '2025-01-06 19:02: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-01-06 19:02:18] Production.INFO: count ==3105 [2025-01-06 19:02:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:02:04 - End Time 2025-01-06 19:02:04 [2025-01-06 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189564', 'tblTempUsageDetail_20' ) start [2025-01-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189564', 'tblTempUsageDetail_20' ) end [2025-01-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189564', 'tblTempVendorCDR_20' ) start [2025-01-06 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189564', 'tblTempVendorCDR_20' ) end [2025-01-06 19:02:19] Production.INFO: ProcessCDR(1,14189564,1,1,2) [2025-01-06 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189564', 'tblTempUsageDetail_20' ) start [2025-01-06 19:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189564', 'tblTempUsageDetail_20' ) end [2025-01-06 19:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:02:22] Production.INFO: ==16976== Releasing lock... [2025-01-06 19:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:02:22] Production.INFO: 51.5 MB #Memory Used# [2025-01-06 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:03:05 [end_date_ymd] => 2025-01-06 19:03:05 [RateCDR] => 1 ) [2025-01-06 19:03: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-01-06 16:03:05' and `end` < '2025-01-06 19:03: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-01-06 19:03:19] Production.INFO: count ==3086 [2025-01-06 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:03:05 - End Time 2025-01-06 19:03:05 [2025-01-06 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189569', 'tblTempUsageDetail_20' ) start [2025-01-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189569', 'tblTempUsageDetail_20' ) end [2025-01-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189569', 'tblTempVendorCDR_20' ) start [2025-01-06 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189569', 'tblTempVendorCDR_20' ) end [2025-01-06 19:03:20] Production.INFO: ProcessCDR(1,14189569,1,1,2) [2025-01-06 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189569', 'tblTempUsageDetail_20' ) start [2025-01-06 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189569', 'tblTempUsageDetail_20' ) end [2025-01-06 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:03:23] Production.INFO: ==17058== Releasing lock... [2025-01-06 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:03:23] Production.INFO: 51.25 MB #Memory Used# [2025-01-06 19:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:04:06 [end_date_ymd] => 2025-01-06 19:04:06 [RateCDR] => 1 ) [2025-01-06 19:04: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-01-06 16:04:06' and `end` < '2025-01-06 19:04: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-01-06 19:04:19] Production.INFO: count ==3049 [2025-01-06 19:04:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:04:06 - End Time 2025-01-06 19:04:06 [2025-01-06 19:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189574', 'tblTempUsageDetail_20' ) start [2025-01-06 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189574', 'tblTempUsageDetail_20' ) end [2025-01-06 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189574', 'tblTempVendorCDR_20' ) start [2025-01-06 19:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189574', 'tblTempVendorCDR_20' ) end [2025-01-06 19:04:20] Production.INFO: ProcessCDR(1,14189574,1,1,2) [2025-01-06 19:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189574', 'tblTempUsageDetail_20' ) start [2025-01-06 19:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189574', 'tblTempUsageDetail_20' ) end [2025-01-06 19:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:04:23] Production.INFO: ==17138== Releasing lock... [2025-01-06 19:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:04:23] Production.INFO: 50.75 MB #Memory Used# [2025-01-06 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:05:05 [end_date_ymd] => 2025-01-06 19:05:05 [RateCDR] => 1 ) [2025-01-06 19:05: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-01-06 16:05:05' and `end` < '2025-01-06 19:05: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-01-06 19:05:18] Production.INFO: count ==3028 [2025-01-06 19:05:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:05:05 - End Time 2025-01-06 19:05:05 [2025-01-06 19:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189579', 'tblTempUsageDetail_20' ) start [2025-01-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189579', 'tblTempUsageDetail_20' ) end [2025-01-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189579', 'tblTempVendorCDR_20' ) start [2025-01-06 19:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189579', 'tblTempVendorCDR_20' ) end [2025-01-06 19:05:19] Production.INFO: ProcessCDR(1,14189579,1,1,2) [2025-01-06 19:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189579', 'tblTempUsageDetail_20' ) start [2025-01-06 19:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189579', 'tblTempUsageDetail_20' ) end [2025-01-06 19:05:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:05:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:05:24] Production.INFO: ==17300== Releasing lock... [2025-01-06 19:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:05:24] Production.INFO: 51.5 MB #Memory Used# [2025-01-06 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:06:05 [end_date_ymd] => 2025-01-06 19:06:05 [RateCDR] => 1 ) [2025-01-06 19:06: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-01-06 16:06:05' and `end` < '2025-01-06 19:06: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-01-06 19:06:18] Production.INFO: count ==3030 [2025-01-06 19:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:06:05 - End Time 2025-01-06 19:06:05 [2025-01-06 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189584', 'tblTempUsageDetail_20' ) start [2025-01-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189584', 'tblTempUsageDetail_20' ) end [2025-01-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189584', 'tblTempVendorCDR_20' ) start [2025-01-06 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189584', 'tblTempVendorCDR_20' ) end [2025-01-06 19:06:20] Production.INFO: ProcessCDR(1,14189584,1,1,2) [2025-01-06 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189584', 'tblTempUsageDetail_20' ) start [2025-01-06 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189584', 'tblTempUsageDetail_20' ) end [2025-01-06 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:06:23] Production.INFO: ==17384== Releasing lock... [2025-01-06 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:06:23] Production.INFO: 50.5 MB #Memory Used# [2025-01-06 19:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:07:04 [end_date_ymd] => 2025-01-06 19:07:04 [RateCDR] => 1 ) [2025-01-06 19:07: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-01-06 16:07:04' and `end` < '2025-01-06 19:07: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-01-06 19:07:18] Production.INFO: count ==3007 [2025-01-06 19:07:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:07:04 - End Time 2025-01-06 19:07:04 [2025-01-06 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189589', 'tblTempUsageDetail_20' ) start [2025-01-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189589', 'tblTempUsageDetail_20' ) end [2025-01-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189589', 'tblTempVendorCDR_20' ) start [2025-01-06 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189589', 'tblTempVendorCDR_20' ) end [2025-01-06 19:07:19] Production.INFO: ProcessCDR(1,14189589,1,1,2) [2025-01-06 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189589', 'tblTempUsageDetail_20' ) start [2025-01-06 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189589', 'tblTempUsageDetail_20' ) end [2025-01-06 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:07:23] Production.INFO: ==17469== Releasing lock... [2025-01-06 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:07:23] Production.INFO: 51.5 MB #Memory Used# [2025-01-06 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:08:05 [end_date_ymd] => 2025-01-06 19:08:05 [RateCDR] => 1 ) [2025-01-06 19:08: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-01-06 16:08:05' and `end` < '2025-01-06 19:08: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-01-06 19:08:18] Production.INFO: count ==2986 [2025-01-06 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:08:05 - End Time 2025-01-06 19:08:05 [2025-01-06 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189594', 'tblTempUsageDetail_20' ) start [2025-01-06 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189594', 'tblTempUsageDetail_20' ) end [2025-01-06 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189594', 'tblTempVendorCDR_20' ) start [2025-01-06 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189594', 'tblTempVendorCDR_20' ) end [2025-01-06 19:08:19] Production.INFO: ProcessCDR(1,14189594,1,1,2) [2025-01-06 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189594', 'tblTempUsageDetail_20' ) start [2025-01-06 19:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189594', 'tblTempUsageDetail_20' ) end [2025-01-06 19:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:08:24] Production.INFO: ==17670== Releasing lock... [2025-01-06 19:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:08:24] Production.INFO: 50.25 MB #Memory Used# [2025-01-06 19:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:09:04 [end_date_ymd] => 2025-01-06 19:09:04 [RateCDR] => 1 ) [2025-01-06 19:09: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-01-06 16:09:04' and `end` < '2025-01-06 19:09: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-01-06 19:09:18] Production.INFO: count ==2965 [2025-01-06 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:09:04 - End Time 2025-01-06 19:09:04 [2025-01-06 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189599', 'tblTempUsageDetail_20' ) start [2025-01-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189599', 'tblTempUsageDetail_20' ) end [2025-01-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189599', 'tblTempVendorCDR_20' ) start [2025-01-06 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189599', 'tblTempVendorCDR_20' ) end [2025-01-06 19:09:19] Production.INFO: ProcessCDR(1,14189599,1,1,2) [2025-01-06 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189599', 'tblTempUsageDetail_20' ) start [2025-01-06 19:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189599', 'tblTempUsageDetail_20' ) end [2025-01-06 19:09:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:09:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:09:24] Production.INFO: ==17758== Releasing lock... [2025-01-06 19:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:09:24] Production.INFO: 50 MB #Memory Used# [2025-01-06 19:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:10:05 [end_date_ymd] => 2025-01-06 19:10:05 [RateCDR] => 1 ) [2025-01-06 19:10: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-01-06 16:10:05' and `end` < '2025-01-06 19:10: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-01-06 19:10:19] Production.INFO: count ==2939 [2025-01-06 19:10:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:10:05 - End Time 2025-01-06 19:10:05 [2025-01-06 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189604', 'tblTempUsageDetail_20' ) start [2025-01-06 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189604', 'tblTempUsageDetail_20' ) end [2025-01-06 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189604', 'tblTempVendorCDR_20' ) start [2025-01-06 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189604', 'tblTempVendorCDR_20' ) end [2025-01-06 19:10:20] Production.INFO: ProcessCDR(1,14189604,1,1,2) [2025-01-06 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189604', 'tblTempUsageDetail_20' ) start [2025-01-06 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189604', 'tblTempUsageDetail_20' ) end [2025-01-06 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:10:25] Production.INFO: ==17840== Releasing lock... [2025-01-06 19:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:10:25] Production.INFO: 50 MB #Memory Used# [2025-01-06 19:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:11:05 [end_date_ymd] => 2025-01-06 19:11:05 [RateCDR] => 1 ) [2025-01-06 19:11: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-01-06 16:11:05' and `end` < '2025-01-06 19:11: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-01-06 19:11:18] Production.INFO: count ==2883 [2025-01-06 19:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:11:05 - End Time 2025-01-06 19:11:05 [2025-01-06 19:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189610', 'tblTempUsageDetail_20' ) start [2025-01-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189610', 'tblTempUsageDetail_20' ) end [2025-01-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189610', 'tblTempVendorCDR_20' ) start [2025-01-06 19:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189610', 'tblTempVendorCDR_20' ) end [2025-01-06 19:11:19] Production.INFO: ProcessCDR(1,14189610,1,1,2) [2025-01-06 19:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189610', 'tblTempUsageDetail_20' ) start [2025-01-06 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189610', 'tblTempUsageDetail_20' ) end [2025-01-06 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:11:22] Production.INFO: ==17920== Releasing lock... [2025-01-06 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:11:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:12:05 [end_date_ymd] => 2025-01-06 19:12:05 [RateCDR] => 1 ) [2025-01-06 19:12: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-01-06 16:12:05' and `end` < '2025-01-06 19:12: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-01-06 19:12:18] Production.INFO: count ==2855 [2025-01-06 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:12:05 - End Time 2025-01-06 19:12:05 [2025-01-06 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189615', 'tblTempUsageDetail_20' ) start [2025-01-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189615', 'tblTempUsageDetail_20' ) end [2025-01-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189615', 'tblTempVendorCDR_20' ) start [2025-01-06 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189615', 'tblTempVendorCDR_20' ) end [2025-01-06 19:12:19] Production.INFO: ProcessCDR(1,14189615,1,1,2) [2025-01-06 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189615', 'tblTempUsageDetail_20' ) start [2025-01-06 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189615', 'tblTempUsageDetail_20' ) end [2025-01-06 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:12:22] Production.INFO: ==18084== Releasing lock... [2025-01-06 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:12:22] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 19:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:13:06 [end_date_ymd] => 2025-01-06 19:13:06 [RateCDR] => 1 ) [2025-01-06 19:13: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-01-06 16:13:06' and `end` < '2025-01-06 19:13: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-01-06 19:13:19] Production.INFO: count ==2845 [2025-01-06 19:13:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:13:06 - End Time 2025-01-06 19:13:06 [2025-01-06 19:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189620', 'tblTempUsageDetail_20' ) start [2025-01-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189620', 'tblTempUsageDetail_20' ) end [2025-01-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189620', 'tblTempVendorCDR_20' ) start [2025-01-06 19:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189620', 'tblTempVendorCDR_20' ) end [2025-01-06 19:13:20] Production.INFO: ProcessCDR(1,14189620,1,1,2) [2025-01-06 19:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189620', 'tblTempUsageDetail_20' ) start [2025-01-06 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189620', 'tblTempUsageDetail_20' ) end [2025-01-06 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:13:24] Production.INFO: ==18170== Releasing lock... [2025-01-06 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:13:24] Production.INFO: 49.5 MB #Memory Used# [2025-01-06 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:14:05 [end_date_ymd] => 2025-01-06 19:14:05 [RateCDR] => 1 ) [2025-01-06 19:14: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-01-06 16:14:05' and `end` < '2025-01-06 19:14: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-01-06 19:14:18] Production.INFO: count ==2822 [2025-01-06 19:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:14:05 - End Time 2025-01-06 19:14:05 [2025-01-06 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189625', 'tblTempUsageDetail_20' ) start [2025-01-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189625', 'tblTempUsageDetail_20' ) end [2025-01-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189625', 'tblTempVendorCDR_20' ) start [2025-01-06 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189625', 'tblTempVendorCDR_20' ) end [2025-01-06 19:14:19] Production.INFO: ProcessCDR(1,14189625,1,1,2) [2025-01-06 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189625', 'tblTempUsageDetail_20' ) start [2025-01-06 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189625', 'tblTempUsageDetail_20' ) end [2025-01-06 19:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:14:23] Production.INFO: ==18256== Releasing lock... [2025-01-06 19:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:14:23] Production.INFO: 49.25 MB #Memory Used# [2025-01-06 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:15:05 [end_date_ymd] => 2025-01-06 19:15:05 [RateCDR] => 1 ) [2025-01-06 19:15: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-01-06 16:15:05' and `end` < '2025-01-06 19:15: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-01-06 19:15:20] Production.INFO: count ==2801 [2025-01-06 19:15:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:15:05 - End Time 2025-01-06 19:15:05 [2025-01-06 19:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189630', 'tblTempUsageDetail_20' ) start [2025-01-06 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189630', 'tblTempUsageDetail_20' ) end [2025-01-06 19:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189630', 'tblTempVendorCDR_20' ) start [2025-01-06 19:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189630', 'tblTempVendorCDR_20' ) end [2025-01-06 19:15:21] Production.INFO: ProcessCDR(1,14189630,1,1,2) [2025-01-06 19:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189630', 'tblTempUsageDetail_20' ) start [2025-01-06 19:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189630', 'tblTempUsageDetail_20' ) end [2025-01-06 19:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:15:24] Production.INFO: ==18417== Releasing lock... [2025-01-06 19:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:15:24] Production.INFO: 49 MB #Memory Used# [2025-01-06 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:16:05 [end_date_ymd] => 2025-01-06 19:16:05 [RateCDR] => 1 ) [2025-01-06 19:16: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-01-06 16:16:05' and `end` < '2025-01-06 19:16: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-01-06 19:16:18] Production.INFO: count ==2784 [2025-01-06 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:16:05 - End Time 2025-01-06 19:16:05 [2025-01-06 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189635', 'tblTempUsageDetail_20' ) start [2025-01-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189635', 'tblTempUsageDetail_20' ) end [2025-01-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189635', 'tblTempVendorCDR_20' ) start [2025-01-06 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189635', 'tblTempVendorCDR_20' ) end [2025-01-06 19:16:19] Production.INFO: ProcessCDR(1,14189635,1,1,2) [2025-01-06 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189635', 'tblTempUsageDetail_20' ) start [2025-01-06 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189635', 'tblTempUsageDetail_20' ) end [2025-01-06 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:16:22] Production.INFO: ==18497== Releasing lock... [2025-01-06 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:16:22] Production.INFO: 49 MB #Memory Used# [2025-01-06 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:17:05 [end_date_ymd] => 2025-01-06 19:17:05 [RateCDR] => 1 ) [2025-01-06 19:17: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-01-06 16:17:05' and `end` < '2025-01-06 19:17: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-01-06 19:17:18] Production.INFO: count ==2771 [2025-01-06 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:17:05 - End Time 2025-01-06 19:17:05 [2025-01-06 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189640', 'tblTempUsageDetail_20' ) start [2025-01-06 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189640', 'tblTempUsageDetail_20' ) end [2025-01-06 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189640', 'tblTempVendorCDR_20' ) start [2025-01-06 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189640', 'tblTempVendorCDR_20' ) end [2025-01-06 19:17:19] Production.INFO: ProcessCDR(1,14189640,1,1,2) [2025-01-06 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189640', 'tblTempUsageDetail_20' ) start [2025-01-06 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189640', 'tblTempUsageDetail_20' ) end [2025-01-06 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:17:22] Production.INFO: ==18577== Releasing lock... [2025-01-06 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:17:22] Production.INFO: 48.75 MB #Memory Used# [2025-01-06 19:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:18:04 [end_date_ymd] => 2025-01-06 19:18:04 [RateCDR] => 1 ) [2025-01-06 19:18: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-01-06 16:18:04' and `end` < '2025-01-06 19:18: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-01-06 19:18:17] Production.INFO: count ==2748 [2025-01-06 19:18:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:18:04 - End Time 2025-01-06 19:18:04 [2025-01-06 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189645', 'tblTempUsageDetail_20' ) start [2025-01-06 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189645', 'tblTempUsageDetail_20' ) end [2025-01-06 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189645', 'tblTempVendorCDR_20' ) start [2025-01-06 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189645', 'tblTempVendorCDR_20' ) end [2025-01-06 19:18:18] Production.INFO: ProcessCDR(1,14189645,1,1,2) [2025-01-06 19:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189645', 'tblTempUsageDetail_20' ) start [2025-01-06 19:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189645', 'tblTempUsageDetail_20' ) end [2025-01-06 19:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:18:21] Production.INFO: ==18664== Releasing lock... [2025-01-06 19:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:18:21] Production.INFO: 48.75 MB #Memory Used# [2025-01-06 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:19:05 [end_date_ymd] => 2025-01-06 19:19:05 [RateCDR] => 1 ) [2025-01-06 19:19: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-01-06 16:19:05' and `end` < '2025-01-06 19:19: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-01-06 19:19:18] Production.INFO: count ==2736 [2025-01-06 19:19:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:19:05 - End Time 2025-01-06 19:19:05 [2025-01-06 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189650', 'tblTempUsageDetail_20' ) start [2025-01-06 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189650', 'tblTempUsageDetail_20' ) end [2025-01-06 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189650', 'tblTempVendorCDR_20' ) start [2025-01-06 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189650', 'tblTempVendorCDR_20' ) end [2025-01-06 19:19:19] Production.INFO: ProcessCDR(1,14189650,1,1,2) [2025-01-06 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189650', 'tblTempUsageDetail_20' ) start [2025-01-06 19:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189650', 'tblTempUsageDetail_20' ) end [2025-01-06 19:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:19:22] Production.INFO: ==18745== Releasing lock... [2025-01-06 19:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:19:22] Production.INFO: 48.5 MB #Memory Used# [2025-01-06 19:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:20:06 [end_date_ymd] => 2025-01-06 19:20:06 [RateCDR] => 1 ) [2025-01-06 19:20: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-01-06 16:20:06' and `end` < '2025-01-06 19:20: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-01-06 19:20:20] Production.INFO: count ==2723 [2025-01-06 19:20:21] Production.ERROR: pbx CDR StartTime 2025-01-06 16:20:06 - End Time 2025-01-06 19:20:06 [2025-01-06 19:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189655', 'tblTempUsageDetail_20' ) start [2025-01-06 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189655', 'tblTempUsageDetail_20' ) end [2025-01-06 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189655', 'tblTempVendorCDR_20' ) start [2025-01-06 19:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189655', 'tblTempVendorCDR_20' ) end [2025-01-06 19:20:21] Production.INFO: ProcessCDR(1,14189655,1,1,2) [2025-01-06 19:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189655', 'tblTempUsageDetail_20' ) start [2025-01-06 19:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189655', 'tblTempUsageDetail_20' ) end [2025-01-06 19:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:20:24] Production.INFO: ==18828== Releasing lock... [2025-01-06 19:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:20:24] Production.INFO: 48.75 MB #Memory Used# [2025-01-06 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:21:05 [end_date_ymd] => 2025-01-06 19:21:05 [RateCDR] => 1 ) [2025-01-06 19:21: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-01-06 16:21:05' and `end` < '2025-01-06 19:21: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-01-06 19:21:18] Production.INFO: count ==2640 [2025-01-06 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:21:05 - End Time 2025-01-06 19:21:05 [2025-01-06 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189661', 'tblTempUsageDetail_20' ) start [2025-01-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189661', 'tblTempUsageDetail_20' ) end [2025-01-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189661', 'tblTempVendorCDR_20' ) start [2025-01-06 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189661', 'tblTempVendorCDR_20' ) end [2025-01-06 19:21:19] Production.INFO: ProcessCDR(1,14189661,1,1,2) [2025-01-06 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189661', 'tblTempUsageDetail_20' ) start [2025-01-06 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189661', 'tblTempUsageDetail_20' ) end [2025-01-06 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:21:22] Production.INFO: ==18902== Releasing lock... [2025-01-06 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:21:22] Production.INFO: 48 MB #Memory Used# [2025-01-06 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:22:05 [end_date_ymd] => 2025-01-06 19:22:05 [RateCDR] => 1 ) [2025-01-06 19:22: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-01-06 16:22:05' and `end` < '2025-01-06 19:22: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-01-06 19:22:19] Production.INFO: count ==2617 [2025-01-06 19:22:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:22:05 - End Time 2025-01-06 19:22:05 [2025-01-06 19:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189666', 'tblTempUsageDetail_20' ) start [2025-01-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189666', 'tblTempUsageDetail_20' ) end [2025-01-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189666', 'tblTempVendorCDR_20' ) start [2025-01-06 19:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189666', 'tblTempVendorCDR_20' ) end [2025-01-06 19:22:20] Production.INFO: ProcessCDR(1,14189666,1,1,2) [2025-01-06 19:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189666', 'tblTempUsageDetail_20' ) start [2025-01-06 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189666', 'tblTempUsageDetail_20' ) end [2025-01-06 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:22:23] Production.INFO: ==18975== Releasing lock... [2025-01-06 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:22:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-06 19:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:23:04 [end_date_ymd] => 2025-01-06 19:23:04 [RateCDR] => 1 ) [2025-01-06 19:23: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-01-06 16:23:04' and `end` < '2025-01-06 19:23: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-01-06 19:23:18] Production.INFO: count ==2611 [2025-01-06 19:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:23:04 - End Time 2025-01-06 19:23:04 [2025-01-06 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189671', 'tblTempUsageDetail_20' ) start [2025-01-06 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189671', 'tblTempUsageDetail_20' ) end [2025-01-06 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189671', 'tblTempVendorCDR_20' ) start [2025-01-06 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189671', 'tblTempVendorCDR_20' ) end [2025-01-06 19:23:18] Production.INFO: ProcessCDR(1,14189671,1,1,2) [2025-01-06 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189671', 'tblTempUsageDetail_20' ) start [2025-01-06 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189671', 'tblTempUsageDetail_20' ) end [2025-01-06 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:23:23] Production.INFO: ==19050== Releasing lock... [2025-01-06 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:23:23] Production.INFO: 47.75 MB #Memory Used# [2025-01-06 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:24:05 [end_date_ymd] => 2025-01-06 19:24:05 [RateCDR] => 1 ) [2025-01-06 19:24: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-01-06 16:24:05' and `end` < '2025-01-06 19:24: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-01-06 19:24:19] Production.INFO: count ==2589 [2025-01-06 19:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:24:05 - End Time 2025-01-06 19:24:05 [2025-01-06 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189676', 'tblTempUsageDetail_20' ) start [2025-01-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189676', 'tblTempUsageDetail_20' ) end [2025-01-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189676', 'tblTempVendorCDR_20' ) start [2025-01-06 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189676', 'tblTempVendorCDR_20' ) end [2025-01-06 19:24:19] Production.INFO: ProcessCDR(1,14189676,1,1,2) [2025-01-06 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189676', 'tblTempUsageDetail_20' ) start [2025-01-06 19:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189676', 'tblTempUsageDetail_20' ) end [2025-01-06 19:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:24:23] Production.INFO: ==19170== Releasing lock... [2025-01-06 19:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:24:23] Production.INFO: 47.5 MB #Memory Used# [2025-01-06 19:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:25:04 [end_date_ymd] => 2025-01-06 19:25:04 [RateCDR] => 1 ) [2025-01-06 19: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-01-06 16:25:04' and `end` < '2025-01-06 19: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-01-06 19:25:18] Production.INFO: count ==2578 [2025-01-06 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:25:04 - End Time 2025-01-06 19:25:04 [2025-01-06 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189681', 'tblTempUsageDetail_20' ) start [2025-01-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189681', 'tblTempUsageDetail_20' ) end [2025-01-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189681', 'tblTempVendorCDR_20' ) start [2025-01-06 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189681', 'tblTempVendorCDR_20' ) end [2025-01-06 19:25:19] Production.INFO: ProcessCDR(1,14189681,1,1,2) [2025-01-06 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189681', 'tblTempUsageDetail_20' ) start [2025-01-06 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189681', 'tblTempUsageDetail_20' ) end [2025-01-06 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:25:22] Production.INFO: ==19250== Releasing lock... [2025-01-06 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:25:22] Production.INFO: 47.5 MB #Memory Used# [2025-01-06 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:26:05 [end_date_ymd] => 2025-01-06 19:26:05 [RateCDR] => 1 ) [2025-01-06 19:26: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-01-06 16:26:05' and `end` < '2025-01-06 19:26: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-01-06 19:26:18] Production.INFO: count ==2561 [2025-01-06 19:26:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:26:05 - End Time 2025-01-06 19:26:05 [2025-01-06 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189686', 'tblTempUsageDetail_20' ) start [2025-01-06 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189686', 'tblTempUsageDetail_20' ) end [2025-01-06 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189686', 'tblTempVendorCDR_20' ) start [2025-01-06 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189686', 'tblTempVendorCDR_20' ) end [2025-01-06 19:26:19] Production.INFO: ProcessCDR(1,14189686,1,1,2) [2025-01-06 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189686', 'tblTempUsageDetail_20' ) start [2025-01-06 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189686', 'tblTempUsageDetail_20' ) end [2025-01-06 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:26:23] Production.INFO: ==19332== Releasing lock... [2025-01-06 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:26:23] Production.INFO: 47.25 MB #Memory Used# [2025-01-06 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:27:05 [end_date_ymd] => 2025-01-06 19:27:05 [RateCDR] => 1 ) [2025-01-06 19:27: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-01-06 16:27:05' and `end` < '2025-01-06 19:27: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-01-06 19:27:18] Production.INFO: count ==2548 [2025-01-06 19:27:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:27:05 - End Time 2025-01-06 19:27:05 [2025-01-06 19:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189691', 'tblTempUsageDetail_20' ) start [2025-01-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189691', 'tblTempUsageDetail_20' ) end [2025-01-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189691', 'tblTempVendorCDR_20' ) start [2025-01-06 19:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189691', 'tblTempVendorCDR_20' ) end [2025-01-06 19:27:19] Production.INFO: ProcessCDR(1,14189691,1,1,2) [2025-01-06 19:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189691', 'tblTempUsageDetail_20' ) start [2025-01-06 19:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189691', 'tblTempUsageDetail_20' ) end [2025-01-06 19:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:27:24] Production.INFO: ==19418== Releasing lock... [2025-01-06 19:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:27:24] Production.INFO: 47.25 MB #Memory Used# [2025-01-06 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:28:05 [end_date_ymd] => 2025-01-06 19:28:05 [RateCDR] => 1 ) [2025-01-06 19:28: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-01-06 16:28:05' and `end` < '2025-01-06 19:28: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-01-06 19:28:18] Production.INFO: count ==2527 [2025-01-06 19:28:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:28:05 - End Time 2025-01-06 19:28:05 [2025-01-06 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189696', 'tblTempUsageDetail_20' ) start [2025-01-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189696', 'tblTempUsageDetail_20' ) end [2025-01-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189696', 'tblTempVendorCDR_20' ) start [2025-01-06 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189696', 'tblTempVendorCDR_20' ) end [2025-01-06 19:28:19] Production.INFO: ProcessCDR(1,14189696,1,1,2) [2025-01-06 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189696', 'tblTempUsageDetail_20' ) start [2025-01-06 19:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189696', 'tblTempUsageDetail_20' ) end [2025-01-06 19:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:28:23] Production.INFO: ==19506== Releasing lock... [2025-01-06 19:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:28:23] Production.INFO: 47 MB #Memory Used# [2025-01-06 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:29:05 [end_date_ymd] => 2025-01-06 19:29:05 [RateCDR] => 1 ) [2025-01-06 19:29: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-01-06 16:29:05' and `end` < '2025-01-06 19:29: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-01-06 19:29:19] Production.INFO: count ==2514 [2025-01-06 19:29:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:29:05 - End Time 2025-01-06 19:29:05 [2025-01-06 19:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189701', 'tblTempUsageDetail_20' ) start [2025-01-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189701', 'tblTempUsageDetail_20' ) end [2025-01-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189701', 'tblTempVendorCDR_20' ) start [2025-01-06 19:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189701', 'tblTempVendorCDR_20' ) end [2025-01-06 19:29:20] Production.INFO: ProcessCDR(1,14189701,1,1,2) [2025-01-06 19:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189701', 'tblTempUsageDetail_20' ) start [2025-01-06 19:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189701', 'tblTempUsageDetail_20' ) end [2025-01-06 19:29:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:29:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:29:25] Production.INFO: ==19587== Releasing lock... [2025-01-06 19:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:29:25] Production.INFO: 47 MB #Memory Used# [2025-01-06 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:30:05 [end_date_ymd] => 2025-01-06 19:30:05 [RateCDR] => 1 ) [2025-01-06 19:30: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-01-06 16:30:05' and `end` < '2025-01-06 19:30: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-01-06 19:30:18] Production.INFO: count ==2494 [2025-01-06 19:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:30:05 - End Time 2025-01-06 19:30:05 [2025-01-06 19:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189706', 'tblTempUsageDetail_20' ) start [2025-01-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189706', 'tblTempUsageDetail_20' ) end [2025-01-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189706', 'tblTempVendorCDR_20' ) start [2025-01-06 19:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189706', 'tblTempVendorCDR_20' ) end [2025-01-06 19:30:19] Production.INFO: ProcessCDR(1,14189706,1,1,2) [2025-01-06 19:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189706', 'tblTempUsageDetail_20' ) start [2025-01-06 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189706', 'tblTempUsageDetail_20' ) end [2025-01-06 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:30:22] Production.INFO: ==19670== Releasing lock... [2025-01-06 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:30:22] Production.INFO: 47 MB #Memory Used# [2025-01-06 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:31:05 [end_date_ymd] => 2025-01-06 19:31:05 [RateCDR] => 1 ) [2025-01-06 19:31: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-01-06 16:31:05' and `end` < '2025-01-06 19:31: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-01-06 19:31:18] Production.INFO: count ==2418 [2025-01-06 19:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:31:05 - End Time 2025-01-06 19:31:05 [2025-01-06 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189712', 'tblTempUsageDetail_20' ) start [2025-01-06 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189712', 'tblTempUsageDetail_20' ) end [2025-01-06 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189712', 'tblTempVendorCDR_20' ) start [2025-01-06 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189712', 'tblTempVendorCDR_20' ) end [2025-01-06 19:31:18] Production.INFO: ProcessCDR(1,14189712,1,1,2) [2025-01-06 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189712', 'tblTempUsageDetail_20' ) start [2025-01-06 19:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189712', 'tblTempUsageDetail_20' ) end [2025-01-06 19:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:31:21] Production.INFO: ==19757== Releasing lock... [2025-01-06 19:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:31:21] Production.INFO: 46.25 MB #Memory Used# [2025-01-06 19:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:32:05 [end_date_ymd] => 2025-01-06 19:32:05 [RateCDR] => 1 ) [2025-01-06 19:32: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-01-06 16:32:05' and `end` < '2025-01-06 19:32: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-01-06 19:32:19] Production.INFO: count ==2402 [2025-01-06 19:32:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:32:05 - End Time 2025-01-06 19:32:05 [2025-01-06 19:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189717', 'tblTempUsageDetail_20' ) start [2025-01-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189717', 'tblTempUsageDetail_20' ) end [2025-01-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189717', 'tblTempVendorCDR_20' ) start [2025-01-06 19:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189717', 'tblTempVendorCDR_20' ) end [2025-01-06 19:32:20] Production.INFO: ProcessCDR(1,14189717,1,1,2) [2025-01-06 19:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189717', 'tblTempUsageDetail_20' ) start [2025-01-06 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189717', 'tblTempUsageDetail_20' ) end [2025-01-06 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:32:23] Production.INFO: ==19835== Releasing lock... [2025-01-06 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:32:23] Production.INFO: 46 MB #Memory Used# [2025-01-06 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:33:05 [end_date_ymd] => 2025-01-06 19:33:05 [RateCDR] => 1 ) [2025-01-06 19:33: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-01-06 16:33:05' and `end` < '2025-01-06 19:33: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-01-06 19:33:18] Production.INFO: count ==2388 [2025-01-06 19:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:33:05 - End Time 2025-01-06 19:33:05 [2025-01-06 19:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189722', 'tblTempUsageDetail_20' ) start [2025-01-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189722', 'tblTempUsageDetail_20' ) end [2025-01-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189722', 'tblTempVendorCDR_20' ) start [2025-01-06 19:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189722', 'tblTempVendorCDR_20' ) end [2025-01-06 19:33:19] Production.INFO: ProcessCDR(1,14189722,1,1,2) [2025-01-06 19:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189722', 'tblTempUsageDetail_20' ) start [2025-01-06 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189722', 'tblTempUsageDetail_20' ) end [2025-01-06 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:33:22] Production.INFO: ==19917== Releasing lock... [2025-01-06 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:33:22] Production.INFO: 46.25 MB #Memory Used# [2025-01-06 19:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:34:06 [end_date_ymd] => 2025-01-06 19:34:06 [RateCDR] => 1 ) [2025-01-06 19:34: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-01-06 16:34:06' and `end` < '2025-01-06 19:34: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-01-06 19:34:19] Production.INFO: count ==2381 [2025-01-06 19:34:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:34:06 - End Time 2025-01-06 19:34:06 [2025-01-06 19:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189727', 'tblTempUsageDetail_20' ) start [2025-01-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189727', 'tblTempUsageDetail_20' ) end [2025-01-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189727', 'tblTempVendorCDR_20' ) start [2025-01-06 19:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189727', 'tblTempVendorCDR_20' ) end [2025-01-06 19:34:20] Production.INFO: ProcessCDR(1,14189727,1,1,2) [2025-01-06 19:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189727', 'tblTempUsageDetail_20' ) start [2025-01-06 19:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189727', 'tblTempUsageDetail_20' ) end [2025-01-06 19:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:34:23] Production.INFO: ==20000== Releasing lock... [2025-01-06 19:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:34:23] Production.INFO: 46.25 MB #Memory Used# [2025-01-06 19:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:35:04 [end_date_ymd] => 2025-01-06 19:35:04 [RateCDR] => 1 ) [2025-01-06 19:35: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-01-06 16:35:04' and `end` < '2025-01-06 19:35: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-01-06 19:35:18] Production.INFO: count ==2359 [2025-01-06 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:35:04 - End Time 2025-01-06 19:35:04 [2025-01-06 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189732', 'tblTempUsageDetail_20' ) start [2025-01-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189732', 'tblTempUsageDetail_20' ) end [2025-01-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189732', 'tblTempVendorCDR_20' ) start [2025-01-06 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189732', 'tblTempVendorCDR_20' ) end [2025-01-06 19:35:18] Production.INFO: ProcessCDR(1,14189732,1,1,2) [2025-01-06 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189732', 'tblTempUsageDetail_20' ) start [2025-01-06 19:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189732', 'tblTempUsageDetail_20' ) end [2025-01-06 19:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:35:23] Production.INFO: ==20079== Releasing lock... [2025-01-06 19:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:35:23] Production.INFO: 46 MB #Memory Used# [2025-01-06 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:36:05 [end_date_ymd] => 2025-01-06 19:36:05 [RateCDR] => 1 ) [2025-01-06 19:36: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-01-06 16:36:05' and `end` < '2025-01-06 19:36: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-01-06 19:36:18] Production.INFO: count ==2342 [2025-01-06 19:36:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:36:05 - End Time 2025-01-06 19:36:05 [2025-01-06 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189737', 'tblTempUsageDetail_20' ) start [2025-01-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189737', 'tblTempUsageDetail_20' ) end [2025-01-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189737', 'tblTempVendorCDR_20' ) start [2025-01-06 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189737', 'tblTempVendorCDR_20' ) end [2025-01-06 19:36:19] Production.INFO: ProcessCDR(1,14189737,1,1,2) [2025-01-06 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189737', 'tblTempUsageDetail_20' ) start [2025-01-06 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189737', 'tblTempUsageDetail_20' ) end [2025-01-06 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:36:22] Production.INFO: ==20158== Releasing lock... [2025-01-06 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:36:22] Production.INFO: 45.75 MB #Memory Used# [2025-01-06 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:37:05 [end_date_ymd] => 2025-01-06 19:37:05 [RateCDR] => 1 ) [2025-01-06 19:37: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-01-06 16:37:05' and `end` < '2025-01-06 19:37: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-01-06 19:37:18] Production.INFO: count ==2337 [2025-01-06 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:37:05 - End Time 2025-01-06 19:37:05 [2025-01-06 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189742', 'tblTempUsageDetail_20' ) start [2025-01-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189742', 'tblTempUsageDetail_20' ) end [2025-01-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189742', 'tblTempVendorCDR_20' ) start [2025-01-06 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189742', 'tblTempVendorCDR_20' ) end [2025-01-06 19:37:19] Production.INFO: ProcessCDR(1,14189742,1,1,2) [2025-01-06 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189742', 'tblTempUsageDetail_20' ) start [2025-01-06 19:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189742', 'tblTempUsageDetail_20' ) end [2025-01-06 19:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:37:23] Production.INFO: ==20242== Releasing lock... [2025-01-06 19:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:37:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-06 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:38:05 [end_date_ymd] => 2025-01-06 19:38:05 [RateCDR] => 1 ) [2025-01-06 19:38: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-01-06 16:38:05' and `end` < '2025-01-06 19:38: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-01-06 19:38:19] Production.INFO: count ==2338 [2025-01-06 19:38:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:38:05 - End Time 2025-01-06 19:38:05 [2025-01-06 19:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189746', 'tblTempUsageDetail_20' ) start [2025-01-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189746', 'tblTempUsageDetail_20' ) end [2025-01-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189746', 'tblTempVendorCDR_20' ) start [2025-01-06 19:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189746', 'tblTempVendorCDR_20' ) end [2025-01-06 19:38:20] Production.INFO: ProcessCDR(1,14189746,1,1,2) [2025-01-06 19:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189746', 'tblTempUsageDetail_20' ) start [2025-01-06 19:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189746', 'tblTempUsageDetail_20' ) end [2025-01-06 19:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:38:24] Production.INFO: ==20325== Releasing lock... [2025-01-06 19:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:38:24] Production.INFO: 45.75 MB #Memory Used# [2025-01-06 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:39:05 [end_date_ymd] => 2025-01-06 19:39:05 [RateCDR] => 1 ) [2025-01-06 19:39: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-01-06 16:39:05' and `end` < '2025-01-06 19:39: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-01-06 19:39:19] Production.INFO: count ==2336 [2025-01-06 19:39:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:39:05 - End Time 2025-01-06 19:39:05 [2025-01-06 19:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189752', 'tblTempUsageDetail_20' ) start [2025-01-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189752', 'tblTempUsageDetail_20' ) end [2025-01-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189752', 'tblTempVendorCDR_20' ) start [2025-01-06 19:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189752', 'tblTempVendorCDR_20' ) end [2025-01-06 19:39:20] Production.INFO: ProcessCDR(1,14189752,1,1,2) [2025-01-06 19:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189752', 'tblTempUsageDetail_20' ) start [2025-01-06 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189752', 'tblTempUsageDetail_20' ) end [2025-01-06 19:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:39:23] Production.INFO: ==20404== Releasing lock... [2025-01-06 19:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:39:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-06 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:40:05 [end_date_ymd] => 2025-01-06 19:40:05 [RateCDR] => 1 ) [2025-01-06 19:40: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-01-06 16:40:05' and `end` < '2025-01-06 19:40: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-01-06 19:40:19] Production.INFO: count ==2331 [2025-01-06 19:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:40:05 - End Time 2025-01-06 19:40:05 [2025-01-06 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189758', 'tblTempUsageDetail_20' ) start [2025-01-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189758', 'tblTempUsageDetail_20' ) end [2025-01-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189758', 'tblTempVendorCDR_20' ) start [2025-01-06 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189758', 'tblTempVendorCDR_20' ) end [2025-01-06 19:40:19] Production.INFO: ProcessCDR(1,14189758,1,1,2) [2025-01-06 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189758', 'tblTempUsageDetail_20' ) start [2025-01-06 19:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189758', 'tblTempUsageDetail_20' ) end [2025-01-06 19:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:40:23] Production.INFO: ==20526== Releasing lock... [2025-01-06 19:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:40:23] Production.INFO: 45.5 MB #Memory Used# [2025-01-06 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:41:05 [end_date_ymd] => 2025-01-06 19:41:05 [RateCDR] => 1 ) [2025-01-06 19:41: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-01-06 16:41:05' and `end` < '2025-01-06 19:41: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-01-06 19:41:18] Production.INFO: count ==2285 [2025-01-06 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:41:05 - End Time 2025-01-06 19:41:05 [2025-01-06 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189763', 'tblTempUsageDetail_20' ) start [2025-01-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189763', 'tblTempUsageDetail_20' ) end [2025-01-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189763', 'tblTempVendorCDR_20' ) start [2025-01-06 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189763', 'tblTempVendorCDR_20' ) end [2025-01-06 19:41:18] Production.INFO: ProcessCDR(1,14189763,1,1,2) [2025-01-06 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189763', 'tblTempUsageDetail_20' ) start [2025-01-06 19:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189763', 'tblTempUsageDetail_20' ) end [2025-01-06 19:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:41:22] Production.INFO: ==20612== Releasing lock... [2025-01-06 19:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:41:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-06 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:42:05 [end_date_ymd] => 2025-01-06 19:42:05 [RateCDR] => 1 ) [2025-01-06 19:42: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-01-06 16:42:05' and `end` < '2025-01-06 19:42: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-01-06 19:42:18] Production.INFO: count ==2273 [2025-01-06 19:42:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:42:05 - End Time 2025-01-06 19:42:05 [2025-01-06 19:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189768', 'tblTempUsageDetail_20' ) start [2025-01-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189768', 'tblTempUsageDetail_20' ) end [2025-01-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189768', 'tblTempVendorCDR_20' ) start [2025-01-06 19:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189768', 'tblTempVendorCDR_20' ) end [2025-01-06 19:42:19] Production.INFO: ProcessCDR(1,14189768,1,1,2) [2025-01-06 19:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189768', 'tblTempUsageDetail_20' ) start [2025-01-06 19:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189768', 'tblTempUsageDetail_20' ) end [2025-01-06 19:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:42:22] Production.INFO: ==20699== Releasing lock... [2025-01-06 19:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:42:22] Production.INFO: 45.25 MB #Memory Used# [2025-01-06 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:43:05 [end_date_ymd] => 2025-01-06 19:43:05 [RateCDR] => 1 ) [2025-01-06 19:43: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-01-06 16:43:05' and `end` < '2025-01-06 19:43: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-01-06 19:43:18] Production.INFO: count ==2261 [2025-01-06 19:43:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:43:05 - End Time 2025-01-06 19:43:05 [2025-01-06 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189773', 'tblTempUsageDetail_20' ) start [2025-01-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189773', 'tblTempUsageDetail_20' ) end [2025-01-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189773', 'tblTempVendorCDR_20' ) start [2025-01-06 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189773', 'tblTempVendorCDR_20' ) end [2025-01-06 19:43:18] Production.INFO: ProcessCDR(1,14189773,1,1,2) [2025-01-06 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189773', 'tblTempUsageDetail_20' ) start [2025-01-06 19:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189773', 'tblTempUsageDetail_20' ) end [2025-01-06 19:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:43:21] Production.INFO: ==20785== Releasing lock... [2025-01-06 19:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:43:21] Production.INFO: 45 MB #Memory Used# [2025-01-06 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:44:05 [end_date_ymd] => 2025-01-06 19:44:05 [RateCDR] => 1 ) [2025-01-06 19:44: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-01-06 16:44:05' and `end` < '2025-01-06 19:44: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-01-06 19:44:18] Production.INFO: count ==2253 [2025-01-06 19:44:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:44:05 - End Time 2025-01-06 19:44:05 [2025-01-06 19:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189778', 'tblTempUsageDetail_20' ) start [2025-01-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189778', 'tblTempUsageDetail_20' ) end [2025-01-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189778', 'tblTempVendorCDR_20' ) start [2025-01-06 19:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189778', 'tblTempVendorCDR_20' ) end [2025-01-06 19:44:19] Production.INFO: ProcessCDR(1,14189778,1,1,2) [2025-01-06 19:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189778', 'tblTempUsageDetail_20' ) start [2025-01-06 19:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189778', 'tblTempUsageDetail_20' ) end [2025-01-06 19:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:44:24] Production.INFO: ==20866== Releasing lock... [2025-01-06 19:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:44:24] Production.INFO: 45 MB #Memory Used# [2025-01-06 19:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:45:04 [end_date_ymd] => 2025-01-06 19:45:04 [RateCDR] => 1 ) [2025-01-06 19:45: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-01-06 16:45:04' and `end` < '2025-01-06 19:45: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-01-06 19:45:17] Production.INFO: count ==2234 [2025-01-06 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:45:04 - End Time 2025-01-06 19:45:04 [2025-01-06 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189783', 'tblTempUsageDetail_20' ) start [2025-01-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189783', 'tblTempUsageDetail_20' ) end [2025-01-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189783', 'tblTempVendorCDR_20' ) start [2025-01-06 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189783', 'tblTempVendorCDR_20' ) end [2025-01-06 19:45:18] Production.INFO: ProcessCDR(1,14189783,1,1,2) [2025-01-06 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189783', 'tblTempUsageDetail_20' ) start [2025-01-06 19:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189783', 'tblTempUsageDetail_20' ) end [2025-01-06 19:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:45:23] Production.INFO: ==20947== Releasing lock... [2025-01-06 19:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:45:23] Production.INFO: 45 MB #Memory Used# [2025-01-06 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:46:04 [end_date_ymd] => 2025-01-06 19:46:04 [RateCDR] => 1 ) [2025-01-06 19:46: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-01-06 16:46:04' and `end` < '2025-01-06 19:46: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-01-06 19:46:18] Production.INFO: count ==2216 [2025-01-06 19:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:46:04 - End Time 2025-01-06 19:46:04 [2025-01-06 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189788', 'tblTempUsageDetail_20' ) start [2025-01-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189788', 'tblTempUsageDetail_20' ) end [2025-01-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189788', 'tblTempVendorCDR_20' ) start [2025-01-06 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189788', 'tblTempVendorCDR_20' ) end [2025-01-06 19:46:18] Production.INFO: ProcessCDR(1,14189788,1,1,2) [2025-01-06 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189788', 'tblTempUsageDetail_20' ) start [2025-01-06 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189788', 'tblTempUsageDetail_20' ) end [2025-01-06 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:46:22] Production.INFO: ==21024== Releasing lock... [2025-01-06 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:46:22] Production.INFO: 44.75 MB #Memory Used# [2025-01-06 19:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:47:06 [end_date_ymd] => 2025-01-06 19:47:06 [RateCDR] => 1 ) [2025-01-06 19:47: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-01-06 16:47:06' and `end` < '2025-01-06 19:47: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-01-06 19:47:19] Production.INFO: count ==2185 [2025-01-06 19:47:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:47:06 - End Time 2025-01-06 19:47:06 [2025-01-06 19:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189793', 'tblTempUsageDetail_20' ) start [2025-01-06 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189793', 'tblTempUsageDetail_20' ) end [2025-01-06 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189793', 'tblTempVendorCDR_20' ) start [2025-01-06 19:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189793', 'tblTempVendorCDR_20' ) end [2025-01-06 19:47:20] Production.INFO: ProcessCDR(1,14189793,1,1,2) [2025-01-06 19:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189793', 'tblTempUsageDetail_20' ) start [2025-01-06 19:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189793', 'tblTempUsageDetail_20' ) end [2025-01-06 19:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:47:24] Production.INFO: ==21111== Releasing lock... [2025-01-06 19:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:47:24] Production.INFO: 44.5 MB #Memory Used# [2025-01-06 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:48:04 [end_date_ymd] => 2025-01-06 19:48:04 [RateCDR] => 1 ) [2025-01-06 19:48: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-01-06 16:48:04' and `end` < '2025-01-06 19:48: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-01-06 19:48:18] Production.INFO: count ==2158 [2025-01-06 19:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:48:04 - End Time 2025-01-06 19:48:04 [2025-01-06 19:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189798', 'tblTempUsageDetail_20' ) start [2025-01-06 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189798', 'tblTempUsageDetail_20' ) end [2025-01-06 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189798', 'tblTempVendorCDR_20' ) start [2025-01-06 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189798', 'tblTempVendorCDR_20' ) end [2025-01-06 19:48:19] Production.INFO: ProcessCDR(1,14189798,1,1,2) [2025-01-06 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189798', 'tblTempUsageDetail_20' ) start [2025-01-06 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189798', 'tblTempUsageDetail_20' ) end [2025-01-06 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:48:22] Production.INFO: ==21193== Releasing lock... [2025-01-06 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:48:22] Production.INFO: 44.25 MB #Memory Used# [2025-01-06 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:49:05 [end_date_ymd] => 2025-01-06 19:49:05 [RateCDR] => 1 ) [2025-01-06 19:49: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-01-06 16:49:05' and `end` < '2025-01-06 19:49: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-01-06 19:49:20] Production.INFO: count ==2147 [2025-01-06 19:49:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:49:05 - End Time 2025-01-06 19:49:05 [2025-01-06 19:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189803', 'tblTempUsageDetail_20' ) start [2025-01-06 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189803', 'tblTempUsageDetail_20' ) end [2025-01-06 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189803', 'tblTempVendorCDR_20' ) start [2025-01-06 19:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189803', 'tblTempVendorCDR_20' ) end [2025-01-06 19:49:20] Production.INFO: ProcessCDR(1,14189803,1,1,2) [2025-01-06 19:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189803', 'tblTempUsageDetail_20' ) start [2025-01-06 19:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189803', 'tblTempUsageDetail_20' ) end [2025-01-06 19:49:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:49:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:49:24] Production.INFO: ==21281== Releasing lock... [2025-01-06 19:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:49:24] Production.INFO: 44.25 MB #Memory Used# [2025-01-06 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:50:05 [end_date_ymd] => 2025-01-06 19:50:05 [RateCDR] => 1 ) [2025-01-06 19:50: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-01-06 16:50:05' and `end` < '2025-01-06 19:50: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-01-06 19:50:19] Production.INFO: count ==2123 [2025-01-06 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:50:05 - End Time 2025-01-06 19:50:05 [2025-01-06 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189809', 'tblTempUsageDetail_20' ) start [2025-01-06 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189809', 'tblTempUsageDetail_20' ) end [2025-01-06 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189809', 'tblTempVendorCDR_20' ) start [2025-01-06 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189809', 'tblTempVendorCDR_20' ) end [2025-01-06 19:50:19] Production.INFO: ProcessCDR(1,14189809,1,1,2) [2025-01-06 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189809', 'tblTempUsageDetail_20' ) start [2025-01-06 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189809', 'tblTempUsageDetail_20' ) end [2025-01-06 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:50:22] Production.INFO: ==21364== Releasing lock... [2025-01-06 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:50:22] Production.INFO: 44 MB #Memory Used# [2025-01-06 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:51:05 [end_date_ymd] => 2025-01-06 19:51:05 [RateCDR] => 1 ) [2025-01-06 19:51: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-01-06 16:51:05' and `end` < '2025-01-06 19:51: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-01-06 19:51:19] Production.INFO: count ==2010 [2025-01-06 19:51:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:51:05 - End Time 2025-01-06 19:51:05 [2025-01-06 19:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189814', 'tblTempUsageDetail_20' ) start [2025-01-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189814', 'tblTempUsageDetail_20' ) end [2025-01-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189814', 'tblTempVendorCDR_20' ) start [2025-01-06 19:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189814', 'tblTempVendorCDR_20' ) end [2025-01-06 19:51:19] Production.INFO: ProcessCDR(1,14189814,1,1,2) [2025-01-06 19:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189814', 'tblTempUsageDetail_20' ) start [2025-01-06 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189814', 'tblTempUsageDetail_20' ) end [2025-01-06 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:51:23] Production.INFO: ==21446== Releasing lock... [2025-01-06 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:51:23] Production.INFO: 43.25 MB #Memory Used# [2025-01-06 19:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:52:06 [end_date_ymd] => 2025-01-06 19:52:06 [RateCDR] => 1 ) [2025-01-06 19:52: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-01-06 16:52:06' and `end` < '2025-01-06 19:52: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-01-06 19:52:19] Production.INFO: count ==1991 [2025-01-06 19:52:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:52:06 - End Time 2025-01-06 19:52:06 [2025-01-06 19:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189819', 'tblTempUsageDetail_20' ) start [2025-01-06 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189819', 'tblTempUsageDetail_20' ) end [2025-01-06 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189819', 'tblTempVendorCDR_20' ) start [2025-01-06 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189819', 'tblTempVendorCDR_20' ) end [2025-01-06 19:52:19] Production.INFO: ProcessCDR(1,14189819,1,1,2) [2025-01-06 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189819', 'tblTempUsageDetail_20' ) start [2025-01-06 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189819', 'tblTempUsageDetail_20' ) end [2025-01-06 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:52:22] Production.INFO: ==21527== Releasing lock... [2025-01-06 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:52:22] Production.INFO: 43 MB #Memory Used# [2025-01-06 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:53:05 [end_date_ymd] => 2025-01-06 19:53:05 [RateCDR] => 1 ) [2025-01-06 19:53: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-01-06 16:53:05' and `end` < '2025-01-06 19:53: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-01-06 19:53:18] Production.INFO: count ==1975 [2025-01-06 19:53:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:53:05 - End Time 2025-01-06 19:53:05 [2025-01-06 19:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189824', 'tblTempUsageDetail_20' ) start [2025-01-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189824', 'tblTempUsageDetail_20' ) end [2025-01-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189824', 'tblTempVendorCDR_20' ) start [2025-01-06 19:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189824', 'tblTempVendorCDR_20' ) end [2025-01-06 19:53:19] Production.INFO: ProcessCDR(1,14189824,1,1,2) [2025-01-06 19:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189824', 'tblTempUsageDetail_20' ) start [2025-01-06 19:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189824', 'tblTempUsageDetail_20' ) end [2025-01-06 19:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:53:22] Production.INFO: ==21607== Releasing lock... [2025-01-06 19:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:53:22] Production.INFO: 42.5 MB #Memory Used# [2025-01-06 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:54:05 [end_date_ymd] => 2025-01-06 19:54:05 [RateCDR] => 1 ) [2025-01-06 19:54: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-01-06 16:54:05' and `end` < '2025-01-06 19:54: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-01-06 19:54:21] Production.INFO: count ==1956 [2025-01-06 19:54:22] Production.ERROR: pbx CDR StartTime 2025-01-06 16:54:05 - End Time 2025-01-06 19:54:05 [2025-01-06 19:54:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189829', 'tblTempUsageDetail_20' ) start [2025-01-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189829', 'tblTempUsageDetail_20' ) end [2025-01-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189829', 'tblTempVendorCDR_20' ) start [2025-01-06 19:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189829', 'tblTempVendorCDR_20' ) end [2025-01-06 19:54:22] Production.INFO: ProcessCDR(1,14189829,1,1,2) [2025-01-06 19:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189829', 'tblTempUsageDetail_20' ) start [2025-01-06 19:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189829', 'tblTempUsageDetail_20' ) end [2025-01-06 19:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:54:25] Production.INFO: ==21697== Releasing lock... [2025-01-06 19:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:54:25] Production.INFO: 42.75 MB #Memory Used# [2025-01-06 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:55:05 [end_date_ymd] => 2025-01-06 19:55:05 [RateCDR] => 1 ) [2025-01-06 19:55: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-01-06 16:55:05' and `end` < '2025-01-06 19:55: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-01-06 19:55:20] Production.INFO: count ==1938 [2025-01-06 19:55:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:55:05 - End Time 2025-01-06 19:55:05 [2025-01-06 19:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189834', 'tblTempUsageDetail_20' ) start [2025-01-06 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189834', 'tblTempUsageDetail_20' ) end [2025-01-06 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189834', 'tblTempVendorCDR_20' ) start [2025-01-06 19:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189834', 'tblTempVendorCDR_20' ) end [2025-01-06 19:55:20] Production.INFO: ProcessCDR(1,14189834,1,1,2) [2025-01-06 19:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189834', 'tblTempUsageDetail_20' ) start [2025-01-06 19:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189834', 'tblTempUsageDetail_20' ) end [2025-01-06 19:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:55:23] Production.INFO: ==21817== Releasing lock... [2025-01-06 19:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:55:23] Production.INFO: 42.5 MB #Memory Used# [2025-01-06 19:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:56:04 [end_date_ymd] => 2025-01-06 19:56:04 [RateCDR] => 1 ) [2025-01-06 19:56: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-01-06 16:56:04' and `end` < '2025-01-06 19:56: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-01-06 19:56:17] Production.INFO: count ==1929 [2025-01-06 19:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:56:04 - End Time 2025-01-06 19:56:04 [2025-01-06 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189839', 'tblTempUsageDetail_20' ) start [2025-01-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189839', 'tblTempUsageDetail_20' ) end [2025-01-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189839', 'tblTempVendorCDR_20' ) start [2025-01-06 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189839', 'tblTempVendorCDR_20' ) end [2025-01-06 19:56:18] Production.INFO: ProcessCDR(1,14189839,1,1,2) [2025-01-06 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189839', 'tblTempUsageDetail_20' ) start [2025-01-06 19:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189839', 'tblTempUsageDetail_20' ) end [2025-01-06 19:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:56:21] Production.INFO: ==21906== Releasing lock... [2025-01-06 19:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:56:21] Production.INFO: 42.75 MB #Memory Used# [2025-01-06 19:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:57:05 [end_date_ymd] => 2025-01-06 19:57:05 [RateCDR] => 1 ) [2025-01-06 19:57: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-01-06 16:57:05' and `end` < '2025-01-06 19:57: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-01-06 19:57:18] Production.INFO: count ==1906 [2025-01-06 19:57:18] Production.ERROR: pbx CDR StartTime 2025-01-06 16:57:05 - End Time 2025-01-06 19:57:05 [2025-01-06 19:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189844', 'tblTempUsageDetail_20' ) start [2025-01-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189844', 'tblTempUsageDetail_20' ) end [2025-01-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189844', 'tblTempVendorCDR_20' ) start [2025-01-06 19:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189844', 'tblTempVendorCDR_20' ) end [2025-01-06 19:57:18] Production.INFO: ProcessCDR(1,14189844,1,1,2) [2025-01-06 19:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189844', 'tblTempUsageDetail_20' ) start [2025-01-06 19:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189844', 'tblTempUsageDetail_20' ) end [2025-01-06 19:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:57:22] Production.INFO: ==21992== Releasing lock... [2025-01-06 19:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:57:22] Production.INFO: 42 MB #Memory Used# [2025-01-06 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:58:05 [end_date_ymd] => 2025-01-06 19:58:05 [RateCDR] => 1 ) [2025-01-06 19:58: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-01-06 16:58:05' and `end` < '2025-01-06 19:58: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-01-06 19:58:19] Production.INFO: count ==1904 [2025-01-06 19:58:20] Production.ERROR: pbx CDR StartTime 2025-01-06 16:58:05 - End Time 2025-01-06 19:58:05 [2025-01-06 19:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189849', 'tblTempUsageDetail_20' ) start [2025-01-06 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189849', 'tblTempUsageDetail_20' ) end [2025-01-06 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189849', 'tblTempVendorCDR_20' ) start [2025-01-06 19:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189849', 'tblTempVendorCDR_20' ) end [2025-01-06 19:58:20] Production.INFO: ProcessCDR(1,14189849,1,1,2) [2025-01-06 19:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189849', 'tblTempUsageDetail_20' ) start [2025-01-06 19:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189849', 'tblTempUsageDetail_20' ) end [2025-01-06 19:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:58:24] Production.INFO: ==22078== Releasing lock... [2025-01-06 19:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:58:24] Production.INFO: 42.25 MB #Memory Used# [2025-01-06 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 16:59:05 [end_date_ymd] => 2025-01-06 19:59:05 [RateCDR] => 1 ) [2025-01-06 19:59: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-01-06 16:59:05' and `end` < '2025-01-06 19:59: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-01-06 19:59:18] Production.INFO: count ==1899 [2025-01-06 19:59:19] Production.ERROR: pbx CDR StartTime 2025-01-06 16:59:05 - End Time 2025-01-06 19:59:05 [2025-01-06 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189854', 'tblTempUsageDetail_20' ) start [2025-01-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189854', 'tblTempUsageDetail_20' ) end [2025-01-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189854', 'tblTempVendorCDR_20' ) start [2025-01-06 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189854', 'tblTempVendorCDR_20' ) end [2025-01-06 19:59:19] Production.INFO: ProcessCDR(1,14189854,1,1,2) [2025-01-06 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189854', 'tblTempUsageDetail_20' ) start [2025-01-06 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189854', 'tblTempUsageDetail_20' ) end [2025-01-06 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 19:59:22] Production.INFO: ==22160== Releasing lock... [2025-01-06 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 19:59:22] Production.INFO: 42 MB #Memory Used# [2025-01-06 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:00:05 [end_date_ymd] => 2025-01-06 20:00:05 [RateCDR] => 1 ) [2025-01-06 20: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-01-06 17:00:05' and `end` < '2025-01-06 20: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-01-06 20:00:19] Production.INFO: count ==1878 [2025-01-06 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:00:05 - End Time 2025-01-06 20:00:05 [2025-01-06 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189859', 'tblTempUsageDetail_20' ) start [2025-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189859', 'tblTempUsageDetail_20' ) end [2025-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189859', 'tblTempVendorCDR_20' ) start [2025-01-06 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189859', 'tblTempVendorCDR_20' ) end [2025-01-06 20:00:19] Production.INFO: ProcessCDR(1,14189859,1,1,2) [2025-01-06 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189859', 'tblTempUsageDetail_20' ) start [2025-01-06 20:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189859', 'tblTempUsageDetail_20' ) end [2025-01-06 20:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:00:22] Production.INFO: ==22244== Releasing lock... [2025-01-06 20:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:00:22] Production.INFO: 42.25 MB #Memory Used# [2025-01-06 20:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:01:05 [end_date_ymd] => 2025-01-06 20:01:05 [RateCDR] => 1 ) [2025-01-06 20:01: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-01-06 17:01:05' and `end` < '2025-01-06 20:01: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-01-06 20:01:18] Production.INFO: count ==1757 [2025-01-06 20:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:01:05 - End Time 2025-01-06 20:01:05 [2025-01-06 20:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189865', 'tblTempUsageDetail_20' ) start [2025-01-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189865', 'tblTempUsageDetail_20' ) end [2025-01-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189865', 'tblTempVendorCDR_20' ) start [2025-01-06 20:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189865', 'tblTempVendorCDR_20' ) end [2025-01-06 20:01:18] Production.INFO: ProcessCDR(1,14189865,1,1,2) [2025-01-06 20:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189865', 'tblTempUsageDetail_20' ) start [2025-01-06 20:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189865', 'tblTempUsageDetail_20' ) end [2025-01-06 20:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:01:21] Production.INFO: ==22382== Releasing lock... [2025-01-06 20:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:01:21] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:02:05 [end_date_ymd] => 2025-01-06 20:02:05 [RateCDR] => 1 ) [2025-01-06 20:02: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-01-06 17:02:05' and `end` < '2025-01-06 20:02: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-01-06 20:02:18] Production.INFO: count ==1749 [2025-01-06 20:02:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:02:05 - End Time 2025-01-06 20:02:05 [2025-01-06 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189870', 'tblTempUsageDetail_20' ) start [2025-01-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189870', 'tblTempUsageDetail_20' ) end [2025-01-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189870', 'tblTempVendorCDR_20' ) start [2025-01-06 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189870', 'tblTempVendorCDR_20' ) end [2025-01-06 20:02:19] Production.INFO: ProcessCDR(1,14189870,1,1,2) [2025-01-06 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189870', 'tblTempUsageDetail_20' ) start [2025-01-06 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189870', 'tblTempUsageDetail_20' ) end [2025-01-06 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:02:22] Production.INFO: ==22467== Releasing lock... [2025-01-06 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:02:22] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:03:04 [end_date_ymd] => 2025-01-06 20:03:04 [RateCDR] => 1 ) [2025-01-06 20:03: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-01-06 17:03:04' and `end` < '2025-01-06 20:03: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-01-06 20:03:17] Production.INFO: count ==1739 [2025-01-06 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:03:04 - End Time 2025-01-06 20:03:04 [2025-01-06 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189875', 'tblTempUsageDetail_20' ) start [2025-01-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189875', 'tblTempUsageDetail_20' ) end [2025-01-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189875', 'tblTempVendorCDR_20' ) start [2025-01-06 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189875', 'tblTempVendorCDR_20' ) end [2025-01-06 20:03:18] Production.INFO: ProcessCDR(1,14189875,1,1,2) [2025-01-06 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189875', 'tblTempUsageDetail_20' ) start [2025-01-06 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189875', 'tblTempUsageDetail_20' ) end [2025-01-06 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:03:22] Production.INFO: ==22547== Releasing lock... [2025-01-06 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:03:22] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:04:05 [end_date_ymd] => 2025-01-06 20:04:05 [RateCDR] => 1 ) [2025-01-06 20:04: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-01-06 17:04:05' and `end` < '2025-01-06 20:04: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-01-06 20:04:18] Production.INFO: count ==1740 [2025-01-06 20:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:04:05 - End Time 2025-01-06 20:04:05 [2025-01-06 20:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189880', 'tblTempUsageDetail_20' ) start [2025-01-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189880', 'tblTempUsageDetail_20' ) end [2025-01-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189880', 'tblTempVendorCDR_20' ) start [2025-01-06 20:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189880', 'tblTempVendorCDR_20' ) end [2025-01-06 20:04:19] Production.INFO: ProcessCDR(1,14189880,1,1,2) [2025-01-06 20:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189880', 'tblTempUsageDetail_20' ) start [2025-01-06 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189880', 'tblTempUsageDetail_20' ) end [2025-01-06 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:04:22] Production.INFO: ==22631== Releasing lock... [2025-01-06 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:04:22] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:05:05 [end_date_ymd] => 2025-01-06 20:05:05 [RateCDR] => 1 ) [2025-01-06 20:05: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-01-06 17:05:05' and `end` < '2025-01-06 20:05: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-01-06 20:05:18] Production.INFO: count ==1740 [2025-01-06 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:05:05 - End Time 2025-01-06 20:05:05 [2025-01-06 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189885', 'tblTempUsageDetail_20' ) start [2025-01-06 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189885', 'tblTempUsageDetail_20' ) end [2025-01-06 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189885', 'tblTempVendorCDR_20' ) start [2025-01-06 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189885', 'tblTempVendorCDR_20' ) end [2025-01-06 20:05:18] Production.INFO: ProcessCDR(1,14189885,1,1,2) [2025-01-06 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189885', 'tblTempUsageDetail_20' ) start [2025-01-06 20:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189885', 'tblTempUsageDetail_20' ) end [2025-01-06 20:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:05:23] Production.INFO: ==22722== Releasing lock... [2025-01-06 20:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:05:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-06 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:06:05 [end_date_ymd] => 2025-01-06 20:06:05 [RateCDR] => 1 ) [2025-01-06 20:06: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-01-06 17:06:05' and `end` < '2025-01-06 20:06: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-01-06 20:06:18] Production.INFO: count ==1725 [2025-01-06 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:06:05 - End Time 2025-01-06 20:06:05 [2025-01-06 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189890', 'tblTempUsageDetail_20' ) start [2025-01-06 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189890', 'tblTempUsageDetail_20' ) end [2025-01-06 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189890', 'tblTempVendorCDR_20' ) start [2025-01-06 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189890', 'tblTempVendorCDR_20' ) end [2025-01-06 20:06:18] Production.INFO: ProcessCDR(1,14189890,1,1,2) [2025-01-06 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189890', 'tblTempUsageDetail_20' ) start [2025-01-06 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189890', 'tblTempUsageDetail_20' ) end [2025-01-06 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:06:21] Production.INFO: ==22806== Releasing lock... [2025-01-06 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:06:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-06 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:07:05 [end_date_ymd] => 2025-01-06 20:07:05 [RateCDR] => 1 ) [2025-01-06 20:07: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-01-06 17:07:05' and `end` < '2025-01-06 20:07: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-01-06 20:07:18] Production.INFO: count ==1723 [2025-01-06 20:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:07:05 - End Time 2025-01-06 20:07:05 [2025-01-06 20:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189895', 'tblTempUsageDetail_20' ) start [2025-01-06 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189895', 'tblTempUsageDetail_20' ) end [2025-01-06 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189895', 'tblTempVendorCDR_20' ) start [2025-01-06 20:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189895', 'tblTempVendorCDR_20' ) end [2025-01-06 20:07:18] Production.INFO: ProcessCDR(1,14189895,1,1,2) [2025-01-06 20:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189895', 'tblTempUsageDetail_20' ) start [2025-01-06 20:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189895', 'tblTempUsageDetail_20' ) end [2025-01-06 20:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:07:21] Production.INFO: ==22890== Releasing lock... [2025-01-06 20:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:07:21] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:08:05 [end_date_ymd] => 2025-01-06 20:08:05 [RateCDR] => 1 ) [2025-01-06 20:08: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-01-06 17:08:05' and `end` < '2025-01-06 20:08: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-01-06 20:08:18] Production.INFO: count ==1718 [2025-01-06 20:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:08:05 - End Time 2025-01-06 20:08:05 [2025-01-06 20:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189900', 'tblTempUsageDetail_20' ) start [2025-01-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189900', 'tblTempUsageDetail_20' ) end [2025-01-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189900', 'tblTempVendorCDR_20' ) start [2025-01-06 20:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189900', 'tblTempVendorCDR_20' ) end [2025-01-06 20:08:18] Production.INFO: ProcessCDR(1,14189900,1,1,2) [2025-01-06 20:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189900', 'tblTempUsageDetail_20' ) start [2025-01-06 20:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189900', 'tblTempUsageDetail_20' ) end [2025-01-06 20:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:08:21] Production.INFO: ==22977== Releasing lock... [2025-01-06 20:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:08:21] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:09:06 [end_date_ymd] => 2025-01-06 20:09:06 [RateCDR] => 1 ) [2025-01-06 20:09: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-01-06 17:09:06' and `end` < '2025-01-06 20:09: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-01-06 20:09:19] Production.INFO: count ==1713 [2025-01-06 20:09:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:09:06 - End Time 2025-01-06 20:09:06 [2025-01-06 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189905', 'tblTempUsageDetail_20' ) start [2025-01-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189905', 'tblTempUsageDetail_20' ) end [2025-01-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189905', 'tblTempVendorCDR_20' ) start [2025-01-06 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189905', 'tblTempVendorCDR_20' ) end [2025-01-06 20:09:19] Production.INFO: ProcessCDR(1,14189905,1,1,2) [2025-01-06 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189905', 'tblTempUsageDetail_20' ) start [2025-01-06 20:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189905', 'tblTempUsageDetail_20' ) end [2025-01-06 20:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:09:22] Production.INFO: ==23065== Releasing lock... [2025-01-06 20:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:09:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-06 20:10:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:10:04 [end_date_ymd] => 2025-01-06 20:10:04 [RateCDR] => 1 ) [2025-01-06 20:10: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-01-06 17:10:04' and `end` < '2025-01-06 20:10: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-01-06 20:10:18] Production.INFO: count ==1702 [2025-01-06 20:10:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:10:04 - End Time 2025-01-06 20:10:04 [2025-01-06 20:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189910', 'tblTempUsageDetail_20' ) start [2025-01-06 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189910', 'tblTempUsageDetail_20' ) end [2025-01-06 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189910', 'tblTempVendorCDR_20' ) start [2025-01-06 20:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189910', 'tblTempVendorCDR_20' ) end [2025-01-06 20:10:18] Production.INFO: ProcessCDR(1,14189910,1,1,2) [2025-01-06 20:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189910', 'tblTempUsageDetail_20' ) start [2025-01-06 20:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189910', 'tblTempUsageDetail_20' ) end [2025-01-06 20:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:10:21] Production.INFO: ==23156== Releasing lock... [2025-01-06 20:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:10:21] Production.INFO: 41 MB #Memory Used# [2025-01-06 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:11:05 [end_date_ymd] => 2025-01-06 20:11:05 [RateCDR] => 1 ) [2025-01-06 20:11: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-01-06 17:11:05' and `end` < '2025-01-06 20:11: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-01-06 20:11:19] Production.INFO: count ==1643 [2025-01-06 20:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:11:05 - End Time 2025-01-06 20:11:05 [2025-01-06 20:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189916', 'tblTempUsageDetail_20' ) start [2025-01-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189916', 'tblTempUsageDetail_20' ) end [2025-01-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189916', 'tblTempVendorCDR_20' ) start [2025-01-06 20:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189916', 'tblTempVendorCDR_20' ) end [2025-01-06 20:11:19] Production.INFO: ProcessCDR(1,14189916,1,1,2) [2025-01-06 20:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189916', 'tblTempUsageDetail_20' ) start [2025-01-06 20:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189916', 'tblTempUsageDetail_20' ) end [2025-01-06 20:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:11:22] Production.INFO: ==23278== Releasing lock... [2025-01-06 20:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:11:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 20:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:12:04 [end_date_ymd] => 2025-01-06 20:12:04 [RateCDR] => 1 ) [2025-01-06 20:12: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-01-06 17:12:04' and `end` < '2025-01-06 20:12: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-01-06 20:12:17] Production.INFO: count ==1636 [2025-01-06 20:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:12:04 - End Time 2025-01-06 20:12:04 [2025-01-06 20:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189921', 'tblTempUsageDetail_20' ) start [2025-01-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189921', 'tblTempUsageDetail_20' ) end [2025-01-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189921', 'tblTempVendorCDR_20' ) start [2025-01-06 20:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189921', 'tblTempVendorCDR_20' ) end [2025-01-06 20:12:18] Production.INFO: ProcessCDR(1,14189921,1,1,2) [2025-01-06 20:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189921', 'tblTempUsageDetail_20' ) start [2025-01-06 20:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189921', 'tblTempUsageDetail_20' ) end [2025-01-06 20:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:12:21] Production.INFO: ==23359== Releasing lock... [2025-01-06 20:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:12:21] Production.INFO: 40 MB #Memory Used# [2025-01-06 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:13:05 [end_date_ymd] => 2025-01-06 20:13:05 [RateCDR] => 1 ) [2025-01-06 20:13: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-01-06 17:13:05' and `end` < '2025-01-06 20:13: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-01-06 20:13:18] Production.INFO: count ==1625 [2025-01-06 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:13:05 - End Time 2025-01-06 20:13:05 [2025-01-06 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189926', 'tblTempUsageDetail_20' ) start [2025-01-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189926', 'tblTempUsageDetail_20' ) end [2025-01-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189926', 'tblTempVendorCDR_20' ) start [2025-01-06 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189926', 'tblTempVendorCDR_20' ) end [2025-01-06 20:13:18] Production.INFO: ProcessCDR(1,14189926,1,1,2) [2025-01-06 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189926', 'tblTempUsageDetail_20' ) start [2025-01-06 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189926', 'tblTempUsageDetail_20' ) end [2025-01-06 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:13:21] Production.INFO: ==23442== Releasing lock... [2025-01-06 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:13:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-06 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:14:05 [end_date_ymd] => 2025-01-06 20:14:05 [RateCDR] => 1 ) [2025-01-06 20:14: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-01-06 17:14:05' and `end` < '2025-01-06 20:14: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-01-06 20:14:18] Production.INFO: count ==1627 [2025-01-06 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:14:05 - End Time 2025-01-06 20:14:05 [2025-01-06 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189931', 'tblTempUsageDetail_20' ) start [2025-01-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189931', 'tblTempUsageDetail_20' ) end [2025-01-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189931', 'tblTempVendorCDR_20' ) start [2025-01-06 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189931', 'tblTempVendorCDR_20' ) end [2025-01-06 20:14:19] Production.INFO: ProcessCDR(1,14189931,1,1,2) [2025-01-06 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189931', 'tblTempUsageDetail_20' ) start [2025-01-06 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189931', 'tblTempUsageDetail_20' ) end [2025-01-06 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:14:22] Production.INFO: ==23528== Releasing lock... [2025-01-06 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:14:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:15:05 [end_date_ymd] => 2025-01-06 20:15:05 [RateCDR] => 1 ) [2025-01-06 20:15: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-01-06 17:15:05' and `end` < '2025-01-06 20:15: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-01-06 20:15:18] Production.INFO: count ==1624 [2025-01-06 20:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:15:05 - End Time 2025-01-06 20:15:05 [2025-01-06 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189936', 'tblTempUsageDetail_20' ) start [2025-01-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189936', 'tblTempUsageDetail_20' ) end [2025-01-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189936', 'tblTempVendorCDR_20' ) start [2025-01-06 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189936', 'tblTempVendorCDR_20' ) end [2025-01-06 20:15:18] Production.INFO: ProcessCDR(1,14189936,1,1,2) [2025-01-06 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189936', 'tblTempUsageDetail_20' ) start [2025-01-06 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189936', 'tblTempUsageDetail_20' ) end [2025-01-06 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:15:21] Production.INFO: ==23613== Releasing lock... [2025-01-06 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-06 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:16:05 [end_date_ymd] => 2025-01-06 20:16:05 [RateCDR] => 1 ) [2025-01-06 20:16: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-01-06 17:16:05' and `end` < '2025-01-06 20:16: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-01-06 20:16:18] Production.INFO: count ==1621 [2025-01-06 20:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:16:05 - End Time 2025-01-06 20:16:05 [2025-01-06 20:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189941', 'tblTempUsageDetail_20' ) start [2025-01-06 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189941', 'tblTempUsageDetail_20' ) end [2025-01-06 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189941', 'tblTempVendorCDR_20' ) start [2025-01-06 20:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189941', 'tblTempVendorCDR_20' ) end [2025-01-06 20:16:18] Production.INFO: ProcessCDR(1,14189941,1,1,2) [2025-01-06 20:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189941', 'tblTempUsageDetail_20' ) start [2025-01-06 20:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189941', 'tblTempUsageDetail_20' ) end [2025-01-06 20:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:16:21] Production.INFO: ==23700== Releasing lock... [2025-01-06 20:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:16:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-06 20:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:17:04 [end_date_ymd] => 2025-01-06 20:17:04 [RateCDR] => 1 ) [2025-01-06 20:17: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-01-06 17:17:04' and `end` < '2025-01-06 20:17: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-01-06 20:17:19] Production.INFO: count ==1616 [2025-01-06 20:17:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:17:04 - End Time 2025-01-06 20:17:04 [2025-01-06 20:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189946', 'tblTempUsageDetail_20' ) start [2025-01-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189946', 'tblTempUsageDetail_20' ) end [2025-01-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189946', 'tblTempVendorCDR_20' ) start [2025-01-06 20:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189946', 'tblTempVendorCDR_20' ) end [2025-01-06 20:17:19] Production.INFO: ProcessCDR(1,14189946,1,1,2) [2025-01-06 20:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189946', 'tblTempUsageDetail_20' ) start [2025-01-06 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189946', 'tblTempUsageDetail_20' ) end [2025-01-06 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:17:22] Production.INFO: ==23782== Releasing lock... [2025-01-06 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:17:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-06 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:18:05 [end_date_ymd] => 2025-01-06 20:18:05 [RateCDR] => 1 ) [2025-01-06 20:18: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-01-06 17:18:05' and `end` < '2025-01-06 20:18: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-01-06 20:18:20] Production.INFO: count ==1616 [2025-01-06 20:18:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:18:05 - End Time 2025-01-06 20:18:05 [2025-01-06 20:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189951', 'tblTempUsageDetail_20' ) start [2025-01-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189951', 'tblTempUsageDetail_20' ) end [2025-01-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189951', 'tblTempVendorCDR_20' ) start [2025-01-06 20:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189951', 'tblTempVendorCDR_20' ) end [2025-01-06 20:18:20] Production.INFO: ProcessCDR(1,14189951,1,1,2) [2025-01-06 20:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189951', 'tblTempUsageDetail_20' ) start [2025-01-06 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189951', 'tblTempUsageDetail_20' ) end [2025-01-06 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:18:23] Production.INFO: ==23875== Releasing lock... [2025-01-06 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:18:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-06 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:19:05 [end_date_ymd] => 2025-01-06 20:19:05 [RateCDR] => 1 ) [2025-01-06 20:19: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-01-06 17:19:05' and `end` < '2025-01-06 20:19: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-01-06 20:19:18] Production.INFO: count ==1621 [2025-01-06 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:19:05 - End Time 2025-01-06 20:19:05 [2025-01-06 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189956', 'tblTempUsageDetail_20' ) start [2025-01-06 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189956', 'tblTempUsageDetail_20' ) end [2025-01-06 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189956', 'tblTempVendorCDR_20' ) start [2025-01-06 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189956', 'tblTempVendorCDR_20' ) end [2025-01-06 20:19:19] Production.INFO: ProcessCDR(1,14189956,1,1,2) [2025-01-06 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189956', 'tblTempUsageDetail_20' ) start [2025-01-06 20:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189956', 'tblTempUsageDetail_20' ) end [2025-01-06 20:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:19:22] Production.INFO: ==23955== Releasing lock... [2025-01-06 20:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:19:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-06 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:20:06 [end_date_ymd] => 2025-01-06 20:20:06 [RateCDR] => 1 ) [2025-01-06 20:20: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-01-06 17:20:06' and `end` < '2025-01-06 20:20: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-01-06 20:20:20] Production.INFO: count ==1604 [2025-01-06 20:20:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:20:06 - End Time 2025-01-06 20:20:06 [2025-01-06 20:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189962', 'tblTempUsageDetail_20' ) start [2025-01-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189962', 'tblTempUsageDetail_20' ) end [2025-01-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189962', 'tblTempVendorCDR_20' ) start [2025-01-06 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189962', 'tblTempVendorCDR_20' ) end [2025-01-06 20:20:20] Production.INFO: ProcessCDR(1,14189962,1,1,2) [2025-01-06 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189962', 'tblTempUsageDetail_20' ) start [2025-01-06 20:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189962', 'tblTempUsageDetail_20' ) end [2025-01-06 20:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:20:23] Production.INFO: ==24042== Releasing lock... [2025-01-06 20:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:20:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:21:05 [end_date_ymd] => 2025-01-06 20:21:05 [RateCDR] => 1 ) [2025-01-06 20:21: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-01-06 17:21:05' and `end` < '2025-01-06 20:21: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-01-06 20:21:20] Production.INFO: count ==1556 [2025-01-06 20:21:21] Production.ERROR: pbx CDR StartTime 2025-01-06 17:21:05 - End Time 2025-01-06 20:21:05 [2025-01-06 20:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189967', 'tblTempUsageDetail_20' ) start [2025-01-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189967', 'tblTempUsageDetail_20' ) end [2025-01-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189967', 'tblTempVendorCDR_20' ) start [2025-01-06 20:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189967', 'tblTempVendorCDR_20' ) end [2025-01-06 20:21:21] Production.INFO: ProcessCDR(1,14189967,1,1,2) [2025-01-06 20:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189967', 'tblTempUsageDetail_20' ) start [2025-01-06 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189967', 'tblTempUsageDetail_20' ) end [2025-01-06 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:21:24] Production.INFO: ==24128== Releasing lock... [2025-01-06 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:21:24] Production.INFO: 40 MB #Memory Used# [2025-01-06 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:22:05 [end_date_ymd] => 2025-01-06 20:22:05 [RateCDR] => 1 ) [2025-01-06 20:22: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-01-06 17:22:05' and `end` < '2025-01-06 20:22: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-01-06 20:22:19] Production.INFO: count ==1548 [2025-01-06 20:22:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:22:05 - End Time 2025-01-06 20:22:05 [2025-01-06 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189972', 'tblTempUsageDetail_20' ) start [2025-01-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189972', 'tblTempUsageDetail_20' ) end [2025-01-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189972', 'tblTempVendorCDR_20' ) start [2025-01-06 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189972', 'tblTempVendorCDR_20' ) end [2025-01-06 20:22:19] Production.INFO: ProcessCDR(1,14189972,1,1,2) [2025-01-06 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189972', 'tblTempUsageDetail_20' ) start [2025-01-06 20:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189972', 'tblTempUsageDetail_20' ) end [2025-01-06 20:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:22:23] Production.INFO: ==24209== Releasing lock... [2025-01-06 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:22:23] Production.INFO: 40 MB #Memory Used# [2025-01-06 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:23:05 [end_date_ymd] => 2025-01-06 20:23:05 [RateCDR] => 1 ) [2025-01-06 20:23: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-01-06 17:23:05' and `end` < '2025-01-06 20:23: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-01-06 20:23:18] Production.INFO: count ==1543 [2025-01-06 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:23:05 - End Time 2025-01-06 20:23:05 [2025-01-06 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189977', 'tblTempUsageDetail_20' ) start [2025-01-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189977', 'tblTempUsageDetail_20' ) end [2025-01-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189977', 'tblTempVendorCDR_20' ) start [2025-01-06 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189977', 'tblTempVendorCDR_20' ) end [2025-01-06 20:23:18] Production.INFO: ProcessCDR(1,14189977,1,1,2) [2025-01-06 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189977', 'tblTempUsageDetail_20' ) start [2025-01-06 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189977', 'tblTempUsageDetail_20' ) end [2025-01-06 20:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:23:21] Production.INFO: ==24307== Releasing lock... [2025-01-06 20:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:23:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:24:05 [end_date_ymd] => 2025-01-06 20:24:05 [RateCDR] => 1 ) [2025-01-06 20:24: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-01-06 17:24:05' and `end` < '2025-01-06 20:24: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-01-06 20:24:19] Production.INFO: count ==1536 [2025-01-06 20:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:24:05 - End Time 2025-01-06 20:24:05 [2025-01-06 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189982', 'tblTempUsageDetail_20' ) start [2025-01-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189982', 'tblTempUsageDetail_20' ) end [2025-01-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189982', 'tblTempVendorCDR_20' ) start [2025-01-06 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189982', 'tblTempVendorCDR_20' ) end [2025-01-06 20:24:19] Production.INFO: ProcessCDR(1,14189982,1,1,2) [2025-01-06 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189982', 'tblTempUsageDetail_20' ) start [2025-01-06 20:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189982', 'tblTempUsageDetail_20' ) end [2025-01-06 20:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:24:22] Production.INFO: ==24391== Releasing lock... [2025-01-06 20:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:24:22] Production.INFO: 39.5 MB #Memory Used# [2025-01-06 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:25:05 [end_date_ymd] => 2025-01-06 20:25:05 [RateCDR] => 1 ) [2025-01-06 20: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-01-06 17:25:05' and `end` < '2025-01-06 20: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-01-06 20:25:17] Production.INFO: count ==1532 [2025-01-06 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:25:05 - End Time 2025-01-06 20:25:05 [2025-01-06 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189987', 'tblTempUsageDetail_20' ) start [2025-01-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189987', 'tblTempUsageDetail_20' ) end [2025-01-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189987', 'tblTempVendorCDR_20' ) start [2025-01-06 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189987', 'tblTempVendorCDR_20' ) end [2025-01-06 20:25:18] Production.INFO: ProcessCDR(1,14189987,1,1,2) [2025-01-06 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189987', 'tblTempUsageDetail_20' ) start [2025-01-06 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189987', 'tblTempUsageDetail_20' ) end [2025-01-06 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:25:21] Production.INFO: ==24477== Releasing lock... [2025-01-06 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:25:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:26:05 [end_date_ymd] => 2025-01-06 20:26:05 [RateCDR] => 1 ) [2025-01-06 20:26: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-01-06 17:26:05' and `end` < '2025-01-06 20:26: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-01-06 20:26:18] Production.INFO: count ==1523 [2025-01-06 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:26:05 - End Time 2025-01-06 20:26:05 [2025-01-06 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189992', 'tblTempUsageDetail_20' ) start [2025-01-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189992', 'tblTempUsageDetail_20' ) end [2025-01-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189992', 'tblTempVendorCDR_20' ) start [2025-01-06 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189992', 'tblTempVendorCDR_20' ) end [2025-01-06 20:26:19] Production.INFO: ProcessCDR(1,14189992,1,1,2) [2025-01-06 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189992', 'tblTempUsageDetail_20' ) start [2025-01-06 20:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189992', 'tblTempUsageDetail_20' ) end [2025-01-06 20:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:26:21] Production.INFO: ==24562== Releasing lock... [2025-01-06 20:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:26:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:27:05 [end_date_ymd] => 2025-01-06 20:27:05 [RateCDR] => 1 ) [2025-01-06 20:27: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-01-06 17:27:05' and `end` < '2025-01-06 20:27: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-01-06 20:27:18] Production.INFO: count ==1525 [2025-01-06 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:27:05 - End Time 2025-01-06 20:27:05 [2025-01-06 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189997', 'tblTempUsageDetail_20' ) start [2025-01-06 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14189997', 'tblTempUsageDetail_20' ) end [2025-01-06 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189997', 'tblTempVendorCDR_20' ) start [2025-01-06 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14189997', 'tblTempVendorCDR_20' ) end [2025-01-06 20:27:18] Production.INFO: ProcessCDR(1,14189997,1,1,2) [2025-01-06 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14189997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14189997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14189997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14189997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189997', 'tblTempUsageDetail_20' ) start [2025-01-06 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14189997', 'tblTempUsageDetail_20' ) end [2025-01-06 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:27:21] Production.INFO: ==24685== Releasing lock... [2025-01-06 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:27:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-06 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:28:05 [end_date_ymd] => 2025-01-06 20:28:05 [RateCDR] => 1 ) [2025-01-06 20:28: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-01-06 17:28:05' and `end` < '2025-01-06 20:28: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-01-06 20:28:19] Production.INFO: count ==1506 [2025-01-06 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:28:05 - End Time 2025-01-06 20:28:05 [2025-01-06 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190002', 'tblTempUsageDetail_20' ) start [2025-01-06 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190002', 'tblTempUsageDetail_20' ) end [2025-01-06 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190002', 'tblTempVendorCDR_20' ) start [2025-01-06 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190002', 'tblTempVendorCDR_20' ) end [2025-01-06 20:28:20] Production.INFO: ProcessCDR(1,14190002,1,1,2) [2025-01-06 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190002', 'tblTempUsageDetail_20' ) start [2025-01-06 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190002', 'tblTempUsageDetail_20' ) end [2025-01-06 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:28:23] Production.INFO: ==24766== Releasing lock... [2025-01-06 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:28:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:29:05 [end_date_ymd] => 2025-01-06 20:29:05 [RateCDR] => 1 ) [2025-01-06 20:29: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-01-06 17:29:05' and `end` < '2025-01-06 20:29: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-01-06 20:29:18] Production.INFO: count ==1499 [2025-01-06 20:29:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:29:05 - End Time 2025-01-06 20:29:05 [2025-01-06 20:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190007', 'tblTempUsageDetail_20' ) start [2025-01-06 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190007', 'tblTempUsageDetail_20' ) end [2025-01-06 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190007', 'tblTempVendorCDR_20' ) start [2025-01-06 20:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190007', 'tblTempVendorCDR_20' ) end [2025-01-06 20:29:19] Production.INFO: ProcessCDR(1,14190007,1,1,2) [2025-01-06 20:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190007', 'tblTempUsageDetail_20' ) start [2025-01-06 20:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190007', 'tblTempUsageDetail_20' ) end [2025-01-06 20:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:29:22] Production.INFO: ==24850== Releasing lock... [2025-01-06 20:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:30:06 [end_date_ymd] => 2025-01-06 20:30:06 [RateCDR] => 1 ) [2025-01-06 20:30: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-01-06 17:30:06' and `end` < '2025-01-06 20:30: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-01-06 20:30:20] Production.INFO: count ==1496 [2025-01-06 20:30:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:30:06 - End Time 2025-01-06 20:30:06 [2025-01-06 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190012', 'tblTempUsageDetail_20' ) start [2025-01-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190012', 'tblTempUsageDetail_20' ) end [2025-01-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190012', 'tblTempVendorCDR_20' ) start [2025-01-06 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190012', 'tblTempVendorCDR_20' ) end [2025-01-06 20:30:20] Production.INFO: ProcessCDR(1,14190012,1,1,2) [2025-01-06 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190012', 'tblTempUsageDetail_20' ) start [2025-01-06 20:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190012', 'tblTempUsageDetail_20' ) end [2025-01-06 20:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:30:24] Production.INFO: ==24935== Releasing lock... [2025-01-06 20:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:30:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-06 20:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:31:04 [end_date_ymd] => 2025-01-06 20:31:04 [RateCDR] => 1 ) [2025-01-06 20:31: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-01-06 17:31:04' and `end` < '2025-01-06 20:31: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-01-06 20:31:17] Production.INFO: count ==1449 [2025-01-06 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:31:04 - End Time 2025-01-06 20:31:04 [2025-01-06 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190018', 'tblTempUsageDetail_20' ) start [2025-01-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190018', 'tblTempUsageDetail_20' ) end [2025-01-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190018', 'tblTempVendorCDR_20' ) start [2025-01-06 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190018', 'tblTempVendorCDR_20' ) end [2025-01-06 20:31:18] Production.INFO: ProcessCDR(1,14190018,1,1,2) [2025-01-06 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190018', 'tblTempUsageDetail_20' ) start [2025-01-06 20:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190018', 'tblTempUsageDetail_20' ) end [2025-01-06 20:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:31:21] Production.INFO: ==25025== Releasing lock... [2025-01-06 20:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:31:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:32:05 [end_date_ymd] => 2025-01-06 20:32:05 [RateCDR] => 1 ) [2025-01-06 20:32: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-01-06 17:32:05' and `end` < '2025-01-06 20:32: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-01-06 20:32:18] Production.INFO: count ==1449 [2025-01-06 20:32:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:32:05 - End Time 2025-01-06 20:32:05 [2025-01-06 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190023', 'tblTempUsageDetail_20' ) start [2025-01-06 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190023', 'tblTempUsageDetail_20' ) end [2025-01-06 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190023', 'tblTempVendorCDR_20' ) start [2025-01-06 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190023', 'tblTempVendorCDR_20' ) end [2025-01-06 20:32:19] Production.INFO: ProcessCDR(1,14190023,1,1,2) [2025-01-06 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190023', 'tblTempUsageDetail_20' ) start [2025-01-06 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190023', 'tblTempUsageDetail_20' ) end [2025-01-06 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:32:23] Production.INFO: ==25107== Releasing lock... [2025-01-06 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:32:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-06 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:33:05 [end_date_ymd] => 2025-01-06 20:33:05 [RateCDR] => 1 ) [2025-01-06 20:33: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-01-06 17:33:05' and `end` < '2025-01-06 20:33: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-01-06 20:33:18] Production.INFO: count ==1443 [2025-01-06 20:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:33:05 - End Time 2025-01-06 20:33:05 [2025-01-06 20:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190028', 'tblTempUsageDetail_20' ) start [2025-01-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190028', 'tblTempUsageDetail_20' ) end [2025-01-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190028', 'tblTempVendorCDR_20' ) start [2025-01-06 20:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190028', 'tblTempVendorCDR_20' ) end [2025-01-06 20:33:19] Production.INFO: ProcessCDR(1,14190028,1,1,2) [2025-01-06 20:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190028', 'tblTempUsageDetail_20' ) start [2025-01-06 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190028', 'tblTempUsageDetail_20' ) end [2025-01-06 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:33:22] Production.INFO: ==25191== Releasing lock... [2025-01-06 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:33:22] Production.INFO: 39 MB #Memory Used# [2025-01-06 20:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:34:04 [end_date_ymd] => 2025-01-06 20:34:04 [RateCDR] => 1 ) [2025-01-06 20:34: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-01-06 17:34:04' and `end` < '2025-01-06 20:34: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-01-06 20:34:17] Production.INFO: count ==1445 [2025-01-06 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:34:04 - End Time 2025-01-06 20:34:04 [2025-01-06 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190033', 'tblTempUsageDetail_20' ) start [2025-01-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190033', 'tblTempUsageDetail_20' ) end [2025-01-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190033', 'tblTempVendorCDR_20' ) start [2025-01-06 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190033', 'tblTempVendorCDR_20' ) end [2025-01-06 20:34:18] Production.INFO: ProcessCDR(1,14190033,1,1,2) [2025-01-06 20:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190033', 'tblTempUsageDetail_20' ) start [2025-01-06 20:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190033', 'tblTempUsageDetail_20' ) end [2025-01-06 20:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:34:21] Production.INFO: ==25276== Releasing lock... [2025-01-06 20:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:34:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:35:06 [end_date_ymd] => 2025-01-06 20:35:06 [RateCDR] => 1 ) [2025-01-06 20:35: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-01-06 17:35:06' and `end` < '2025-01-06 20:35: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-01-06 20:35:19] Production.INFO: count ==1437 [2025-01-06 20:35:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:35:06 - End Time 2025-01-06 20:35:06 [2025-01-06 20:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190038', 'tblTempUsageDetail_20' ) start [2025-01-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190038', 'tblTempUsageDetail_20' ) end [2025-01-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190038', 'tblTempVendorCDR_20' ) start [2025-01-06 20:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190038', 'tblTempVendorCDR_20' ) end [2025-01-06 20:35:20] Production.INFO: ProcessCDR(1,14190038,1,1,2) [2025-01-06 20:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190038', 'tblTempUsageDetail_20' ) start [2025-01-06 20:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190038', 'tblTempUsageDetail_20' ) end [2025-01-06 20:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:35:23] Production.INFO: ==25361== Releasing lock... [2025-01-06 20:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:36:05 [end_date_ymd] => 2025-01-06 20:36:05 [RateCDR] => 1 ) [2025-01-06 20:36: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-01-06 17:36:05' and `end` < '2025-01-06 20:36: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-01-06 20:36:20] Production.INFO: count ==1440 [2025-01-06 20:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:36:05 - End Time 2025-01-06 20:36:05 [2025-01-06 20:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190043', 'tblTempUsageDetail_20' ) start [2025-01-06 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190043', 'tblTempUsageDetail_20' ) end [2025-01-06 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190043', 'tblTempVendorCDR_20' ) start [2025-01-06 20:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190043', 'tblTempVendorCDR_20' ) end [2025-01-06 20:36:20] Production.INFO: ProcessCDR(1,14190043,1,1,2) [2025-01-06 20:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190043', 'tblTempUsageDetail_20' ) start [2025-01-06 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190043', 'tblTempUsageDetail_20' ) end [2025-01-06 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:36:23] Production.INFO: ==25439== Releasing lock... [2025-01-06 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-06 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:37:05 [end_date_ymd] => 2025-01-06 20:37:05 [RateCDR] => 1 ) [2025-01-06 20:37: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-01-06 17:37:05' and `end` < '2025-01-06 20:37: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-01-06 20:37:19] Production.INFO: count ==1440 [2025-01-06 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:37:05 - End Time 2025-01-06 20:37:05 [2025-01-06 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190048', 'tblTempUsageDetail_20' ) start [2025-01-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190048', 'tblTempUsageDetail_20' ) end [2025-01-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190048', 'tblTempVendorCDR_20' ) start [2025-01-06 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190048', 'tblTempVendorCDR_20' ) end [2025-01-06 20:37:19] Production.INFO: ProcessCDR(1,14190048,1,1,2) [2025-01-06 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190048', 'tblTempUsageDetail_20' ) start [2025-01-06 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190048', 'tblTempUsageDetail_20' ) end [2025-01-06 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:37:24] Production.INFO: ==25522== Releasing lock... [2025-01-06 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:37:24] Production.INFO: 39 MB #Memory Used# [2025-01-06 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:38:05 [end_date_ymd] => 2025-01-06 20:38:05 [RateCDR] => 1 ) [2025-01-06 20:38: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-01-06 17:38:05' and `end` < '2025-01-06 20:38: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-01-06 20:38:19] Production.INFO: count ==1436 [2025-01-06 20:38:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:38:05 - End Time 2025-01-06 20:38:05 [2025-01-06 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190053', 'tblTempUsageDetail_20' ) start [2025-01-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190053', 'tblTempUsageDetail_20' ) end [2025-01-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190053', 'tblTempVendorCDR_20' ) start [2025-01-06 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190053', 'tblTempVendorCDR_20' ) end [2025-01-06 20:38:19] Production.INFO: ProcessCDR(1,14190053,1,1,2) [2025-01-06 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190053', 'tblTempUsageDetail_20' ) start [2025-01-06 20:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190053', 'tblTempUsageDetail_20' ) end [2025-01-06 20:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:38:23] Production.INFO: ==25606== Releasing lock... [2025-01-06 20:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:38:23] Production.INFO: 39 MB #Memory Used# [2025-01-06 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:39:05 [end_date_ymd] => 2025-01-06 20:39:05 [RateCDR] => 1 ) [2025-01-06 20:39: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-01-06 17:39:05' and `end` < '2025-01-06 20:39: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-01-06 20:39:18] Production.INFO: count ==1434 [2025-01-06 20:39:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:39:05 - End Time 2025-01-06 20:39:05 [2025-01-06 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190058', 'tblTempUsageDetail_20' ) start [2025-01-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190058', 'tblTempUsageDetail_20' ) end [2025-01-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190058', 'tblTempVendorCDR_20' ) start [2025-01-06 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190058', 'tblTempVendorCDR_20' ) end [2025-01-06 20:39:19] Production.INFO: ProcessCDR(1,14190058,1,1,2) [2025-01-06 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190058', 'tblTempUsageDetail_20' ) start [2025-01-06 20:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190058', 'tblTempUsageDetail_20' ) end [2025-01-06 20:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:39:22] Production.INFO: ==25690== Releasing lock... [2025-01-06 20:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:39:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-06 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:40:05 [end_date_ymd] => 2025-01-06 20:40:05 [RateCDR] => 1 ) [2025-01-06 20:40: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-01-06 17:40:05' and `end` < '2025-01-06 20:40: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-01-06 20:40:19] Production.INFO: count ==1429 [2025-01-06 20:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:40:05 - End Time 2025-01-06 20:40:05 [2025-01-06 20:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190064', 'tblTempUsageDetail_20' ) start [2025-01-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190064', 'tblTempUsageDetail_20' ) end [2025-01-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190064', 'tblTempVendorCDR_20' ) start [2025-01-06 20:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190064', 'tblTempVendorCDR_20' ) end [2025-01-06 20:40:19] Production.INFO: ProcessCDR(1,14190064,1,1,2) [2025-01-06 20:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190064', 'tblTempUsageDetail_20' ) start [2025-01-06 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190064', 'tblTempUsageDetail_20' ) end [2025-01-06 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:40:24] Production.INFO: ==25771== Releasing lock... [2025-01-06 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:40:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-06 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:41:05 [end_date_ymd] => 2025-01-06 20:41:05 [RateCDR] => 1 ) [2025-01-06 20:41: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-01-06 17:41:05' and `end` < '2025-01-06 20:41: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-01-06 20:41:19] Production.INFO: count ==1336 [2025-01-06 20:41:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:41:05 - End Time 2025-01-06 20:41:05 [2025-01-06 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190069', 'tblTempUsageDetail_20' ) start [2025-01-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190069', 'tblTempUsageDetail_20' ) end [2025-01-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190069', 'tblTempVendorCDR_20' ) start [2025-01-06 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190069', 'tblTempVendorCDR_20' ) end [2025-01-06 20:41:19] Production.INFO: ProcessCDR(1,14190069,1,1,2) [2025-01-06 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190069', 'tblTempUsageDetail_20' ) start [2025-01-06 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190069', 'tblTempUsageDetail_20' ) end [2025-01-06 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:41:22] Production.INFO: ==25856== Releasing lock... [2025-01-06 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:41:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-06 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:42:05 [end_date_ymd] => 2025-01-06 20:42:05 [RateCDR] => 1 ) [2025-01-06 20:42: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-01-06 17:42:05' and `end` < '2025-01-06 20:42: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-01-06 20:42:19] Production.INFO: count ==1331 [2025-01-06 20:42:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:42:05 - End Time 2025-01-06 20:42:05 [2025-01-06 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190074', 'tblTempUsageDetail_20' ) start [2025-01-06 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190074', 'tblTempUsageDetail_20' ) end [2025-01-06 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190074', 'tblTempVendorCDR_20' ) start [2025-01-06 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190074', 'tblTempVendorCDR_20' ) end [2025-01-06 20:42:19] Production.INFO: ProcessCDR(1,14190074,1,1,2) [2025-01-06 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190074', 'tblTempUsageDetail_20' ) start [2025-01-06 20:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190074', 'tblTempUsageDetail_20' ) end [2025-01-06 20:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:42:22] Production.INFO: ==25980== Releasing lock... [2025-01-06 20:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:42:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-06 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:43:05 [end_date_ymd] => 2025-01-06 20:43:05 [RateCDR] => 1 ) [2025-01-06 20:43: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-01-06 17:43:05' and `end` < '2025-01-06 20:43: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-01-06 20:43:19] Production.INFO: count ==1328 [2025-01-06 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:43:05 - End Time 2025-01-06 20:43:05 [2025-01-06 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190079', 'tblTempUsageDetail_20' ) start [2025-01-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190079', 'tblTempUsageDetail_20' ) end [2025-01-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190079', 'tblTempVendorCDR_20' ) start [2025-01-06 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190079', 'tblTempVendorCDR_20' ) end [2025-01-06 20:43:19] Production.INFO: ProcessCDR(1,14190079,1,1,2) [2025-01-06 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190079', 'tblTempUsageDetail_20' ) start [2025-01-06 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190079', 'tblTempUsageDetail_20' ) end [2025-01-06 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:43:22] Production.INFO: ==26061== Releasing lock... [2025-01-06 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:43:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-06 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:44:05 [end_date_ymd] => 2025-01-06 20:44:05 [RateCDR] => 1 ) [2025-01-06 20:44: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-01-06 17:44:05' and `end` < '2025-01-06 20:44: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-01-06 20:44:18] Production.INFO: count ==1315 [2025-01-06 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:44:05 - End Time 2025-01-06 20:44:05 [2025-01-06 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190084', 'tblTempUsageDetail_20' ) start [2025-01-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190084', 'tblTempUsageDetail_20' ) end [2025-01-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190084', 'tblTempVendorCDR_20' ) start [2025-01-06 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190084', 'tblTempVendorCDR_20' ) end [2025-01-06 20:44:18] Production.INFO: ProcessCDR(1,14190084,1,1,2) [2025-01-06 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190084', 'tblTempUsageDetail_20' ) start [2025-01-06 20:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190084', 'tblTempUsageDetail_20' ) end [2025-01-06 20:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:44:23] Production.INFO: ==26139== Releasing lock... [2025-01-06 20:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:44:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-06 20:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:45:05 [end_date_ymd] => 2025-01-06 20:45:05 [RateCDR] => 1 ) [2025-01-06 20:45: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-01-06 17:45:05' and `end` < '2025-01-06 20:45: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-01-06 20:45:18] Production.INFO: count ==1309 [2025-01-06 20:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:45:05 - End Time 2025-01-06 20:45:05 [2025-01-06 20:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190089', 'tblTempUsageDetail_20' ) start [2025-01-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190089', 'tblTempUsageDetail_20' ) end [2025-01-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190089', 'tblTempVendorCDR_20' ) start [2025-01-06 20:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190089', 'tblTempVendorCDR_20' ) end [2025-01-06 20:45:18] Production.INFO: ProcessCDR(1,14190089,1,1,2) [2025-01-06 20:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190089', 'tblTempUsageDetail_20' ) start [2025-01-06 20:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190089', 'tblTempUsageDetail_20' ) end [2025-01-06 20:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:45:22] Production.INFO: ==26223== Releasing lock... [2025-01-06 20:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:45:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-06 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:46:05 [end_date_ymd] => 2025-01-06 20:46:05 [RateCDR] => 1 ) [2025-01-06 20:46: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-01-06 17:46:05' and `end` < '2025-01-06 20:46: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-01-06 20:46:18] Production.INFO: count ==1304 [2025-01-06 20:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:46:05 - End Time 2025-01-06 20:46:05 [2025-01-06 20:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190094', 'tblTempUsageDetail_20' ) start [2025-01-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190094', 'tblTempUsageDetail_20' ) end [2025-01-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190094', 'tblTempVendorCDR_20' ) start [2025-01-06 20:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190094', 'tblTempVendorCDR_20' ) end [2025-01-06 20:46:18] Production.INFO: ProcessCDR(1,14190094,1,1,2) [2025-01-06 20:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190094', 'tblTempUsageDetail_20' ) start [2025-01-06 20:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190094', 'tblTempUsageDetail_20' ) end [2025-01-06 20:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:46:21] Production.INFO: ==26304== Releasing lock... [2025-01-06 20:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:46:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 20:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:47:06 [end_date_ymd] => 2025-01-06 20:47:06 [RateCDR] => 1 ) [2025-01-06 20:47: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-01-06 17:47:06' and `end` < '2025-01-06 20:47: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-01-06 20:47:19] Production.INFO: count ==1302 [2025-01-06 20:47:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:47:06 - End Time 2025-01-06 20:47:06 [2025-01-06 20:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190099', 'tblTempUsageDetail_20' ) start [2025-01-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190099', 'tblTempUsageDetail_20' ) end [2025-01-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190099', 'tblTempVendorCDR_20' ) start [2025-01-06 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190099', 'tblTempVendorCDR_20' ) end [2025-01-06 20:47:19] Production.INFO: ProcessCDR(1,14190099,1,1,2) [2025-01-06 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190099', 'tblTempUsageDetail_20' ) start [2025-01-06 20:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190099', 'tblTempUsageDetail_20' ) end [2025-01-06 20:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:47:22] Production.INFO: ==26392== Releasing lock... [2025-01-06 20:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:47:22] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:48:04 [end_date_ymd] => 2025-01-06 20:48:04 [RateCDR] => 1 ) [2025-01-06 20:48: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-01-06 17:48:04' and `end` < '2025-01-06 20:48: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-01-06 20:48:18] Production.INFO: count ==1306 [2025-01-06 20:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:48:04 - End Time 2025-01-06 20:48:04 [2025-01-06 20:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190104', 'tblTempUsageDetail_20' ) start [2025-01-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190104', 'tblTempUsageDetail_20' ) end [2025-01-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190104', 'tblTempVendorCDR_20' ) start [2025-01-06 20:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190104', 'tblTempVendorCDR_20' ) end [2025-01-06 20:48:18] Production.INFO: ProcessCDR(1,14190104,1,1,2) [2025-01-06 20:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190104', 'tblTempUsageDetail_20' ) start [2025-01-06 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190104', 'tblTempUsageDetail_20' ) end [2025-01-06 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:48:22] Production.INFO: ==26475== Releasing lock... [2025-01-06 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:48:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:49:05 [end_date_ymd] => 2025-01-06 20:49:05 [RateCDR] => 1 ) [2025-01-06 20:49: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-01-06 17:49:05' and `end` < '2025-01-06 20:49: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-01-06 20:49:18] Production.INFO: count ==1307 [2025-01-06 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:49:05 - End Time 2025-01-06 20:49:05 [2025-01-06 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190109', 'tblTempUsageDetail_20' ) start [2025-01-06 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190109', 'tblTempUsageDetail_20' ) end [2025-01-06 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190109', 'tblTempVendorCDR_20' ) start [2025-01-06 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190109', 'tblTempVendorCDR_20' ) end [2025-01-06 20:49:18] Production.INFO: ProcessCDR(1,14190109,1,1,2) [2025-01-06 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190109', 'tblTempUsageDetail_20' ) start [2025-01-06 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190109', 'tblTempUsageDetail_20' ) end [2025-01-06 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:49:21] Production.INFO: ==26559== Releasing lock... [2025-01-06 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:49:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-06 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:50:06 [end_date_ymd] => 2025-01-06 20:50:06 [RateCDR] => 1 ) [2025-01-06 20:50: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-01-06 17:50:06' and `end` < '2025-01-06 20:50: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-01-06 20:50:19] Production.INFO: count ==1306 [2025-01-06 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:50:06 - End Time 2025-01-06 20:50:06 [2025-01-06 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190115', 'tblTempUsageDetail_20' ) start [2025-01-06 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190115', 'tblTempUsageDetail_20' ) end [2025-01-06 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190115', 'tblTempVendorCDR_20' ) start [2025-01-06 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190115', 'tblTempVendorCDR_20' ) end [2025-01-06 20:50:20] Production.INFO: ProcessCDR(1,14190115,1,1,2) [2025-01-06 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190115', 'tblTempUsageDetail_20' ) start [2025-01-06 20:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190115', 'tblTempUsageDetail_20' ) end [2025-01-06 20:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:50:23] Production.INFO: ==26645== Releasing lock... [2025-01-06 20:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:50:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:51:05 [end_date_ymd] => 2025-01-06 20:51:05 [RateCDR] => 1 ) [2025-01-06 20:51: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-01-06 17:51:05' and `end` < '2025-01-06 20:51: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-01-06 20:51:18] Production.INFO: count ==1265 [2025-01-06 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:51:05 - End Time 2025-01-06 20:51:05 [2025-01-06 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190120', 'tblTempUsageDetail_20' ) start [2025-01-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190120', 'tblTempUsageDetail_20' ) end [2025-01-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190120', 'tblTempVendorCDR_20' ) start [2025-01-06 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190120', 'tblTempVendorCDR_20' ) end [2025-01-06 20:51:18] Production.INFO: ProcessCDR(1,14190120,1,1,2) [2025-01-06 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190120', 'tblTempUsageDetail_20' ) start [2025-01-06 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190120', 'tblTempUsageDetail_20' ) end [2025-01-06 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:51:21] Production.INFO: ==26735== Releasing lock... [2025-01-06 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:51:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:52:06 [end_date_ymd] => 2025-01-06 20:52:06 [RateCDR] => 1 ) [2025-01-06 20:52: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-01-06 17:52:06' and `end` < '2025-01-06 20:52: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-01-06 20:52:21] Production.INFO: count ==1260 [2025-01-06 20:52:21] Production.ERROR: pbx CDR StartTime 2025-01-06 17:52:06 - End Time 2025-01-06 20:52:06 [2025-01-06 20:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190125', 'tblTempUsageDetail_20' ) start [2025-01-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190125', 'tblTempUsageDetail_20' ) end [2025-01-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190125', 'tblTempVendorCDR_20' ) start [2025-01-06 20:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190125', 'tblTempVendorCDR_20' ) end [2025-01-06 20:52:21] Production.INFO: ProcessCDR(1,14190125,1,1,2) [2025-01-06 20:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190125', 'tblTempUsageDetail_20' ) start [2025-01-06 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190125', 'tblTempUsageDetail_20' ) end [2025-01-06 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:52:24] Production.INFO: ==26837== Releasing lock... [2025-01-06 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:52:24] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:53:05 [end_date_ymd] => 2025-01-06 20:53:05 [RateCDR] => 1 ) [2025-01-06 20:53: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-01-06 17:53:05' and `end` < '2025-01-06 20:53: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-01-06 20:53:19] Production.INFO: count ==1258 [2025-01-06 20:53:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:53:05 - End Time 2025-01-06 20:53:05 [2025-01-06 20:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190130', 'tblTempUsageDetail_20' ) start [2025-01-06 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190130', 'tblTempUsageDetail_20' ) end [2025-01-06 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190130', 'tblTempVendorCDR_20' ) start [2025-01-06 20:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190130', 'tblTempVendorCDR_20' ) end [2025-01-06 20:53:19] Production.INFO: ProcessCDR(1,14190130,1,1,2) [2025-01-06 20:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190130', 'tblTempUsageDetail_20' ) start [2025-01-06 20:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190130', 'tblTempUsageDetail_20' ) end [2025-01-06 20:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:53:22] Production.INFO: ==26931== Releasing lock... [2025-01-06 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:53:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-06 20:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:54:06 [end_date_ymd] => 2025-01-06 20:54:06 [RateCDR] => 1 ) [2025-01-06 20:54: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-01-06 17:54:06' and `end` < '2025-01-06 20:54: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-01-06 20:54:20] Production.INFO: count ==1253 [2025-01-06 20:54:20] Production.ERROR: pbx CDR StartTime 2025-01-06 17:54:06 - End Time 2025-01-06 20:54:06 [2025-01-06 20:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190135', 'tblTempUsageDetail_20' ) start [2025-01-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190135', 'tblTempUsageDetail_20' ) end [2025-01-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190135', 'tblTempVendorCDR_20' ) start [2025-01-06 20:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190135', 'tblTempVendorCDR_20' ) end [2025-01-06 20:54:20] Production.INFO: ProcessCDR(1,14190135,1,1,2) [2025-01-06 20:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190135', 'tblTempUsageDetail_20' ) start [2025-01-06 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190135', 'tblTempUsageDetail_20' ) end [2025-01-06 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:54:23] Production.INFO: ==27028== Releasing lock... [2025-01-06 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:54:23] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:55:05 [end_date_ymd] => 2025-01-06 20:55:05 [RateCDR] => 1 ) [2025-01-06 20:55: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-01-06 17:55:05' and `end` < '2025-01-06 20:55: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-01-06 20:55:18] Production.INFO: count ==1252 [2025-01-06 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 17:55:05 - End Time 2025-01-06 20:55:05 [2025-01-06 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190140', 'tblTempUsageDetail_20' ) start [2025-01-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190140', 'tblTempUsageDetail_20' ) end [2025-01-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190140', 'tblTempVendorCDR_20' ) start [2025-01-06 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190140', 'tblTempVendorCDR_20' ) end [2025-01-06 20:55:18] Production.INFO: ProcessCDR(1,14190140,1,1,2) [2025-01-06 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190140', 'tblTempUsageDetail_20' ) start [2025-01-06 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190140', 'tblTempUsageDetail_20' ) end [2025-01-06 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:55:21] Production.INFO: ==27132== Releasing lock... [2025-01-06 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:55:21] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:56:05 [end_date_ymd] => 2025-01-06 20:56:05 [RateCDR] => 1 ) [2025-01-06 20:56: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-01-06 17:56:05' and `end` < '2025-01-06 20:56: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-01-06 20:56:18] Production.INFO: count ==1254 [2025-01-06 20:56:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:56:05 - End Time 2025-01-06 20:56:05 [2025-01-06 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190145', 'tblTempUsageDetail_20' ) start [2025-01-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190145', 'tblTempUsageDetail_20' ) end [2025-01-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190145', 'tblTempVendorCDR_20' ) start [2025-01-06 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190145', 'tblTempVendorCDR_20' ) end [2025-01-06 20:56:19] Production.INFO: ProcessCDR(1,14190145,1,1,2) [2025-01-06 20:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190145', 'tblTempUsageDetail_20' ) start [2025-01-06 20:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190145', 'tblTempUsageDetail_20' ) end [2025-01-06 20:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:56:22] Production.INFO: ==27225== Releasing lock... [2025-01-06 20:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:56:22] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:57:05 [end_date_ymd] => 2025-01-06 20:57:05 [RateCDR] => 1 ) [2025-01-06 20:57: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-01-06 17:57:05' and `end` < '2025-01-06 20:57: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-01-06 20:57:19] Production.INFO: count ==1257 [2025-01-06 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:57:05 - End Time 2025-01-06 20:57:05 [2025-01-06 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190150', 'tblTempUsageDetail_20' ) start [2025-01-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190150', 'tblTempUsageDetail_20' ) end [2025-01-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190150', 'tblTempVendorCDR_20' ) start [2025-01-06 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190150', 'tblTempVendorCDR_20' ) end [2025-01-06 20:57:19] Production.INFO: ProcessCDR(1,14190150,1,1,2) [2025-01-06 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190150', 'tblTempUsageDetail_20' ) start [2025-01-06 20:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190150', 'tblTempUsageDetail_20' ) end [2025-01-06 20:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:57:24] Production.INFO: ==27322== Releasing lock... [2025-01-06 20:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:57:24] Production.INFO: 38 MB #Memory Used# [2025-01-06 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:58:05 [end_date_ymd] => 2025-01-06 20:58:05 [RateCDR] => 1 ) [2025-01-06 20:58: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-01-06 17:58:05' and `end` < '2025-01-06 20:58: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-01-06 20:58:19] Production.INFO: count ==1258 [2025-01-06 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-06 17:58:05 - End Time 2025-01-06 20:58:05 [2025-01-06 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190155', 'tblTempUsageDetail_20' ) start [2025-01-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190155', 'tblTempUsageDetail_20' ) end [2025-01-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190155', 'tblTempVendorCDR_20' ) start [2025-01-06 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190155', 'tblTempVendorCDR_20' ) end [2025-01-06 20:58:19] Production.INFO: ProcessCDR(1,14190155,1,1,2) [2025-01-06 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190155', 'tblTempUsageDetail_20' ) start [2025-01-06 20:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190155', 'tblTempUsageDetail_20' ) end [2025-01-06 20:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:58:23] Production.INFO: ==27454== Releasing lock... [2025-01-06 20:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:58:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 17:59:04 [end_date_ymd] => 2025-01-06 20:59:04 [RateCDR] => 1 ) [2025-01-06 20:59: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-01-06 17:59:04' and `end` < '2025-01-06 20:59: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-01-06 20:59:17] Production.INFO: count ==1253 [2025-01-06 20:59:17] Production.ERROR: pbx CDR StartTime 2025-01-06 17:59:04 - End Time 2025-01-06 20:59:04 [2025-01-06 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190160', 'tblTempUsageDetail_20' ) start [2025-01-06 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190160', 'tblTempUsageDetail_20' ) end [2025-01-06 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190160', 'tblTempVendorCDR_20' ) start [2025-01-06 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190160', 'tblTempVendorCDR_20' ) end [2025-01-06 20:59:17] Production.INFO: ProcessCDR(1,14190160,1,1,2) [2025-01-06 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190160', 'tblTempUsageDetail_20' ) start [2025-01-06 20:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190160', 'tblTempUsageDetail_20' ) end [2025-01-06 20:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 20:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 20:59:21] Production.INFO: ==27547== Releasing lock... [2025-01-06 20:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 20:59:21] Production.INFO: 38 MB #Memory Used# [2025-01-06 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:00:06 [end_date_ymd] => 2025-01-06 21:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 18:00:06' and `end` < '2025-01-06 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-01-06 21:00:19] Production.INFO: count ==1250 [2025-01-06 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:00:06 - End Time 2025-01-06 21:00:06 [2025-01-06 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190166', 'tblTempUsageDetail_20' ) start [2025-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190166', 'tblTempUsageDetail_20' ) end [2025-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190166', 'tblTempVendorCDR_20' ) start [2025-01-06 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190166', 'tblTempVendorCDR_20' ) end [2025-01-06 21:00:19] Production.INFO: ProcessCDR(1,14190166,1,1,2) [2025-01-06 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190166', 'tblTempUsageDetail_20' ) start [2025-01-06 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190166', 'tblTempUsageDetail_20' ) end [2025-01-06 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:00:22] Production.INFO: ==27649== Releasing lock... [2025-01-06 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:00:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:01:05 [end_date_ymd] => 2025-01-06 21:01:05 [RateCDR] => 1 ) [2025-01-06 21:01: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-01-06 18:01:05' and `end` < '2025-01-06 21:01: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-01-06 21:01:18] Production.INFO: count ==1225 [2025-01-06 21:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:01:05 - End Time 2025-01-06 21:01:05 [2025-01-06 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190171', 'tblTempUsageDetail_20' ) start [2025-01-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190171', 'tblTempUsageDetail_20' ) end [2025-01-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190171', 'tblTempVendorCDR_20' ) start [2025-01-06 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190171', 'tblTempVendorCDR_20' ) end [2025-01-06 21:01:18] Production.INFO: ProcessCDR(1,14190171,1,1,2) [2025-01-06 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190171', 'tblTempUsageDetail_20' ) start [2025-01-06 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190171', 'tblTempUsageDetail_20' ) end [2025-01-06 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:01:22] Production.INFO: ==27757== Releasing lock... [2025-01-06 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:01:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:02:05 [end_date_ymd] => 2025-01-06 21:02:05 [RateCDR] => 1 ) [2025-01-06 21:02: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-01-06 18:02:05' and `end` < '2025-01-06 21:02: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-01-06 21:02:18] Production.INFO: count ==1221 [2025-01-06 21:02:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:02:05 - End Time 2025-01-06 21:02:05 [2025-01-06 21:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190176', 'tblTempUsageDetail_20' ) start [2025-01-06 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190176', 'tblTempUsageDetail_20' ) end [2025-01-06 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190176', 'tblTempVendorCDR_20' ) start [2025-01-06 21:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190176', 'tblTempVendorCDR_20' ) end [2025-01-06 21:02:19] Production.INFO: ProcessCDR(1,14190176,1,1,2) [2025-01-06 21:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190176', 'tblTempUsageDetail_20' ) start [2025-01-06 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190176', 'tblTempUsageDetail_20' ) end [2025-01-06 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:02:22] Production.INFO: ==27856== Releasing lock... [2025-01-06 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:02:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-06 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:03:05 [end_date_ymd] => 2025-01-06 21:03:05 [RateCDR] => 1 ) [2025-01-06 21:03: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-01-06 18:03:05' and `end` < '2025-01-06 21:03: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-01-06 21:03:18] Production.INFO: count ==1220 [2025-01-06 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:03:05 - End Time 2025-01-06 21:03:05 [2025-01-06 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190181', 'tblTempUsageDetail_20' ) start [2025-01-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190181', 'tblTempUsageDetail_20' ) end [2025-01-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190181', 'tblTempVendorCDR_20' ) start [2025-01-06 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190181', 'tblTempVendorCDR_20' ) end [2025-01-06 21:03:18] Production.INFO: ProcessCDR(1,14190181,1,1,2) [2025-01-06 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190181', 'tblTempUsageDetail_20' ) start [2025-01-06 21:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190181', 'tblTempUsageDetail_20' ) end [2025-01-06 21:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:03:21] Production.INFO: ==27950== Releasing lock... [2025-01-06 21:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:03:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-06 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:04:05 [end_date_ymd] => 2025-01-06 21:04:05 [RateCDR] => 1 ) [2025-01-06 21:04: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-01-06 18:04:05' and `end` < '2025-01-06 21:04: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-01-06 21:04:18] Production.INFO: count ==1211 [2025-01-06 21:04:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:04:05 - End Time 2025-01-06 21:04:05 [2025-01-06 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190186', 'tblTempUsageDetail_20' ) start [2025-01-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190186', 'tblTempUsageDetail_20' ) end [2025-01-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190186', 'tblTempVendorCDR_20' ) start [2025-01-06 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190186', 'tblTempVendorCDR_20' ) end [2025-01-06 21:04:18] Production.INFO: ProcessCDR(1,14190186,1,1,2) [2025-01-06 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190186', 'tblTempUsageDetail_20' ) start [2025-01-06 21:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190186', 'tblTempUsageDetail_20' ) end [2025-01-06 21:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:04:23] Production.INFO: ==28045== Releasing lock... [2025-01-06 21:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:04:23] Production.INFO: 38 MB #Memory Used# [2025-01-06 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:05:05 [end_date_ymd] => 2025-01-06 21:05:05 [RateCDR] => 1 ) [2025-01-06 21:05: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-01-06 18:05:05' and `end` < '2025-01-06 21:05: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-01-06 21:05:18] Production.INFO: count ==1186 [2025-01-06 21:05:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:05:05 - End Time 2025-01-06 21:05:05 [2025-01-06 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190191', 'tblTempUsageDetail_20' ) start [2025-01-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190191', 'tblTempUsageDetail_20' ) end [2025-01-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190191', 'tblTempVendorCDR_20' ) start [2025-01-06 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190191', 'tblTempVendorCDR_20' ) end [2025-01-06 21:05:19] Production.INFO: ProcessCDR(1,14190191,1,1,2) [2025-01-06 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190191', 'tblTempUsageDetail_20' ) start [2025-01-06 21:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190191', 'tblTempUsageDetail_20' ) end [2025-01-06 21:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:05:22] Production.INFO: ==28138== Releasing lock... [2025-01-06 21:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:05:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-06 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:06:05 [end_date_ymd] => 2025-01-06 21:06:05 [RateCDR] => 1 ) [2025-01-06 21:06: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-01-06 18:06:05' and `end` < '2025-01-06 21:06: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-01-06 21:06:18] Production.INFO: count ==1183 [2025-01-06 21:06:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:06:05 - End Time 2025-01-06 21:06:05 [2025-01-06 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190196', 'tblTempUsageDetail_20' ) start [2025-01-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190196', 'tblTempUsageDetail_20' ) end [2025-01-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190196', 'tblTempVendorCDR_20' ) start [2025-01-06 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190196', 'tblTempVendorCDR_20' ) end [2025-01-06 21:06:19] Production.INFO: ProcessCDR(1,14190196,1,1,2) [2025-01-06 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190196', 'tblTempUsageDetail_20' ) start [2025-01-06 21:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190196', 'tblTempUsageDetail_20' ) end [2025-01-06 21:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:06:22] Production.INFO: ==28233== Releasing lock... [2025-01-06 21:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:06:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-06 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:07:05 [end_date_ymd] => 2025-01-06 21:07:05 [RateCDR] => 1 ) [2025-01-06 21:07: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-01-06 18:07:05' and `end` < '2025-01-06 21:07: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-01-06 21:07:18] Production.INFO: count ==1177 [2025-01-06 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:07:05 - End Time 2025-01-06 21:07:05 [2025-01-06 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190201', 'tblTempUsageDetail_20' ) start [2025-01-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190201', 'tblTempUsageDetail_20' ) end [2025-01-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190201', 'tblTempVendorCDR_20' ) start [2025-01-06 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190201', 'tblTempVendorCDR_20' ) end [2025-01-06 21:07:18] Production.INFO: ProcessCDR(1,14190201,1,1,2) [2025-01-06 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190201', 'tblTempUsageDetail_20' ) start [2025-01-06 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190201', 'tblTempUsageDetail_20' ) end [2025-01-06 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:07:21] Production.INFO: ==28326== Releasing lock... [2025-01-06 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:07:21] Production.INFO: 37 MB #Memory Used# [2025-01-06 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:08:05 [end_date_ymd] => 2025-01-06 21:08:05 [RateCDR] => 1 ) [2025-01-06 21:08: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-01-06 18:08:05' and `end` < '2025-01-06 21:08: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-01-06 21:08:19] Production.INFO: count ==1174 [2025-01-06 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:08:05 - End Time 2025-01-06 21:08:05 [2025-01-06 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190206', 'tblTempUsageDetail_20' ) start [2025-01-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190206', 'tblTempUsageDetail_20' ) end [2025-01-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190206', 'tblTempVendorCDR_20' ) start [2025-01-06 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190206', 'tblTempVendorCDR_20' ) end [2025-01-06 21:08:19] Production.INFO: ProcessCDR(1,14190206,1,1,2) [2025-01-06 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190206', 'tblTempUsageDetail_20' ) start [2025-01-06 21:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190206', 'tblTempUsageDetail_20' ) end [2025-01-06 21:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:08:23] Production.INFO: ==28420== Releasing lock... [2025-01-06 21:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:08:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-06 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:09:05 [end_date_ymd] => 2025-01-06 21:09:05 [RateCDR] => 1 ) [2025-01-06 21:09: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-01-06 18:09:05' and `end` < '2025-01-06 21:09: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-01-06 21:09:18] Production.INFO: count ==1164 [2025-01-06 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:09:05 - End Time 2025-01-06 21:09:05 [2025-01-06 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190211', 'tblTempUsageDetail_20' ) start [2025-01-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190211', 'tblTempUsageDetail_20' ) end [2025-01-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190211', 'tblTempVendorCDR_20' ) start [2025-01-06 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190211', 'tblTempVendorCDR_20' ) end [2025-01-06 21:09:18] Production.INFO: ProcessCDR(1,14190211,1,1,2) [2025-01-06 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190211', 'tblTempUsageDetail_20' ) start [2025-01-06 21:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190211', 'tblTempUsageDetail_20' ) end [2025-01-06 21:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:09:21] Production.INFO: ==28512== Releasing lock... [2025-01-06 21:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:09:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-06 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:10:06 [end_date_ymd] => 2025-01-06 21:10:06 [RateCDR] => 1 ) [2025-01-06 21:10: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-01-06 18:10:06' and `end` < '2025-01-06 21:10: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-01-06 21:10:19] Production.INFO: count ==1163 [2025-01-06 21:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:10:06 - End Time 2025-01-06 21:10:06 [2025-01-06 21:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190217', 'tblTempUsageDetail_20' ) start [2025-01-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190217', 'tblTempUsageDetail_20' ) end [2025-01-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190217', 'tblTempVendorCDR_20' ) start [2025-01-06 21:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190217', 'tblTempVendorCDR_20' ) end [2025-01-06 21:10:19] Production.INFO: ProcessCDR(1,14190217,1,1,2) [2025-01-06 21:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190217', 'tblTempUsageDetail_20' ) start [2025-01-06 21:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190217', 'tblTempUsageDetail_20' ) end [2025-01-06 21:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:10:23] Production.INFO: ==28604== Releasing lock... [2025-01-06 21:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:10:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-06 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:11:05 [end_date_ymd] => 2025-01-06 21:11:05 [RateCDR] => 1 ) [2025-01-06 21:11: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-01-06 18:11:05' and `end` < '2025-01-06 21:11: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-01-06 21:11:18] Production.INFO: count ==1143 [2025-01-06 21:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:11:05 - End Time 2025-01-06 21:11:05 [2025-01-06 21:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190222', 'tblTempUsageDetail_20' ) start [2025-01-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190222', 'tblTempUsageDetail_20' ) end [2025-01-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190222', 'tblTempVendorCDR_20' ) start [2025-01-06 21:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190222', 'tblTempVendorCDR_20' ) end [2025-01-06 21:11:18] Production.INFO: ProcessCDR(1,14190222,1,1,2) [2025-01-06 21:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190222', 'tblTempUsageDetail_20' ) start [2025-01-06 21:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190222', 'tblTempUsageDetail_20' ) end [2025-01-06 21:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:11:21] Production.INFO: ==28695== Releasing lock... [2025-01-06 21:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:11:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:12:05 [end_date_ymd] => 2025-01-06 21:12:05 [RateCDR] => 1 ) [2025-01-06 21:12: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-01-06 18:12:05' and `end` < '2025-01-06 21:12: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-01-06 21:12:17] Production.INFO: count ==1141 [2025-01-06 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:12:05 - End Time 2025-01-06 21:12:05 [2025-01-06 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190227', 'tblTempUsageDetail_20' ) start [2025-01-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190227', 'tblTempUsageDetail_20' ) end [2025-01-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190227', 'tblTempVendorCDR_20' ) start [2025-01-06 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190227', 'tblTempVendorCDR_20' ) end [2025-01-06 21:12:18] Production.INFO: ProcessCDR(1,14190227,1,1,2) [2025-01-06 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190227', 'tblTempUsageDetail_20' ) start [2025-01-06 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190227', 'tblTempUsageDetail_20' ) end [2025-01-06 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:12:21] Production.INFO: ==28782== Releasing lock... [2025-01-06 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:12:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-06 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:13:05 [end_date_ymd] => 2025-01-06 21:13:05 [RateCDR] => 1 ) [2025-01-06 21:13: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-01-06 18:13:05' and `end` < '2025-01-06 21:13: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-01-06 21:13:19] Production.INFO: count ==1137 [2025-01-06 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:13:05 - End Time 2025-01-06 21:13:05 [2025-01-06 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190232', 'tblTempUsageDetail_20' ) start [2025-01-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190232', 'tblTempUsageDetail_20' ) end [2025-01-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190232', 'tblTempVendorCDR_20' ) start [2025-01-06 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190232', 'tblTempVendorCDR_20' ) end [2025-01-06 21:13:19] Production.INFO: ProcessCDR(1,14190232,1,1,2) [2025-01-06 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190232', 'tblTempUsageDetail_20' ) start [2025-01-06 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190232', 'tblTempUsageDetail_20' ) end [2025-01-06 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:13:22] Production.INFO: ==28899== Releasing lock... [2025-01-06 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:13:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-06 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:14:06 [end_date_ymd] => 2025-01-06 21:14:06 [RateCDR] => 1 ) [2025-01-06 21:14: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-01-06 18:14:06' and `end` < '2025-01-06 21:14: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-01-06 21:14:19] Production.INFO: count ==1126 [2025-01-06 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:14:06 - End Time 2025-01-06 21:14:06 [2025-01-06 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190237', 'tblTempUsageDetail_20' ) start [2025-01-06 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190237', 'tblTempUsageDetail_20' ) end [2025-01-06 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190237', 'tblTempVendorCDR_20' ) start [2025-01-06 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190237', 'tblTempVendorCDR_20' ) end [2025-01-06 21:14:19] Production.INFO: ProcessCDR(1,14190237,1,1,2) [2025-01-06 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190237', 'tblTempUsageDetail_20' ) start [2025-01-06 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190237', 'tblTempUsageDetail_20' ) end [2025-01-06 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:14:22] Production.INFO: ==28986== Releasing lock... [2025-01-06 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:14:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-06 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:15:05 [end_date_ymd] => 2025-01-06 21:15:05 [RateCDR] => 1 ) [2025-01-06 21:15: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-01-06 18:15:05' and `end` < '2025-01-06 21:15: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-01-06 21:15:18] Production.INFO: count ==1101 [2025-01-06 21:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:15:05 - End Time 2025-01-06 21:15:05 [2025-01-06 21:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190242', 'tblTempUsageDetail_20' ) start [2025-01-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190242', 'tblTempUsageDetail_20' ) end [2025-01-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190242', 'tblTempVendorCDR_20' ) start [2025-01-06 21:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190242', 'tblTempVendorCDR_20' ) end [2025-01-06 21:15:18] Production.INFO: ProcessCDR(1,14190242,1,1,2) [2025-01-06 21:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190242', 'tblTempUsageDetail_20' ) start [2025-01-06 21:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190242', 'tblTempUsageDetail_20' ) end [2025-01-06 21:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:15:21] Production.INFO: ==29067== Releasing lock... [2025-01-06 21:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:15:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:16:05 [end_date_ymd] => 2025-01-06 21:16:05 [RateCDR] => 1 ) [2025-01-06 21:16: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-01-06 18:16:05' and `end` < '2025-01-06 21:16: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-01-06 21:16:21] Production.INFO: count ==1093 [2025-01-06 21:16:22] Production.ERROR: pbx CDR StartTime 2025-01-06 18:16:05 - End Time 2025-01-06 21:16:05 [2025-01-06 21:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190247', 'tblTempUsageDetail_20' ) start [2025-01-06 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190247', 'tblTempUsageDetail_20' ) end [2025-01-06 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190247', 'tblTempVendorCDR_20' ) start [2025-01-06 21:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190247', 'tblTempVendorCDR_20' ) end [2025-01-06 21:16:22] Production.INFO: ProcessCDR(1,14190247,1,1,2) [2025-01-06 21:16:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190247', 'tblTempUsageDetail_20' ) start [2025-01-06 21:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190247', 'tblTempUsageDetail_20' ) end [2025-01-06 21:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:16:25] Production.INFO: ==29146== Releasing lock... [2025-01-06 21:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:16:25] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 21:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:17:05 [end_date_ymd] => 2025-01-06 21:17:05 [RateCDR] => 1 ) [2025-01-06 21:17: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-01-06 18:17:05' and `end` < '2025-01-06 21:17: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-01-06 21:17:17] Production.INFO: count ==1087 [2025-01-06 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:17:05 - End Time 2025-01-06 21:17:05 [2025-01-06 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190252', 'tblTempUsageDetail_20' ) start [2025-01-06 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190252', 'tblTempUsageDetail_20' ) end [2025-01-06 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190252', 'tblTempVendorCDR_20' ) start [2025-01-06 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190252', 'tblTempVendorCDR_20' ) end [2025-01-06 21:17:18] Production.INFO: ProcessCDR(1,14190252,1,1,2) [2025-01-06 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190252', 'tblTempUsageDetail_20' ) start [2025-01-06 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190252', 'tblTempUsageDetail_20' ) end [2025-01-06 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:17:21] Production.INFO: ==29228== Releasing lock... [2025-01-06 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:17:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:18:05 [end_date_ymd] => 2025-01-06 21:18:05 [RateCDR] => 1 ) [2025-01-06 21:18: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-01-06 18:18:05' and `end` < '2025-01-06 21:18: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-01-06 21:18:20] Production.INFO: count ==1085 [2025-01-06 21:18:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:18:05 - End Time 2025-01-06 21:18:05 [2025-01-06 21:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190257', 'tblTempUsageDetail_20' ) start [2025-01-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190257', 'tblTempUsageDetail_20' ) end [2025-01-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190257', 'tblTempVendorCDR_20' ) start [2025-01-06 21:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190257', 'tblTempVendorCDR_20' ) end [2025-01-06 21:18:20] Production.INFO: ProcessCDR(1,14190257,1,1,2) [2025-01-06 21:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190257', 'tblTempUsageDetail_20' ) start [2025-01-06 21:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190257', 'tblTempUsageDetail_20' ) end [2025-01-06 21:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:18:23] Production.INFO: ==29317== Releasing lock... [2025-01-06 21:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:18:23] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:19:05 [end_date_ymd] => 2025-01-06 21:19:05 [RateCDR] => 1 ) [2025-01-06 21:19: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-01-06 18:19:05' and `end` < '2025-01-06 21:19: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-01-06 21:19:18] Production.INFO: count ==1085 [2025-01-06 21:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:19:05 - End Time 2025-01-06 21:19:05 [2025-01-06 21:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190262', 'tblTempUsageDetail_20' ) start [2025-01-06 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190262', 'tblTempUsageDetail_20' ) end [2025-01-06 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190262', 'tblTempVendorCDR_20' ) start [2025-01-06 21:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190262', 'tblTempVendorCDR_20' ) end [2025-01-06 21:19:18] Production.INFO: ProcessCDR(1,14190262,1,1,2) [2025-01-06 21:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190262', 'tblTempUsageDetail_20' ) start [2025-01-06 21:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190262', 'tblTempUsageDetail_20' ) end [2025-01-06 21:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:19:21] Production.INFO: ==29394== Releasing lock... [2025-01-06 21:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:19:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:20:06 [end_date_ymd] => 2025-01-06 21:20:06 [RateCDR] => 1 ) [2025-01-06 21:20: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-01-06 18:20:06' and `end` < '2025-01-06 21:20: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-01-06 21:20:20] Production.INFO: count ==1083 [2025-01-06 21:20:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:20:06 - End Time 2025-01-06 21:20:06 [2025-01-06 21:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190268', 'tblTempUsageDetail_20' ) start [2025-01-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190268', 'tblTempUsageDetail_20' ) end [2025-01-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190268', 'tblTempVendorCDR_20' ) start [2025-01-06 21:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190268', 'tblTempVendorCDR_20' ) end [2025-01-06 21:20:20] Production.INFO: ProcessCDR(1,14190268,1,1,2) [2025-01-06 21:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190268', 'tblTempUsageDetail_20' ) start [2025-01-06 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190268', 'tblTempUsageDetail_20' ) end [2025-01-06 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:20:23] Production.INFO: ==29484== Releasing lock... [2025-01-06 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:20:23] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:21:04 [end_date_ymd] => 2025-01-06 21:21:04 [RateCDR] => 1 ) [2025-01-06 21:21: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-01-06 18:21:04' and `end` < '2025-01-06 21:21: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-01-06 21:21:18] Production.INFO: count ==1050 [2025-01-06 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:21:04 - End Time 2025-01-06 21:21:04 [2025-01-06 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190273', 'tblTempUsageDetail_20' ) start [2025-01-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190273', 'tblTempUsageDetail_20' ) end [2025-01-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190273', 'tblTempVendorCDR_20' ) start [2025-01-06 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190273', 'tblTempVendorCDR_20' ) end [2025-01-06 21:21:18] Production.INFO: ProcessCDR(1,14190273,1,1,2) [2025-01-06 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190273', 'tblTempUsageDetail_20' ) start [2025-01-06 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190273', 'tblTempUsageDetail_20' ) end [2025-01-06 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:21:21] Production.INFO: ==29565== Releasing lock... [2025-01-06 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:21:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:22:05 [end_date_ymd] => 2025-01-06 21:22:05 [RateCDR] => 1 ) [2025-01-06 21:22: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-01-06 18:22:05' and `end` < '2025-01-06 21:22: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-01-06 21:22:19] Production.INFO: count ==1049 [2025-01-06 21:22:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:22:05 - End Time 2025-01-06 21:22:05 [2025-01-06 21:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190278', 'tblTempUsageDetail_20' ) start [2025-01-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190278', 'tblTempUsageDetail_20' ) end [2025-01-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190278', 'tblTempVendorCDR_20' ) start [2025-01-06 21:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190278', 'tblTempVendorCDR_20' ) end [2025-01-06 21:22:19] Production.INFO: ProcessCDR(1,14190278,1,1,2) [2025-01-06 21:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190278', 'tblTempUsageDetail_20' ) start [2025-01-06 21:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190278', 'tblTempUsageDetail_20' ) end [2025-01-06 21:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:22:22] Production.INFO: ==29646== Releasing lock... [2025-01-06 21:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:22:22] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:23:06 [end_date_ymd] => 2025-01-06 21:23:06 [RateCDR] => 1 ) [2025-01-06 21:23: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-01-06 18:23:06' and `end` < '2025-01-06 21:23: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-01-06 21:23:21] Production.INFO: count ==1048 [2025-01-06 21:23:21] Production.ERROR: pbx CDR StartTime 2025-01-06 18:23:06 - End Time 2025-01-06 21:23:06 [2025-01-06 21:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190283', 'tblTempUsageDetail_20' ) start [2025-01-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190283', 'tblTempUsageDetail_20' ) end [2025-01-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190283', 'tblTempVendorCDR_20' ) start [2025-01-06 21:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190283', 'tblTempVendorCDR_20' ) end [2025-01-06 21:23:21] Production.INFO: ProcessCDR(1,14190283,1,1,2) [2025-01-06 21:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190283,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190283,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190283', 'tblTempUsageDetail_20' ) start [2025-01-06 21:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190283', 'tblTempUsageDetail_20' ) end [2025-01-06 21:23:26] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:23:26] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:23:26] Production.INFO: ==29728== Releasing lock... [2025-01-06 21:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:23:26] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:24:04 [end_date_ymd] => 2025-01-06 21:24:04 [RateCDR] => 1 ) [2025-01-06 21:24: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-01-06 18:24:04' and `end` < '2025-01-06 21:24: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-01-06 21:24:17] Production.INFO: count ==1048 [2025-01-06 21:24:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:24:04 - End Time 2025-01-06 21:24:04 [2025-01-06 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190288', 'tblTempUsageDetail_20' ) start [2025-01-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190288', 'tblTempUsageDetail_20' ) end [2025-01-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190288', 'tblTempVendorCDR_20' ) start [2025-01-06 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190288', 'tblTempVendorCDR_20' ) end [2025-01-06 21:24:18] Production.INFO: ProcessCDR(1,14190288,1,1,2) [2025-01-06 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190288,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190288,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190288', 'tblTempUsageDetail_20' ) start [2025-01-06 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190288', 'tblTempUsageDetail_20' ) end [2025-01-06 21:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:24:22] Production.INFO: ==29806== Releasing lock... [2025-01-06 21:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:24:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:25:05 [end_date_ymd] => 2025-01-06 21:25:05 [RateCDR] => 1 ) [2025-01-06 21:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 18:25:05' and `end` < '2025-01-06 21:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 21:25:18] Production.INFO: count ==1062 [2025-01-06 21:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:25:05 - End Time 2025-01-06 21:25:05 [2025-01-06 21:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190293', 'tblTempUsageDetail_20' ) start [2025-01-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190293', 'tblTempUsageDetail_20' ) end [2025-01-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190293', 'tblTempVendorCDR_20' ) start [2025-01-06 21:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190293', 'tblTempVendorCDR_20' ) end [2025-01-06 21:25:18] Production.INFO: ProcessCDR(1,14190293,1,1,2) [2025-01-06 21:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190293', 'tblTempUsageDetail_20' ) start [2025-01-06 21:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190293', 'tblTempUsageDetail_20' ) end [2025-01-06 21:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:25:21] Production.INFO: ==29888== Releasing lock... [2025-01-06 21:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:25:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:26:05 [end_date_ymd] => 2025-01-06 21:26:05 [RateCDR] => 1 ) [2025-01-06 21:26: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-01-06 18:26:05' and `end` < '2025-01-06 21:26: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-01-06 21:26:19] Production.INFO: count ==1060 [2025-01-06 21:26:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:26:05 - End Time 2025-01-06 21:26:05 [2025-01-06 21:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190298', 'tblTempUsageDetail_20' ) start [2025-01-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190298', 'tblTempUsageDetail_20' ) end [2025-01-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190298', 'tblTempVendorCDR_20' ) start [2025-01-06 21:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190298', 'tblTempVendorCDR_20' ) end [2025-01-06 21:26:19] Production.INFO: ProcessCDR(1,14190298,1,1,2) [2025-01-06 21:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190298', 'tblTempUsageDetail_20' ) start [2025-01-06 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190298', 'tblTempUsageDetail_20' ) end [2025-01-06 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:26:22] Production.INFO: ==29968== Releasing lock... [2025-01-06 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:26:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:27:05 [end_date_ymd] => 2025-01-06 21:27:05 [RateCDR] => 1 ) [2025-01-06 21:27: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-01-06 18:27:05' and `end` < '2025-01-06 21:27: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-01-06 21:27:18] Production.INFO: count ==1045 [2025-01-06 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:27:05 - End Time 2025-01-06 21:27:05 [2025-01-06 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190303', 'tblTempUsageDetail_20' ) start [2025-01-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190303', 'tblTempUsageDetail_20' ) end [2025-01-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190303', 'tblTempVendorCDR_20' ) start [2025-01-06 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190303', 'tblTempVendorCDR_20' ) end [2025-01-06 21:27:18] Production.INFO: ProcessCDR(1,14190303,1,1,2) [2025-01-06 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190303', 'tblTempUsageDetail_20' ) start [2025-01-06 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190303', 'tblTempUsageDetail_20' ) end [2025-01-06 21:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:27:21] Production.INFO: ==30047== Releasing lock... [2025-01-06 21:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:27:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:28:05 [end_date_ymd] => 2025-01-06 21:28:05 [RateCDR] => 1 ) [2025-01-06 21:28: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-01-06 18:28:05' and `end` < '2025-01-06 21:28: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-01-06 21:28:18] Production.INFO: count ==1055 [2025-01-06 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:28:05 - End Time 2025-01-06 21:28:05 [2025-01-06 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190308', 'tblTempUsageDetail_20' ) start [2025-01-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190308', 'tblTempUsageDetail_20' ) end [2025-01-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190308', 'tblTempVendorCDR_20' ) start [2025-01-06 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190308', 'tblTempVendorCDR_20' ) end [2025-01-06 21:28:18] Production.INFO: ProcessCDR(1,14190308,1,1,2) [2025-01-06 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190308', 'tblTempUsageDetail_20' ) start [2025-01-06 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190308', 'tblTempUsageDetail_20' ) end [2025-01-06 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:28:21] Production.INFO: ==30128== Releasing lock... [2025-01-06 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:28:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:29:05 [end_date_ymd] => 2025-01-06 21:29:05 [RateCDR] => 1 ) [2025-01-06 21:29: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-01-06 18:29:05' and `end` < '2025-01-06 21:29: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-01-06 21:29:19] Production.INFO: count ==1053 [2025-01-06 21:29:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:29:05 - End Time 2025-01-06 21:29:05 [2025-01-06 21:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190313', 'tblTempUsageDetail_20' ) start [2025-01-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190313', 'tblTempUsageDetail_20' ) end [2025-01-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190313', 'tblTempVendorCDR_20' ) start [2025-01-06 21:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190313', 'tblTempVendorCDR_20' ) end [2025-01-06 21:29:20] Production.INFO: ProcessCDR(1,14190313,1,1,2) [2025-01-06 21:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190313', 'tblTempUsageDetail_20' ) start [2025-01-06 21:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190313', 'tblTempUsageDetail_20' ) end [2025-01-06 21:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:29:23] Production.INFO: ==30241== Releasing lock... [2025-01-06 21:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:29:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-06 21:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:30:05 [end_date_ymd] => 2025-01-06 21:30:05 [RateCDR] => 1 ) [2025-01-06 21:30: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-01-06 18:30:05' and `end` < '2025-01-06 21:30: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-01-06 21:30:18] Production.INFO: count ==1043 [2025-01-06 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:30:05 - End Time 2025-01-06 21:30:05 [2025-01-06 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190319', 'tblTempUsageDetail_20' ) start [2025-01-06 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190319', 'tblTempUsageDetail_20' ) end [2025-01-06 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190319', 'tblTempVendorCDR_20' ) start [2025-01-06 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190319', 'tblTempVendorCDR_20' ) end [2025-01-06 21:30:19] Production.INFO: ProcessCDR(1,14190319,1,1,2) [2025-01-06 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190319', 'tblTempUsageDetail_20' ) start [2025-01-06 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190319', 'tblTempUsageDetail_20' ) end [2025-01-06 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:30:22] Production.INFO: ==30323== Releasing lock... [2025-01-06 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:30:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:31:05 [end_date_ymd] => 2025-01-06 21:31:05 [RateCDR] => 1 ) [2025-01-06 21:31: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-01-06 18:31:05' and `end` < '2025-01-06 21:31: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-01-06 21:31:18] Production.INFO: count ==1058 [2025-01-06 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:31:05 - End Time 2025-01-06 21:31:05 [2025-01-06 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190324', 'tblTempUsageDetail_20' ) start [2025-01-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190324', 'tblTempUsageDetail_20' ) end [2025-01-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190324', 'tblTempVendorCDR_20' ) start [2025-01-06 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190324', 'tblTempVendorCDR_20' ) end [2025-01-06 21:31:18] Production.INFO: ProcessCDR(1,14190324,1,1,2) [2025-01-06 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190324', 'tblTempUsageDetail_20' ) start [2025-01-06 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190324', 'tblTempUsageDetail_20' ) end [2025-01-06 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:31:21] Production.INFO: ==30402== Releasing lock... [2025-01-06 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:31:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:32:05 [end_date_ymd] => 2025-01-06 21:32:05 [RateCDR] => 1 ) [2025-01-06 21:32: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-01-06 18:32:05' and `end` < '2025-01-06 21:32: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-01-06 21:32:19] Production.INFO: count ==1059 [2025-01-06 21:32:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:32:05 - End Time 2025-01-06 21:32:05 [2025-01-06 21:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190329', 'tblTempUsageDetail_20' ) start [2025-01-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190329', 'tblTempUsageDetail_20' ) end [2025-01-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190329', 'tblTempVendorCDR_20' ) start [2025-01-06 21:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190329', 'tblTempVendorCDR_20' ) end [2025-01-06 21:32:19] Production.INFO: ProcessCDR(1,14190329,1,1,2) [2025-01-06 21:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190329,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190329,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190329', 'tblTempUsageDetail_20' ) start [2025-01-06 21:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190329', 'tblTempUsageDetail_20' ) end [2025-01-06 21:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:32:24] Production.INFO: ==30478== Releasing lock... [2025-01-06 21:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:32:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:33:05 [end_date_ymd] => 2025-01-06 21:33:05 [RateCDR] => 1 ) [2025-01-06 21:33: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-01-06 18:33:05' and `end` < '2025-01-06 21:33: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-01-06 21:33:19] Production.INFO: count ==1062 [2025-01-06 21:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:33:05 - End Time 2025-01-06 21:33:05 [2025-01-06 21:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190334', 'tblTempUsageDetail_20' ) start [2025-01-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190334', 'tblTempUsageDetail_20' ) end [2025-01-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190334', 'tblTempVendorCDR_20' ) start [2025-01-06 21:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190334', 'tblTempVendorCDR_20' ) end [2025-01-06 21:33:19] Production.INFO: ProcessCDR(1,14190334,1,1,2) [2025-01-06 21:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190334,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190334,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190334', 'tblTempUsageDetail_20' ) start [2025-01-06 21:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190334', 'tblTempUsageDetail_20' ) end [2025-01-06 21:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:33:23] Production.INFO: ==30552== Releasing lock... [2025-01-06 21:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:33:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:34:05 [end_date_ymd] => 2025-01-06 21:34:05 [RateCDR] => 1 ) [2025-01-06 21:34: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-01-06 18:34:05' and `end` < '2025-01-06 21:34: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-01-06 21:34:19] Production.INFO: count ==1060 [2025-01-06 21:34:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:34:05 - End Time 2025-01-06 21:34:05 [2025-01-06 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190339', 'tblTempUsageDetail_20' ) start [2025-01-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190339', 'tblTempUsageDetail_20' ) end [2025-01-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190339', 'tblTempVendorCDR_20' ) start [2025-01-06 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190339', 'tblTempVendorCDR_20' ) end [2025-01-06 21:34:19] Production.INFO: ProcessCDR(1,14190339,1,1,2) [2025-01-06 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190339,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190339,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190339', 'tblTempUsageDetail_20' ) start [2025-01-06 21:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190339', 'tblTempUsageDetail_20' ) end [2025-01-06 21:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:34:22] Production.INFO: ==30634== Releasing lock... [2025-01-06 21:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:34:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:35:05 [end_date_ymd] => 2025-01-06 21:35:05 [RateCDR] => 1 ) [2025-01-06 21:35: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-01-06 18:35:05' and `end` < '2025-01-06 21:35: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-01-06 21:35:18] Production.INFO: count ==1059 [2025-01-06 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:35:05 - End Time 2025-01-06 21:35:05 [2025-01-06 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190344', 'tblTempUsageDetail_20' ) start [2025-01-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190344', 'tblTempUsageDetail_20' ) end [2025-01-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190344', 'tblTempVendorCDR_20' ) start [2025-01-06 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190344', 'tblTempVendorCDR_20' ) end [2025-01-06 21:35:18] Production.INFO: ProcessCDR(1,14190344,1,1,2) [2025-01-06 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190344', 'tblTempUsageDetail_20' ) start [2025-01-06 21:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190344', 'tblTempUsageDetail_20' ) end [2025-01-06 21:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:35:22] Production.INFO: ==30716== Releasing lock... [2025-01-06 21:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:35:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-06 21:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:36:04 [end_date_ymd] => 2025-01-06 21:36:04 [RateCDR] => 1 ) [2025-01-06 21:36: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-01-06 18:36:04' and `end` < '2025-01-06 21:36: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-01-06 21:36:19] Production.INFO: count ==1058 [2025-01-06 21:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:36:04 - End Time 2025-01-06 21:36:04 [2025-01-06 21:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190349', 'tblTempUsageDetail_20' ) start [2025-01-06 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190349', 'tblTempUsageDetail_20' ) end [2025-01-06 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190349', 'tblTempVendorCDR_20' ) start [2025-01-06 21:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190349', 'tblTempVendorCDR_20' ) end [2025-01-06 21:36:20] Production.INFO: ProcessCDR(1,14190349,1,1,2) [2025-01-06 21:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190349', 'tblTempUsageDetail_20' ) start [2025-01-06 21:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190349', 'tblTempUsageDetail_20' ) end [2025-01-06 21:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:36:23] Production.INFO: ==30790== Releasing lock... [2025-01-06 21:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:36:23] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:37:05 [end_date_ymd] => 2025-01-06 21:37:05 [RateCDR] => 1 ) [2025-01-06 21:37: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-01-06 18:37:05' and `end` < '2025-01-06 21:37: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-01-06 21:37:18] Production.INFO: count ==1053 [2025-01-06 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:37:05 - End Time 2025-01-06 21:37:05 [2025-01-06 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190354', 'tblTempUsageDetail_20' ) start [2025-01-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190354', 'tblTempUsageDetail_20' ) end [2025-01-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190354', 'tblTempVendorCDR_20' ) start [2025-01-06 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190354', 'tblTempVendorCDR_20' ) end [2025-01-06 21:37:18] Production.INFO: ProcessCDR(1,14190354,1,1,2) [2025-01-06 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190354', 'tblTempUsageDetail_20' ) start [2025-01-06 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190354', 'tblTempUsageDetail_20' ) end [2025-01-06 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:37:21] Production.INFO: ==30865== Releasing lock... [2025-01-06 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:37:21] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:38:06 [end_date_ymd] => 2025-01-06 21:38:06 [RateCDR] => 1 ) [2025-01-06 21:38: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-01-06 18:38:06' and `end` < '2025-01-06 21:38: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-01-06 21:38:18] Production.INFO: count ==1038 [2025-01-06 21:38:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:38:06 - End Time 2025-01-06 21:38:06 [2025-01-06 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190359', 'tblTempUsageDetail_20' ) start [2025-01-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190359', 'tblTempUsageDetail_20' ) end [2025-01-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190359', 'tblTempVendorCDR_20' ) start [2025-01-06 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190359', 'tblTempVendorCDR_20' ) end [2025-01-06 21:38:19] Production.INFO: ProcessCDR(1,14190359,1,1,2) [2025-01-06 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190359', 'tblTempUsageDetail_20' ) start [2025-01-06 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190359', 'tblTempUsageDetail_20' ) end [2025-01-06 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:38:22] Production.INFO: ==30941== Releasing lock... [2025-01-06 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:38:22] Production.INFO: 36 MB #Memory Used# [2025-01-06 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:39:05 [end_date_ymd] => 2025-01-06 21:39:05 [RateCDR] => 1 ) [2025-01-06 21:39: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-01-06 18:39:05' and `end` < '2025-01-06 21:39: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-01-06 21:39:20] Production.INFO: count ==1033 [2025-01-06 21:39:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:39:05 - End Time 2025-01-06 21:39:05 [2025-01-06 21:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190364', 'tblTempUsageDetail_20' ) start [2025-01-06 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190364', 'tblTempUsageDetail_20' ) end [2025-01-06 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190364', 'tblTempVendorCDR_20' ) start [2025-01-06 21:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190364', 'tblTempVendorCDR_20' ) end [2025-01-06 21:39:20] Production.INFO: ProcessCDR(1,14190364,1,1,2) [2025-01-06 21:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190364', 'tblTempUsageDetail_20' ) start [2025-01-06 21:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190364', 'tblTempUsageDetail_20' ) end [2025-01-06 21:39:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:39:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:39:24] Production.INFO: ==31014== Releasing lock... [2025-01-06 21:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:39:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:40:06 [end_date_ymd] => 2025-01-06 21:40:06 [RateCDR] => 1 ) [2025-01-06 21:40: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-01-06 18:40:06' and `end` < '2025-01-06 21:40: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-01-06 21:40:19] Production.INFO: count ==1032 [2025-01-06 21:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:40:06 - End Time 2025-01-06 21:40:06 [2025-01-06 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190370', 'tblTempUsageDetail_20' ) start [2025-01-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190370', 'tblTempUsageDetail_20' ) end [2025-01-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190370', 'tblTempVendorCDR_20' ) start [2025-01-06 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190370', 'tblTempVendorCDR_20' ) end [2025-01-06 21:40:19] Production.INFO: ProcessCDR(1,14190370,1,1,2) [2025-01-06 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190370', 'tblTempUsageDetail_20' ) start [2025-01-06 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190370', 'tblTempUsageDetail_20' ) end [2025-01-06 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:40:22] Production.INFO: ==31094== Releasing lock... [2025-01-06 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:40:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 21:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:41:04 [end_date_ymd] => 2025-01-06 21:41:04 [RateCDR] => 1 ) [2025-01-06 21:41: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-01-06 18:41:04' and `end` < '2025-01-06 21:41: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-01-06 21:41:18] Production.INFO: count ==1040 [2025-01-06 21:41:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:41:04 - End Time 2025-01-06 21:41:04 [2025-01-06 21:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190374', 'tblTempUsageDetail_20' ) start [2025-01-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190374', 'tblTempUsageDetail_20' ) end [2025-01-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190374', 'tblTempVendorCDR_20' ) start [2025-01-06 21:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190374', 'tblTempVendorCDR_20' ) end [2025-01-06 21:41:19] Production.INFO: ProcessCDR(1,14190374,1,1,2) [2025-01-06 21:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190374', 'tblTempUsageDetail_20' ) start [2025-01-06 21:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190374', 'tblTempUsageDetail_20' ) end [2025-01-06 21:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:41:22] Production.INFO: ==31173== Releasing lock... [2025-01-06 21:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:41:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:42:05 [end_date_ymd] => 2025-01-06 21:42:05 [RateCDR] => 1 ) [2025-01-06 21:42: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-01-06 18:42:05' and `end` < '2025-01-06 21:42: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-01-06 21:42:18] Production.INFO: count ==1039 [2025-01-06 21:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:42:05 - End Time 2025-01-06 21:42:05 [2025-01-06 21:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190380', 'tblTempUsageDetail_20' ) start [2025-01-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190380', 'tblTempUsageDetail_20' ) end [2025-01-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190380', 'tblTempVendorCDR_20' ) start [2025-01-06 21:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190380', 'tblTempVendorCDR_20' ) end [2025-01-06 21:42:18] Production.INFO: ProcessCDR(1,14190380,1,1,2) [2025-01-06 21:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190380,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190380,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190380', 'tblTempUsageDetail_20' ) start [2025-01-06 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190380', 'tblTempUsageDetail_20' ) end [2025-01-06 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:42:22] Production.INFO: ==31251== Releasing lock... [2025-01-06 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:42:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:43:04 [end_date_ymd] => 2025-01-06 21:43:04 [RateCDR] => 1 ) [2025-01-06 21:43: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-01-06 18:43:04' and `end` < '2025-01-06 21:43: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-01-06 21:43:19] Production.INFO: count ==1040 [2025-01-06 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:43:04 - End Time 2025-01-06 21:43:04 [2025-01-06 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190385', 'tblTempUsageDetail_20' ) start [2025-01-06 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190385', 'tblTempUsageDetail_20' ) end [2025-01-06 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190385', 'tblTempVendorCDR_20' ) start [2025-01-06 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190385', 'tblTempVendorCDR_20' ) end [2025-01-06 21:43:19] Production.INFO: ProcessCDR(1,14190385,1,1,2) [2025-01-06 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190385,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190385,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190385', 'tblTempUsageDetail_20' ) start [2025-01-06 21:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190385', 'tblTempUsageDetail_20' ) end [2025-01-06 21:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:43:23] Production.INFO: ==31331== Releasing lock... [2025-01-06 21:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:43:23] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:44:05 [end_date_ymd] => 2025-01-06 21:44:05 [RateCDR] => 1 ) [2025-01-06 21:44: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-01-06 18:44:05' and `end` < '2025-01-06 21:44: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-01-06 21:44:19] Production.INFO: count ==1040 [2025-01-06 21:44:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:44:05 - End Time 2025-01-06 21:44:05 [2025-01-06 21:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190390', 'tblTempUsageDetail_20' ) start [2025-01-06 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190390', 'tblTempUsageDetail_20' ) end [2025-01-06 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190390', 'tblTempVendorCDR_20' ) start [2025-01-06 21:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190390', 'tblTempVendorCDR_20' ) end [2025-01-06 21:44:20] Production.INFO: ProcessCDR(1,14190390,1,1,2) [2025-01-06 21:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190390,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190390,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190390', 'tblTempUsageDetail_20' ) start [2025-01-06 21:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190390', 'tblTempUsageDetail_20' ) end [2025-01-06 21:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:44:24] Production.INFO: ==31404== Releasing lock... [2025-01-06 21:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:44:24] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:45:04 [end_date_ymd] => 2025-01-06 21:45:04 [RateCDR] => 1 ) [2025-01-06 21:45: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-01-06 18:45:04' and `end` < '2025-01-06 21:45: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-01-06 21:45:17] Production.INFO: count ==1038 [2025-01-06 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:45:04 - End Time 2025-01-06 21:45:04 [2025-01-06 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190395', 'tblTempUsageDetail_20' ) start [2025-01-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190395', 'tblTempUsageDetail_20' ) end [2025-01-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190395', 'tblTempVendorCDR_20' ) start [2025-01-06 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190395', 'tblTempVendorCDR_20' ) end [2025-01-06 21:45:18] Production.INFO: ProcessCDR(1,14190395,1,1,2) [2025-01-06 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190395', 'tblTempUsageDetail_20' ) start [2025-01-06 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190395', 'tblTempUsageDetail_20' ) end [2025-01-06 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:45:21] Production.INFO: ==31517== Releasing lock... [2025-01-06 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:45:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:46:05 [end_date_ymd] => 2025-01-06 21:46:05 [RateCDR] => 1 ) [2025-01-06 21:46: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-01-06 18:46:05' and `end` < '2025-01-06 21:46: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-01-06 21:46:18] Production.INFO: count ==1038 [2025-01-06 21:46:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:46:05 - End Time 2025-01-06 21:46:05 [2025-01-06 21:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190400', 'tblTempUsageDetail_20' ) start [2025-01-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190400', 'tblTempUsageDetail_20' ) end [2025-01-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190400', 'tblTempVendorCDR_20' ) start [2025-01-06 21:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190400', 'tblTempVendorCDR_20' ) end [2025-01-06 21:46:19] Production.INFO: ProcessCDR(1,14190400,1,1,2) [2025-01-06 21:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190400', 'tblTempUsageDetail_20' ) start [2025-01-06 21:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190400', 'tblTempUsageDetail_20' ) end [2025-01-06 21:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:46:22] Production.INFO: ==31594== Releasing lock... [2025-01-06 21:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:46:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:47:05 [end_date_ymd] => 2025-01-06 21:47:05 [RateCDR] => 1 ) [2025-01-06 21:47: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-01-06 18:47:05' and `end` < '2025-01-06 21:47: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-01-06 21:47:18] Production.INFO: count ==1032 [2025-01-06 21:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:47:05 - End Time 2025-01-06 21:47:05 [2025-01-06 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190405', 'tblTempUsageDetail_20' ) start [2025-01-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190405', 'tblTempUsageDetail_20' ) end [2025-01-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190405', 'tblTempVendorCDR_20' ) start [2025-01-06 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190405', 'tblTempVendorCDR_20' ) end [2025-01-06 21:47:18] Production.INFO: ProcessCDR(1,14190405,1,1,2) [2025-01-06 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190405', 'tblTempUsageDetail_20' ) start [2025-01-06 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190405', 'tblTempUsageDetail_20' ) end [2025-01-06 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:47:21] Production.INFO: ==31671== Releasing lock... [2025-01-06 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:47:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 21:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:48:06 [end_date_ymd] => 2025-01-06 21:48:06 [RateCDR] => 1 ) [2025-01-06 21:48: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-01-06 18:48:06' and `end` < '2025-01-06 21:48: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-01-06 21:48:21] Production.INFO: count ==1033 [2025-01-06 21:48:21] Production.ERROR: pbx CDR StartTime 2025-01-06 18:48:06 - End Time 2025-01-06 21:48:06 [2025-01-06 21:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190410', 'tblTempUsageDetail_20' ) start [2025-01-06 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190410', 'tblTempUsageDetail_20' ) end [2025-01-06 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190410', 'tblTempVendorCDR_20' ) start [2025-01-06 21:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190410', 'tblTempVendorCDR_20' ) end [2025-01-06 21:48:21] Production.INFO: ProcessCDR(1,14190410,1,1,2) [2025-01-06 21:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190410', 'tblTempUsageDetail_20' ) start [2025-01-06 21:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190410', 'tblTempUsageDetail_20' ) end [2025-01-06 21:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:48:25] Production.INFO: ==31753== Releasing lock... [2025-01-06 21:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:48:25] Production.INFO: 35.75 MB #Memory Used# [2025-01-06 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:49:05 [end_date_ymd] => 2025-01-06 21:49:05 [RateCDR] => 1 ) [2025-01-06 21:49: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-01-06 18:49:05' and `end` < '2025-01-06 21:49: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-01-06 21:49:18] Production.INFO: count ==1020 [2025-01-06 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:49:05 - End Time 2025-01-06 21:49:05 [2025-01-06 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190415', 'tblTempUsageDetail_20' ) start [2025-01-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190415', 'tblTempUsageDetail_20' ) end [2025-01-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190415', 'tblTempVendorCDR_20' ) start [2025-01-06 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190415', 'tblTempVendorCDR_20' ) end [2025-01-06 21:49:18] Production.INFO: ProcessCDR(1,14190415,1,1,2) [2025-01-06 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190415', 'tblTempUsageDetail_20' ) start [2025-01-06 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190415', 'tblTempUsageDetail_20' ) end [2025-01-06 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:49:21] Production.INFO: ==31833== Releasing lock... [2025-01-06 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:49:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:50:06 [end_date_ymd] => 2025-01-06 21:50:06 [RateCDR] => 1 ) [2025-01-06 21:50: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-01-06 18:50:06' and `end` < '2025-01-06 21:50: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-01-06 21:50:19] Production.INFO: count ==1021 [2025-01-06 21:50:19] Production.ERROR: pbx CDR StartTime 2025-01-06 18:50:06 - End Time 2025-01-06 21:50:06 [2025-01-06 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190420', 'tblTempUsageDetail_20' ) start [2025-01-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190420', 'tblTempUsageDetail_20' ) end [2025-01-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190420', 'tblTempVendorCDR_20' ) start [2025-01-06 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190420', 'tblTempVendorCDR_20' ) end [2025-01-06 21:50:19] Production.INFO: ProcessCDR(1,14190420,1,1,2) [2025-01-06 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190420', 'tblTempUsageDetail_20' ) start [2025-01-06 21:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190420', 'tblTempUsageDetail_20' ) end [2025-01-06 21:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:50:22] Production.INFO: ==31912== Releasing lock... [2025-01-06 21:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:50:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-06 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:51:05 [end_date_ymd] => 2025-01-06 21:51:05 [RateCDR] => 1 ) [2025-01-06 21:51: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-01-06 18:51:05' and `end` < '2025-01-06 21:51: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-01-06 21:51:18] Production.INFO: count ==979 [2025-01-06 21:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:51:05 - End Time 2025-01-06 21:51:05 [2025-01-06 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190426', 'tblTempUsageDetail_20' ) start [2025-01-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190426', 'tblTempUsageDetail_20' ) end [2025-01-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190426', 'tblTempVendorCDR_20' ) start [2025-01-06 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190426', 'tblTempVendorCDR_20' ) end [2025-01-06 21:51:18] Production.INFO: ProcessCDR(1,14190426,1,1,2) [2025-01-06 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190426', 'tblTempUsageDetail_20' ) start [2025-01-06 21:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190426', 'tblTempUsageDetail_20' ) end [2025-01-06 21:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:51:21] Production.INFO: ==31989== Releasing lock... [2025-01-06 21:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:51:21] Production.INFO: 35 MB #Memory Used# [2025-01-06 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:52:05 [end_date_ymd] => 2025-01-06 21:52:05 [RateCDR] => 1 ) [2025-01-06 21:52: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-01-06 18:52:05' and `end` < '2025-01-06 21:52: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-01-06 21:52:20] Production.INFO: count ==961 [2025-01-06 21:52:21] Production.ERROR: pbx CDR StartTime 2025-01-06 18:52:05 - End Time 2025-01-06 21:52:05 [2025-01-06 21:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190431', 'tblTempUsageDetail_20' ) start [2025-01-06 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190431', 'tblTempUsageDetail_20' ) end [2025-01-06 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190431', 'tblTempVendorCDR_20' ) start [2025-01-06 21:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190431', 'tblTempVendorCDR_20' ) end [2025-01-06 21:52:21] Production.INFO: ProcessCDR(1,14190431,1,1,2) [2025-01-06 21:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190431', 'tblTempUsageDetail_20' ) start [2025-01-06 21:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190431', 'tblTempUsageDetail_20' ) end [2025-01-06 21:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:52:24] Production.INFO: ==32064== Releasing lock... [2025-01-06 21:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:52:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-06 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:53:05 [end_date_ymd] => 2025-01-06 21:53:05 [RateCDR] => 1 ) [2025-01-06 21:53: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-01-06 18:53:05' and `end` < '2025-01-06 21:53: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-01-06 21:53:18] Production.INFO: count ==945 [2025-01-06 21:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:53:05 - End Time 2025-01-06 21:53:05 [2025-01-06 21:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190436', 'tblTempUsageDetail_20' ) start [2025-01-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190436', 'tblTempUsageDetail_20' ) end [2025-01-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190436', 'tblTempVendorCDR_20' ) start [2025-01-06 21:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190436', 'tblTempVendorCDR_20' ) end [2025-01-06 21:53:18] Production.INFO: ProcessCDR(1,14190436,1,1,2) [2025-01-06 21:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190436,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190436,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190436', 'tblTempUsageDetail_20' ) start [2025-01-06 21:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190436', 'tblTempUsageDetail_20' ) end [2025-01-06 21:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:53:21] Production.INFO: ==32141== Releasing lock... [2025-01-06 21:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:53:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:54:05 [end_date_ymd] => 2025-01-06 21:54:05 [RateCDR] => 1 ) [2025-01-06 21:54: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-01-06 18:54:05' and `end` < '2025-01-06 21:54: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-01-06 21:54:18] Production.INFO: count ==934 [2025-01-06 21:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:54:05 - End Time 2025-01-06 21:54:05 [2025-01-06 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190441', 'tblTempUsageDetail_20' ) start [2025-01-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190441', 'tblTempUsageDetail_20' ) end [2025-01-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190441', 'tblTempVendorCDR_20' ) start [2025-01-06 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190441', 'tblTempVendorCDR_20' ) end [2025-01-06 21:54:18] Production.INFO: ProcessCDR(1,14190441,1,1,2) [2025-01-06 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190441,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190441,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190441', 'tblTempUsageDetail_20' ) start [2025-01-06 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190441', 'tblTempUsageDetail_20' ) end [2025-01-06 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:54:21] Production.INFO: ==32217== Releasing lock... [2025-01-06 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:54:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:55:05 [end_date_ymd] => 2025-01-06 21:55:05 [RateCDR] => 1 ) [2025-01-06 21:55: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-01-06 18:55:05' and `end` < '2025-01-06 21:55: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-01-06 21:55:18] Production.INFO: count ==933 [2025-01-06 21:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:55:05 - End Time 2025-01-06 21:55:05 [2025-01-06 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190446', 'tblTempUsageDetail_20' ) start [2025-01-06 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190446', 'tblTempUsageDetail_20' ) end [2025-01-06 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190446', 'tblTempVendorCDR_20' ) start [2025-01-06 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190446', 'tblTempVendorCDR_20' ) end [2025-01-06 21:55:18] Production.INFO: ProcessCDR(1,14190446,1,1,2) [2025-01-06 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190446', 'tblTempUsageDetail_20' ) start [2025-01-06 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190446', 'tblTempUsageDetail_20' ) end [2025-01-06 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:55:22] Production.INFO: ==32299== Releasing lock... [2025-01-06 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:55:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:56:05 [end_date_ymd] => 2025-01-06 21:56:05 [RateCDR] => 1 ) [2025-01-06 21:56: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-01-06 18:56:05' and `end` < '2025-01-06 21:56: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-01-06 21:56:17] Production.INFO: count ==935 [2025-01-06 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:56:05 - End Time 2025-01-06 21:56:05 [2025-01-06 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190451', 'tblTempUsageDetail_20' ) start [2025-01-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190451', 'tblTempUsageDetail_20' ) end [2025-01-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190451', 'tblTempVendorCDR_20' ) start [2025-01-06 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190451', 'tblTempVendorCDR_20' ) end [2025-01-06 21:56:18] Production.INFO: ProcessCDR(1,14190451,1,1,2) [2025-01-06 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190451', 'tblTempUsageDetail_20' ) start [2025-01-06 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190451', 'tblTempUsageDetail_20' ) end [2025-01-06 21:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:56:21] Production.INFO: ==32373== Releasing lock... [2025-01-06 21:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:56:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-06 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:57:05 [end_date_ymd] => 2025-01-06 21:57:05 [RateCDR] => 1 ) [2025-01-06 21:57: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-01-06 18:57:05' and `end` < '2025-01-06 21:57: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-01-06 21:57:20] Production.INFO: count ==938 [2025-01-06 21:57:20] Production.ERROR: pbx CDR StartTime 2025-01-06 18:57:05 - End Time 2025-01-06 21:57:05 [2025-01-06 21:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190456', 'tblTempUsageDetail_20' ) start [2025-01-06 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190456', 'tblTempUsageDetail_20' ) end [2025-01-06 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190456', 'tblTempVendorCDR_20' ) start [2025-01-06 21:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190456', 'tblTempVendorCDR_20' ) end [2025-01-06 21:57:20] Production.INFO: ProcessCDR(1,14190456,1,1,2) [2025-01-06 21:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190456', 'tblTempUsageDetail_20' ) start [2025-01-06 21:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190456', 'tblTempUsageDetail_20' ) end [2025-01-06 21:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:57:23] Production.INFO: ==32458== Releasing lock... [2025-01-06 21:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:57:23] Production.INFO: 35 MB #Memory Used# [2025-01-06 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:58:05 [end_date_ymd] => 2025-01-06 21:58:05 [RateCDR] => 1 ) [2025-01-06 21:58: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-01-06 18:58:05' and `end` < '2025-01-06 21:58: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-01-06 21:58:17] Production.INFO: count ==929 [2025-01-06 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 18:58:05 - End Time 2025-01-06 21:58:05 [2025-01-06 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190461', 'tblTempUsageDetail_20' ) start [2025-01-06 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190461', 'tblTempUsageDetail_20' ) end [2025-01-06 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190461', 'tblTempVendorCDR_20' ) start [2025-01-06 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190461', 'tblTempVendorCDR_20' ) end [2025-01-06 21:58:18] Production.INFO: ProcessCDR(1,14190461,1,1,2) [2025-01-06 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190461', 'tblTempUsageDetail_20' ) start [2025-01-06 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190461', 'tblTempUsageDetail_20' ) end [2025-01-06 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:58:21] Production.INFO: ==32528== Releasing lock... [2025-01-06 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:58:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-06 21:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 18:59:04 [end_date_ymd] => 2025-01-06 21:59:04 [RateCDR] => 1 ) [2025-01-06 21:59: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-01-06 18:59:04' and `end` < '2025-01-06 21:59: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-01-06 21:59:17] Production.INFO: count ==918 [2025-01-06 21:59:17] Production.ERROR: pbx CDR StartTime 2025-01-06 18:59:04 - End Time 2025-01-06 21:59:04 [2025-01-06 21:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190466', 'tblTempUsageDetail_20' ) start [2025-01-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190466', 'tblTempUsageDetail_20' ) end [2025-01-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190466', 'tblTempVendorCDR_20' ) start [2025-01-06 21:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190466', 'tblTempVendorCDR_20' ) end [2025-01-06 21:59:17] Production.INFO: ProcessCDR(1,14190466,1,1,2) [2025-01-06 21:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 21:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190466', 'tblTempUsageDetail_20' ) start [2025-01-06 21:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190466', 'tblTempUsageDetail_20' ) end [2025-01-06 21:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 21:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 21:59:20] Production.INFO: ==32603== Releasing lock... [2025-01-06 21:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 21:59:20] Production.INFO: 34.5 MB #Memory Used# [2025-01-06 22:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:00:06 [end_date_ymd] => 2025-01-06 22:00:06 [RateCDR] => 1 ) [2025-01-06 22:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 19:00:06' and `end` < '2025-01-06 22:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 22:00:19] Production.INFO: count ==902 [2025-01-06 22:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:00:06 - End Time 2025-01-06 22:00:06 [2025-01-06 22:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190472', 'tblTempUsageDetail_20' ) start [2025-01-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190472', 'tblTempUsageDetail_20' ) end [2025-01-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190472', 'tblTempVendorCDR_20' ) start [2025-01-06 22:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190472', 'tblTempVendorCDR_20' ) end [2025-01-06 22:00:19] Production.INFO: ProcessCDR(1,14190472,1,1,2) [2025-01-06 22:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190472', 'tblTempUsageDetail_20' ) start [2025-01-06 22:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190472', 'tblTempUsageDetail_20' ) end [2025-01-06 22:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:00:22] Production.INFO: ==32718== Releasing lock... [2025-01-06 22:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:00:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-06 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:01:05 [end_date_ymd] => 2025-01-06 22:01:05 [RateCDR] => 1 ) [2025-01-06 22:01: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-01-06 19:01:05' and `end` < '2025-01-06 22:01: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-01-06 22:01:18] Production.INFO: count ==903 [2025-01-06 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:01:05 - End Time 2025-01-06 22:01:05 [2025-01-06 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190477', 'tblTempUsageDetail_20' ) start [2025-01-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190477', 'tblTempUsageDetail_20' ) end [2025-01-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190477', 'tblTempVendorCDR_20' ) start [2025-01-06 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190477', 'tblTempVendorCDR_20' ) end [2025-01-06 22:01:18] Production.INFO: ProcessCDR(1,14190477,1,1,2) [2025-01-06 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190477', 'tblTempUsageDetail_20' ) start [2025-01-06 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190477', 'tblTempUsageDetail_20' ) end [2025-01-06 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:01:21] Production.INFO: ==356== Releasing lock... [2025-01-06 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:01:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-06 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:02:04 [end_date_ymd] => 2025-01-06 22:02:04 [RateCDR] => 1 ) [2025-01-06 22:02: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-01-06 19:02:04' and `end` < '2025-01-06 22:02: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-01-06 22:02:17] Production.INFO: count ==886 [2025-01-06 22:02:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:02:04 - End Time 2025-01-06 22:02:04 [2025-01-06 22:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190482', 'tblTempUsageDetail_20' ) start [2025-01-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190482', 'tblTempUsageDetail_20' ) end [2025-01-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190482', 'tblTempVendorCDR_20' ) start [2025-01-06 22:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190482', 'tblTempVendorCDR_20' ) end [2025-01-06 22:02:17] Production.INFO: ProcessCDR(1,14190482,1,1,2) [2025-01-06 22:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:02:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190482', 'tblTempUsageDetail_20' ) start [2025-01-06 22:02:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190482', 'tblTempUsageDetail_20' ) end [2025-01-06 22:02:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:02:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:02:20] Production.INFO: ==434== Releasing lock... [2025-01-06 22:02:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:02:20] Production.INFO: 34 MB #Memory Used# [2025-01-06 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:03:05 [end_date_ymd] => 2025-01-06 22:03:05 [RateCDR] => 1 ) [2025-01-06 22:03: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-01-06 19:03:05' and `end` < '2025-01-06 22:03: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-01-06 22:03:19] Production.INFO: count ==877 [2025-01-06 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:03:05 - End Time 2025-01-06 22:03:05 [2025-01-06 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190487', 'tblTempUsageDetail_20' ) start [2025-01-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190487', 'tblTempUsageDetail_20' ) end [2025-01-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190487', 'tblTempVendorCDR_20' ) start [2025-01-06 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190487', 'tblTempVendorCDR_20' ) end [2025-01-06 22:03:19] Production.INFO: ProcessCDR(1,14190487,1,1,2) [2025-01-06 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190487,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190487,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190487', 'tblTempUsageDetail_20' ) start [2025-01-06 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190487', 'tblTempUsageDetail_20' ) end [2025-01-06 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:03:22] Production.INFO: ==510== Releasing lock... [2025-01-06 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:03:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:04:06 [end_date_ymd] => 2025-01-06 22:04:06 [RateCDR] => 1 ) [2025-01-06 22:04: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-01-06 19:04:06' and `end` < '2025-01-06 22:04: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-01-06 22:04:19] Production.INFO: count ==880 [2025-01-06 22:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:04:06 - End Time 2025-01-06 22:04:06 [2025-01-06 22:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190492', 'tblTempUsageDetail_20' ) start [2025-01-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190492', 'tblTempUsageDetail_20' ) end [2025-01-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190492', 'tblTempVendorCDR_20' ) start [2025-01-06 22:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190492', 'tblTempVendorCDR_20' ) end [2025-01-06 22:04:19] Production.INFO: ProcessCDR(1,14190492,1,1,2) [2025-01-06 22:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190492,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190492,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190492', 'tblTempUsageDetail_20' ) start [2025-01-06 22:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190492', 'tblTempUsageDetail_20' ) end [2025-01-06 22:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:04:22] Production.INFO: ==587== Releasing lock... [2025-01-06 22:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:04:22] Production.INFO: 34 MB #Memory Used# [2025-01-06 22:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:05:05 [end_date_ymd] => 2025-01-06 22:05:05 [RateCDR] => 1 ) [2025-01-06 22:05: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-01-06 19:05:05' and `end` < '2025-01-06 22:05: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-01-06 22:05:18] Production.INFO: count ==877 [2025-01-06 22:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:05:05 - End Time 2025-01-06 22:05:05 [2025-01-06 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190497', 'tblTempUsageDetail_20' ) start [2025-01-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190497', 'tblTempUsageDetail_20' ) end [2025-01-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190497', 'tblTempVendorCDR_20' ) start [2025-01-06 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190497', 'tblTempVendorCDR_20' ) end [2025-01-06 22:05:18] Production.INFO: ProcessCDR(1,14190497,1,1,2) [2025-01-06 22:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190497,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190497,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190497', 'tblTempUsageDetail_20' ) start [2025-01-06 22:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190497', 'tblTempUsageDetail_20' ) end [2025-01-06 22:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:05:21] Production.INFO: ==670== Releasing lock... [2025-01-06 22:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:05:21] Production.INFO: 34 MB #Memory Used# [2025-01-06 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:06:05 [end_date_ymd] => 2025-01-06 22:06:05 [RateCDR] => 1 ) [2025-01-06 22:06: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-01-06 19:06:05' and `end` < '2025-01-06 22:06: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-01-06 22:06:21] Production.INFO: count ==875 [2025-01-06 22:06:21] Production.ERROR: pbx CDR StartTime 2025-01-06 19:06:05 - End Time 2025-01-06 22:06:05 [2025-01-06 22:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190502', 'tblTempUsageDetail_20' ) start [2025-01-06 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190502', 'tblTempUsageDetail_20' ) end [2025-01-06 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190502', 'tblTempVendorCDR_20' ) start [2025-01-06 22:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190502', 'tblTempVendorCDR_20' ) end [2025-01-06 22:06:21] Production.INFO: ProcessCDR(1,14190502,1,1,2) [2025-01-06 22:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190502', 'tblTempUsageDetail_20' ) start [2025-01-06 22:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190502', 'tblTempUsageDetail_20' ) end [2025-01-06 22:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:06:24] Production.INFO: ==764== Releasing lock... [2025-01-06 22:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:06:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:07:05 [end_date_ymd] => 2025-01-06 22:07:05 [RateCDR] => 1 ) [2025-01-06 22:07: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-01-06 19:07:05' and `end` < '2025-01-06 22:07: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-01-06 22:07:18] Production.INFO: count ==862 [2025-01-06 22:07:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:07:05 - End Time 2025-01-06 22:07:05 [2025-01-06 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190507', 'tblTempUsageDetail_20' ) start [2025-01-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190507', 'tblTempUsageDetail_20' ) end [2025-01-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190507', 'tblTempVendorCDR_20' ) start [2025-01-06 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190507', 'tblTempVendorCDR_20' ) end [2025-01-06 22:07:18] Production.INFO: ProcessCDR(1,14190507,1,1,2) [2025-01-06 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190507', 'tblTempUsageDetail_20' ) start [2025-01-06 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190507', 'tblTempUsageDetail_20' ) end [2025-01-06 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:07:21] Production.INFO: ==835== Releasing lock... [2025-01-06 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:07:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:08:05 [end_date_ymd] => 2025-01-06 22:08:05 [RateCDR] => 1 ) [2025-01-06 22:08: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-01-06 19:08:05' and `end` < '2025-01-06 22:08: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-01-06 22:08:18] Production.INFO: count ==860 [2025-01-06 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:08:05 - End Time 2025-01-06 22:08:05 [2025-01-06 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190512', 'tblTempUsageDetail_20' ) start [2025-01-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190512', 'tblTempUsageDetail_20' ) end [2025-01-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190512', 'tblTempVendorCDR_20' ) start [2025-01-06 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190512', 'tblTempVendorCDR_20' ) end [2025-01-06 22:08:18] Production.INFO: ProcessCDR(1,14190512,1,1,2) [2025-01-06 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190512', 'tblTempUsageDetail_20' ) start [2025-01-06 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190512', 'tblTempUsageDetail_20' ) end [2025-01-06 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:08:21] Production.INFO: ==912== Releasing lock... [2025-01-06 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:08:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:09:05 [end_date_ymd] => 2025-01-06 22:09:05 [RateCDR] => 1 ) [2025-01-06 22:09: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-01-06 19:09:05' and `end` < '2025-01-06 22:09: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-01-06 22:09:18] Production.INFO: count ==858 [2025-01-06 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:09:05 - End Time 2025-01-06 22:09:05 [2025-01-06 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190517', 'tblTempUsageDetail_20' ) start [2025-01-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190517', 'tblTempUsageDetail_20' ) end [2025-01-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190517', 'tblTempVendorCDR_20' ) start [2025-01-06 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190517', 'tblTempVendorCDR_20' ) end [2025-01-06 22:09:18] Production.INFO: ProcessCDR(1,14190517,1,1,2) [2025-01-06 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190517', 'tblTempUsageDetail_20' ) start [2025-01-06 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190517', 'tblTempUsageDetail_20' ) end [2025-01-06 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:09:21] Production.INFO: ==985== Releasing lock... [2025-01-06 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:09:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:10:06 [end_date_ymd] => 2025-01-06 22:10:06 [RateCDR] => 1 ) [2025-01-06 22:10: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-01-06 19:10:06' and `end` < '2025-01-06 22:10: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-01-06 22:10:19] Production.INFO: count ==857 [2025-01-06 22:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:10:06 - End Time 2025-01-06 22:10:06 [2025-01-06 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190523', 'tblTempUsageDetail_20' ) start [2025-01-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190523', 'tblTempUsageDetail_20' ) end [2025-01-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190523', 'tblTempVendorCDR_20' ) start [2025-01-06 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190523', 'tblTempVendorCDR_20' ) end [2025-01-06 22:10:19] Production.INFO: ProcessCDR(1,14190523,1,1,2) [2025-01-06 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190523', 'tblTempUsageDetail_20' ) start [2025-01-06 22:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190523', 'tblTempUsageDetail_20' ) end [2025-01-06 22:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:10:22] Production.INFO: ==1057== Releasing lock... [2025-01-06 22:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:10:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:11:04 [end_date_ymd] => 2025-01-06 22:11:04 [RateCDR] => 1 ) [2025-01-06 22:11: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-01-06 19:11:04' and `end` < '2025-01-06 22:11: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-01-06 22:11:18] Production.INFO: count ==819 [2025-01-06 22:11:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:11:04 - End Time 2025-01-06 22:11:04 [2025-01-06 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190528', 'tblTempUsageDetail_20' ) start [2025-01-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190528', 'tblTempUsageDetail_20' ) end [2025-01-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190528', 'tblTempVendorCDR_20' ) start [2025-01-06 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190528', 'tblTempVendorCDR_20' ) end [2025-01-06 22:11:18] Production.INFO: ProcessCDR(1,14190528,1,1,2) [2025-01-06 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190528', 'tblTempUsageDetail_20' ) start [2025-01-06 22:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190528', 'tblTempUsageDetail_20' ) end [2025-01-06 22:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:11:22] Production.INFO: ==1135== Releasing lock... [2025-01-06 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:11:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:12:05 [end_date_ymd] => 2025-01-06 22:12:05 [RateCDR] => 1 ) [2025-01-06 22:12: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-01-06 19:12:05' and `end` < '2025-01-06 22:12: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-01-06 22:12:18] Production.INFO: count ==819 [2025-01-06 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:12:05 - End Time 2025-01-06 22:12:05 [2025-01-06 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190533', 'tblTempUsageDetail_20' ) start [2025-01-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190533', 'tblTempUsageDetail_20' ) end [2025-01-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190533', 'tblTempVendorCDR_20' ) start [2025-01-06 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190533', 'tblTempVendorCDR_20' ) end [2025-01-06 22:12:18] Production.INFO: ProcessCDR(1,14190533,1,1,2) [2025-01-06 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190533,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190533,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190533', 'tblTempUsageDetail_20' ) start [2025-01-06 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190533', 'tblTempUsageDetail_20' ) end [2025-01-06 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:12:21] Production.INFO: ==1211== Releasing lock... [2025-01-06 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:12:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:13:04 [end_date_ymd] => 2025-01-06 22:13:04 [RateCDR] => 1 ) [2025-01-06 22:13: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-01-06 19:13:04' and `end` < '2025-01-06 22:13: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-01-06 22:13:17] Production.INFO: count ==819 [2025-01-06 22:13:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:13:04 - End Time 2025-01-06 22:13:04 [2025-01-06 22:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190538', 'tblTempUsageDetail_20' ) start [2025-01-06 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190538', 'tblTempUsageDetail_20' ) end [2025-01-06 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190538', 'tblTempVendorCDR_20' ) start [2025-01-06 22:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190538', 'tblTempVendorCDR_20' ) end [2025-01-06 22:13:17] Production.INFO: ProcessCDR(1,14190538,1,1,2) [2025-01-06 22:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190538,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190538,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190538', 'tblTempUsageDetail_20' ) start [2025-01-06 22:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190538', 'tblTempUsageDetail_20' ) end [2025-01-06 22:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:13:21] Production.INFO: ==1294== Releasing lock... [2025-01-06 22:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:13:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:14:06 [end_date_ymd] => 2025-01-06 22:14:06 [RateCDR] => 1 ) [2025-01-06 22:14: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-01-06 19:14:06' and `end` < '2025-01-06 22:14: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-01-06 22:14:18] Production.INFO: count ==818 [2025-01-06 22:14:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:14:06 - End Time 2025-01-06 22:14:06 [2025-01-06 22:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190543', 'tblTempUsageDetail_20' ) start [2025-01-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190543', 'tblTempUsageDetail_20' ) end [2025-01-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190543', 'tblTempVendorCDR_20' ) start [2025-01-06 22:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190543', 'tblTempVendorCDR_20' ) end [2025-01-06 22:14:19] Production.INFO: ProcessCDR(1,14190543,1,1,2) [2025-01-06 22:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190543,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190543,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190543', 'tblTempUsageDetail_20' ) start [2025-01-06 22:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190543', 'tblTempUsageDetail_20' ) end [2025-01-06 22:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:14:22] Production.INFO: ==1368== Releasing lock... [2025-01-06 22:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:14:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:15:04 [end_date_ymd] => 2025-01-06 22:15:04 [RateCDR] => 1 ) [2025-01-06 22:15: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-01-06 19:15:04' and `end` < '2025-01-06 22:15: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-01-06 22:15:17] Production.INFO: count ==821 [2025-01-06 22:15:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:15:04 - End Time 2025-01-06 22:15:04 [2025-01-06 22:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190548', 'tblTempUsageDetail_20' ) start [2025-01-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190548', 'tblTempUsageDetail_20' ) end [2025-01-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190548', 'tblTempVendorCDR_20' ) start [2025-01-06 22:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190548', 'tblTempVendorCDR_20' ) end [2025-01-06 22:15:17] Production.INFO: ProcessCDR(1,14190548,1,1,2) [2025-01-06 22:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190548', 'tblTempUsageDetail_20' ) start [2025-01-06 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190548', 'tblTempUsageDetail_20' ) end [2025-01-06 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:15:21] Production.INFO: ==1438== Releasing lock... [2025-01-06 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:15:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:16:05 [end_date_ymd] => 2025-01-06 22:16:05 [RateCDR] => 1 ) [2025-01-06 22:16: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-01-06 19:16:05' and `end` < '2025-01-06 22:16: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-01-06 22:16:18] Production.INFO: count ==821 [2025-01-06 22:16:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:16:05 - End Time 2025-01-06 22:16:05 [2025-01-06 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190553', 'tblTempUsageDetail_20' ) start [2025-01-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190553', 'tblTempUsageDetail_20' ) end [2025-01-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190553', 'tblTempVendorCDR_20' ) start [2025-01-06 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190553', 'tblTempVendorCDR_20' ) end [2025-01-06 22:16:18] Production.INFO: ProcessCDR(1,14190553,1,1,2) [2025-01-06 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190553', 'tblTempUsageDetail_20' ) start [2025-01-06 22:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190553', 'tblTempUsageDetail_20' ) end [2025-01-06 22:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:16:21] Production.INFO: ==1591== Releasing lock... [2025-01-06 22:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:16:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:17:05 [end_date_ymd] => 2025-01-06 22:17:05 [RateCDR] => 1 ) [2025-01-06 22:17: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-01-06 19:17:05' and `end` < '2025-01-06 22:17: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-01-06 22:17:20] Production.INFO: count ==821 [2025-01-06 22:17:20] Production.ERROR: pbx CDR StartTime 2025-01-06 19:17:05 - End Time 2025-01-06 22:17:05 [2025-01-06 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190558', 'tblTempUsageDetail_20' ) start [2025-01-06 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190558', 'tblTempUsageDetail_20' ) end [2025-01-06 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190558', 'tblTempVendorCDR_20' ) start [2025-01-06 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190558', 'tblTempVendorCDR_20' ) end [2025-01-06 22:17:20] Production.INFO: ProcessCDR(1,14190558,1,1,2) [2025-01-06 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190558', 'tblTempUsageDetail_20' ) start [2025-01-06 22:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190558', 'tblTempUsageDetail_20' ) end [2025-01-06 22:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:17:23] Production.INFO: ==1663== Releasing lock... [2025-01-06 22:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:17:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:18:05 [end_date_ymd] => 2025-01-06 22:18:05 [RateCDR] => 1 ) [2025-01-06 22:18: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-01-06 19:18:05' and `end` < '2025-01-06 22:18: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-01-06 22:18:18] Production.INFO: count ==821 [2025-01-06 22:18:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:18:05 - End Time 2025-01-06 22:18:05 [2025-01-06 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190563', 'tblTempUsageDetail_20' ) start [2025-01-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190563', 'tblTempUsageDetail_20' ) end [2025-01-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190563', 'tblTempVendorCDR_20' ) start [2025-01-06 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190563', 'tblTempVendorCDR_20' ) end [2025-01-06 22:18:18] Production.INFO: ProcessCDR(1,14190563,1,1,2) [2025-01-06 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190563', 'tblTempUsageDetail_20' ) start [2025-01-06 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190563', 'tblTempUsageDetail_20' ) end [2025-01-06 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:18:23] Production.INFO: ==1739== Releasing lock... [2025-01-06 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:18:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:19:05 [end_date_ymd] => 2025-01-06 22:19:05 [RateCDR] => 1 ) [2025-01-06 22:19: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-01-06 19:19:05' and `end` < '2025-01-06 22:19: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-01-06 22:19:20] Production.INFO: count ==821 [2025-01-06 22:19:20] Production.ERROR: pbx CDR StartTime 2025-01-06 19:19:05 - End Time 2025-01-06 22:19:05 [2025-01-06 22:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190568', 'tblTempUsageDetail_20' ) start [2025-01-06 22:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190568', 'tblTempUsageDetail_20' ) end [2025-01-06 22:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190568', 'tblTempVendorCDR_20' ) start [2025-01-06 22:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190568', 'tblTempVendorCDR_20' ) end [2025-01-06 22:19:20] Production.INFO: ProcessCDR(1,14190568,1,1,2) [2025-01-06 22:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190568', 'tblTempUsageDetail_20' ) start [2025-01-06 22:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190568', 'tblTempUsageDetail_20' ) end [2025-01-06 22:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:19:23] Production.INFO: ==1810== Releasing lock... [2025-01-06 22:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:19:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:20:05 [end_date_ymd] => 2025-01-06 22:20:05 [RateCDR] => 1 ) [2025-01-06 22:20: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-01-06 19:20:05' and `end` < '2025-01-06 22:20: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-01-06 22:20:18] Production.INFO: count ==821 [2025-01-06 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:20:05 - End Time 2025-01-06 22:20:05 [2025-01-06 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190574', 'tblTempUsageDetail_20' ) start [2025-01-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190574', 'tblTempUsageDetail_20' ) end [2025-01-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190574', 'tblTempVendorCDR_20' ) start [2025-01-06 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190574', 'tblTempVendorCDR_20' ) end [2025-01-06 22:20:19] Production.INFO: ProcessCDR(1,14190574,1,1,2) [2025-01-06 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190574', 'tblTempUsageDetail_20' ) start [2025-01-06 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190574', 'tblTempUsageDetail_20' ) end [2025-01-06 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:20:22] Production.INFO: ==1888== Releasing lock... [2025-01-06 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:20:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:21:05 [end_date_ymd] => 2025-01-06 22:21:05 [RateCDR] => 1 ) [2025-01-06 22:21: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-01-06 19:21:05' and `end` < '2025-01-06 22:21: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-01-06 22:21:18] Production.INFO: count ==817 [2025-01-06 22:21:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:21:05 - End Time 2025-01-06 22:21:05 [2025-01-06 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190579', 'tblTempUsageDetail_20' ) start [2025-01-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190579', 'tblTempUsageDetail_20' ) end [2025-01-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190579', 'tblTempVendorCDR_20' ) start [2025-01-06 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190579', 'tblTempVendorCDR_20' ) end [2025-01-06 22:21:18] Production.INFO: ProcessCDR(1,14190579,1,1,2) [2025-01-06 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190579', 'tblTempUsageDetail_20' ) start [2025-01-06 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190579', 'tblTempUsageDetail_20' ) end [2025-01-06 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:21:21] Production.INFO: ==1964== Releasing lock... [2025-01-06 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:21:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:22:05 [end_date_ymd] => 2025-01-06 22:22:05 [RateCDR] => 1 ) [2025-01-06 22:22: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-01-06 19:22:05' and `end` < '2025-01-06 22:22: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-01-06 22:22:17] Production.INFO: count ==817 [2025-01-06 22:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:22:05 - End Time 2025-01-06 22:22:05 [2025-01-06 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190584', 'tblTempUsageDetail_20' ) start [2025-01-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190584', 'tblTempUsageDetail_20' ) end [2025-01-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190584', 'tblTempVendorCDR_20' ) start [2025-01-06 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190584', 'tblTempVendorCDR_20' ) end [2025-01-06 22:22:18] Production.INFO: ProcessCDR(1,14190584,1,1,2) [2025-01-06 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190584', 'tblTempUsageDetail_20' ) start [2025-01-06 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190584', 'tblTempUsageDetail_20' ) end [2025-01-06 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:22:21] Production.INFO: ==2038== Releasing lock... [2025-01-06 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-06 22:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:23:05 [end_date_ymd] => 2025-01-06 22:23:05 [RateCDR] => 1 ) [2025-01-06 22:23: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-01-06 19:23:05' and `end` < '2025-01-06 22:23: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-01-06 22:23:18] Production.INFO: count ==815 [2025-01-06 22:23:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:23:05 - End Time 2025-01-06 22:23:05 [2025-01-06 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190589', 'tblTempUsageDetail_20' ) start [2025-01-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190589', 'tblTempUsageDetail_20' ) end [2025-01-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190589', 'tblTempVendorCDR_20' ) start [2025-01-06 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190589', 'tblTempVendorCDR_20' ) end [2025-01-06 22:23:18] Production.INFO: ProcessCDR(1,14190589,1,1,2) [2025-01-06 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190589,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190589,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190589', 'tblTempUsageDetail_20' ) start [2025-01-06 22:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190589', 'tblTempUsageDetail_20' ) end [2025-01-06 22:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:23:21] Production.INFO: ==2107== Releasing lock... [2025-01-06 22:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:23:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:24:05 [end_date_ymd] => 2025-01-06 22:24:05 [RateCDR] => 1 ) [2025-01-06 22:24: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-01-06 19:24:05' and `end` < '2025-01-06 22:24: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-01-06 22:24:19] Production.INFO: count ==817 [2025-01-06 22:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:24:05 - End Time 2025-01-06 22:24:05 [2025-01-06 22:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190594', 'tblTempUsageDetail_20' ) start [2025-01-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190594', 'tblTempUsageDetail_20' ) end [2025-01-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190594', 'tblTempVendorCDR_20' ) start [2025-01-06 22:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190594', 'tblTempVendorCDR_20' ) end [2025-01-06 22:24:19] Production.INFO: ProcessCDR(1,14190594,1,1,2) [2025-01-06 22:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190594,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190594,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190594', 'tblTempUsageDetail_20' ) start [2025-01-06 22:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190594', 'tblTempUsageDetail_20' ) end [2025-01-06 22:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:24:24] Production.INFO: ==2181== Releasing lock... [2025-01-06 22:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:24:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:25:05 [end_date_ymd] => 2025-01-06 22:25:05 [RateCDR] => 1 ) [2025-01-06 22:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-06 19:25:05' and `end` < '2025-01-06 22:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 22:25:19] Production.INFO: count ==817 [2025-01-06 22:25:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:25:05 - End Time 2025-01-06 22:25:05 [2025-01-06 22:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190599', 'tblTempUsageDetail_20' ) start [2025-01-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190599', 'tblTempUsageDetail_20' ) end [2025-01-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190599', 'tblTempVendorCDR_20' ) start [2025-01-06 22:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190599', 'tblTempVendorCDR_20' ) end [2025-01-06 22:25:19] Production.INFO: ProcessCDR(1,14190599,1,1,2) [2025-01-06 22:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190599', 'tblTempUsageDetail_20' ) start [2025-01-06 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190599', 'tblTempUsageDetail_20' ) end [2025-01-06 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:25:22] Production.INFO: ==2253== Releasing lock... [2025-01-06 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:25:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:26:05 [end_date_ymd] => 2025-01-06 22:26:05 [RateCDR] => 1 ) [2025-01-06 22:26: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-01-06 19:26:05' and `end` < '2025-01-06 22:26: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-01-06 22:26:19] Production.INFO: count ==816 [2025-01-06 22:26:20] Production.ERROR: pbx CDR StartTime 2025-01-06 19:26:05 - End Time 2025-01-06 22:26:05 [2025-01-06 22:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190604', 'tblTempUsageDetail_20' ) start [2025-01-06 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190604', 'tblTempUsageDetail_20' ) end [2025-01-06 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190604', 'tblTempVendorCDR_20' ) start [2025-01-06 22:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190604', 'tblTempVendorCDR_20' ) end [2025-01-06 22:26:20] Production.INFO: ProcessCDR(1,14190604,1,1,2) [2025-01-06 22:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190604', 'tblTempUsageDetail_20' ) start [2025-01-06 22:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190604', 'tblTempUsageDetail_20' ) end [2025-01-06 22:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:26:23] Production.INFO: ==2324== Releasing lock... [2025-01-06 22:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:26:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:27:05 [end_date_ymd] => 2025-01-06 22:27:05 [RateCDR] => 1 ) [2025-01-06 22:27: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-01-06 19:27:05' and `end` < '2025-01-06 22:27: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-01-06 22:27:19] Production.INFO: count ==814 [2025-01-06 22:27:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:27:05 - End Time 2025-01-06 22:27:05 [2025-01-06 22:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190609', 'tblTempUsageDetail_20' ) start [2025-01-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190609', 'tblTempUsageDetail_20' ) end [2025-01-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190609', 'tblTempVendorCDR_20' ) start [2025-01-06 22:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190609', 'tblTempVendorCDR_20' ) end [2025-01-06 22:27:19] Production.INFO: ProcessCDR(1,14190609,1,1,2) [2025-01-06 22:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190609', 'tblTempUsageDetail_20' ) start [2025-01-06 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190609', 'tblTempUsageDetail_20' ) end [2025-01-06 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:27:22] Production.INFO: ==2396== Releasing lock... [2025-01-06 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:27:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:28:05 [end_date_ymd] => 2025-01-06 22:28:05 [RateCDR] => 1 ) [2025-01-06 22:28: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-01-06 19:28:05' and `end` < '2025-01-06 22:28: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-01-06 22:28:18] Production.INFO: count ==813 [2025-01-06 22:28:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:28:05 - End Time 2025-01-06 22:28:05 [2025-01-06 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190614', 'tblTempUsageDetail_20' ) start [2025-01-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190614', 'tblTempUsageDetail_20' ) end [2025-01-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190614', 'tblTempVendorCDR_20' ) start [2025-01-06 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190614', 'tblTempVendorCDR_20' ) end [2025-01-06 22:28:18] Production.INFO: ProcessCDR(1,14190614,1,1,2) [2025-01-06 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190614', 'tblTempUsageDetail_20' ) start [2025-01-06 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190614', 'tblTempUsageDetail_20' ) end [2025-01-06 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:28:21] Production.INFO: ==2467== Releasing lock... [2025-01-06 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:29:05 [end_date_ymd] => 2025-01-06 22:29:05 [RateCDR] => 1 ) [2025-01-06 22:29: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-01-06 19:29:05' and `end` < '2025-01-06 22:29: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-01-06 22:29:18] Production.INFO: count ==812 [2025-01-06 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:29:05 - End Time 2025-01-06 22:29:05 [2025-01-06 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190619', 'tblTempUsageDetail_20' ) start [2025-01-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190619', 'tblTempUsageDetail_20' ) end [2025-01-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190619', 'tblTempVendorCDR_20' ) start [2025-01-06 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190619', 'tblTempVendorCDR_20' ) end [2025-01-06 22:29:18] Production.INFO: ProcessCDR(1,14190619,1,1,2) [2025-01-06 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190619', 'tblTempUsageDetail_20' ) start [2025-01-06 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190619', 'tblTempUsageDetail_20' ) end [2025-01-06 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:29:21] Production.INFO: ==2544== Releasing lock... [2025-01-06 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:29:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-06 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:30:06 [end_date_ymd] => 2025-01-06 22:30:06 [RateCDR] => 1 ) [2025-01-06 22:30: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-01-06 19:30:06' and `end` < '2025-01-06 22:30: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-01-06 22:30:19] Production.INFO: count ==815 [2025-01-06 22:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:30:06 - End Time 2025-01-06 22:30:06 [2025-01-06 22:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190624', 'tblTempUsageDetail_20' ) start [2025-01-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190624', 'tblTempUsageDetail_20' ) end [2025-01-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190624', 'tblTempVendorCDR_20' ) start [2025-01-06 22:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190624', 'tblTempVendorCDR_20' ) end [2025-01-06 22:30:19] Production.INFO: ProcessCDR(1,14190624,1,1,2) [2025-01-06 22:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190624', 'tblTempUsageDetail_20' ) start [2025-01-06 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190624', 'tblTempUsageDetail_20' ) end [2025-01-06 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:30:23] Production.INFO: ==2629== Releasing lock... [2025-01-06 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:30:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:31:04 [end_date_ymd] => 2025-01-06 22:31:04 [RateCDR] => 1 ) [2025-01-06 22:31: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-01-06 19:31:04' and `end` < '2025-01-06 22:31: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-01-06 22:31:17] Production.INFO: count ==805 [2025-01-06 22:31:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:31:04 - End Time 2025-01-06 22:31:04 [2025-01-06 22:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190630', 'tblTempUsageDetail_20' ) start [2025-01-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190630', 'tblTempUsageDetail_20' ) end [2025-01-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190630', 'tblTempVendorCDR_20' ) start [2025-01-06 22:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190630', 'tblTempVendorCDR_20' ) end [2025-01-06 22:31:17] Production.INFO: ProcessCDR(1,14190630,1,1,2) [2025-01-06 22:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190630', 'tblTempUsageDetail_20' ) start [2025-01-06 22:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190630', 'tblTempUsageDetail_20' ) end [2025-01-06 22:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:31:20] Production.INFO: ==2713== Releasing lock... [2025-01-06 22:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:31:20] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:32:05 [end_date_ymd] => 2025-01-06 22:32:05 [RateCDR] => 1 ) [2025-01-06 22:32: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-01-06 19:32:05' and `end` < '2025-01-06 22:32: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-01-06 22:32:19] Production.INFO: count ==805 [2025-01-06 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:32:05 - End Time 2025-01-06 22:32:05 [2025-01-06 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190635', 'tblTempUsageDetail_20' ) start [2025-01-06 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190635', 'tblTempUsageDetail_20' ) end [2025-01-06 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190635', 'tblTempVendorCDR_20' ) start [2025-01-06 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190635', 'tblTempVendorCDR_20' ) end [2025-01-06 22:32:19] Production.INFO: ProcessCDR(1,14190635,1,1,2) [2025-01-06 22:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190635,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190635,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190635', 'tblTempUsageDetail_20' ) start [2025-01-06 22:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190635', 'tblTempUsageDetail_20' ) end [2025-01-06 22:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:32:22] Production.INFO: ==2825== Releasing lock... [2025-01-06 22:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:32:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:33:05 [end_date_ymd] => 2025-01-06 22:33:05 [RateCDR] => 1 ) [2025-01-06 22:33: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-01-06 19:33:05' and `end` < '2025-01-06 22:33: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-01-06 22:33:19] Production.INFO: count ==805 [2025-01-06 22:33:20] Production.ERROR: pbx CDR StartTime 2025-01-06 19:33:05 - End Time 2025-01-06 22:33:05 [2025-01-06 22:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190640', 'tblTempUsageDetail_20' ) start [2025-01-06 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190640', 'tblTempUsageDetail_20' ) end [2025-01-06 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190640', 'tblTempVendorCDR_20' ) start [2025-01-06 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190640', 'tblTempVendorCDR_20' ) end [2025-01-06 22:33:20] Production.INFO: ProcessCDR(1,14190640,1,1,2) [2025-01-06 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190640,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190640,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190640', 'tblTempUsageDetail_20' ) start [2025-01-06 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190640', 'tblTempUsageDetail_20' ) end [2025-01-06 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:33:23] Production.INFO: ==2901== Releasing lock... [2025-01-06 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:33:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:34:05 [end_date_ymd] => 2025-01-06 22:34:05 [RateCDR] => 1 ) [2025-01-06 22:34: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-01-06 19:34:05' and `end` < '2025-01-06 22:34: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-01-06 22:34:18] Production.INFO: count ==803 [2025-01-06 22:34:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:34:05 - End Time 2025-01-06 22:34:05 [2025-01-06 22:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190645', 'tblTempUsageDetail_20' ) start [2025-01-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190645', 'tblTempUsageDetail_20' ) end [2025-01-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190645', 'tblTempVendorCDR_20' ) start [2025-01-06 22:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190645', 'tblTempVendorCDR_20' ) end [2025-01-06 22:34:18] Production.INFO: ProcessCDR(1,14190645,1,1,2) [2025-01-06 22:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190645,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190645,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190645', 'tblTempUsageDetail_20' ) start [2025-01-06 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190645', 'tblTempUsageDetail_20' ) end [2025-01-06 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:34:21] Production.INFO: ==2978== Releasing lock... [2025-01-06 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:34:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:35:05 [end_date_ymd] => 2025-01-06 22:35:05 [RateCDR] => 1 ) [2025-01-06 22:35: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-01-06 19:35:05' and `end` < '2025-01-06 22:35: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-01-06 22:35:18] Production.INFO: count ==799 [2025-01-06 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:35:05 - End Time 2025-01-06 22:35:05 [2025-01-06 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190650', 'tblTempUsageDetail_20' ) start [2025-01-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190650', 'tblTempUsageDetail_20' ) end [2025-01-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190650', 'tblTempVendorCDR_20' ) start [2025-01-06 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190650', 'tblTempVendorCDR_20' ) end [2025-01-06 22:35:18] Production.INFO: ProcessCDR(1,14190650,1,1,2) [2025-01-06 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190650', 'tblTempUsageDetail_20' ) start [2025-01-06 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190650', 'tblTempUsageDetail_20' ) end [2025-01-06 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:35:23] Production.INFO: ==3065== Releasing lock... [2025-01-06 22:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:35:23] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:36:05 [end_date_ymd] => 2025-01-06 22:36:05 [RateCDR] => 1 ) [2025-01-06 22:36: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-01-06 19:36:05' and `end` < '2025-01-06 22:36: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-01-06 22:36:18] Production.INFO: count ==801 [2025-01-06 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:36:05 - End Time 2025-01-06 22:36:05 [2025-01-06 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190655', 'tblTempUsageDetail_20' ) start [2025-01-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190655', 'tblTempUsageDetail_20' ) end [2025-01-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190655', 'tblTempVendorCDR_20' ) start [2025-01-06 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190655', 'tblTempVendorCDR_20' ) end [2025-01-06 22:36:18] Production.INFO: ProcessCDR(1,14190655,1,1,2) [2025-01-06 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190655', 'tblTempUsageDetail_20' ) start [2025-01-06 22:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190655', 'tblTempUsageDetail_20' ) end [2025-01-06 22:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:36:22] Production.INFO: ==3163== Releasing lock... [2025-01-06 22:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:37:04 [end_date_ymd] => 2025-01-06 22:37:04 [RateCDR] => 1 ) [2025-01-06 22:37: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-01-06 19:37:04' and `end` < '2025-01-06 22:37: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-01-06 22:37:17] Production.INFO: count ==800 [2025-01-06 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:37:04 - End Time 2025-01-06 22:37:04 [2025-01-06 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190660', 'tblTempUsageDetail_20' ) start [2025-01-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190660', 'tblTempUsageDetail_20' ) end [2025-01-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190660', 'tblTempVendorCDR_20' ) start [2025-01-06 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190660', 'tblTempVendorCDR_20' ) end [2025-01-06 22:37:18] Production.INFO: ProcessCDR(1,14190660,1,1,2) [2025-01-06 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190660', 'tblTempUsageDetail_20' ) start [2025-01-06 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190660', 'tblTempUsageDetail_20' ) end [2025-01-06 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:37:22] Production.INFO: ==3257== Releasing lock... [2025-01-06 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:37:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:38:05 [end_date_ymd] => 2025-01-06 22:38:05 [RateCDR] => 1 ) [2025-01-06 22:38: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-01-06 19:38:05' and `end` < '2025-01-06 22:38: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-01-06 22:38:20] Production.INFO: count ==798 [2025-01-06 22:38:20] Production.ERROR: pbx CDR StartTime 2025-01-06 19:38:05 - End Time 2025-01-06 22:38:05 [2025-01-06 22:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190665', 'tblTempUsageDetail_20' ) start [2025-01-06 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190665', 'tblTempUsageDetail_20' ) end [2025-01-06 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190665', 'tblTempVendorCDR_20' ) start [2025-01-06 22:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190665', 'tblTempVendorCDR_20' ) end [2025-01-06 22:38:20] Production.INFO: ProcessCDR(1,14190665,1,1,2) [2025-01-06 22:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190665', 'tblTempUsageDetail_20' ) start [2025-01-06 22:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190665', 'tblTempUsageDetail_20' ) end [2025-01-06 22:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:38:24] Production.INFO: ==3352== Releasing lock... [2025-01-06 22:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:38:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:39:04 [end_date_ymd] => 2025-01-06 22:39:04 [RateCDR] => 1 ) [2025-01-06 22:39: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-01-06 19:39:04' and `end` < '2025-01-06 22:39: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-01-06 22:39:18] Production.INFO: count ==787 [2025-01-06 22:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:39:04 - End Time 2025-01-06 22:39:04 [2025-01-06 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190670', 'tblTempUsageDetail_20' ) start [2025-01-06 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190670', 'tblTempUsageDetail_20' ) end [2025-01-06 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190670', 'tblTempVendorCDR_20' ) start [2025-01-06 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190670', 'tblTempVendorCDR_20' ) end [2025-01-06 22:39:18] Production.INFO: ProcessCDR(1,14190670,1,1,2) [2025-01-06 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190670', 'tblTempUsageDetail_20' ) start [2025-01-06 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190670', 'tblTempUsageDetail_20' ) end [2025-01-06 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:39:21] Production.INFO: ==3447== Releasing lock... [2025-01-06 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:39:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-06 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:40:05 [end_date_ymd] => 2025-01-06 22:40:05 [RateCDR] => 1 ) [2025-01-06 22:40: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-01-06 19:40:05' and `end` < '2025-01-06 22:40: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-01-06 22:40:18] Production.INFO: count ==786 [2025-01-06 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:40:05 - End Time 2025-01-06 22:40:05 [2025-01-06 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190676', 'tblTempUsageDetail_20' ) start [2025-01-06 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190676', 'tblTempUsageDetail_20' ) end [2025-01-06 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190676', 'tblTempVendorCDR_20' ) start [2025-01-06 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190676', 'tblTempVendorCDR_20' ) end [2025-01-06 22:40:18] Production.INFO: ProcessCDR(1,14190676,1,1,2) [2025-01-06 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190676', 'tblTempUsageDetail_20' ) start [2025-01-06 22:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190676', 'tblTempUsageDetail_20' ) end [2025-01-06 22:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:40:21] Production.INFO: ==3546== Releasing lock... [2025-01-06 22:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:40:21] Production.INFO: 33 MB #Memory Used# [2025-01-06 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:41:05 [end_date_ymd] => 2025-01-06 22:41:05 [RateCDR] => 1 ) [2025-01-06 22:41: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-01-06 19:41:05' and `end` < '2025-01-06 22:41: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-01-06 22:41:18] Production.INFO: count ==760 [2025-01-06 22:41:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:41:05 - End Time 2025-01-06 22:41:05 [2025-01-06 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190681', 'tblTempUsageDetail_20' ) start [2025-01-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190681', 'tblTempUsageDetail_20' ) end [2025-01-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190681', 'tblTempVendorCDR_20' ) start [2025-01-06 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190681', 'tblTempVendorCDR_20' ) end [2025-01-06 22:41:18] Production.INFO: ProcessCDR(1,14190681,1,1,2) [2025-01-06 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190681', 'tblTempUsageDetail_20' ) start [2025-01-06 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190681', 'tblTempUsageDetail_20' ) end [2025-01-06 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:41:21] Production.INFO: ==3648== Releasing lock... [2025-01-06 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:41:21] Production.INFO: 33 MB #Memory Used# [2025-01-06 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:42:05 [end_date_ymd] => 2025-01-06 22:42:05 [RateCDR] => 1 ) [2025-01-06 22:42: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-01-06 19:42:05' and `end` < '2025-01-06 22:42: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-01-06 22:42:18] Production.INFO: count ==760 [2025-01-06 22:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:42:05 - End Time 2025-01-06 22:42:05 [2025-01-06 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190686', 'tblTempUsageDetail_20' ) start [2025-01-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190686', 'tblTempUsageDetail_20' ) end [2025-01-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190686', 'tblTempVendorCDR_20' ) start [2025-01-06 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190686', 'tblTempVendorCDR_20' ) end [2025-01-06 22:42:18] Production.INFO: ProcessCDR(1,14190686,1,1,2) [2025-01-06 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190686', 'tblTempUsageDetail_20' ) start [2025-01-06 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190686', 'tblTempUsageDetail_20' ) end [2025-01-06 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:42:21] Production.INFO: ==3738== Releasing lock... [2025-01-06 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:42:21] Production.INFO: 33 MB #Memory Used# [2025-01-06 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:43:05 [end_date_ymd] => 2025-01-06 22:43:05 [RateCDR] => 1 ) [2025-01-06 22:43: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-01-06 19:43:05' and `end` < '2025-01-06 22:43: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-01-06 22:43:18] Production.INFO: count ==760 [2025-01-06 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:43:05 - End Time 2025-01-06 22:43:05 [2025-01-06 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190691', 'tblTempUsageDetail_20' ) start [2025-01-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190691', 'tblTempUsageDetail_20' ) end [2025-01-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190691', 'tblTempVendorCDR_20' ) start [2025-01-06 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190691', 'tblTempVendorCDR_20' ) end [2025-01-06 22:43:18] Production.INFO: ProcessCDR(1,14190691,1,1,2) [2025-01-06 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190691', 'tblTempUsageDetail_20' ) start [2025-01-06 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190691', 'tblTempUsageDetail_20' ) end [2025-01-06 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:43:21] Production.INFO: ==3845== Releasing lock... [2025-01-06 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:43:21] Production.INFO: 33 MB #Memory Used# [2025-01-06 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:44:05 [end_date_ymd] => 2025-01-06 22:44:05 [RateCDR] => 1 ) [2025-01-06 22:44: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-01-06 19:44:05' and `end` < '2025-01-06 22:44: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-01-06 22:44:18] Production.INFO: count ==753 [2025-01-06 22:44:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:44:05 - End Time 2025-01-06 22:44:05 [2025-01-06 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190696', 'tblTempUsageDetail_20' ) start [2025-01-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190696', 'tblTempUsageDetail_20' ) end [2025-01-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190696', 'tblTempVendorCDR_20' ) start [2025-01-06 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190696', 'tblTempVendorCDR_20' ) end [2025-01-06 22:44:18] Production.INFO: ProcessCDR(1,14190696,1,1,2) [2025-01-06 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190696', 'tblTempUsageDetail_20' ) start [2025-01-06 22:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190696', 'tblTempUsageDetail_20' ) end [2025-01-06 22:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:44:21] Production.INFO: ==3941== Releasing lock... [2025-01-06 22:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:44:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:45:05 [end_date_ymd] => 2025-01-06 22:45:05 [RateCDR] => 1 ) [2025-01-06 22:45: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-01-06 19:45:05' and `end` < '2025-01-06 22:45: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-01-06 22:45:18] Production.INFO: count ==746 [2025-01-06 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:45:05 - End Time 2025-01-06 22:45:05 [2025-01-06 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190701', 'tblTempUsageDetail_20' ) start [2025-01-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190701', 'tblTempUsageDetail_20' ) end [2025-01-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190701', 'tblTempVendorCDR_20' ) start [2025-01-06 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190701', 'tblTempVendorCDR_20' ) end [2025-01-06 22:45:18] Production.INFO: ProcessCDR(1,14190701,1,1,2) [2025-01-06 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190701', 'tblTempUsageDetail_20' ) start [2025-01-06 22:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190701', 'tblTempUsageDetail_20' ) end [2025-01-06 22:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:45:21] Production.INFO: ==4046== Releasing lock... [2025-01-06 22:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:45:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:46:05 [end_date_ymd] => 2025-01-06 22:46:05 [RateCDR] => 1 ) [2025-01-06 22:46: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-01-06 19:46:05' and `end` < '2025-01-06 22:46: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-01-06 22:46:18] Production.INFO: count ==739 [2025-01-06 22:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:46:05 - End Time 2025-01-06 22:46:05 [2025-01-06 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190706', 'tblTempUsageDetail_20' ) start [2025-01-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190706', 'tblTempUsageDetail_20' ) end [2025-01-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190706', 'tblTempVendorCDR_20' ) start [2025-01-06 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190706', 'tblTempVendorCDR_20' ) end [2025-01-06 22:46:18] Production.INFO: ProcessCDR(1,14190706,1,1,2) [2025-01-06 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190706', 'tblTempUsageDetail_20' ) start [2025-01-06 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190706', 'tblTempUsageDetail_20' ) end [2025-01-06 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:46:23] Production.INFO: ==4149== Releasing lock... [2025-01-06 22:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:46:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:47:05 [end_date_ymd] => 2025-01-06 22:47:05 [RateCDR] => 1 ) [2025-01-06 22:47: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-01-06 19:47:05' and `end` < '2025-01-06 22:47: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-01-06 22:47:19] Production.INFO: count ==738 [2025-01-06 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:47:05 - End Time 2025-01-06 22:47:05 [2025-01-06 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190711', 'tblTempUsageDetail_20' ) start [2025-01-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190711', 'tblTempUsageDetail_20' ) end [2025-01-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190711', 'tblTempVendorCDR_20' ) start [2025-01-06 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190711', 'tblTempVendorCDR_20' ) end [2025-01-06 22:47:19] Production.INFO: ProcessCDR(1,14190711,1,1,2) [2025-01-06 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190711', 'tblTempUsageDetail_20' ) start [2025-01-06 22:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190711', 'tblTempUsageDetail_20' ) end [2025-01-06 22:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:47:22] Production.INFO: ==4287== Releasing lock... [2025-01-06 22:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:47:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:48:05 [end_date_ymd] => 2025-01-06 22:48:05 [RateCDR] => 1 ) [2025-01-06 22:48: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-01-06 19:48:05' and `end` < '2025-01-06 22:48: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-01-06 22:48:21] Production.INFO: count ==738 [2025-01-06 22:48:21] Production.ERROR: pbx CDR StartTime 2025-01-06 19:48:05 - End Time 2025-01-06 22:48:05 [2025-01-06 22:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190716', 'tblTempUsageDetail_20' ) start [2025-01-06 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190716', 'tblTempUsageDetail_20' ) end [2025-01-06 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190716', 'tblTempVendorCDR_20' ) start [2025-01-06 22:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190716', 'tblTempVendorCDR_20' ) end [2025-01-06 22:48:21] Production.INFO: ProcessCDR(1,14190716,1,1,2) [2025-01-06 22:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190716', 'tblTempUsageDetail_20' ) start [2025-01-06 22:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190716', 'tblTempUsageDetail_20' ) end [2025-01-06 22:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:48:24] Production.INFO: ==4393== Releasing lock... [2025-01-06 22:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:48:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:49:05 [end_date_ymd] => 2025-01-06 22:49:05 [RateCDR] => 1 ) [2025-01-06 22:49: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-01-06 19:49:05' and `end` < '2025-01-06 22:49: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-01-06 22:49:17] Production.INFO: count ==737 [2025-01-06 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:49:05 - End Time 2025-01-06 22:49:05 [2025-01-06 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190721', 'tblTempUsageDetail_20' ) start [2025-01-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190721', 'tblTempUsageDetail_20' ) end [2025-01-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190721', 'tblTempVendorCDR_20' ) start [2025-01-06 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190721', 'tblTempVendorCDR_20' ) end [2025-01-06 22:49:18] Production.INFO: ProcessCDR(1,14190721,1,1,2) [2025-01-06 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190721', 'tblTempUsageDetail_20' ) start [2025-01-06 22:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190721', 'tblTempUsageDetail_20' ) end [2025-01-06 22:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:49:21] Production.INFO: ==4494== Releasing lock... [2025-01-06 22:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:49:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:50:05 [end_date_ymd] => 2025-01-06 22:50:05 [RateCDR] => 1 ) [2025-01-06 22:50: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-01-06 19:50:05' and `end` < '2025-01-06 22:50: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-01-06 22:50:18] Production.INFO: count ==735 [2025-01-06 22:50:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:50:05 - End Time 2025-01-06 22:50:05 [2025-01-06 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190727', 'tblTempUsageDetail_20' ) start [2025-01-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190727', 'tblTempUsageDetail_20' ) end [2025-01-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190727', 'tblTempVendorCDR_20' ) start [2025-01-06 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190727', 'tblTempVendorCDR_20' ) end [2025-01-06 22:50:18] Production.INFO: ProcessCDR(1,14190727,1,1,2) [2025-01-06 22:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190727', 'tblTempUsageDetail_20' ) start [2025-01-06 22:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190727', 'tblTempUsageDetail_20' ) end [2025-01-06 22:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:50:21] Production.INFO: ==4602== Releasing lock... [2025-01-06 22:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:50:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:51:04 [end_date_ymd] => 2025-01-06 22:51:04 [RateCDR] => 1 ) [2025-01-06 22:51: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-01-06 19:51:04' and `end` < '2025-01-06 22:51: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-01-06 22:51:17] Production.INFO: count ==707 [2025-01-06 22:51:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:51:04 - End Time 2025-01-06 22:51:04 [2025-01-06 22:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190732', 'tblTempUsageDetail_20' ) start [2025-01-06 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190732', 'tblTempUsageDetail_20' ) end [2025-01-06 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190732', 'tblTempVendorCDR_20' ) start [2025-01-06 22:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190732', 'tblTempVendorCDR_20' ) end [2025-01-06 22:51:17] Production.INFO: ProcessCDR(1,14190732,1,1,2) [2025-01-06 22:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190732', 'tblTempUsageDetail_20' ) start [2025-01-06 22:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190732', 'tblTempUsageDetail_20' ) end [2025-01-06 22:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:51:20] Production.INFO: ==4702== Releasing lock... [2025-01-06 22:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:51:20] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:52:05 [end_date_ymd] => 2025-01-06 22:52:05 [RateCDR] => 1 ) [2025-01-06 22:52: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-01-06 19:52:05' and `end` < '2025-01-06 22:52: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-01-06 22:52:18] Production.INFO: count ==707 [2025-01-06 22:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:52:05 - End Time 2025-01-06 22:52:05 [2025-01-06 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190737', 'tblTempUsageDetail_20' ) start [2025-01-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190737', 'tblTempUsageDetail_20' ) end [2025-01-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190737', 'tblTempVendorCDR_20' ) start [2025-01-06 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190737', 'tblTempVendorCDR_20' ) end [2025-01-06 22:52:18] Production.INFO: ProcessCDR(1,14190737,1,1,2) [2025-01-06 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190737', 'tblTempUsageDetail_20' ) start [2025-01-06 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190737', 'tblTempUsageDetail_20' ) end [2025-01-06 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:52:21] Production.INFO: ==4801== Releasing lock... [2025-01-06 22:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:52:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:53:05 [end_date_ymd] => 2025-01-06 22:53:05 [RateCDR] => 1 ) [2025-01-06 22:53: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-01-06 19:53:05' and `end` < '2025-01-06 22:53: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-01-06 22:53:18] Production.INFO: count ==707 [2025-01-06 22:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:53:05 - End Time 2025-01-06 22:53:05 [2025-01-06 22:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190742', 'tblTempUsageDetail_20' ) start [2025-01-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190742', 'tblTempUsageDetail_20' ) end [2025-01-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190742', 'tblTempVendorCDR_20' ) start [2025-01-06 22:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190742', 'tblTempVendorCDR_20' ) end [2025-01-06 22:53:18] Production.INFO: ProcessCDR(1,14190742,1,1,2) [2025-01-06 22:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190742', 'tblTempUsageDetail_20' ) start [2025-01-06 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190742', 'tblTempUsageDetail_20' ) end [2025-01-06 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:53:22] Production.INFO: ==4897== Releasing lock... [2025-01-06 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:53:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:54:05 [end_date_ymd] => 2025-01-06 22:54:05 [RateCDR] => 1 ) [2025-01-06 22:54: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-01-06 19:54:05' and `end` < '2025-01-06 22:54: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-01-06 22:54:17] Production.INFO: count ==704 [2025-01-06 22:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:54:05 - End Time 2025-01-06 22:54:05 [2025-01-06 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190747', 'tblTempUsageDetail_20' ) start [2025-01-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190747', 'tblTempUsageDetail_20' ) end [2025-01-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190747', 'tblTempVendorCDR_20' ) start [2025-01-06 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190747', 'tblTempVendorCDR_20' ) end [2025-01-06 22:54:18] Production.INFO: ProcessCDR(1,14190747,1,1,2) [2025-01-06 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190747', 'tblTempUsageDetail_20' ) start [2025-01-06 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190747', 'tblTempUsageDetail_20' ) end [2025-01-06 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:54:21] Production.INFO: ==4990== Releasing lock... [2025-01-06 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:54:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:55:05 [end_date_ymd] => 2025-01-06 22:55:05 [RateCDR] => 1 ) [2025-01-06 22:55: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-01-06 19:55:05' and `end` < '2025-01-06 22:55: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-01-06 22:55:19] Production.INFO: count ==704 [2025-01-06 22:55:19] Production.ERROR: pbx CDR StartTime 2025-01-06 19:55:05 - End Time 2025-01-06 22:55:05 [2025-01-06 22:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190752', 'tblTempUsageDetail_20' ) start [2025-01-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190752', 'tblTempUsageDetail_20' ) end [2025-01-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190752', 'tblTempVendorCDR_20' ) start [2025-01-06 22:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190752', 'tblTempVendorCDR_20' ) end [2025-01-06 22:55:19] Production.INFO: ProcessCDR(1,14190752,1,1,2) [2025-01-06 22:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190752', 'tblTempUsageDetail_20' ) start [2025-01-06 22:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190752', 'tblTempUsageDetail_20' ) end [2025-01-06 22:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:55:22] Production.INFO: ==5090== Releasing lock... [2025-01-06 22:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:55:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:56:05 [end_date_ymd] => 2025-01-06 22:56:05 [RateCDR] => 1 ) [2025-01-06 22:56: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-01-06 19:56:05' and `end` < '2025-01-06 22:56: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-01-06 22:56:17] Production.INFO: count ==704 [2025-01-06 22:56:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:56:05 - End Time 2025-01-06 22:56:05 [2025-01-06 22:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190757', 'tblTempUsageDetail_20' ) start [2025-01-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190757', 'tblTempUsageDetail_20' ) end [2025-01-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190757', 'tblTempVendorCDR_20' ) start [2025-01-06 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190757', 'tblTempVendorCDR_20' ) end [2025-01-06 22:56:18] Production.INFO: ProcessCDR(1,14190757,1,1,2) [2025-01-06 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190757', 'tblTempUsageDetail_20' ) start [2025-01-06 22:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190757', 'tblTempUsageDetail_20' ) end [2025-01-06 22:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:56:21] Production.INFO: ==5184== Releasing lock... [2025-01-06 22:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:56:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:57:05 [end_date_ymd] => 2025-01-06 22:57:05 [RateCDR] => 1 ) [2025-01-06 22:57: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-01-06 19:57:05' and `end` < '2025-01-06 22:57: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-01-06 22:57:18] Production.INFO: count ==704 [2025-01-06 22:57:18] Production.ERROR: pbx CDR StartTime 2025-01-06 19:57:05 - End Time 2025-01-06 22:57:05 [2025-01-06 22:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190762', 'tblTempUsageDetail_20' ) start [2025-01-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190762', 'tblTempUsageDetail_20' ) end [2025-01-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190762', 'tblTempVendorCDR_20' ) start [2025-01-06 22:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190762', 'tblTempVendorCDR_20' ) end [2025-01-06 22:57:18] Production.INFO: ProcessCDR(1,14190762,1,1,2) [2025-01-06 22:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190762', 'tblTempUsageDetail_20' ) start [2025-01-06 22:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190762', 'tblTempUsageDetail_20' ) end [2025-01-06 22:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:57:21] Production.INFO: ==5272== Releasing lock... [2025-01-06 22:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:57:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:58:04 [end_date_ymd] => 2025-01-06 22:58:04 [RateCDR] => 1 ) [2025-01-06 22:58: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-01-06 19:58:04' and `end` < '2025-01-06 22:58: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-01-06 22:58:17] Production.INFO: count ==703 [2025-01-06 22:58:17] Production.ERROR: pbx CDR StartTime 2025-01-06 19:58:04 - End Time 2025-01-06 22:58:04 [2025-01-06 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190767', 'tblTempUsageDetail_20' ) start [2025-01-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190767', 'tblTempUsageDetail_20' ) end [2025-01-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190767', 'tblTempVendorCDR_20' ) start [2025-01-06 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190767', 'tblTempVendorCDR_20' ) end [2025-01-06 22:58:17] Production.INFO: ProcessCDR(1,14190767,1,1,2) [2025-01-06 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190767', 'tblTempUsageDetail_20' ) start [2025-01-06 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190767', 'tblTempUsageDetail_20' ) end [2025-01-06 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:58:21] Production.INFO: ==5368== Releasing lock... [2025-01-06 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:58:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 19:59:05 [end_date_ymd] => 2025-01-06 22:59:05 [RateCDR] => 1 ) [2025-01-06 22:59: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-01-06 19:59:05' and `end` < '2025-01-06 22:59: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-01-06 22:59:20] Production.INFO: count ==706 [2025-01-06 22:59:21] Production.ERROR: pbx CDR StartTime 2025-01-06 19:59:05 - End Time 2025-01-06 22:59:05 [2025-01-06 22:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190772', 'tblTempUsageDetail_20' ) start [2025-01-06 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190772', 'tblTempUsageDetail_20' ) end [2025-01-06 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190772', 'tblTempVendorCDR_20' ) start [2025-01-06 22:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190772', 'tblTempVendorCDR_20' ) end [2025-01-06 22:59:21] Production.INFO: ProcessCDR(1,14190772,1,1,2) [2025-01-06 22:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 22:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190772', 'tblTempUsageDetail_20' ) start [2025-01-06 22:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190772', 'tblTempUsageDetail_20' ) end [2025-01-06 22:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 22:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 22:59:24] Production.INFO: ==5461== Releasing lock... [2025-01-06 22:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 22:59:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:00:06 [end_date_ymd] => 2025-01-06 23:00:06 [RateCDR] => 1 ) [2025-01-06 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-01-06 20:00:06' and `end` < '2025-01-06 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-01-06 23:00:19] Production.INFO: count ==706 [2025-01-06 23:00:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:00:06 - End Time 2025-01-06 23:00:06 [2025-01-06 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190778', 'tblTempUsageDetail_20' ) start [2025-01-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190778', 'tblTempUsageDetail_20' ) end [2025-01-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190778', 'tblTempVendorCDR_20' ) start [2025-01-06 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190778', 'tblTempVendorCDR_20' ) end [2025-01-06 23:00:19] Production.INFO: ProcessCDR(1,14190778,1,1,2) [2025-01-06 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190778', 'tblTempUsageDetail_20' ) start [2025-01-06 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190778', 'tblTempUsageDetail_20' ) end [2025-01-06 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:00:22] Production.INFO: ==5549== Releasing lock... [2025-01-06 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:00:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:01:05 [end_date_ymd] => 2025-01-06 23:01:05 [RateCDR] => 1 ) [2025-01-06 23:01: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-01-06 20:01:05' and `end` < '2025-01-06 23:01: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-01-06 23:01:19] Production.INFO: count ==707 [2025-01-06 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:01:05 - End Time 2025-01-06 23:01:05 [2025-01-06 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190783', 'tblTempUsageDetail_20' ) start [2025-01-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190783', 'tblTempUsageDetail_20' ) end [2025-01-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190783', 'tblTempVendorCDR_20' ) start [2025-01-06 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190783', 'tblTempVendorCDR_20' ) end [2025-01-06 23:01:19] Production.INFO: ProcessCDR(1,14190783,1,1,2) [2025-01-06 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190783', 'tblTempUsageDetail_20' ) start [2025-01-06 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190783', 'tblTempUsageDetail_20' ) end [2025-01-06 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:01:22] Production.INFO: ==5685== Releasing lock... [2025-01-06 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:01:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:02:05 [end_date_ymd] => 2025-01-06 23:02:05 [RateCDR] => 1 ) [2025-01-06 23:02: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-01-06 20:02:05' and `end` < '2025-01-06 23:02: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-01-06 23:02:18] Production.INFO: count ==710 [2025-01-06 23:02:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:02:05 - End Time 2025-01-06 23:02:05 [2025-01-06 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190788', 'tblTempUsageDetail_20' ) start [2025-01-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190788', 'tblTempUsageDetail_20' ) end [2025-01-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190788', 'tblTempVendorCDR_20' ) start [2025-01-06 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190788', 'tblTempVendorCDR_20' ) end [2025-01-06 23:02:18] Production.INFO: ProcessCDR(1,14190788,1,1,2) [2025-01-06 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190788', 'tblTempUsageDetail_20' ) start [2025-01-06 23:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190788', 'tblTempUsageDetail_20' ) end [2025-01-06 23:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:02:21] Production.INFO: ==5806== Releasing lock... [2025-01-06 23:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:02:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:03:05 [end_date_ymd] => 2025-01-06 23:03:05 [RateCDR] => 1 ) [2025-01-06 23:03: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-01-06 20:03:05' and `end` < '2025-01-06 23:03: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-01-06 23:03:17] Production.INFO: count ==706 [2025-01-06 23:03:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:03:05 - End Time 2025-01-06 23:03:05 [2025-01-06 23:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190793', 'tblTempUsageDetail_20' ) start [2025-01-06 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190793', 'tblTempUsageDetail_20' ) end [2025-01-06 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190793', 'tblTempVendorCDR_20' ) start [2025-01-06 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190793', 'tblTempVendorCDR_20' ) end [2025-01-06 23:03:18] Production.INFO: ProcessCDR(1,14190793,1,1,2) [2025-01-06 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190793', 'tblTempUsageDetail_20' ) start [2025-01-06 23:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190793', 'tblTempUsageDetail_20' ) end [2025-01-06 23:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:03:21] Production.INFO: ==5927== Releasing lock... [2025-01-06 23:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:04:05 [end_date_ymd] => 2025-01-06 23:04:05 [RateCDR] => 1 ) [2025-01-06 23:04: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-01-06 20:04:05' and `end` < '2025-01-06 23:04: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-01-06 23:04:19] Production.INFO: count ==700 [2025-01-06 23:04:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:04:05 - End Time 2025-01-06 23:04:05 [2025-01-06 23:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190798', 'tblTempUsageDetail_20' ) start [2025-01-06 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190798', 'tblTempUsageDetail_20' ) end [2025-01-06 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190798', 'tblTempVendorCDR_20' ) start [2025-01-06 23:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190798', 'tblTempVendorCDR_20' ) end [2025-01-06 23:04:19] Production.INFO: ProcessCDR(1,14190798,1,1,2) [2025-01-06 23:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190798', 'tblTempUsageDetail_20' ) start [2025-01-06 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190798', 'tblTempUsageDetail_20' ) end [2025-01-06 23:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:04:22] Production.INFO: ==6014== Releasing lock... [2025-01-06 23:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:04:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:05:05 [end_date_ymd] => 2025-01-06 23:05:05 [RateCDR] => 1 ) [2025-01-06 23:05: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-01-06 20:05:05' and `end` < '2025-01-06 23:05: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-01-06 23:05:18] Production.INFO: count ==695 [2025-01-06 23:05:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:05:05 - End Time 2025-01-06 23:05:05 [2025-01-06 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190803', 'tblTempUsageDetail_20' ) start [2025-01-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190803', 'tblTempUsageDetail_20' ) end [2025-01-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190803', 'tblTempVendorCDR_20' ) start [2025-01-06 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190803', 'tblTempVendorCDR_20' ) end [2025-01-06 23:05:18] Production.INFO: ProcessCDR(1,14190803,1,1,2) [2025-01-06 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190803', 'tblTempUsageDetail_20' ) start [2025-01-06 23:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190803', 'tblTempUsageDetail_20' ) end [2025-01-06 23:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:05:21] Production.INFO: ==6179== Releasing lock... [2025-01-06 23:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:05:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:06:05 [end_date_ymd] => 2025-01-06 23:06:05 [RateCDR] => 1 ) [2025-01-06 23:06: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-01-06 20:06:05' and `end` < '2025-01-06 23:06: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-01-06 23:06:18] Production.INFO: count ==695 [2025-01-06 23:06:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:06:05 - End Time 2025-01-06 23:06:05 [2025-01-06 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190808', 'tblTempUsageDetail_20' ) start [2025-01-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190808', 'tblTempUsageDetail_20' ) end [2025-01-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190808', 'tblTempVendorCDR_20' ) start [2025-01-06 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190808', 'tblTempVendorCDR_20' ) end [2025-01-06 23:06:18] Production.INFO: ProcessCDR(1,14190808,1,1,2) [2025-01-06 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190808', 'tblTempUsageDetail_20' ) start [2025-01-06 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190808', 'tblTempUsageDetail_20' ) end [2025-01-06 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:06:21] Production.INFO: ==6264== Releasing lock... [2025-01-06 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:07:04 [end_date_ymd] => 2025-01-06 23:07:04 [RateCDR] => 1 ) [2025-01-06 23:07: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-01-06 20:07:04' and `end` < '2025-01-06 23:07: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-01-06 23:07:17] Production.INFO: count ==694 [2025-01-06 23:07:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:07:04 - End Time 2025-01-06 23:07:04 [2025-01-06 23:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190813', 'tblTempUsageDetail_20' ) start [2025-01-06 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190813', 'tblTempUsageDetail_20' ) end [2025-01-06 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190813', 'tblTempVendorCDR_20' ) start [2025-01-06 23:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190813', 'tblTempVendorCDR_20' ) end [2025-01-06 23:07:17] Production.INFO: ProcessCDR(1,14190813,1,1,2) [2025-01-06 23:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190813', 'tblTempUsageDetail_20' ) start [2025-01-06 23:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190813', 'tblTempUsageDetail_20' ) end [2025-01-06 23:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:07:21] Production.INFO: ==6344== Releasing lock... [2025-01-06 23:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:07:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:08:05 [end_date_ymd] => 2025-01-06 23:08:05 [RateCDR] => 1 ) [2025-01-06 23:08: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-01-06 20:08:05' and `end` < '2025-01-06 23:08: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-01-06 23:08:19] Production.INFO: count ==694 [2025-01-06 23:08:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:08:05 - End Time 2025-01-06 23:08:05 [2025-01-06 23:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190818', 'tblTempUsageDetail_20' ) start [2025-01-06 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190818', 'tblTempUsageDetail_20' ) end [2025-01-06 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190818', 'tblTempVendorCDR_20' ) start [2025-01-06 23:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190818', 'tblTempVendorCDR_20' ) end [2025-01-06 23:08:19] Production.INFO: ProcessCDR(1,14190818,1,1,2) [2025-01-06 23:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190818', 'tblTempUsageDetail_20' ) start [2025-01-06 23:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190818', 'tblTempUsageDetail_20' ) end [2025-01-06 23:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:08:22] Production.INFO: ==6506== Releasing lock... [2025-01-06 23:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:09:04 [end_date_ymd] => 2025-01-06 23:09:04 [RateCDR] => 1 ) [2025-01-06 23:09: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-01-06 20:09:04' and `end` < '2025-01-06 23:09: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-01-06 23:09:17] Production.INFO: count ==697 [2025-01-06 23:09:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:09:04 - End Time 2025-01-06 23:09:04 [2025-01-06 23:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190823', 'tblTempUsageDetail_20' ) start [2025-01-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190823', 'tblTempUsageDetail_20' ) end [2025-01-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190823', 'tblTempVendorCDR_20' ) start [2025-01-06 23:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190823', 'tblTempVendorCDR_20' ) end [2025-01-06 23:09:17] Production.INFO: ProcessCDR(1,14190823,1,1,2) [2025-01-06 23:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190823', 'tblTempUsageDetail_20' ) start [2025-01-06 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190823', 'tblTempUsageDetail_20' ) end [2025-01-06 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:09:21] Production.INFO: ==6586== Releasing lock... [2025-01-06 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:09:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:10:06 [end_date_ymd] => 2025-01-06 23:10:06 [RateCDR] => 1 ) [2025-01-06 23:10: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-01-06 20:10:06' and `end` < '2025-01-06 23:10: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-01-06 23:10:18] Production.INFO: count ==696 [2025-01-06 23:10:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:10:06 - End Time 2025-01-06 23:10:06 [2025-01-06 23:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190828', 'tblTempUsageDetail_20' ) start [2025-01-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190828', 'tblTempUsageDetail_20' ) end [2025-01-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190828', 'tblTempVendorCDR_20' ) start [2025-01-06 23:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190828', 'tblTempVendorCDR_20' ) end [2025-01-06 23:10:19] Production.INFO: ProcessCDR(1,14190828,1,1,2) [2025-01-06 23:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190828', 'tblTempUsageDetail_20' ) start [2025-01-06 23:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190828', 'tblTempUsageDetail_20' ) end [2025-01-06 23:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:10:22] Production.INFO: ==6668== Releasing lock... [2025-01-06 23:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:10:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:11:06 [end_date_ymd] => 2025-01-06 23:11:06 [RateCDR] => 1 ) [2025-01-06 23:11: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-01-06 20:11:06' and `end` < '2025-01-06 23:11: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-01-06 23:11:19] Production.INFO: count ==672 [2025-01-06 23:11:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:11:06 - End Time 2025-01-06 23:11:06 [2025-01-06 23:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190834', 'tblTempUsageDetail_20' ) start [2025-01-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190834', 'tblTempUsageDetail_20' ) end [2025-01-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190834', 'tblTempVendorCDR_20' ) start [2025-01-06 23:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190834', 'tblTempVendorCDR_20' ) end [2025-01-06 23:11:19] Production.INFO: ProcessCDR(1,14190834,1,1,2) [2025-01-06 23:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190834', 'tblTempUsageDetail_20' ) start [2025-01-06 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190834', 'tblTempUsageDetail_20' ) end [2025-01-06 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:11:22] Production.INFO: ==6751== Releasing lock... [2025-01-06 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:11:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:12:05 [end_date_ymd] => 2025-01-06 23:12:05 [RateCDR] => 1 ) [2025-01-06 23:12: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-01-06 20:12:05' and `end` < '2025-01-06 23:12: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-01-06 23:12:19] Production.INFO: count ==672 [2025-01-06 23:12:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:12:05 - End Time 2025-01-06 23:12:05 [2025-01-06 23:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190839', 'tblTempUsageDetail_20' ) start [2025-01-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190839', 'tblTempUsageDetail_20' ) end [2025-01-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190839', 'tblTempVendorCDR_20' ) start [2025-01-06 23:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190839', 'tblTempVendorCDR_20' ) end [2025-01-06 23:12:19] Production.INFO: ProcessCDR(1,14190839,1,1,2) [2025-01-06 23:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190839', 'tblTempUsageDetail_20' ) start [2025-01-06 23:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190839', 'tblTempUsageDetail_20' ) end [2025-01-06 23:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:12:23] Production.INFO: ==6907== Releasing lock... [2025-01-06 23:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:12:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:13:04 [end_date_ymd] => 2025-01-06 23:13:04 [RateCDR] => 1 ) [2025-01-06 23:13: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-01-06 20:13:04' and `end` < '2025-01-06 23:13: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-01-06 23:13:17] Production.INFO: count ==667 [2025-01-06 23:13:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:13:04 - End Time 2025-01-06 23:13:04 [2025-01-06 23:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190844', 'tblTempUsageDetail_20' ) start [2025-01-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190844', 'tblTempUsageDetail_20' ) end [2025-01-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190844', 'tblTempVendorCDR_20' ) start [2025-01-06 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190844', 'tblTempVendorCDR_20' ) end [2025-01-06 23:13:18] Production.INFO: ProcessCDR(1,14190844,1,1,2) [2025-01-06 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190844', 'tblTempUsageDetail_20' ) start [2025-01-06 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190844', 'tblTempUsageDetail_20' ) end [2025-01-06 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:13:21] Production.INFO: ==6987== Releasing lock... [2025-01-06 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:13:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:14:04 [end_date_ymd] => 2025-01-06 23:14:04 [RateCDR] => 1 ) [2025-01-06 23:14: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-01-06 20:14:04' and `end` < '2025-01-06 23:14: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-01-06 23:14:17] Production.INFO: count ==665 [2025-01-06 23:14:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:14:04 - End Time 2025-01-06 23:14:04 [2025-01-06 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190847', 'tblTempUsageDetail_20' ) start [2025-01-06 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190847', 'tblTempUsageDetail_20' ) end [2025-01-06 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190847', 'tblTempVendorCDR_20' ) start [2025-01-06 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190847', 'tblTempVendorCDR_20' ) end [2025-01-06 23:14:17] Production.INFO: ProcessCDR(1,14190847,1,1,2) [2025-01-06 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190847', 'tblTempUsageDetail_20' ) start [2025-01-06 23:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190847', 'tblTempUsageDetail_20' ) end [2025-01-06 23:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:14:22] Production.INFO: ==7062== Releasing lock... [2025-01-06 23:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:14:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:15:05 [end_date_ymd] => 2025-01-06 23:15:05 [RateCDR] => 1 ) [2025-01-06 23:15: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-01-06 20:15:05' and `end` < '2025-01-06 23:15: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-01-06 23:15:18] Production.INFO: count ==665 [2025-01-06 23:15:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:15:05 - End Time 2025-01-06 23:15:05 [2025-01-06 23:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190854', 'tblTempUsageDetail_20' ) start [2025-01-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190854', 'tblTempUsageDetail_20' ) end [2025-01-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190854', 'tblTempVendorCDR_20' ) start [2025-01-06 23:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190854', 'tblTempVendorCDR_20' ) end [2025-01-06 23:15:18] Production.INFO: ProcessCDR(1,14190854,1,1,2) [2025-01-06 23:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190854', 'tblTempUsageDetail_20' ) start [2025-01-06 23:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190854', 'tblTempUsageDetail_20' ) end [2025-01-06 23:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:15:21] Production.INFO: ==7215== Releasing lock... [2025-01-06 23:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:15:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:16:05 [end_date_ymd] => 2025-01-06 23:16:05 [RateCDR] => 1 ) [2025-01-06 23:16: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-01-06 20:16:05' and `end` < '2025-01-06 23:16: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-01-06 23:16:19] Production.INFO: count ==661 [2025-01-06 23:16:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:16:05 - End Time 2025-01-06 23:16:05 [2025-01-06 23:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190859', 'tblTempUsageDetail_20' ) start [2025-01-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190859', 'tblTempUsageDetail_20' ) end [2025-01-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190859', 'tblTempVendorCDR_20' ) start [2025-01-06 23:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190859', 'tblTempVendorCDR_20' ) end [2025-01-06 23:16:19] Production.INFO: ProcessCDR(1,14190859,1,1,2) [2025-01-06 23:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190859', 'tblTempUsageDetail_20' ) start [2025-01-06 23:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190859', 'tblTempUsageDetail_20' ) end [2025-01-06 23:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:16:24] Production.INFO: ==7297== Releasing lock... [2025-01-06 23:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:16:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:17:05 [end_date_ymd] => 2025-01-06 23:17:05 [RateCDR] => 1 ) [2025-01-06 23:17: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-01-06 20:17:05' and `end` < '2025-01-06 23:17: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-01-06 23:17:18] Production.INFO: count ==664 [2025-01-06 23:17:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:17:05 - End Time 2025-01-06 23:17:05 [2025-01-06 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190864', 'tblTempUsageDetail_20' ) start [2025-01-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190864', 'tblTempUsageDetail_20' ) end [2025-01-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190864', 'tblTempVendorCDR_20' ) start [2025-01-06 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190864', 'tblTempVendorCDR_20' ) end [2025-01-06 23:17:19] Production.INFO: ProcessCDR(1,14190864,1,1,2) [2025-01-06 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190864', 'tblTempUsageDetail_20' ) start [2025-01-06 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190864', 'tblTempUsageDetail_20' ) end [2025-01-06 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:17:22] Production.INFO: ==7375== Releasing lock... [2025-01-06 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:17:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:18:05 [end_date_ymd] => 2025-01-06 23:18:05 [RateCDR] => 1 ) [2025-01-06 23:18: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-01-06 20:18:05' and `end` < '2025-01-06 23:18: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-01-06 23:18:19] Production.INFO: count ==664 [2025-01-06 23:18:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:18:05 - End Time 2025-01-06 23:18:05 [2025-01-06 23:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190869', 'tblTempUsageDetail_20' ) start [2025-01-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190869', 'tblTempUsageDetail_20' ) end [2025-01-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190869', 'tblTempVendorCDR_20' ) start [2025-01-06 23:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190869', 'tblTempVendorCDR_20' ) end [2025-01-06 23:18:19] Production.INFO: ProcessCDR(1,14190869,1,1,2) [2025-01-06 23:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190869', 'tblTempUsageDetail_20' ) start [2025-01-06 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190869', 'tblTempUsageDetail_20' ) end [2025-01-06 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:18:23] Production.INFO: ==7493== Releasing lock... [2025-01-06 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:18:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:19:05 [end_date_ymd] => 2025-01-06 23:19:05 [RateCDR] => 1 ) [2025-01-06 23:19: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-01-06 20:19:05' and `end` < '2025-01-06 23:19: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-01-06 23:19:18] Production.INFO: count ==663 [2025-01-06 23:19:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:19:05 - End Time 2025-01-06 23:19:05 [2025-01-06 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190874', 'tblTempUsageDetail_20' ) start [2025-01-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190874', 'tblTempUsageDetail_20' ) end [2025-01-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190874', 'tblTempVendorCDR_20' ) start [2025-01-06 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190874', 'tblTempVendorCDR_20' ) end [2025-01-06 23:19:18] Production.INFO: ProcessCDR(1,14190874,1,1,2) [2025-01-06 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190874', 'tblTempUsageDetail_20' ) start [2025-01-06 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190874', 'tblTempUsageDetail_20' ) end [2025-01-06 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:19:21] Production.INFO: ==7569== Releasing lock... [2025-01-06 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:19:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:20:05 [end_date_ymd] => 2025-01-06 23:20:05 [RateCDR] => 1 ) [2025-01-06 23:20: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-01-06 20:20:05' and `end` < '2025-01-06 23:20: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-01-06 23:20:18] Production.INFO: count ==663 [2025-01-06 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:20:05 - End Time 2025-01-06 23:20:05 [2025-01-06 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190880', 'tblTempUsageDetail_20' ) start [2025-01-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190880', 'tblTempUsageDetail_20' ) end [2025-01-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190880', 'tblTempVendorCDR_20' ) start [2025-01-06 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190880', 'tblTempVendorCDR_20' ) end [2025-01-06 23:20:18] Production.INFO: ProcessCDR(1,14190880,1,1,2) [2025-01-06 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190880', 'tblTempUsageDetail_20' ) start [2025-01-06 23:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190880', 'tblTempUsageDetail_20' ) end [2025-01-06 23:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:20:21] Production.INFO: ==7643== Releasing lock... [2025-01-06 23:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:20:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:21:05 [end_date_ymd] => 2025-01-06 23:21:05 [RateCDR] => 1 ) [2025-01-06 23:21: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-01-06 20:21:05' and `end` < '2025-01-06 23:21: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-01-06 23:21:19] Production.INFO: count ==688 [2025-01-06 23:21:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:21:05 - End Time 2025-01-06 23:21:05 [2025-01-06 23:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190885', 'tblTempUsageDetail_20' ) start [2025-01-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190885', 'tblTempUsageDetail_20' ) end [2025-01-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190885', 'tblTempVendorCDR_20' ) start [2025-01-06 23:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190885', 'tblTempVendorCDR_20' ) end [2025-01-06 23:21:19] Production.INFO: ProcessCDR(1,14190885,1,1,2) [2025-01-06 23:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190885', 'tblTempUsageDetail_20' ) start [2025-01-06 23:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190885', 'tblTempUsageDetail_20' ) end [2025-01-06 23:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:21:23] Production.INFO: ==7716== Releasing lock... [2025-01-06 23:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:21:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:22:05 [end_date_ymd] => 2025-01-06 23:22:05 [RateCDR] => 1 ) [2025-01-06 23:22: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-01-06 20:22:05' and `end` < '2025-01-06 23:22: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-01-06 23:22:18] Production.INFO: count ==689 [2025-01-06 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:22:05 - End Time 2025-01-06 23:22:05 [2025-01-06 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190890', 'tblTempUsageDetail_20' ) start [2025-01-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190890', 'tblTempUsageDetail_20' ) end [2025-01-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190890', 'tblTempVendorCDR_20' ) start [2025-01-06 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190890', 'tblTempVendorCDR_20' ) end [2025-01-06 23:22:18] Production.INFO: ProcessCDR(1,14190890,1,1,2) [2025-01-06 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190890', 'tblTempUsageDetail_20' ) start [2025-01-06 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190890', 'tblTempUsageDetail_20' ) end [2025-01-06 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:22:22] Production.INFO: ==7786== Releasing lock... [2025-01-06 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:22:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:23:05 [end_date_ymd] => 2025-01-06 23:23:05 [RateCDR] => 1 ) [2025-01-06 23:23: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-01-06 20:23:05' and `end` < '2025-01-06 23:23: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-01-06 23:23:19] Production.INFO: count ==690 [2025-01-06 23:23:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:23:05 - End Time 2025-01-06 23:23:05 [2025-01-06 23:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190895', 'tblTempUsageDetail_20' ) start [2025-01-06 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190895', 'tblTempUsageDetail_20' ) end [2025-01-06 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190895', 'tblTempVendorCDR_20' ) start [2025-01-06 23:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190895', 'tblTempVendorCDR_20' ) end [2025-01-06 23:23:19] Production.INFO: ProcessCDR(1,14190895,1,1,2) [2025-01-06 23:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190895', 'tblTempUsageDetail_20' ) start [2025-01-06 23:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190895', 'tblTempUsageDetail_20' ) end [2025-01-06 23:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:23:24] Production.INFO: ==7862== Releasing lock... [2025-01-06 23:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:23:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:24:05 [end_date_ymd] => 2025-01-06 23:24:05 [RateCDR] => 1 ) [2025-01-06 23:24: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-01-06 20:24:05' and `end` < '2025-01-06 23:24: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-01-06 23:24:19] Production.INFO: count ==679 [2025-01-06 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:24:05 - End Time 2025-01-06 23:24:05 [2025-01-06 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190900', 'tblTempUsageDetail_20' ) start [2025-01-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190900', 'tblTempUsageDetail_20' ) end [2025-01-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190900', 'tblTempVendorCDR_20' ) start [2025-01-06 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190900', 'tblTempVendorCDR_20' ) end [2025-01-06 23:24:19] Production.INFO: ProcessCDR(1,14190900,1,1,2) [2025-01-06 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190900', 'tblTempUsageDetail_20' ) start [2025-01-06 23:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190900', 'tblTempUsageDetail_20' ) end [2025-01-06 23:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:24:22] Production.INFO: ==7937== Releasing lock... [2025-01-06 23:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:24:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:25:05 [end_date_ymd] => 2025-01-06 23:25:05 [RateCDR] => 1 ) [2025-01-06 23: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-01-06 20:25:05' and `end` < '2025-01-06 23:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-06 23:25:18] Production.INFO: count ==680 [2025-01-06 23:25:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:25:05 - End Time 2025-01-06 23:25:05 [2025-01-06 23:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190905', 'tblTempUsageDetail_20' ) start [2025-01-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190905', 'tblTempUsageDetail_20' ) end [2025-01-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190905', 'tblTempVendorCDR_20' ) start [2025-01-06 23:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190905', 'tblTempVendorCDR_20' ) end [2025-01-06 23:25:18] Production.INFO: ProcessCDR(1,14190905,1,1,2) [2025-01-06 23:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190905', 'tblTempUsageDetail_20' ) start [2025-01-06 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190905', 'tblTempUsageDetail_20' ) end [2025-01-06 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:25:21] Production.INFO: ==8010== Releasing lock... [2025-01-06 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:25:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:26:05 [end_date_ymd] => 2025-01-06 23:26:05 [RateCDR] => 1 ) [2025-01-06 23:26: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-01-06 20:26:05' and `end` < '2025-01-06 23:26: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-01-06 23:26:19] Production.INFO: count ==681 [2025-01-06 23:26:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:26:05 - End Time 2025-01-06 23:26:05 [2025-01-06 23:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190910', 'tblTempUsageDetail_20' ) start [2025-01-06 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190910', 'tblTempUsageDetail_20' ) end [2025-01-06 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190910', 'tblTempVendorCDR_20' ) start [2025-01-06 23:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190910', 'tblTempVendorCDR_20' ) end [2025-01-06 23:26:20] Production.INFO: ProcessCDR(1,14190910,1,1,2) [2025-01-06 23:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190910', 'tblTempUsageDetail_20' ) start [2025-01-06 23:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190910', 'tblTempUsageDetail_20' ) end [2025-01-06 23:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:26:24] Production.INFO: ==8087== Releasing lock... [2025-01-06 23:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:26:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:27:05 [end_date_ymd] => 2025-01-06 23:27:05 [RateCDR] => 1 ) [2025-01-06 23:27: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-01-06 20:27:05' and `end` < '2025-01-06 23:27: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-01-06 23:27:18] Production.INFO: count ==680 [2025-01-06 23:27:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:27:05 - End Time 2025-01-06 23:27:05 [2025-01-06 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190915', 'tblTempUsageDetail_20' ) start [2025-01-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190915', 'tblTempUsageDetail_20' ) end [2025-01-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190915', 'tblTempVendorCDR_20' ) start [2025-01-06 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190915', 'tblTempVendorCDR_20' ) end [2025-01-06 23:27:18] Production.INFO: ProcessCDR(1,14190915,1,1,2) [2025-01-06 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190915', 'tblTempUsageDetail_20' ) start [2025-01-06 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190915', 'tblTempUsageDetail_20' ) end [2025-01-06 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:27:21] Production.INFO: ==8159== Releasing lock... [2025-01-06 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:27:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:28:04 [end_date_ymd] => 2025-01-06 23:28:04 [RateCDR] => 1 ) [2025-01-06 23:28: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-01-06 20:28:04' and `end` < '2025-01-06 23:28: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-01-06 23:28:17] Production.INFO: count ==681 [2025-01-06 23:28:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:28:04 - End Time 2025-01-06 23:28:04 [2025-01-06 23:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190920', 'tblTempUsageDetail_20' ) start [2025-01-06 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190920', 'tblTempUsageDetail_20' ) end [2025-01-06 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190920', 'tblTempVendorCDR_20' ) start [2025-01-06 23:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190920', 'tblTempVendorCDR_20' ) end [2025-01-06 23:28:17] Production.INFO: ProcessCDR(1,14190920,1,1,2) [2025-01-06 23:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190920', 'tblTempUsageDetail_20' ) start [2025-01-06 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190920', 'tblTempUsageDetail_20' ) end [2025-01-06 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:28:22] Production.INFO: ==8231== Releasing lock... [2025-01-06 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:28:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:29:05 [end_date_ymd] => 2025-01-06 23:29:05 [RateCDR] => 1 ) [2025-01-06 23:29: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-01-06 20:29:05' and `end` < '2025-01-06 23:29: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-01-06 23:29:18] Production.INFO: count ==681 [2025-01-06 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:29:05 - End Time 2025-01-06 23:29:05 [2025-01-06 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190925', 'tblTempUsageDetail_20' ) start [2025-01-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190925', 'tblTempUsageDetail_20' ) end [2025-01-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190925', 'tblTempVendorCDR_20' ) start [2025-01-06 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190925', 'tblTempVendorCDR_20' ) end [2025-01-06 23:29:18] Production.INFO: ProcessCDR(1,14190925,1,1,2) [2025-01-06 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190925', 'tblTempUsageDetail_20' ) start [2025-01-06 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190925', 'tblTempUsageDetail_20' ) end [2025-01-06 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:29:21] Production.INFO: ==8302== Releasing lock... [2025-01-06 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:29:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:30:06 [end_date_ymd] => 2025-01-06 23:30:06 [RateCDR] => 1 ) [2025-01-06 23:30: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-01-06 20:30:06' and `end` < '2025-01-06 23:30: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-01-06 23:30:19] Production.INFO: count ==682 [2025-01-06 23:30:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:30:06 - End Time 2025-01-06 23:30:06 [2025-01-06 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190931', 'tblTempUsageDetail_20' ) start [2025-01-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190931', 'tblTempUsageDetail_20' ) end [2025-01-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190931', 'tblTempVendorCDR_20' ) start [2025-01-06 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190931', 'tblTempVendorCDR_20' ) end [2025-01-06 23:30:19] Production.INFO: ProcessCDR(1,14190931,1,1,2) [2025-01-06 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190931', 'tblTempUsageDetail_20' ) start [2025-01-06 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190931', 'tblTempUsageDetail_20' ) end [2025-01-06 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:30:23] Production.INFO: ==8377== Releasing lock... [2025-01-06 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:30:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:31:05 [end_date_ymd] => 2025-01-06 23:31:05 [RateCDR] => 1 ) [2025-01-06 23:31: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-01-06 20:31:05' and `end` < '2025-01-06 23:31: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-01-06 23:31:18] Production.INFO: count ==699 [2025-01-06 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:31:05 - End Time 2025-01-06 23:31:05 [2025-01-06 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190936', 'tblTempUsageDetail_20' ) start [2025-01-06 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190936', 'tblTempUsageDetail_20' ) end [2025-01-06 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190936', 'tblTempVendorCDR_20' ) start [2025-01-06 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190936', 'tblTempVendorCDR_20' ) end [2025-01-06 23:31:18] Production.INFO: ProcessCDR(1,14190936,1,1,2) [2025-01-06 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190936', 'tblTempUsageDetail_20' ) start [2025-01-06 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190936', 'tblTempUsageDetail_20' ) end [2025-01-06 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:31:21] Production.INFO: ==8450== Releasing lock... [2025-01-06 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:31:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-06 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:32:05 [end_date_ymd] => 2025-01-06 23:32:05 [RateCDR] => 1 ) [2025-01-06 23:32: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-01-06 20:32:05' and `end` < '2025-01-06 23:32: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-01-06 23:32:20] Production.INFO: count ==698 [2025-01-06 23:32:20] Production.ERROR: pbx CDR StartTime 2025-01-06 20:32:05 - End Time 2025-01-06 23:32:05 [2025-01-06 23:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190941', 'tblTempUsageDetail_20' ) start [2025-01-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190941', 'tblTempUsageDetail_20' ) end [2025-01-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190941', 'tblTempVendorCDR_20' ) start [2025-01-06 23:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190941', 'tblTempVendorCDR_20' ) end [2025-01-06 23:32:20] Production.INFO: ProcessCDR(1,14190941,1,1,2) [2025-01-06 23:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190941', 'tblTempUsageDetail_20' ) start [2025-01-06 23:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190941', 'tblTempUsageDetail_20' ) end [2025-01-06 23:32:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:32:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:32:24] Production.INFO: ==8520== Releasing lock... [2025-01-06 23:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:32:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:33:05 [end_date_ymd] => 2025-01-06 23:33:05 [RateCDR] => 1 ) [2025-01-06 23:33: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-01-06 20:33:05' and `end` < '2025-01-06 23:33: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-01-06 23:33:19] Production.INFO: count ==696 [2025-01-06 23:33:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:33:05 - End Time 2025-01-06 23:33:05 [2025-01-06 23:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190946', 'tblTempUsageDetail_20' ) start [2025-01-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190946', 'tblTempUsageDetail_20' ) end [2025-01-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190946', 'tblTempVendorCDR_20' ) start [2025-01-06 23:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190946', 'tblTempVendorCDR_20' ) end [2025-01-06 23:33:19] Production.INFO: ProcessCDR(1,14190946,1,1,2) [2025-01-06 23:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190946', 'tblTempUsageDetail_20' ) start [2025-01-06 23:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190946', 'tblTempUsageDetail_20' ) end [2025-01-06 23:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:33:23] Production.INFO: ==8592== Releasing lock... [2025-01-06 23:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:33:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:34:06 [end_date_ymd] => 2025-01-06 23:34:06 [RateCDR] => 1 ) [2025-01-06 23:34: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-01-06 20:34:06' and `end` < '2025-01-06 23:34: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-01-06 23:34:19] Production.INFO: count ==689 [2025-01-06 23:34:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:34:06 - End Time 2025-01-06 23:34:06 [2025-01-06 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190951', 'tblTempUsageDetail_20' ) start [2025-01-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190951', 'tblTempUsageDetail_20' ) end [2025-01-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190951', 'tblTempVendorCDR_20' ) start [2025-01-06 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190951', 'tblTempVendorCDR_20' ) end [2025-01-06 23:34:19] Production.INFO: ProcessCDR(1,14190951,1,1,2) [2025-01-06 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190951', 'tblTempUsageDetail_20' ) start [2025-01-06 23:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190951', 'tblTempUsageDetail_20' ) end [2025-01-06 23:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:34:22] Production.INFO: ==8702== Releasing lock... [2025-01-06 23:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:34:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:35:04 [end_date_ymd] => 2025-01-06 23:35:04 [RateCDR] => 1 ) [2025-01-06 23:35: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-01-06 20:35:04' and `end` < '2025-01-06 23:35: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-01-06 23:35:17] Production.INFO: count ==692 [2025-01-06 23:35:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:35:04 - End Time 2025-01-06 23:35:04 [2025-01-06 23:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190956', 'tblTempUsageDetail_20' ) start [2025-01-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190956', 'tblTempUsageDetail_20' ) end [2025-01-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190956', 'tblTempVendorCDR_20' ) start [2025-01-06 23:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190956', 'tblTempVendorCDR_20' ) end [2025-01-06 23:35:17] Production.INFO: ProcessCDR(1,14190956,1,1,2) [2025-01-06 23:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190956', 'tblTempUsageDetail_20' ) start [2025-01-06 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190956', 'tblTempUsageDetail_20' ) end [2025-01-06 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:35:21] Production.INFO: ==8773== Releasing lock... [2025-01-06 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:35:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:36:06 [end_date_ymd] => 2025-01-06 23:36:06 [RateCDR] => 1 ) [2025-01-06 23:36: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-01-06 20:36:06' and `end` < '2025-01-06 23:36: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-01-06 23:36:20] Production.INFO: count ==683 [2025-01-06 23:36:20] Production.ERROR: pbx CDR StartTime 2025-01-06 20:36:06 - End Time 2025-01-06 23:36:06 [2025-01-06 23:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190961', 'tblTempUsageDetail_20' ) start [2025-01-06 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190961', 'tblTempUsageDetail_20' ) end [2025-01-06 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190961', 'tblTempVendorCDR_20' ) start [2025-01-06 23:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190961', 'tblTempVendorCDR_20' ) end [2025-01-06 23:36:20] Production.INFO: ProcessCDR(1,14190961,1,1,2) [2025-01-06 23:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190961', 'tblTempUsageDetail_20' ) start [2025-01-06 23:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190961', 'tblTempUsageDetail_20' ) end [2025-01-06 23:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:36:23] Production.INFO: ==8843== Releasing lock... [2025-01-06 23:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:36:23] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:37:05 [end_date_ymd] => 2025-01-06 23:37:05 [RateCDR] => 1 ) [2025-01-06 23:37: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-01-06 20:37:05' and `end` < '2025-01-06 23:37: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-01-06 23:37:19] Production.INFO: count ==679 [2025-01-06 23:37:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:37:05 - End Time 2025-01-06 23:37:05 [2025-01-06 23:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190966', 'tblTempUsageDetail_20' ) start [2025-01-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190966', 'tblTempUsageDetail_20' ) end [2025-01-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190966', 'tblTempVendorCDR_20' ) start [2025-01-06 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190966', 'tblTempVendorCDR_20' ) end [2025-01-06 23:37:19] Production.INFO: ProcessCDR(1,14190966,1,1,2) [2025-01-06 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190966', 'tblTempUsageDetail_20' ) start [2025-01-06 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190966', 'tblTempUsageDetail_20' ) end [2025-01-06 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:37:22] Production.INFO: ==8916== Releasing lock... [2025-01-06 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:37:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:38:05 [end_date_ymd] => 2025-01-06 23:38:05 [RateCDR] => 1 ) [2025-01-06 23:38: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-01-06 20:38:05' and `end` < '2025-01-06 23:38: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-01-06 23:38:20] Production.INFO: count ==674 [2025-01-06 23:38:20] Production.ERROR: pbx CDR StartTime 2025-01-06 20:38:05 - End Time 2025-01-06 23:38:05 [2025-01-06 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190971', 'tblTempUsageDetail_20' ) start [2025-01-06 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190971', 'tblTempUsageDetail_20' ) end [2025-01-06 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190971', 'tblTempVendorCDR_20' ) start [2025-01-06 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190971', 'tblTempVendorCDR_20' ) end [2025-01-06 23:38:20] Production.INFO: ProcessCDR(1,14190971,1,1,2) [2025-01-06 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190971', 'tblTempUsageDetail_20' ) start [2025-01-06 23:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190971', 'tblTempUsageDetail_20' ) end [2025-01-06 23:38:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:38:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:38:24] Production.INFO: ==8989== Releasing lock... [2025-01-06 23:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:38:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:39:05 [end_date_ymd] => 2025-01-06 23:39:05 [RateCDR] => 1 ) [2025-01-06 23:39: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-01-06 20:39:05' and `end` < '2025-01-06 23:39: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-01-06 23:39:18] Production.INFO: count ==673 [2025-01-06 23:39:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:39:05 - End Time 2025-01-06 23:39:05 [2025-01-06 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190976', 'tblTempUsageDetail_20' ) start [2025-01-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190976', 'tblTempUsageDetail_20' ) end [2025-01-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190976', 'tblTempVendorCDR_20' ) start [2025-01-06 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190976', 'tblTempVendorCDR_20' ) end [2025-01-06 23:39:18] Production.INFO: ProcessCDR(1,14190976,1,1,2) [2025-01-06 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190976', 'tblTempUsageDetail_20' ) start [2025-01-06 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190976', 'tblTempUsageDetail_20' ) end [2025-01-06 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:39:21] Production.INFO: ==9057== Releasing lock... [2025-01-06 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:39:21] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:40:06 [end_date_ymd] => 2025-01-06 23:40:06 [RateCDR] => 1 ) [2025-01-06 23:40: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-01-06 20:40:06' and `end` < '2025-01-06 23:40: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-01-06 23:40:19] Production.INFO: count ==672 [2025-01-06 23:40:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:40:06 - End Time 2025-01-06 23:40:06 [2025-01-06 23:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190982', 'tblTempUsageDetail_20' ) start [2025-01-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190982', 'tblTempUsageDetail_20' ) end [2025-01-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190982', 'tblTempVendorCDR_20' ) start [2025-01-06 23:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190982', 'tblTempVendorCDR_20' ) end [2025-01-06 23:40:19] Production.INFO: ProcessCDR(1,14190982,1,1,2) [2025-01-06 23:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190982', 'tblTempUsageDetail_20' ) start [2025-01-06 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190982', 'tblTempUsageDetail_20' ) end [2025-01-06 23:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:40:22] Production.INFO: ==9136== Releasing lock... [2025-01-06 23:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:40:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:41:04 [end_date_ymd] => 2025-01-06 23:41:04 [RateCDR] => 1 ) [2025-01-06 23:41: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-01-06 20:41:04' and `end` < '2025-01-06 23:41: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-01-06 23:41:17] Production.INFO: count ==660 [2025-01-06 23:41:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:41:04 - End Time 2025-01-06 23:41:04 [2025-01-06 23:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190987', 'tblTempUsageDetail_20' ) start [2025-01-06 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190987', 'tblTempUsageDetail_20' ) end [2025-01-06 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190987', 'tblTempVendorCDR_20' ) start [2025-01-06 23:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190987', 'tblTempVendorCDR_20' ) end [2025-01-06 23:41:17] Production.INFO: ProcessCDR(1,14190987,1,1,2) [2025-01-06 23:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190987', 'tblTempUsageDetail_20' ) start [2025-01-06 23:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190987', 'tblTempUsageDetail_20' ) end [2025-01-06 23:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:41:20] Production.INFO: ==9210== Releasing lock... [2025-01-06 23:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:41:20] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:42:05 [end_date_ymd] => 2025-01-06 23:42:05 [RateCDR] => 1 ) [2025-01-06 23:42: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-01-06 20:42:05' and `end` < '2025-01-06 23:42: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-01-06 23:42:18] Production.INFO: count ==657 [2025-01-06 23:42:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:42:05 - End Time 2025-01-06 23:42:05 [2025-01-06 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190992', 'tblTempUsageDetail_20' ) start [2025-01-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190992', 'tblTempUsageDetail_20' ) end [2025-01-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190992', 'tblTempVendorCDR_20' ) start [2025-01-06 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190992', 'tblTempVendorCDR_20' ) end [2025-01-06 23:42:18] Production.INFO: ProcessCDR(1,14190992,1,1,2) [2025-01-06 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190992', 'tblTempUsageDetail_20' ) start [2025-01-06 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190992', 'tblTempUsageDetail_20' ) end [2025-01-06 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:42:21] Production.INFO: ==9279== Releasing lock... [2025-01-06 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:42:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:43:05 [end_date_ymd] => 2025-01-06 23:43:05 [RateCDR] => 1 ) [2025-01-06 23:43: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-01-06 20:43:05' and `end` < '2025-01-06 23:43: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-01-06 23:43:19] Production.INFO: count ==657 [2025-01-06 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:43:05 - End Time 2025-01-06 23:43:05 [2025-01-06 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190997', 'tblTempUsageDetail_20' ) start [2025-01-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14190997', 'tblTempUsageDetail_20' ) end [2025-01-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190997', 'tblTempVendorCDR_20' ) start [2025-01-06 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14190997', 'tblTempVendorCDR_20' ) end [2025-01-06 23:43:19] Production.INFO: ProcessCDR(1,14190997,1,1,2) [2025-01-06 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14190997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14190997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14190997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14190997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190997', 'tblTempUsageDetail_20' ) start [2025-01-06 23:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14190997', 'tblTempUsageDetail_20' ) end [2025-01-06 23:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:43:24] Production.INFO: ==9353== Releasing lock... [2025-01-06 23:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:43:24] Production.INFO: 32.5 MB #Memory Used# [2025-01-06 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:44:05 [end_date_ymd] => 2025-01-06 23:44:05 [RateCDR] => 1 ) [2025-01-06 23:44: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-01-06 20:44:05' and `end` < '2025-01-06 23:44: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-01-06 23:44:19] Production.INFO: count ==655 [2025-01-06 23:44:20] Production.ERROR: pbx CDR StartTime 2025-01-06 20:44:05 - End Time 2025-01-06 23:44:05 [2025-01-06 23:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191002', 'tblTempUsageDetail_20' ) start [2025-01-06 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191002', 'tblTempUsageDetail_20' ) end [2025-01-06 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191002', 'tblTempVendorCDR_20' ) start [2025-01-06 23:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191002', 'tblTempVendorCDR_20' ) end [2025-01-06 23:44:20] Production.INFO: ProcessCDR(1,14191002,1,1,2) [2025-01-06 23:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191002', 'tblTempUsageDetail_20' ) start [2025-01-06 23:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191002', 'tblTempUsageDetail_20' ) end [2025-01-06 23:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:44:23] Production.INFO: ==9424== Releasing lock... [2025-01-06 23:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:44:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:45:05 [end_date_ymd] => 2025-01-06 23:45:05 [RateCDR] => 1 ) [2025-01-06 23:45: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-01-06 20:45:05' and `end` < '2025-01-06 23:45: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-01-06 23:45:17] Production.INFO: count ==655 [2025-01-06 23:45:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:45:05 - End Time 2025-01-06 23:45:05 [2025-01-06 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191007', 'tblTempUsageDetail_20' ) start [2025-01-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191007', 'tblTempUsageDetail_20' ) end [2025-01-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191007', 'tblTempVendorCDR_20' ) start [2025-01-06 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191007', 'tblTempVendorCDR_20' ) end [2025-01-06 23:45:18] Production.INFO: ProcessCDR(1,14191007,1,1,2) [2025-01-06 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191007', 'tblTempUsageDetail_20' ) start [2025-01-06 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191007', 'tblTempUsageDetail_20' ) end [2025-01-06 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:45:21] Production.INFO: ==9495== Releasing lock... [2025-01-06 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:45:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:46:05 [end_date_ymd] => 2025-01-06 23:46:05 [RateCDR] => 1 ) [2025-01-06 23:46: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-01-06 20:46:05' and `end` < '2025-01-06 23:46: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-01-06 23:46:18] Production.INFO: count ==655 [2025-01-06 23:46:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:46:05 - End Time 2025-01-06 23:46:05 [2025-01-06 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191011', 'tblTempUsageDetail_20' ) start [2025-01-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191011', 'tblTempUsageDetail_20' ) end [2025-01-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191011', 'tblTempVendorCDR_20' ) start [2025-01-06 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191011', 'tblTempVendorCDR_20' ) end [2025-01-06 23:46:18] Production.INFO: ProcessCDR(1,14191011,1,1,2) [2025-01-06 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191011,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191011,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191011', 'tblTempUsageDetail_20' ) start [2025-01-06 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191011', 'tblTempUsageDetail_20' ) end [2025-01-06 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:46:21] Production.INFO: ==9570== Releasing lock... [2025-01-06 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:46:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:47:05 [end_date_ymd] => 2025-01-06 23:47:05 [RateCDR] => 1 ) [2025-01-06 23:47: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-01-06 20:47:05' and `end` < '2025-01-06 23:47: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-01-06 23:47:18] Production.INFO: count ==651 [2025-01-06 23:47:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:47:05 - End Time 2025-01-06 23:47:05 [2025-01-06 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191017', 'tblTempUsageDetail_20' ) start [2025-01-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191017', 'tblTempUsageDetail_20' ) end [2025-01-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191017', 'tblTempVendorCDR_20' ) start [2025-01-06 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191017', 'tblTempVendorCDR_20' ) end [2025-01-06 23:47:18] Production.INFO: ProcessCDR(1,14191017,1,1,2) [2025-01-06 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191017', 'tblTempUsageDetail_20' ) start [2025-01-06 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191017', 'tblTempUsageDetail_20' ) end [2025-01-06 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:47:21] Production.INFO: ==9643== Releasing lock... [2025-01-06 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:47:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:48:05 [end_date_ymd] => 2025-01-06 23:48:05 [RateCDR] => 1 ) [2025-01-06 23:48: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-01-06 20:48:05' and `end` < '2025-01-06 23:48: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-01-06 23:48:18] Production.INFO: count ==643 [2025-01-06 23:48:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:48:05 - End Time 2025-01-06 23:48:05 [2025-01-06 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191022', 'tblTempUsageDetail_20' ) start [2025-01-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191022', 'tblTempUsageDetail_20' ) end [2025-01-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191022', 'tblTempVendorCDR_20' ) start [2025-01-06 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191022', 'tblTempVendorCDR_20' ) end [2025-01-06 23:48:18] Production.INFO: ProcessCDR(1,14191022,1,1,2) [2025-01-06 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191022', 'tblTempUsageDetail_20' ) start [2025-01-06 23:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191022', 'tblTempUsageDetail_20' ) end [2025-01-06 23:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:48:21] Production.INFO: ==9720== Releasing lock... [2025-01-06 23:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:48:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:49:05 [end_date_ymd] => 2025-01-06 23:49:05 [RateCDR] => 1 ) [2025-01-06 23:49: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-01-06 20:49:05' and `end` < '2025-01-06 23:49: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-01-06 23:49:19] Production.INFO: count ==636 [2025-01-06 23:49:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:49:05 - End Time 2025-01-06 23:49:05 [2025-01-06 23:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191027', 'tblTempUsageDetail_20' ) start [2025-01-06 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191027', 'tblTempUsageDetail_20' ) end [2025-01-06 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191027', 'tblTempVendorCDR_20' ) start [2025-01-06 23:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191027', 'tblTempVendorCDR_20' ) end [2025-01-06 23:49:19] Production.INFO: ProcessCDR(1,14191027,1,1,2) [2025-01-06 23:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191027', 'tblTempUsageDetail_20' ) start [2025-01-06 23:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191027', 'tblTempUsageDetail_20' ) end [2025-01-06 23:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:49:22] Production.INFO: ==9799== Releasing lock... [2025-01-06 23:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:49:22] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:50:05 [end_date_ymd] => 2025-01-06 23:50:05 [RateCDR] => 1 ) [2025-01-06 23:50: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-01-06 20:50:05' and `end` < '2025-01-06 23:50: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-01-06 23:50:18] Production.INFO: count ==636 [2025-01-06 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:50:05 - End Time 2025-01-06 23:50:05 [2025-01-06 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191033', 'tblTempUsageDetail_20' ) start [2025-01-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191033', 'tblTempUsageDetail_20' ) end [2025-01-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191033', 'tblTempVendorCDR_20' ) start [2025-01-06 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191033', 'tblTempVendorCDR_20' ) end [2025-01-06 23:50:18] Production.INFO: ProcessCDR(1,14191033,1,1,2) [2025-01-06 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191033', 'tblTempUsageDetail_20' ) start [2025-01-06 23:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191033', 'tblTempUsageDetail_20' ) end [2025-01-06 23:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:50:21] Production.INFO: ==9928== Releasing lock... [2025-01-06 23:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:50:21] Production.INFO: 32.25 MB #Memory Used# [2025-01-06 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:51:05 [end_date_ymd] => 2025-01-06 23:51:05 [RateCDR] => 1 ) [2025-01-06 23:51: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-01-06 20:51:05' and `end` < '2025-01-06 23:51: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-01-06 23:51:18] Production.INFO: count ==626 [2025-01-06 23:51:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:51:05 - End Time 2025-01-06 23:51:05 [2025-01-06 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191038', 'tblTempUsageDetail_20' ) start [2025-01-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191038', 'tblTempUsageDetail_20' ) end [2025-01-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191038', 'tblTempVendorCDR_20' ) start [2025-01-06 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191038', 'tblTempVendorCDR_20' ) end [2025-01-06 23:51:18] Production.INFO: ProcessCDR(1,14191038,1,1,2) [2025-01-06 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191038', 'tblTempUsageDetail_20' ) start [2025-01-06 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191038', 'tblTempUsageDetail_20' ) end [2025-01-06 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:51:21] Production.INFO: ==10026== Releasing lock... [2025-01-06 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:51:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:52:05 [end_date_ymd] => 2025-01-06 23:52:05 [RateCDR] => 1 ) [2025-01-06 23:52: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-01-06 20:52:05' and `end` < '2025-01-06 23:52: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-01-06 23:52:17] Production.INFO: count ==626 [2025-01-06 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:52:05 - End Time 2025-01-06 23:52:05 [2025-01-06 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191043', 'tblTempUsageDetail_20' ) start [2025-01-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191043', 'tblTempUsageDetail_20' ) end [2025-01-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191043', 'tblTempVendorCDR_20' ) start [2025-01-06 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191043', 'tblTempVendorCDR_20' ) end [2025-01-06 23:52:18] Production.INFO: ProcessCDR(1,14191043,1,1,2) [2025-01-06 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191043', 'tblTempUsageDetail_20' ) start [2025-01-06 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191043', 'tblTempUsageDetail_20' ) end [2025-01-06 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:52:21] Production.INFO: ==10115== Releasing lock... [2025-01-06 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:52:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:53:05 [end_date_ymd] => 2025-01-06 23:53:05 [RateCDR] => 1 ) [2025-01-06 23:53: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-01-06 20:53:05' and `end` < '2025-01-06 23:53: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-01-06 23:53:18] Production.INFO: count ==626 [2025-01-06 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:53:05 - End Time 2025-01-06 23:53:05 [2025-01-06 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191048', 'tblTempUsageDetail_20' ) start [2025-01-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191048', 'tblTempUsageDetail_20' ) end [2025-01-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191048', 'tblTempVendorCDR_20' ) start [2025-01-06 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191048', 'tblTempVendorCDR_20' ) end [2025-01-06 23:53:18] Production.INFO: ProcessCDR(1,14191048,1,1,2) [2025-01-06 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191048', 'tblTempUsageDetail_20' ) start [2025-01-06 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191048', 'tblTempUsageDetail_20' ) end [2025-01-06 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:53:21] Production.INFO: ==10204== Releasing lock... [2025-01-06 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:53:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:54:05 [end_date_ymd] => 2025-01-06 23:54:05 [RateCDR] => 1 ) [2025-01-06 23:54: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-01-06 20:54:05' and `end` < '2025-01-06 23:54: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-01-06 23:54:18] Production.INFO: count ==621 [2025-01-06 23:54:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:54:05 - End Time 2025-01-06 23:54:05 [2025-01-06 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191053', 'tblTempUsageDetail_20' ) start [2025-01-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191053', 'tblTempUsageDetail_20' ) end [2025-01-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191053', 'tblTempVendorCDR_20' ) start [2025-01-06 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191053', 'tblTempVendorCDR_20' ) end [2025-01-06 23:54:18] Production.INFO: ProcessCDR(1,14191053,1,1,2) [2025-01-06 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191053', 'tblTempUsageDetail_20' ) start [2025-01-06 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191053', 'tblTempUsageDetail_20' ) end [2025-01-06 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:54:21] Production.INFO: ==10303== Releasing lock... [2025-01-06 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:54:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:55:05 [end_date_ymd] => 2025-01-06 23:55:05 [RateCDR] => 1 ) [2025-01-06 23:55: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-01-06 20:55:05' and `end` < '2025-01-06 23:55: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-01-06 23:55:18] Production.INFO: count ==619 [2025-01-06 23:55:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:55:05 - End Time 2025-01-06 23:55:05 [2025-01-06 23:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191058', 'tblTempUsageDetail_20' ) start [2025-01-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191058', 'tblTempUsageDetail_20' ) end [2025-01-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191058', 'tblTempVendorCDR_20' ) start [2025-01-06 23:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191058', 'tblTempVendorCDR_20' ) end [2025-01-06 23:55:18] Production.INFO: ProcessCDR(1,14191058,1,1,2) [2025-01-06 23:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191058', 'tblTempUsageDetail_20' ) start [2025-01-06 23:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191058', 'tblTempUsageDetail_20' ) end [2025-01-06 23:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:55:21] Production.INFO: ==10400== Releasing lock... [2025-01-06 23:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:55:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:56:05 [end_date_ymd] => 2025-01-06 23:56:05 [RateCDR] => 1 ) [2025-01-06 23:56: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-01-06 20:56:05' and `end` < '2025-01-06 23:56: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-01-06 23:56:18] Production.INFO: count ==618 [2025-01-06 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:56:05 - End Time 2025-01-06 23:56:05 [2025-01-06 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191063', 'tblTempUsageDetail_20' ) start [2025-01-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191063', 'tblTempUsageDetail_20' ) end [2025-01-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191063', 'tblTempVendorCDR_20' ) start [2025-01-06 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191063', 'tblTempVendorCDR_20' ) end [2025-01-06 23:56:18] Production.INFO: ProcessCDR(1,14191063,1,1,2) [2025-01-06 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191063', 'tblTempUsageDetail_20' ) start [2025-01-06 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191063', 'tblTempUsageDetail_20' ) end [2025-01-06 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:56:21] Production.INFO: ==10491== Releasing lock... [2025-01-06 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:56:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:57:04 [end_date_ymd] => 2025-01-06 23:57:04 [RateCDR] => 1 ) [2025-01-06 23:57: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-01-06 20:57:04' and `end` < '2025-01-06 23:57: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-01-06 23:57:17] Production.INFO: count ==616 [2025-01-06 23:57:17] Production.ERROR: pbx CDR StartTime 2025-01-06 20:57:04 - End Time 2025-01-06 23:57:04 [2025-01-06 23:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191068', 'tblTempUsageDetail_20' ) start [2025-01-06 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191068', 'tblTempUsageDetail_20' ) end [2025-01-06 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191068', 'tblTempVendorCDR_20' ) start [2025-01-06 23:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191068', 'tblTempVendorCDR_20' ) end [2025-01-06 23:57:17] Production.INFO: ProcessCDR(1,14191068,1,1,2) [2025-01-06 23:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191068', 'tblTempUsageDetail_20' ) start [2025-01-06 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191068', 'tblTempUsageDetail_20' ) end [2025-01-06 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:57:21] Production.INFO: ==10580== Releasing lock... [2025-01-06 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:57:21] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:58:05 [end_date_ymd] => 2025-01-06 23:58:05 [RateCDR] => 1 ) [2025-01-06 23:58: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-01-06 20:58:05' and `end` < '2025-01-06 23:58: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-01-06 23:58:18] Production.INFO: count ==610 [2025-01-06 23:58:18] Production.ERROR: pbx CDR StartTime 2025-01-06 20:58:05 - End Time 2025-01-06 23:58:05 [2025-01-06 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191073', 'tblTempUsageDetail_20' ) start [2025-01-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191073', 'tblTempUsageDetail_20' ) end [2025-01-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191073', 'tblTempVendorCDR_20' ) start [2025-01-06 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191073', 'tblTempVendorCDR_20' ) end [2025-01-06 23:58:18] Production.INFO: ProcessCDR(1,14191073,1,1,2) [2025-01-06 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191073', 'tblTempUsageDetail_20' ) start [2025-01-06 23:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191073', 'tblTempUsageDetail_20' ) end [2025-01-06 23:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:58:22] Production.INFO: ==10668== Releasing lock... [2025-01-06 23:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:58:22] Production.INFO: 32 MB #Memory Used# [2025-01-06 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-06 20:59:05 [end_date_ymd] => 2025-01-06 23:59:05 [RateCDR] => 1 ) [2025-01-06 23:59: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-01-06 20:59:05' and `end` < '2025-01-06 23:59: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-01-06 23:59:19] Production.INFO: count ==610 [2025-01-06 23:59:19] Production.ERROR: pbx CDR StartTime 2025-01-06 20:59:05 - End Time 2025-01-06 23:59:05 [2025-01-06 23:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191078', 'tblTempUsageDetail_20' ) start [2025-01-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14191078', 'tblTempUsageDetail_20' ) end [2025-01-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191078', 'tblTempVendorCDR_20' ) start [2025-01-06 23:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14191078', 'tblTempVendorCDR_20' ) end [2025-01-06 23:59:19] Production.INFO: ProcessCDR(1,14191078,1,1,2) [2025-01-06 23:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14191078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14191078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-06 23:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14191078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14191078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-06 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191078', 'tblTempUsageDetail_20' ) start [2025-01-06 23:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14191078', 'tblTempUsageDetail_20' ) end [2025-01-06 23:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-06 23:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-06 23:59:22] Production.INFO: ==10759== Releasing lock... [2025-01-06 23:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-06 23:59:22] Production.INFO: 32 MB #Memory Used#