[2025-01-04 00:00:04] Production.INFO: next invoice date [2025-01-04 00:00:04] Production.INFO: 2025-02-04 [2025-01-04 00:00:04] Production.INFO: getdaysdiff [2025-01-04 00:00:04] Production.INFO: +31 [2025-01-04 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (209,16,1,31,31,'RMScheduler',2025-01-04 00:00:04,0,0,,,0) [2025-01-04 00:00:04] Production.INFO: next invoice date [2025-01-04 00:00:04] Production.INFO: 2025-02-04 [2025-01-04 00:00:04] Production.INFO: getdaysdiff [2025-01-04 00:00:04] Production.INFO: +31 [2025-01-04 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (209,13,2,31,31,'RMScheduler',2025-01-04 00:00:04,0,0,,,0) [2025-01-04 00:00:04] Production.INFO: next invoice date [2025-01-04 00:00:04] Production.INFO: 2025-02-04 [2025-01-04 00:00:04] Production.INFO: getdaysdiff [2025-01-04 00:00:04] Production.INFO: +31 [2025-01-04 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (213,11,1,31,31,'RMScheduler',2025-01-04 00:00:04,0,0,,,0) [2025-01-04 00:00:04] Production.INFO: next invoice date [2025-01-04 00:00:04] Production.INFO: 2025-02-04 [2025-01-04 00:00:04] Production.INFO: getdaysdiff [2025-01-04 00:00:04] Production.INFO: +31 [2025-01-04 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (213,13,2,31,31,'RMScheduler',2025-01-04 00:00:04,0,0,,,0) [2025-01-04 00:00:04] Production.INFO: next invoice date [2025-01-04 00:00:04] Production.INFO: 2025-02-04 [2025-01-04 00:00:04] Production.INFO: getdaysdiff [2025-01-04 00:00:04] Production.INFO: +31 [2025-01-04 00:00:04] Production.INFO: call prc_setAccountDiscountPlan (213,16,1,31,31,'RMScheduler',2025-01-04 00:00:04,1,0,,,0) [2025-01-04 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:00:06 [end_date_ymd] => 2025-01-04 00:00:06 [RateCDR] => 1 ) [2025-01-04 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-03 21:00:06' and `end` < '2025-01-04 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-04 00:00:20] Production.INFO: count ==845 [2025-01-04 00:00:20] Production.ERROR: pbx CDR StartTime 2025-01-03 21:00:06 - End Time 2025-01-04 00:00:06 [2025-01-04 00:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169072', 'tblTempUsageDetail_20' ) start [2025-01-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169072', 'tblTempUsageDetail_20' ) end [2025-01-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169072', 'tblTempVendorCDR_20' ) start [2025-01-04 00:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169072', 'tblTempVendorCDR_20' ) end [2025-01-04 00:00:20] Production.INFO: ProcessCDR(1,14169072,1,1,2) [2025-01-04 00:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:00:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169072,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:00:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169072,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169072', 'tblTempUsageDetail_20' ) start [2025-01-04 00:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169072', 'tblTempUsageDetail_20' ) end [2025-01-04 00:00:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:00:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:00:26] Production.INFO: ==17251== Releasing lock... [2025-01-04 00:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:00:26] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 00:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:01:05 [end_date_ymd] => 2025-01-04 00:01:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:01:05' and `end` < '2025-01-04 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-04 00:01:18] Production.INFO: count ==831 [2025-01-04 00:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:01:05 - End Time 2025-01-04 00:01:05 [2025-01-04 00:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169077', 'tblTempUsageDetail_20' ) start [2025-01-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169077', 'tblTempUsageDetail_20' ) end [2025-01-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169077', 'tblTempVendorCDR_20' ) start [2025-01-04 00:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169077', 'tblTempVendorCDR_20' ) end [2025-01-04 00:01:18] Production.INFO: ProcessCDR(1,14169077,1,1,2) [2025-01-04 00:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169077,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169077,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169077', 'tblTempUsageDetail_20' ) start [2025-01-04 00:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169077', 'tblTempUsageDetail_20' ) end [2025-01-04 00:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:01:21] Production.INFO: ==17339== Releasing lock... [2025-01-04 00:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:01:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 00:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:02:04 [end_date_ymd] => 2025-01-04 00:02:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:02:04' and `end` < '2025-01-04 00: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-04 00:02:17] Production.INFO: count ==192 [2025-01-04 00:02:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:02:04 - End Time 2025-01-04 00:02:04 [2025-01-04 00:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169082', 'tblTempUsageDetail_20' ) start [2025-01-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169082', 'tblTempUsageDetail_20' ) end [2025-01-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169082', 'tblTempVendorCDR_20' ) start [2025-01-04 00:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169082', 'tblTempVendorCDR_20' ) end [2025-01-04 00:02:17] Production.INFO: ProcessCDR(1,14169082,1,1,2) [2025-01-04 00:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169082', 'tblTempUsageDetail_20' ) start [2025-01-04 00:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169082', 'tblTempUsageDetail_20' ) end [2025-01-04 00:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:02:21] Production.INFO: ==17413== Releasing lock... [2025-01-04 00:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:02:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:03:05 [end_date_ymd] => 2025-01-04 00:03:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:03:05' and `end` < '2025-01-04 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-04 00:03:18] Production.INFO: count ==192 [2025-01-04 00:03:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:03:05 - End Time 2025-01-04 00:03:05 [2025-01-04 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169087', 'tblTempUsageDetail_20' ) start [2025-01-04 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169087', 'tblTempUsageDetail_20' ) end [2025-01-04 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169087', 'tblTempVendorCDR_20' ) start [2025-01-04 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169087', 'tblTempVendorCDR_20' ) end [2025-01-04 00:03:18] Production.INFO: ProcessCDR(1,14169087,1,1,2) [2025-01-04 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169087', 'tblTempUsageDetail_20' ) start [2025-01-04 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169087', 'tblTempUsageDetail_20' ) end [2025-01-04 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:03:21] Production.INFO: ==17489== Releasing lock... [2025-01-04 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:03:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 00:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:04:05 [end_date_ymd] => 2025-01-04 00:04:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:04:05' and `end` < '2025-01-04 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-04 00:04:18] Production.INFO: count ==197 [2025-01-04 00:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:04:05 - End Time 2025-01-04 00:04:05 [2025-01-04 00:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169092', 'tblTempUsageDetail_20' ) start [2025-01-04 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169092', 'tblTempUsageDetail_20' ) end [2025-01-04 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169092', 'tblTempVendorCDR_20' ) start [2025-01-04 00:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169092', 'tblTempVendorCDR_20' ) end [2025-01-04 00:04:18] Production.INFO: ProcessCDR(1,14169092,1,1,2) [2025-01-04 00:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169092', 'tblTempUsageDetail_20' ) start [2025-01-04 00:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169092', 'tblTempUsageDetail_20' ) end [2025-01-04 00:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:04:21] Production.INFO: ==17567== Releasing lock... [2025-01-04 00:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:05:05 [end_date_ymd] => 2025-01-04 00:05:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:05:05' and `end` < '2025-01-04 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-04 00:05:18] Production.INFO: count ==196 [2025-01-04 00:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:05:05 - End Time 2025-01-04 00:05:05 [2025-01-04 00:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169097', 'tblTempUsageDetail_20' ) start [2025-01-04 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169097', 'tblTempUsageDetail_20' ) end [2025-01-04 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169097', 'tblTempVendorCDR_20' ) start [2025-01-04 00:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169097', 'tblTempVendorCDR_20' ) end [2025-01-04 00:05:18] Production.INFO: ProcessCDR(1,14169097,1,1,2) [2025-01-04 00:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169097', 'tblTempUsageDetail_20' ) start [2025-01-04 00:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169097', 'tblTempUsageDetail_20' ) end [2025-01-04 00:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:05:21] Production.INFO: ==17639== Releasing lock... [2025-01-04 00:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:06:05 [end_date_ymd] => 2025-01-04 00:06:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:06:05' and `end` < '2025-01-04 00: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-04 00:06:18] Production.INFO: count ==196 [2025-01-04 00:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:06:05 - End Time 2025-01-04 00:06:05 [2025-01-04 00:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169102', 'tblTempUsageDetail_20' ) start [2025-01-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169102', 'tblTempUsageDetail_20' ) end [2025-01-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169102', 'tblTempVendorCDR_20' ) start [2025-01-04 00:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169102', 'tblTempVendorCDR_20' ) end [2025-01-04 00:06:18] Production.INFO: ProcessCDR(1,14169102,1,1,2) [2025-01-04 00:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169102', 'tblTempUsageDetail_20' ) start [2025-01-04 00:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169102', 'tblTempUsageDetail_20' ) end [2025-01-04 00:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:06:21] Production.INFO: ==17721== Releasing lock... [2025-01-04 00:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:07:04 [end_date_ymd] => 2025-01-04 00:07:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:07:04' and `end` < '2025-01-04 00: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-04 00:07:18] Production.INFO: count ==197 [2025-01-04 00:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:07:04 - End Time 2025-01-04 00:07:04 [2025-01-04 00:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169107', 'tblTempUsageDetail_20' ) start [2025-01-04 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169107', 'tblTempUsageDetail_20' ) end [2025-01-04 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169107', 'tblTempVendorCDR_20' ) start [2025-01-04 00:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169107', 'tblTempVendorCDR_20' ) end [2025-01-04 00:07:18] Production.INFO: ProcessCDR(1,14169107,1,1,2) [2025-01-04 00:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169107', 'tblTempUsageDetail_20' ) start [2025-01-04 00:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169107', 'tblTempUsageDetail_20' ) end [2025-01-04 00:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:07:22] Production.INFO: ==17793== Releasing lock... [2025-01-04 00:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:07:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:08:05 [end_date_ymd] => 2025-01-04 00:08:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:08:05' and `end` < '2025-01-04 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-04 00:08:18] Production.INFO: count ==200 [2025-01-04 00:08:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:08:05 - End Time 2025-01-04 00:08:05 [2025-01-04 00:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169112', 'tblTempUsageDetail_20' ) start [2025-01-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169112', 'tblTempUsageDetail_20' ) end [2025-01-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169112', 'tblTempVendorCDR_20' ) start [2025-01-04 00:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169112', 'tblTempVendorCDR_20' ) end [2025-01-04 00:08:18] Production.INFO: ProcessCDR(1,14169112,1,1,2) [2025-01-04 00:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169112', 'tblTempUsageDetail_20' ) start [2025-01-04 00:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169112', 'tblTempUsageDetail_20' ) end [2025-01-04 00:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:08:21] Production.INFO: ==17906== Releasing lock... [2025-01-04 00:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:08:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:09:04 [end_date_ymd] => 2025-01-04 00:09:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:09:04' and `end` < '2025-01-04 00: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-04 00:09:17] Production.INFO: count ==200 [2025-01-04 00:09:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:09:04 - End Time 2025-01-04 00:09:04 [2025-01-04 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169117', 'tblTempUsageDetail_20' ) start [2025-01-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169117', 'tblTempUsageDetail_20' ) end [2025-01-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169117', 'tblTempVendorCDR_20' ) start [2025-01-04 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169117', 'tblTempVendorCDR_20' ) end [2025-01-04 00:09:17] Production.INFO: ProcessCDR(1,14169117,1,1,2) [2025-01-04 00:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169117', 'tblTempUsageDetail_20' ) start [2025-01-04 00:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169117', 'tblTempUsageDetail_20' ) end [2025-01-04 00:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:09:20] Production.INFO: ==17980== Releasing lock... [2025-01-04 00:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:09:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:10:05 [end_date_ymd] => 2025-01-04 00:10:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:10:05' and `end` < '2025-01-04 00: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-04 00:10:18] Production.INFO: count ==206 [2025-01-04 00:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:10:05 - End Time 2025-01-04 00:10:05 [2025-01-04 00:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169122', 'tblTempUsageDetail_20' ) start [2025-01-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169122', 'tblTempUsageDetail_20' ) end [2025-01-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169122', 'tblTempVendorCDR_20' ) start [2025-01-04 00:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169122', 'tblTempVendorCDR_20' ) end [2025-01-04 00:10:18] Production.INFO: ProcessCDR(1,14169122,1,1,2) [2025-01-04 00:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169122', 'tblTempUsageDetail_20' ) start [2025-01-04 00:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169122', 'tblTempUsageDetail_20' ) end [2025-01-04 00:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:10:21] Production.INFO: ==18060== Releasing lock... [2025-01-04 00:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:10:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:11:04 [end_date_ymd] => 2025-01-04 00:11:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:11:04' and `end` < '2025-01-04 00: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-04 00:11:17] Production.INFO: count ==246 [2025-01-04 00:11:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:11:04 - End Time 2025-01-04 00:11:04 [2025-01-04 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169128', 'tblTempUsageDetail_20' ) start [2025-01-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169128', 'tblTempUsageDetail_20' ) end [2025-01-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169128', 'tblTempVendorCDR_20' ) start [2025-01-04 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169128', 'tblTempVendorCDR_20' ) end [2025-01-04 00:11:17] Production.INFO: ProcessCDR(1,14169128,1,1,2) [2025-01-04 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169128,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169128,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169128', 'tblTempUsageDetail_20' ) start [2025-01-04 00:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169128', 'tblTempUsageDetail_20' ) end [2025-01-04 00:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:11:20] Production.INFO: ==18136== Releasing lock... [2025-01-04 00:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:11:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:12:05 [end_date_ymd] => 2025-01-04 00:12:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:12:05' and `end` < '2025-01-04 00: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-04 00:12:18] Production.INFO: count ==244 [2025-01-04 00:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:12:05 - End Time 2025-01-04 00:12:05 [2025-01-04 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169133', 'tblTempUsageDetail_20' ) start [2025-01-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169133', 'tblTempUsageDetail_20' ) end [2025-01-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169133', 'tblTempVendorCDR_20' ) start [2025-01-04 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169133', 'tblTempVendorCDR_20' ) end [2025-01-04 00:12:18] Production.INFO: ProcessCDR(1,14169133,1,1,2) [2025-01-04 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169133', 'tblTempUsageDetail_20' ) start [2025-01-04 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169133', 'tblTempUsageDetail_20' ) end [2025-01-04 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:12:21] Production.INFO: ==18211== Releasing lock... [2025-01-04 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:13:05 [end_date_ymd] => 2025-01-04 00:13:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:13:05' and `end` < '2025-01-04 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-04 00:13:18] Production.INFO: count ==243 [2025-01-04 00:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:13:05 - End Time 2025-01-04 00:13:05 [2025-01-04 00:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169138', 'tblTempUsageDetail_20' ) start [2025-01-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169138', 'tblTempUsageDetail_20' ) end [2025-01-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169138', 'tblTempVendorCDR_20' ) start [2025-01-04 00:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169138', 'tblTempVendorCDR_20' ) end [2025-01-04 00:13:18] Production.INFO: ProcessCDR(1,14169138,1,1,2) [2025-01-04 00:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169138', 'tblTempUsageDetail_20' ) start [2025-01-04 00:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169138', 'tblTempUsageDetail_20' ) end [2025-01-04 00:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:13:21] Production.INFO: ==18284== Releasing lock... [2025-01-04 00:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:14:05 [end_date_ymd] => 2025-01-04 00:14:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:14:05' and `end` < '2025-01-04 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-04 00:14:18] Production.INFO: count ==241 [2025-01-04 00:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:14:05 - End Time 2025-01-04 00:14:05 [2025-01-04 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169143', 'tblTempUsageDetail_20' ) start [2025-01-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169143', 'tblTempUsageDetail_20' ) end [2025-01-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169143', 'tblTempVendorCDR_20' ) start [2025-01-04 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169143', 'tblTempVendorCDR_20' ) end [2025-01-04 00:14:18] Production.INFO: ProcessCDR(1,14169143,1,1,2) [2025-01-04 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169143', 'tblTempUsageDetail_20' ) start [2025-01-04 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169143', 'tblTempUsageDetail_20' ) end [2025-01-04 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:14:22] Production.INFO: ==18361== Releasing lock... [2025-01-04 00:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:14:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:15:05 [end_date_ymd] => 2025-01-04 00:15:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:15:05' and `end` < '2025-01-04 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-04 00:15:18] Production.INFO: count ==237 [2025-01-04 00:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:15:05 - End Time 2025-01-04 00:15:05 [2025-01-04 00:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169148', 'tblTempUsageDetail_20' ) start [2025-01-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169148', 'tblTempUsageDetail_20' ) end [2025-01-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169148', 'tblTempVendorCDR_20' ) start [2025-01-04 00:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169148', 'tblTempVendorCDR_20' ) end [2025-01-04 00:15:18] Production.INFO: ProcessCDR(1,14169148,1,1,2) [2025-01-04 00:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169148', 'tblTempUsageDetail_20' ) start [2025-01-04 00:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169148', 'tblTempUsageDetail_20' ) end [2025-01-04 00:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:15:22] Production.INFO: ==18436== Releasing lock... [2025-01-04 00:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:15:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:16:04 [end_date_ymd] => 2025-01-04 00:16:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:16:04' and `end` < '2025-01-04 00: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-04 00:16:17] Production.INFO: count ==234 [2025-01-04 00:16:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:16:04 - End Time 2025-01-04 00:16:04 [2025-01-04 00:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169153', 'tblTempUsageDetail_20' ) start [2025-01-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169153', 'tblTempUsageDetail_20' ) end [2025-01-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169153', 'tblTempVendorCDR_20' ) start [2025-01-04 00:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169153', 'tblTempVendorCDR_20' ) end [2025-01-04 00:16:17] Production.INFO: ProcessCDR(1,14169153,1,1,2) [2025-01-04 00:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169153', 'tblTempUsageDetail_20' ) start [2025-01-04 00:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169153', 'tblTempUsageDetail_20' ) end [2025-01-04 00:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:16:20] Production.INFO: ==18508== Releasing lock... [2025-01-04 00:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:16:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:17:05 [end_date_ymd] => 2025-01-04 00:17:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:17:05' and `end` < '2025-01-04 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-04 00:17:18] Production.INFO: count ==230 [2025-01-04 00:17:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:17:05 - End Time 2025-01-04 00:17:05 [2025-01-04 00:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169158', 'tblTempUsageDetail_20' ) start [2025-01-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169158', 'tblTempUsageDetail_20' ) end [2025-01-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169158', 'tblTempVendorCDR_20' ) start [2025-01-04 00:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169158', 'tblTempVendorCDR_20' ) end [2025-01-04 00:17:18] Production.INFO: ProcessCDR(1,14169158,1,1,2) [2025-01-04 00:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169158', 'tblTempUsageDetail_20' ) start [2025-01-04 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169158', 'tblTempUsageDetail_20' ) end [2025-01-04 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:17:21] Production.INFO: ==18584== Releasing lock... [2025-01-04 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:17:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:18:04 [end_date_ymd] => 2025-01-04 00:18:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:18:04' and `end` < '2025-01-04 00: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-04 00:18:18] Production.INFO: count ==231 [2025-01-04 00:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:18:04 - End Time 2025-01-04 00:18:04 [2025-01-04 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169163', 'tblTempUsageDetail_20' ) start [2025-01-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169163', 'tblTempUsageDetail_20' ) end [2025-01-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169163', 'tblTempVendorCDR_20' ) start [2025-01-04 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169163', 'tblTempVendorCDR_20' ) end [2025-01-04 00:18:18] Production.INFO: ProcessCDR(1,14169163,1,1,2) [2025-01-04 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169163', 'tblTempUsageDetail_20' ) start [2025-01-04 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169163', 'tblTempUsageDetail_20' ) end [2025-01-04 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:18:21] Production.INFO: ==18669== Releasing lock... [2025-01-04 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:19:05 [end_date_ymd] => 2025-01-04 00:19:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:19:05' and `end` < '2025-01-04 00: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-04 00:19:18] Production.INFO: count ==229 [2025-01-04 00:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:19:05 - End Time 2025-01-04 00:19:05 [2025-01-04 00:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169168', 'tblTempUsageDetail_20' ) start [2025-01-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169168', 'tblTempUsageDetail_20' ) end [2025-01-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169168', 'tblTempVendorCDR_20' ) start [2025-01-04 00:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169168', 'tblTempVendorCDR_20' ) end [2025-01-04 00:19:18] Production.INFO: ProcessCDR(1,14169168,1,1,2) [2025-01-04 00:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169168', 'tblTempUsageDetail_20' ) start [2025-01-04 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169168', 'tblTempUsageDetail_20' ) end [2025-01-04 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:19:21] Production.INFO: ==18740== Releasing lock... [2025-01-04 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:20:06 [end_date_ymd] => 2025-01-04 00:20:06 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:20:06' and `end` < '2025-01-04 00: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-04 00:20:18] Production.INFO: count ==237 [2025-01-04 00:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:20:06 - End Time 2025-01-04 00:20:06 [2025-01-04 00:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169173', 'tblTempUsageDetail_20' ) start [2025-01-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169173', 'tblTempUsageDetail_20' ) end [2025-01-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169173', 'tblTempVendorCDR_20' ) start [2025-01-04 00:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169173', 'tblTempVendorCDR_20' ) end [2025-01-04 00:20:18] Production.INFO: ProcessCDR(1,14169173,1,1,2) [2025-01-04 00:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169173', 'tblTempUsageDetail_20' ) start [2025-01-04 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169173', 'tblTempUsageDetail_20' ) end [2025-01-04 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:20:22] Production.INFO: ==18814== Releasing lock... [2025-01-04 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:21:05 [end_date_ymd] => 2025-01-04 00:21:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:21:05' and `end` < '2025-01-04 00: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-04 00:21:18] Production.INFO: count ==244 [2025-01-04 00:21:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:21:05 - End Time 2025-01-04 00:21:05 [2025-01-04 00:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169179', 'tblTempUsageDetail_20' ) start [2025-01-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169179', 'tblTempUsageDetail_20' ) end [2025-01-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169179', 'tblTempVendorCDR_20' ) start [2025-01-04 00:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169179', 'tblTempVendorCDR_20' ) end [2025-01-04 00:21:18] Production.INFO: ProcessCDR(1,14169179,1,1,2) [2025-01-04 00:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169179,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169179,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169179', 'tblTempUsageDetail_20' ) start [2025-01-04 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169179', 'tblTempUsageDetail_20' ) end [2025-01-04 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:21:21] Production.INFO: ==18889== Releasing lock... [2025-01-04 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:21:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:22:05 [end_date_ymd] => 2025-01-04 00:22:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:22:05' and `end` < '2025-01-04 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-04 00:22:18] Production.INFO: count ==244 [2025-01-04 00:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:22:05 - End Time 2025-01-04 00:22:05 [2025-01-04 00:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169184', 'tblTempUsageDetail_20' ) start [2025-01-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169184', 'tblTempUsageDetail_20' ) end [2025-01-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169184', 'tblTempVendorCDR_20' ) start [2025-01-04 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169184', 'tblTempVendorCDR_20' ) end [2025-01-04 00:22:18] Production.INFO: ProcessCDR(1,14169184,1,1,2) [2025-01-04 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169184', 'tblTempUsageDetail_20' ) start [2025-01-04 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169184', 'tblTempUsageDetail_20' ) end [2025-01-04 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:22:21] Production.INFO: ==18961== Releasing lock... [2025-01-04 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:23:05 [end_date_ymd] => 2025-01-04 00:23:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:23:05' and `end` < '2025-01-04 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-04 00:23:18] Production.INFO: count ==245 [2025-01-04 00:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:23:05 - End Time 2025-01-04 00:23:05 [2025-01-04 00:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169189', 'tblTempUsageDetail_20' ) start [2025-01-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169189', 'tblTempUsageDetail_20' ) end [2025-01-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169189', 'tblTempVendorCDR_20' ) start [2025-01-04 00:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169189', 'tblTempVendorCDR_20' ) end [2025-01-04 00:23:18] Production.INFO: ProcessCDR(1,14169189,1,1,2) [2025-01-04 00:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169189', 'tblTempUsageDetail_20' ) start [2025-01-04 00:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169189', 'tblTempUsageDetail_20' ) end [2025-01-04 00:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:23:21] Production.INFO: ==19070== Releasing lock... [2025-01-04 00:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:23:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:24:05 [end_date_ymd] => 2025-01-04 00:24:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:24:05' and `end` < '2025-01-04 00: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-04 00:24:18] Production.INFO: count ==246 [2025-01-04 00:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:24:05 - End Time 2025-01-04 00:24:05 [2025-01-04 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169194', 'tblTempUsageDetail_20' ) start [2025-01-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169194', 'tblTempUsageDetail_20' ) end [2025-01-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169194', 'tblTempVendorCDR_20' ) start [2025-01-04 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169194', 'tblTempVendorCDR_20' ) end [2025-01-04 00:24:18] Production.INFO: ProcessCDR(1,14169194,1,1,2) [2025-01-04 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169194', 'tblTempUsageDetail_20' ) start [2025-01-04 00:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169194', 'tblTempUsageDetail_20' ) end [2025-01-04 00:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:24:22] Production.INFO: ==19143== Releasing lock... [2025-01-04 00:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:24:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:25:04 [end_date_ymd] => 2025-01-04 00:25:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:25:04' and `end` < '2025-01-04 00: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-04 00:25:17] Production.INFO: count ==244 [2025-01-04 00:25:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:25:04 - End Time 2025-01-04 00:25:04 [2025-01-04 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169199', 'tblTempUsageDetail_20' ) start [2025-01-04 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169199', 'tblTempUsageDetail_20' ) end [2025-01-04 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169199', 'tblTempVendorCDR_20' ) start [2025-01-04 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169199', 'tblTempVendorCDR_20' ) end [2025-01-04 00:25:17] Production.INFO: ProcessCDR(1,14169199,1,1,2) [2025-01-04 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169199', 'tblTempUsageDetail_20' ) start [2025-01-04 00:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169199', 'tblTempUsageDetail_20' ) end [2025-01-04 00:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:25:21] Production.INFO: ==19212== Releasing lock... [2025-01-04 00:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:25:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:26:05 [end_date_ymd] => 2025-01-04 00:26:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:26:05' and `end` < '2025-01-04 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-04 00:26:18] Production.INFO: count ==243 [2025-01-04 00:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:26:05 - End Time 2025-01-04 00:26:05 [2025-01-04 00:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169204', 'tblTempUsageDetail_20' ) start [2025-01-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169204', 'tblTempUsageDetail_20' ) end [2025-01-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169204', 'tblTempVendorCDR_20' ) start [2025-01-04 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169204', 'tblTempVendorCDR_20' ) end [2025-01-04 00:26:18] Production.INFO: ProcessCDR(1,14169204,1,1,2) [2025-01-04 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169204', 'tblTempUsageDetail_20' ) start [2025-01-04 00:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169204', 'tblTempUsageDetail_20' ) end [2025-01-04 00:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:26:23] Production.INFO: ==19286== Releasing lock... [2025-01-04 00:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:26:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:27:05 [end_date_ymd] => 2025-01-04 00:27:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:27:05' and `end` < '2025-01-04 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-04 00:27:17] Production.INFO: count ==245 [2025-01-04 00:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:27:05 - End Time 2025-01-04 00:27:05 [2025-01-04 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169209', 'tblTempUsageDetail_20' ) start [2025-01-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169209', 'tblTempUsageDetail_20' ) end [2025-01-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169209', 'tblTempVendorCDR_20' ) start [2025-01-04 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169209', 'tblTempVendorCDR_20' ) end [2025-01-04 00:27:18] Production.INFO: ProcessCDR(1,14169209,1,1,2) [2025-01-04 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169209', 'tblTempUsageDetail_20' ) start [2025-01-04 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169209', 'tblTempUsageDetail_20' ) end [2025-01-04 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:27:21] Production.INFO: ==19356== Releasing lock... [2025-01-04 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:28:05 [end_date_ymd] => 2025-01-04 00:28:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:28:05' and `end` < '2025-01-04 00: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-04 00:28:18] Production.INFO: count ==249 [2025-01-04 00:28:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:28:05 - End Time 2025-01-04 00:28:05 [2025-01-04 00:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169214', 'tblTempUsageDetail_20' ) start [2025-01-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169214', 'tblTempUsageDetail_20' ) end [2025-01-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169214', 'tblTempVendorCDR_20' ) start [2025-01-04 00:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169214', 'tblTempVendorCDR_20' ) end [2025-01-04 00:28:18] Production.INFO: ProcessCDR(1,14169214,1,1,2) [2025-01-04 00:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169214', 'tblTempUsageDetail_20' ) start [2025-01-04 00:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169214', 'tblTempUsageDetail_20' ) end [2025-01-04 00:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:28:22] Production.INFO: ==19428== Releasing lock... [2025-01-04 00:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:28:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:29:04 [end_date_ymd] => 2025-01-04 00:29:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:29:04' and `end` < '2025-01-04 00: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-04 00:29:17] Production.INFO: count ==249 [2025-01-04 00:29:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:29:04 - End Time 2025-01-04 00:29:04 [2025-01-04 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169219', 'tblTempUsageDetail_20' ) start [2025-01-04 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169219', 'tblTempUsageDetail_20' ) end [2025-01-04 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169219', 'tblTempVendorCDR_20' ) start [2025-01-04 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169219', 'tblTempVendorCDR_20' ) end [2025-01-04 00:29:17] Production.INFO: ProcessCDR(1,14169219,1,1,2) [2025-01-04 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169219', 'tblTempUsageDetail_20' ) start [2025-01-04 00:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169219', 'tblTempUsageDetail_20' ) end [2025-01-04 00:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:29:20] Production.INFO: ==19497== Releasing lock... [2025-01-04 00:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:29:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:30:05 [end_date_ymd] => 2025-01-04 00:30:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:30:05' and `end` < '2025-01-04 00: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-04 00:30:18] Production.INFO: count ==255 [2025-01-04 00:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:30:05 - End Time 2025-01-04 00:30:05 [2025-01-04 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169225', 'tblTempUsageDetail_20' ) start [2025-01-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169225', 'tblTempUsageDetail_20' ) end [2025-01-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169225', 'tblTempVendorCDR_20' ) start [2025-01-04 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169225', 'tblTempVendorCDR_20' ) end [2025-01-04 00:30:18] Production.INFO: ProcessCDR(1,14169225,1,1,2) [2025-01-04 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169225,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169225,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169225', 'tblTempUsageDetail_20' ) start [2025-01-04 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169225', 'tblTempUsageDetail_20' ) end [2025-01-04 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:30:21] Production.INFO: ==19572== Releasing lock... [2025-01-04 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:30:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:31:05 [end_date_ymd] => 2025-01-04 00:31:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:31:05' and `end` < '2025-01-04 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-04 00:31:18] Production.INFO: count ==276 [2025-01-04 00:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:31:05 - End Time 2025-01-04 00:31:05 [2025-01-04 00:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169230', 'tblTempUsageDetail_20' ) start [2025-01-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169230', 'tblTempUsageDetail_20' ) end [2025-01-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169230', 'tblTempVendorCDR_20' ) start [2025-01-04 00:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169230', 'tblTempVendorCDR_20' ) end [2025-01-04 00:31:18] Production.INFO: ProcessCDR(1,14169230,1,1,2) [2025-01-04 00:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169230,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169230,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169230', 'tblTempUsageDetail_20' ) start [2025-01-04 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169230', 'tblTempUsageDetail_20' ) end [2025-01-04 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:31:21] Production.INFO: ==19644== Releasing lock... [2025-01-04 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:32:05 [end_date_ymd] => 2025-01-04 00:32:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:32:05' and `end` < '2025-01-04 00: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-04 00:32:18] Production.INFO: count ==276 [2025-01-04 00:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:32:05 - End Time 2025-01-04 00:32:05 [2025-01-04 00:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169235', 'tblTempUsageDetail_20' ) start [2025-01-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169235', 'tblTempUsageDetail_20' ) end [2025-01-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169235', 'tblTempVendorCDR_20' ) start [2025-01-04 00:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169235', 'tblTempVendorCDR_20' ) end [2025-01-04 00:32:18] Production.INFO: ProcessCDR(1,14169235,1,1,2) [2025-01-04 00:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169235,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169235,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169235', 'tblTempUsageDetail_20' ) start [2025-01-04 00:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169235', 'tblTempUsageDetail_20' ) end [2025-01-04 00:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:32:21] Production.INFO: ==19718== Releasing lock... [2025-01-04 00:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:33:05 [end_date_ymd] => 2025-01-04 00:33:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:33:05' and `end` < '2025-01-04 00: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-04 00:33:18] Production.INFO: count ==276 [2025-01-04 00:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:33:05 - End Time 2025-01-04 00:33:05 [2025-01-04 00:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169240', 'tblTempUsageDetail_20' ) start [2025-01-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169240', 'tblTempUsageDetail_20' ) end [2025-01-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169240', 'tblTempVendorCDR_20' ) start [2025-01-04 00:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169240', 'tblTempVendorCDR_20' ) end [2025-01-04 00:33:18] Production.INFO: ProcessCDR(1,14169240,1,1,2) [2025-01-04 00:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169240', 'tblTempUsageDetail_20' ) start [2025-01-04 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169240', 'tblTempUsageDetail_20' ) end [2025-01-04 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:33:21] Production.INFO: ==19789== Releasing lock... [2025-01-04 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:34:05 [end_date_ymd] => 2025-01-04 00:34:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:34:05' and `end` < '2025-01-04 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-04 00:34:17] Production.INFO: count ==276 [2025-01-04 00:34:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:34:05 - End Time 2025-01-04 00:34:05 [2025-01-04 00:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169245', 'tblTempUsageDetail_20' ) start [2025-01-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169245', 'tblTempUsageDetail_20' ) end [2025-01-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169245', 'tblTempVendorCDR_20' ) start [2025-01-04 00:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169245', 'tblTempVendorCDR_20' ) end [2025-01-04 00:34:17] Production.INFO: ProcessCDR(1,14169245,1,1,2) [2025-01-04 00:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169245', 'tblTempUsageDetail_20' ) start [2025-01-04 00:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169245', 'tblTempUsageDetail_20' ) end [2025-01-04 00:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:34:20] Production.INFO: ==19859== Releasing lock... [2025-01-04 00:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:34:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:35:04 [end_date_ymd] => 2025-01-04 00:35:04 [RateCDR] => 1 ) [2025-01-04 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-03 21:35:04' and `end` < '2025-01-04 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-04 00:35:17] Production.INFO: count ==276 [2025-01-04 00:35:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:35:04 - End Time 2025-01-04 00:35:04 [2025-01-04 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169250', 'tblTempUsageDetail_20' ) start [2025-01-04 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169250', 'tblTempUsageDetail_20' ) end [2025-01-04 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169250', 'tblTempVendorCDR_20' ) start [2025-01-04 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169250', 'tblTempVendorCDR_20' ) end [2025-01-04 00:35:17] Production.INFO: ProcessCDR(1,14169250,1,1,2) [2025-01-04 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169250', 'tblTempUsageDetail_20' ) start [2025-01-04 00:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169250', 'tblTempUsageDetail_20' ) end [2025-01-04 00:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:35:20] Production.INFO: ==19930== Releasing lock... [2025-01-04 00:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:35:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:36:05 [end_date_ymd] => 2025-01-04 00:36:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:36:05' and `end` < '2025-01-04 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-04 00:36:18] Production.INFO: count ==279 [2025-01-04 00:36:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:36:05 - End Time 2025-01-04 00:36:05 [2025-01-04 00:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169255', 'tblTempUsageDetail_20' ) start [2025-01-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169255', 'tblTempUsageDetail_20' ) end [2025-01-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169255', 'tblTempVendorCDR_20' ) start [2025-01-04 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169255', 'tblTempVendorCDR_20' ) end [2025-01-04 00:36:18] Production.INFO: ProcessCDR(1,14169255,1,1,2) [2025-01-04 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169255', 'tblTempUsageDetail_20' ) start [2025-01-04 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169255', 'tblTempUsageDetail_20' ) end [2025-01-04 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:36:21] Production.INFO: ==20005== Releasing lock... [2025-01-04 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:36:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:37:05 [end_date_ymd] => 2025-01-04 00:37:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:37:05' and `end` < '2025-01-04 00: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-04 00:37:18] Production.INFO: count ==281 [2025-01-04 00:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:37:05 - End Time 2025-01-04 00:37:05 [2025-01-04 00:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169260', 'tblTempUsageDetail_20' ) start [2025-01-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169260', 'tblTempUsageDetail_20' ) end [2025-01-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169260', 'tblTempVendorCDR_20' ) start [2025-01-04 00:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169260', 'tblTempVendorCDR_20' ) end [2025-01-04 00:37:18] Production.INFO: ProcessCDR(1,14169260,1,1,2) [2025-01-04 00:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169260', 'tblTempUsageDetail_20' ) start [2025-01-04 00:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169260', 'tblTempUsageDetail_20' ) end [2025-01-04 00:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:37:21] Production.INFO: ==20079== Releasing lock... [2025-01-04 00:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:38:05 [end_date_ymd] => 2025-01-04 00:38:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:38:05' and `end` < '2025-01-04 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-04 00:38:18] Production.INFO: count ==277 [2025-01-04 00:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:38:05 - End Time 2025-01-04 00:38:05 [2025-01-04 00:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169265', 'tblTempUsageDetail_20' ) start [2025-01-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169265', 'tblTempUsageDetail_20' ) end [2025-01-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169265', 'tblTempVendorCDR_20' ) start [2025-01-04 00:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169265', 'tblTempVendorCDR_20' ) end [2025-01-04 00:38:18] Production.INFO: ProcessCDR(1,14169265,1,1,2) [2025-01-04 00:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169265', 'tblTempUsageDetail_20' ) start [2025-01-04 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169265', 'tblTempUsageDetail_20' ) end [2025-01-04 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:38:21] Production.INFO: ==20148== Releasing lock... [2025-01-04 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:39:05 [end_date_ymd] => 2025-01-04 00:39:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:39:05' and `end` < '2025-01-04 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-04 00:39:18] Production.INFO: count ==273 [2025-01-04 00:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:39:05 - End Time 2025-01-04 00:39:05 [2025-01-04 00:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169270', 'tblTempUsageDetail_20' ) start [2025-01-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169270', 'tblTempUsageDetail_20' ) end [2025-01-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169270', 'tblTempVendorCDR_20' ) start [2025-01-04 00:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169270', 'tblTempVendorCDR_20' ) end [2025-01-04 00:39:18] Production.INFO: ProcessCDR(1,14169270,1,1,2) [2025-01-04 00:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169270', 'tblTempUsageDetail_20' ) start [2025-01-04 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169270', 'tblTempUsageDetail_20' ) end [2025-01-04 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:39:21] Production.INFO: ==20257== Releasing lock... [2025-01-04 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:40:06 [end_date_ymd] => 2025-01-04 00:40:06 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:40:06' and `end` < '2025-01-04 00: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-04 00:40:18] Production.INFO: count ==281 [2025-01-04 00:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:40:06 - End Time 2025-01-04 00:40:06 [2025-01-04 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169276', 'tblTempUsageDetail_20' ) start [2025-01-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169276', 'tblTempUsageDetail_20' ) end [2025-01-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169276', 'tblTempVendorCDR_20' ) start [2025-01-04 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169276', 'tblTempVendorCDR_20' ) end [2025-01-04 00:40:18] Production.INFO: ProcessCDR(1,14169276,1,1,2) [2025-01-04 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169276,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169276,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169276', 'tblTempUsageDetail_20' ) start [2025-01-04 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169276', 'tblTempUsageDetail_20' ) end [2025-01-04 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:40:21] Production.INFO: ==20330== Releasing lock... [2025-01-04 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:40:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:41:05 [end_date_ymd] => 2025-01-04 00:41:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:41:05' and `end` < '2025-01-04 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-04 00:41:17] Production.INFO: count ==293 [2025-01-04 00:41:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:41:05 - End Time 2025-01-04 00:41:05 [2025-01-04 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169281', 'tblTempUsageDetail_20' ) start [2025-01-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169281', 'tblTempUsageDetail_20' ) end [2025-01-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169281', 'tblTempVendorCDR_20' ) start [2025-01-04 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169281', 'tblTempVendorCDR_20' ) end [2025-01-04 00:41:17] Production.INFO: ProcessCDR(1,14169281,1,1,2) [2025-01-04 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169281,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169281,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169281', 'tblTempUsageDetail_20' ) start [2025-01-04 00:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169281', 'tblTempUsageDetail_20' ) end [2025-01-04 00:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:41:20] Production.INFO: ==20404== Releasing lock... [2025-01-04 00:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:41:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:42:05 [end_date_ymd] => 2025-01-04 00:42:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:42:05' and `end` < '2025-01-04 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-04 00:42:18] Production.INFO: count ==293 [2025-01-04 00:42:19] Production.ERROR: pbx CDR StartTime 2025-01-03 21:42:05 - End Time 2025-01-04 00:42:05 [2025-01-04 00:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169286', 'tblTempUsageDetail_20' ) start [2025-01-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169286', 'tblTempUsageDetail_20' ) end [2025-01-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169286', 'tblTempVendorCDR_20' ) start [2025-01-04 00:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169286', 'tblTempVendorCDR_20' ) end [2025-01-04 00:42:19] Production.INFO: ProcessCDR(1,14169286,1,1,2) [2025-01-04 00:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169286', 'tblTempUsageDetail_20' ) start [2025-01-04 00:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169286', 'tblTempUsageDetail_20' ) end [2025-01-04 00:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:42:22] Production.INFO: ==20477== Releasing lock... [2025-01-04 00:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:42:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:43:04 [end_date_ymd] => 2025-01-04 00:43:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:43:04' and `end` < '2025-01-04 00: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-04 00:43:19] Production.INFO: count ==293 [2025-01-04 00:43:19] Production.ERROR: pbx CDR StartTime 2025-01-03 21:43:04 - End Time 2025-01-04 00:43:04 [2025-01-04 00:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169291', 'tblTempUsageDetail_20' ) start [2025-01-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169291', 'tblTempUsageDetail_20' ) end [2025-01-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169291', 'tblTempVendorCDR_20' ) start [2025-01-04 00:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169291', 'tblTempVendorCDR_20' ) end [2025-01-04 00:43:19] Production.INFO: ProcessCDR(1,14169291,1,1,2) [2025-01-04 00:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169291', 'tblTempUsageDetail_20' ) start [2025-01-04 00:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169291', 'tblTempUsageDetail_20' ) end [2025-01-04 00:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:43:23] Production.INFO: ==20551== Releasing lock... [2025-01-04 00:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:43:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:44:05 [end_date_ymd] => 2025-01-04 00:44:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:44:05' and `end` < '2025-01-04 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-04 00:44:18] Production.INFO: count ==293 [2025-01-04 00:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:44:05 - End Time 2025-01-04 00:44:05 [2025-01-04 00:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169296', 'tblTempUsageDetail_20' ) start [2025-01-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169296', 'tblTempUsageDetail_20' ) end [2025-01-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169296', 'tblTempVendorCDR_20' ) start [2025-01-04 00:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169296', 'tblTempVendorCDR_20' ) end [2025-01-04 00:44:18] Production.INFO: ProcessCDR(1,14169296,1,1,2) [2025-01-04 00:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169296', 'tblTempUsageDetail_20' ) start [2025-01-04 00:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169296', 'tblTempUsageDetail_20' ) end [2025-01-04 00:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:44:21] Production.INFO: ==20623== Releasing lock... [2025-01-04 00:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:44:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:45:05 [end_date_ymd] => 2025-01-04 00:45:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:45:05' and `end` < '2025-01-04 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-04 00:45:18] Production.INFO: count ==293 [2025-01-04 00:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:45:05 - End Time 2025-01-04 00:45:05 [2025-01-04 00:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169301', 'tblTempUsageDetail_20' ) start [2025-01-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169301', 'tblTempUsageDetail_20' ) end [2025-01-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169301', 'tblTempVendorCDR_20' ) start [2025-01-04 00:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169301', 'tblTempVendorCDR_20' ) end [2025-01-04 00:45:18] Production.INFO: ProcessCDR(1,14169301,1,1,2) [2025-01-04 00:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169301', 'tblTempUsageDetail_20' ) start [2025-01-04 00:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169301', 'tblTempUsageDetail_20' ) end [2025-01-04 00:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:45:21] Production.INFO: ==20694== Releasing lock... [2025-01-04 00:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:46:05 [end_date_ymd] => 2025-01-04 00:46:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:46:05' and `end` < '2025-01-04 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-04 00:46:17] Production.INFO: count ==291 [2025-01-04 00:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:46:05 - End Time 2025-01-04 00:46:05 [2025-01-04 00:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169306', 'tblTempUsageDetail_20' ) start [2025-01-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169306', 'tblTempUsageDetail_20' ) end [2025-01-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169306', 'tblTempVendorCDR_20' ) start [2025-01-04 00:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169306', 'tblTempVendorCDR_20' ) end [2025-01-04 00:46:18] Production.INFO: ProcessCDR(1,14169306,1,1,2) [2025-01-04 00:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169306', 'tblTempUsageDetail_20' ) start [2025-01-04 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169306', 'tblTempUsageDetail_20' ) end [2025-01-04 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:46:21] Production.INFO: ==20764== Releasing lock... [2025-01-04 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:46:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:47:05 [end_date_ymd] => 2025-01-04 00:47:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:47:05' and `end` < '2025-01-04 00: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-04 00:47:18] Production.INFO: count ==291 [2025-01-04 00:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:47:05 - End Time 2025-01-04 00:47:05 [2025-01-04 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169311', 'tblTempUsageDetail_20' ) start [2025-01-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169311', 'tblTempUsageDetail_20' ) end [2025-01-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169311', 'tblTempVendorCDR_20' ) start [2025-01-04 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169311', 'tblTempVendorCDR_20' ) end [2025-01-04 00:47:18] Production.INFO: ProcessCDR(1,14169311,1,1,2) [2025-01-04 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169311', 'tblTempUsageDetail_20' ) start [2025-01-04 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169311', 'tblTempUsageDetail_20' ) end [2025-01-04 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:47:21] Production.INFO: ==20843== Releasing lock... [2025-01-04 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:47:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:48:05 [end_date_ymd] => 2025-01-04 00:48:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:48:05' and `end` < '2025-01-04 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-04 00:48:18] Production.INFO: count ==294 [2025-01-04 00:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:48:05 - End Time 2025-01-04 00:48:05 [2025-01-04 00:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169316', 'tblTempUsageDetail_20' ) start [2025-01-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169316', 'tblTempUsageDetail_20' ) end [2025-01-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169316', 'tblTempVendorCDR_20' ) start [2025-01-04 00:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169316', 'tblTempVendorCDR_20' ) end [2025-01-04 00:48:18] Production.INFO: ProcessCDR(1,14169316,1,1,2) [2025-01-04 00:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169316', 'tblTempUsageDetail_20' ) start [2025-01-04 00:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169316', 'tblTempUsageDetail_20' ) end [2025-01-04 00:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:48:22] Production.INFO: ==20913== Releasing lock... [2025-01-04 00:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:48:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:49:05 [end_date_ymd] => 2025-01-04 00:49:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:49:05' and `end` < '2025-01-04 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-04 00:49:18] Production.INFO: count ==294 [2025-01-04 00:49:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:49:05 - End Time 2025-01-04 00:49:05 [2025-01-04 00:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169321', 'tblTempUsageDetail_20' ) start [2025-01-04 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169321', 'tblTempUsageDetail_20' ) end [2025-01-04 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169321', 'tblTempVendorCDR_20' ) start [2025-01-04 00:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169321', 'tblTempVendorCDR_20' ) end [2025-01-04 00:49:18] Production.INFO: ProcessCDR(1,14169321,1,1,2) [2025-01-04 00:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169321', 'tblTempUsageDetail_20' ) start [2025-01-04 00:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169321', 'tblTempUsageDetail_20' ) end [2025-01-04 00:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:49:21] Production.INFO: ==20986== Releasing lock... [2025-01-04 00:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:49:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:50:05 [end_date_ymd] => 2025-01-04 00:50:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:50:05' and `end` < '2025-01-04 00: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-04 00:50:18] Production.INFO: count ==300 [2025-01-04 00:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:50:05 - End Time 2025-01-04 00:50:05 [2025-01-04 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169327', 'tblTempUsageDetail_20' ) start [2025-01-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169327', 'tblTempUsageDetail_20' ) end [2025-01-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169327', 'tblTempVendorCDR_20' ) start [2025-01-04 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169327', 'tblTempVendorCDR_20' ) end [2025-01-04 00:50:18] Production.INFO: ProcessCDR(1,14169327,1,1,2) [2025-01-04 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169327', 'tblTempUsageDetail_20' ) start [2025-01-04 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169327', 'tblTempUsageDetail_20' ) end [2025-01-04 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:50:21] Production.INFO: ==21060== Releasing lock... [2025-01-04 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:50:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:51:05 [end_date_ymd] => 2025-01-04 00:51:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:51:05' and `end` < '2025-01-04 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-04 00:51:18] Production.INFO: count ==324 [2025-01-04 00:51:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:51:05 - End Time 2025-01-04 00:51:05 [2025-01-04 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169332', 'tblTempUsageDetail_20' ) start [2025-01-04 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169332', 'tblTempUsageDetail_20' ) end [2025-01-04 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169332', 'tblTempVendorCDR_20' ) start [2025-01-04 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169332', 'tblTempVendorCDR_20' ) end [2025-01-04 00:51:18] Production.INFO: ProcessCDR(1,14169332,1,1,2) [2025-01-04 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169332', 'tblTempUsageDetail_20' ) start [2025-01-04 00:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169332', 'tblTempUsageDetail_20' ) end [2025-01-04 00:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:51:23] Production.INFO: ==21133== Releasing lock... [2025-01-04 00:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:51:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 00:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:52:06 [end_date_ymd] => 2025-01-04 00:52:06 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:52:06' and `end` < '2025-01-04 00: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-04 00:52:18] Production.INFO: count ==322 [2025-01-04 00:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 21:52:06 - End Time 2025-01-04 00:52:06 [2025-01-04 00:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169337', 'tblTempUsageDetail_20' ) start [2025-01-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169337', 'tblTempUsageDetail_20' ) end [2025-01-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169337', 'tblTempVendorCDR_20' ) start [2025-01-04 00:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169337', 'tblTempVendorCDR_20' ) end [2025-01-04 00:52:19] Production.INFO: ProcessCDR(1,14169337,1,1,2) [2025-01-04 00:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169337', 'tblTempUsageDetail_20' ) start [2025-01-04 00:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169337', 'tblTempUsageDetail_20' ) end [2025-01-04 00:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:52:22] Production.INFO: ==21204== Releasing lock... [2025-01-04 00:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:53:05 [end_date_ymd] => 2025-01-04 00:53:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:53:05' and `end` < '2025-01-04 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-04 00:53:18] Production.INFO: count ==321 [2025-01-04 00:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:53:05 - End Time 2025-01-04 00:53:05 [2025-01-04 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169342', 'tblTempUsageDetail_20' ) start [2025-01-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169342', 'tblTempUsageDetail_20' ) end [2025-01-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169342', 'tblTempVendorCDR_20' ) start [2025-01-04 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169342', 'tblTempVendorCDR_20' ) end [2025-01-04 00:53:18] Production.INFO: ProcessCDR(1,14169342,1,1,2) [2025-01-04 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169342', 'tblTempUsageDetail_20' ) start [2025-01-04 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169342', 'tblTempUsageDetail_20' ) end [2025-01-04 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:53:21] Production.INFO: ==21276== Releasing lock... [2025-01-04 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:53:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:54:05 [end_date_ymd] => 2025-01-04 00:54:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:54:05' and `end` < '2025-01-04 00: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-04 00:54:18] Production.INFO: count ==319 [2025-01-04 00:54:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:54:05 - End Time 2025-01-04 00:54:05 [2025-01-04 00:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169347', 'tblTempUsageDetail_20' ) start [2025-01-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169347', 'tblTempUsageDetail_20' ) end [2025-01-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169347', 'tblTempVendorCDR_20' ) start [2025-01-04 00:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169347', 'tblTempVendorCDR_20' ) end [2025-01-04 00:54:18] Production.INFO: ProcessCDR(1,14169347,1,1,2) [2025-01-04 00:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169347', 'tblTempUsageDetail_20' ) start [2025-01-04 00:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169347', 'tblTempUsageDetail_20' ) end [2025-01-04 00:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:54:21] Production.INFO: ==21347== Releasing lock... [2025-01-04 00:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:54:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:55:04 [end_date_ymd] => 2025-01-04 00:55:04 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:55:04' and `end` < '2025-01-04 00: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-04 00:55:17] Production.INFO: count ==319 [2025-01-04 00:55:17] Production.ERROR: pbx CDR StartTime 2025-01-03 21:55:04 - End Time 2025-01-04 00:55:04 [2025-01-04 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169352', 'tblTempUsageDetail_20' ) start [2025-01-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169352', 'tblTempUsageDetail_20' ) end [2025-01-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169352', 'tblTempVendorCDR_20' ) start [2025-01-04 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169352', 'tblTempVendorCDR_20' ) end [2025-01-04 00:55:17] Production.INFO: ProcessCDR(1,14169352,1,1,2) [2025-01-04 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169352', 'tblTempUsageDetail_20' ) start [2025-01-04 00:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169352', 'tblTempUsageDetail_20' ) end [2025-01-04 00:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:55:20] Production.INFO: ==21458== Releasing lock... [2025-01-04 00:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:55:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:56:06 [end_date_ymd] => 2025-01-04 00:56:06 [RateCDR] => 1 ) [2025-01-04 00:56: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-03 21:56:06' and `end` < '2025-01-04 00:56: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-04 00:56:19] Production.INFO: count ==319 [2025-01-04 00:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 21:56:06 - End Time 2025-01-04 00:56:06 [2025-01-04 00:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169357', 'tblTempUsageDetail_20' ) start [2025-01-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169357', 'tblTempUsageDetail_20' ) end [2025-01-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169357', 'tblTempVendorCDR_20' ) start [2025-01-04 00:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169357', 'tblTempVendorCDR_20' ) end [2025-01-04 00:56:19] Production.INFO: ProcessCDR(1,14169357,1,1,2) [2025-01-04 00:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169357', 'tblTempUsageDetail_20' ) start [2025-01-04 00:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169357', 'tblTempUsageDetail_20' ) end [2025-01-04 00:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:56:22] Production.INFO: ==21532== Releasing lock... [2025-01-04 00:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:56:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:57:05 [end_date_ymd] => 2025-01-04 00:57:05 [RateCDR] => 1 ) [2025-01-04 00: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-03 21:57:05' and `end` < '2025-01-04 00: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-04 00:57:18] Production.INFO: count ==319 [2025-01-04 00:57:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:57:05 - End Time 2025-01-04 00:57:05 [2025-01-04 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169362', 'tblTempUsageDetail_20' ) start [2025-01-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169362', 'tblTempUsageDetail_20' ) end [2025-01-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169362', 'tblTempVendorCDR_20' ) start [2025-01-04 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169362', 'tblTempVendorCDR_20' ) end [2025-01-04 00:57:18] Production.INFO: ProcessCDR(1,14169362,1,1,2) [2025-01-04 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169362', 'tblTempUsageDetail_20' ) start [2025-01-04 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169362', 'tblTempUsageDetail_20' ) end [2025-01-04 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:57:21] Production.INFO: ==21603== Releasing lock... [2025-01-04 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:57:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:58:05 [end_date_ymd] => 2025-01-04 00:58:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:58:05' and `end` < '2025-01-04 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-04 00:58:18] Production.INFO: count ==319 [2025-01-04 00:58:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:58:05 - End Time 2025-01-04 00:58:05 [2025-01-04 00:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169367', 'tblTempUsageDetail_20' ) start [2025-01-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169367', 'tblTempUsageDetail_20' ) end [2025-01-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169367', 'tblTempVendorCDR_20' ) start [2025-01-04 00:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169367', 'tblTempVendorCDR_20' ) end [2025-01-04 00:58:18] Production.INFO: ProcessCDR(1,14169367,1,1,2) [2025-01-04 00:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169367', 'tblTempUsageDetail_20' ) start [2025-01-04 00:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169367', 'tblTempUsageDetail_20' ) end [2025-01-04 00:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:58:21] Production.INFO: ==21677== Releasing lock... [2025-01-04 00:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:58:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 21:59:05 [end_date_ymd] => 2025-01-04 00:59:05 [RateCDR] => 1 ) [2025-01-04 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-03 21:59:05' and `end` < '2025-01-04 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-04 00:59:18] Production.INFO: count ==317 [2025-01-04 00:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 21:59:05 - End Time 2025-01-04 00:59:05 [2025-01-04 00:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169372', 'tblTempUsageDetail_20' ) start [2025-01-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169372', 'tblTempUsageDetail_20' ) end [2025-01-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169372', 'tblTempVendorCDR_20' ) start [2025-01-04 00:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169372', 'tblTempVendorCDR_20' ) end [2025-01-04 00:59:18] Production.INFO: ProcessCDR(1,14169372,1,1,2) [2025-01-04 00:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 00:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169372', 'tblTempUsageDetail_20' ) start [2025-01-04 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169372', 'tblTempUsageDetail_20' ) end [2025-01-04 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 00:59:21] Production.INFO: ==21746== Releasing lock... [2025-01-04 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 00:59:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:00:05 [end_date_ymd] => 2025-01-04 01:00:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:00:05' and `end` < '2025-01-04 01: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-04 01:00:18] Production.INFO: count ==322 [2025-01-04 01:00:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:00:05 - End Time 2025-01-04 01:00:05 [2025-01-04 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169377', 'tblTempUsageDetail_20' ) start [2025-01-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169377', 'tblTempUsageDetail_20' ) end [2025-01-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169377', 'tblTempVendorCDR_20' ) start [2025-01-04 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169377', 'tblTempVendorCDR_20' ) end [2025-01-04 01:00:18] Production.INFO: ProcessCDR(1,14169377,1,1,2) [2025-01-04 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169377', 'tblTempUsageDetail_20' ) start [2025-01-04 01:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169377', 'tblTempUsageDetail_20' ) end [2025-01-04 01:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:00:21] Production.INFO: ==21819== Releasing lock... [2025-01-04 01:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:00:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:01:05 [end_date_ymd] => 2025-01-04 01:01:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:01:05' and `end` < '2025-01-04 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-04 01:01:18] Production.INFO: count ==340 [2025-01-04 01:01:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:01:05 - End Time 2025-01-04 01:01:05 [2025-01-04 01:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169383', 'tblTempUsageDetail_20' ) start [2025-01-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169383', 'tblTempUsageDetail_20' ) end [2025-01-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169383', 'tblTempVendorCDR_20' ) start [2025-01-04 01:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169383', 'tblTempVendorCDR_20' ) end [2025-01-04 01:01:18] Production.INFO: ProcessCDR(1,14169383,1,1,2) [2025-01-04 01:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169383', 'tblTempUsageDetail_20' ) start [2025-01-04 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169383', 'tblTempUsageDetail_20' ) end [2025-01-04 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:01:21] Production.INFO: ==21907== Releasing lock... [2025-01-04 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:02:05 [end_date_ymd] => 2025-01-04 01:02:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:02:05' and `end` < '2025-01-04 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-04 01:02:18] Production.INFO: count ==340 [2025-01-04 01:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:02:05 - End Time 2025-01-04 01:02:05 [2025-01-04 01:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169388', 'tblTempUsageDetail_20' ) start [2025-01-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169388', 'tblTempUsageDetail_20' ) end [2025-01-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169388', 'tblTempVendorCDR_20' ) start [2025-01-04 01:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169388', 'tblTempVendorCDR_20' ) end [2025-01-04 01:02:18] Production.INFO: ProcessCDR(1,14169388,1,1,2) [2025-01-04 01:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169388', 'tblTempUsageDetail_20' ) start [2025-01-04 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169388', 'tblTempUsageDetail_20' ) end [2025-01-04 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:02:21] Production.INFO: ==21987== Releasing lock... [2025-01-04 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:02:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:03:04 [end_date_ymd] => 2025-01-04 01:03:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:03:04' and `end` < '2025-01-04 01: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-04 01:03:17] Production.INFO: count ==337 [2025-01-04 01:03:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:03:04 - End Time 2025-01-04 01:03:04 [2025-01-04 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169393', 'tblTempUsageDetail_20' ) start [2025-01-04 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169393', 'tblTempUsageDetail_20' ) end [2025-01-04 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169393', 'tblTempVendorCDR_20' ) start [2025-01-04 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169393', 'tblTempVendorCDR_20' ) end [2025-01-04 01:03:17] Production.INFO: ProcessCDR(1,14169393,1,1,2) [2025-01-04 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169393', 'tblTempUsageDetail_20' ) start [2025-01-04 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169393', 'tblTempUsageDetail_20' ) end [2025-01-04 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:03:21] Production.INFO: ==22059== Releasing lock... [2025-01-04 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:04:05 [end_date_ymd] => 2025-01-04 01:04:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:04:05' and `end` < '2025-01-04 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-04 01:04:18] Production.INFO: count ==336 [2025-01-04 01:04:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:04:05 - End Time 2025-01-04 01:04:05 [2025-01-04 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169398', 'tblTempUsageDetail_20' ) start [2025-01-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169398', 'tblTempUsageDetail_20' ) end [2025-01-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169398', 'tblTempVendorCDR_20' ) start [2025-01-04 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169398', 'tblTempVendorCDR_20' ) end [2025-01-04 01:04:18] Production.INFO: ProcessCDR(1,14169398,1,1,2) [2025-01-04 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169398', 'tblTempUsageDetail_20' ) start [2025-01-04 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169398', 'tblTempUsageDetail_20' ) end [2025-01-04 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:04:21] Production.INFO: ==22140== Releasing lock... [2025-01-04 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:05:05 [end_date_ymd] => 2025-01-04 01:05:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:05:05' and `end` < '2025-01-04 01: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-04 01:05:18] Production.INFO: count ==335 [2025-01-04 01:05:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:05:05 - End Time 2025-01-04 01:05:05 [2025-01-04 01:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169403', 'tblTempUsageDetail_20' ) start [2025-01-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169403', 'tblTempUsageDetail_20' ) end [2025-01-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169403', 'tblTempVendorCDR_20' ) start [2025-01-04 01:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169403', 'tblTempVendorCDR_20' ) end [2025-01-04 01:05:18] Production.INFO: ProcessCDR(1,14169403,1,1,2) [2025-01-04 01:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169403', 'tblTempUsageDetail_20' ) start [2025-01-04 01:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169403', 'tblTempUsageDetail_20' ) end [2025-01-04 01:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:05:21] Production.INFO: ==22212== Releasing lock... [2025-01-04 01:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:05:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:06:05 [end_date_ymd] => 2025-01-04 01:06:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:06:05' and `end` < '2025-01-04 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-04 01:06:18] Production.INFO: count ==334 [2025-01-04 01:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:06:05 - End Time 2025-01-04 01:06:05 [2025-01-04 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169408', 'tblTempUsageDetail_20' ) start [2025-01-04 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169408', 'tblTempUsageDetail_20' ) end [2025-01-04 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169408', 'tblTempVendorCDR_20' ) start [2025-01-04 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169408', 'tblTempVendorCDR_20' ) end [2025-01-04 01:06:18] Production.INFO: ProcessCDR(1,14169408,1,1,2) [2025-01-04 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169408', 'tblTempUsageDetail_20' ) start [2025-01-04 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169408', 'tblTempUsageDetail_20' ) end [2025-01-04 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:06:21] Production.INFO: ==22283== Releasing lock... [2025-01-04 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:06:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:07:05 [end_date_ymd] => 2025-01-04 01:07:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:07:05' and `end` < '2025-01-04 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-04 01:07:18] Production.INFO: count ==334 [2025-01-04 01:07:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:07:05 - End Time 2025-01-04 01:07:05 [2025-01-04 01:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169413', 'tblTempUsageDetail_20' ) start [2025-01-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169413', 'tblTempUsageDetail_20' ) end [2025-01-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169413', 'tblTempVendorCDR_20' ) start [2025-01-04 01:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169413', 'tblTempVendorCDR_20' ) end [2025-01-04 01:07:18] Production.INFO: ProcessCDR(1,14169413,1,1,2) [2025-01-04 01:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169413', 'tblTempUsageDetail_20' ) start [2025-01-04 01:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169413', 'tblTempUsageDetail_20' ) end [2025-01-04 01:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:07:23] Production.INFO: ==22354== Releasing lock... [2025-01-04 01:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:07:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:08:05 [end_date_ymd] => 2025-01-04 01:08:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:08:05' and `end` < '2025-01-04 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-04 01:08:17] Production.INFO: count ==334 [2025-01-04 01:08:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:08:05 - End Time 2025-01-04 01:08:05 [2025-01-04 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169418', 'tblTempUsageDetail_20' ) start [2025-01-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169418', 'tblTempUsageDetail_20' ) end [2025-01-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169418', 'tblTempVendorCDR_20' ) start [2025-01-04 01:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169418', 'tblTempVendorCDR_20' ) end [2025-01-04 01:08:18] Production.INFO: ProcessCDR(1,14169418,1,1,2) [2025-01-04 01:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169418', 'tblTempUsageDetail_20' ) start [2025-01-04 01:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169418', 'tblTempUsageDetail_20' ) end [2025-01-04 01:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:08:22] Production.INFO: ==22429== Releasing lock... [2025-01-04 01:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:08:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:09:05 [end_date_ymd] => 2025-01-04 01:09:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:09:05' and `end` < '2025-01-04 01: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-04 01:09:18] Production.INFO: count ==337 [2025-01-04 01:09:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:09:05 - End Time 2025-01-04 01:09:05 [2025-01-04 01:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169423', 'tblTempUsageDetail_20' ) start [2025-01-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169423', 'tblTempUsageDetail_20' ) end [2025-01-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169423', 'tblTempVendorCDR_20' ) start [2025-01-04 01:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169423', 'tblTempVendorCDR_20' ) end [2025-01-04 01:09:18] Production.INFO: ProcessCDR(1,14169423,1,1,2) [2025-01-04 01:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169423', 'tblTempUsageDetail_20' ) start [2025-01-04 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169423', 'tblTempUsageDetail_20' ) end [2025-01-04 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:09:21] Production.INFO: ==22502== Releasing lock... [2025-01-04 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:09:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:10:06 [end_date_ymd] => 2025-01-04 01:10:06 [RateCDR] => 1 ) [2025-01-04 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-03 22:10:06' and `end` < '2025-01-04 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-04 01:10:19] Production.INFO: count ==347 [2025-01-04 01:10:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:10:06 - End Time 2025-01-04 01:10:06 [2025-01-04 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169429', 'tblTempUsageDetail_20' ) start [2025-01-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169429', 'tblTempUsageDetail_20' ) end [2025-01-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169429', 'tblTempVendorCDR_20' ) start [2025-01-04 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169429', 'tblTempVendorCDR_20' ) end [2025-01-04 01:10:19] Production.INFO: ProcessCDR(1,14169429,1,1,2) [2025-01-04 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169429', 'tblTempUsageDetail_20' ) start [2025-01-04 01:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169429', 'tblTempUsageDetail_20' ) end [2025-01-04 01:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:10:23] Production.INFO: ==22613== Releasing lock... [2025-01-04 01:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:10:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:11:05 [end_date_ymd] => 2025-01-04 01:11:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:11:05' and `end` < '2025-01-04 01: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-04 01:11:18] Production.INFO: count ==358 [2025-01-04 01:11:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:11:05 - End Time 2025-01-04 01:11:05 [2025-01-04 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169434', 'tblTempUsageDetail_20' ) start [2025-01-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169434', 'tblTempUsageDetail_20' ) end [2025-01-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169434', 'tblTempVendorCDR_20' ) start [2025-01-04 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169434', 'tblTempVendorCDR_20' ) end [2025-01-04 01:11:18] Production.INFO: ProcessCDR(1,14169434,1,1,2) [2025-01-04 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169434', 'tblTempUsageDetail_20' ) start [2025-01-04 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169434', 'tblTempUsageDetail_20' ) end [2025-01-04 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:11:22] Production.INFO: ==22686== Releasing lock... [2025-01-04 01:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:11:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:12:04 [end_date_ymd] => 2025-01-04 01:12:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:12:04' and `end` < '2025-01-04 01: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-04 01:12:18] Production.INFO: count ==357 [2025-01-04 01:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:12:04 - End Time 2025-01-04 01:12:04 [2025-01-04 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169439', 'tblTempUsageDetail_20' ) start [2025-01-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169439', 'tblTempUsageDetail_20' ) end [2025-01-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169439', 'tblTempVendorCDR_20' ) start [2025-01-04 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169439', 'tblTempVendorCDR_20' ) end [2025-01-04 01:12:18] Production.INFO: ProcessCDR(1,14169439,1,1,2) [2025-01-04 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169439', 'tblTempUsageDetail_20' ) start [2025-01-04 01:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169439', 'tblTempUsageDetail_20' ) end [2025-01-04 01:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:12:21] Production.INFO: ==22757== Releasing lock... [2025-01-04 01:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:12:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:13:05 [end_date_ymd] => 2025-01-04 01:13:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:13:05' and `end` < '2025-01-04 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-04 01:13:18] Production.INFO: count ==356 [2025-01-04 01:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:13:05 - End Time 2025-01-04 01:13:05 [2025-01-04 01:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169444', 'tblTempUsageDetail_20' ) start [2025-01-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169444', 'tblTempUsageDetail_20' ) end [2025-01-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169444', 'tblTempVendorCDR_20' ) start [2025-01-04 01:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169444', 'tblTempVendorCDR_20' ) end [2025-01-04 01:13:18] Production.INFO: ProcessCDR(1,14169444,1,1,2) [2025-01-04 01:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169444', 'tblTempUsageDetail_20' ) start [2025-01-04 01:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169444', 'tblTempUsageDetail_20' ) end [2025-01-04 01:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:13:21] Production.INFO: ==22829== Releasing lock... [2025-01-04 01:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:13:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:14:05 [end_date_ymd] => 2025-01-04 01:14:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:14:05' and `end` < '2025-01-04 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-04 01:14:18] Production.INFO: count ==353 [2025-01-04 01:14:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:14:05 - End Time 2025-01-04 01:14:05 [2025-01-04 01:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169449', 'tblTempUsageDetail_20' ) start [2025-01-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169449', 'tblTempUsageDetail_20' ) end [2025-01-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169449', 'tblTempVendorCDR_20' ) start [2025-01-04 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169449', 'tblTempVendorCDR_20' ) end [2025-01-04 01:14:18] Production.INFO: ProcessCDR(1,14169449,1,1,2) [2025-01-04 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169449', 'tblTempUsageDetail_20' ) start [2025-01-04 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169449', 'tblTempUsageDetail_20' ) end [2025-01-04 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:14:21] Production.INFO: ==22901== Releasing lock... [2025-01-04 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:15:06 [end_date_ymd] => 2025-01-04 01:15:06 [RateCDR] => 1 ) [2025-01-04 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-03 22:15:06' and `end` < '2025-01-04 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-04 01:15:19] Production.INFO: count ==353 [2025-01-04 01:15:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:15:06 - End Time 2025-01-04 01:15:06 [2025-01-04 01:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169454', 'tblTempUsageDetail_20' ) start [2025-01-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169454', 'tblTempUsageDetail_20' ) end [2025-01-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169454', 'tblTempVendorCDR_20' ) start [2025-01-04 01:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169454', 'tblTempVendorCDR_20' ) end [2025-01-04 01:15:19] Production.INFO: ProcessCDR(1,14169454,1,1,2) [2025-01-04 01:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169454', 'tblTempUsageDetail_20' ) start [2025-01-04 01:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169454', 'tblTempUsageDetail_20' ) end [2025-01-04 01:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:15:24] Production.INFO: ==22973== Releasing lock... [2025-01-04 01:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:15:24] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:16:05 [end_date_ymd] => 2025-01-04 01:16:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:16:05' and `end` < '2025-01-04 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-04 01:16:18] Production.INFO: count ==353 [2025-01-04 01:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:16:05 - End Time 2025-01-04 01:16:05 [2025-01-04 01:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169459', 'tblTempUsageDetail_20' ) start [2025-01-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169459', 'tblTempUsageDetail_20' ) end [2025-01-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169459', 'tblTempVendorCDR_20' ) start [2025-01-04 01:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169459', 'tblTempVendorCDR_20' ) end [2025-01-04 01:16:18] Production.INFO: ProcessCDR(1,14169459,1,1,2) [2025-01-04 01:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169459', 'tblTempUsageDetail_20' ) start [2025-01-04 01:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169459', 'tblTempUsageDetail_20' ) end [2025-01-04 01:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:16:22] Production.INFO: ==23046== Releasing lock... [2025-01-04 01:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:16:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:17:05 [end_date_ymd] => 2025-01-04 01:17:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:17:05' and `end` < '2025-01-04 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-04 01:17:18] Production.INFO: count ==353 [2025-01-04 01:17:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:17:05 - End Time 2025-01-04 01:17:05 [2025-01-04 01:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169464', 'tblTempUsageDetail_20' ) start [2025-01-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169464', 'tblTempUsageDetail_20' ) end [2025-01-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169464', 'tblTempVendorCDR_20' ) start [2025-01-04 01:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169464', 'tblTempVendorCDR_20' ) end [2025-01-04 01:17:18] Production.INFO: ProcessCDR(1,14169464,1,1,2) [2025-01-04 01:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169464', 'tblTempUsageDetail_20' ) start [2025-01-04 01:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169464', 'tblTempUsageDetail_20' ) end [2025-01-04 01:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:17:21] Production.INFO: ==23120== Releasing lock... [2025-01-04 01:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:18:05 [end_date_ymd] => 2025-01-04 01:18:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:18:05' and `end` < '2025-01-04 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-04 01:18:18] Production.INFO: count ==353 [2025-01-04 01:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:18:05 - End Time 2025-01-04 01:18:05 [2025-01-04 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169469', 'tblTempUsageDetail_20' ) start [2025-01-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169469', 'tblTempUsageDetail_20' ) end [2025-01-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169469', 'tblTempVendorCDR_20' ) start [2025-01-04 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169469', 'tblTempVendorCDR_20' ) end [2025-01-04 01:18:18] Production.INFO: ProcessCDR(1,14169469,1,1,2) [2025-01-04 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169469', 'tblTempUsageDetail_20' ) start [2025-01-04 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169469', 'tblTempUsageDetail_20' ) end [2025-01-04 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:18:22] Production.INFO: ==23191== Releasing lock... [2025-01-04 01:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:18:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:19:06 [end_date_ymd] => 2025-01-04 01:19:06 [RateCDR] => 1 ) [2025-01-04 01:19: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-03 22:19:06' and `end` < '2025-01-04 01:19: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-04 01:19:18] Production.INFO: count ==353 [2025-01-04 01:19:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:19:06 - End Time 2025-01-04 01:19:06 [2025-01-04 01:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169474', 'tblTempUsageDetail_20' ) start [2025-01-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169474', 'tblTempUsageDetail_20' ) end [2025-01-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169474', 'tblTempVendorCDR_20' ) start [2025-01-04 01:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169474', 'tblTempVendorCDR_20' ) end [2025-01-04 01:19:18] Production.INFO: ProcessCDR(1,14169474,1,1,2) [2025-01-04 01:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169474', 'tblTempUsageDetail_20' ) start [2025-01-04 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169474', 'tblTempUsageDetail_20' ) end [2025-01-04 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:19:22] Production.INFO: ==23263== Releasing lock... [2025-01-04 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:20:05 [end_date_ymd] => 2025-01-04 01:20:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:20:05' and `end` < '2025-01-04 01: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-04 01:20:18] Production.INFO: count ==359 [2025-01-04 01:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:20:05 - End Time 2025-01-04 01:20:05 [2025-01-04 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169479', 'tblTempUsageDetail_20' ) start [2025-01-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169479', 'tblTempUsageDetail_20' ) end [2025-01-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169479', 'tblTempVendorCDR_20' ) start [2025-01-04 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169479', 'tblTempVendorCDR_20' ) end [2025-01-04 01:20:18] Production.INFO: ProcessCDR(1,14169479,1,1,2) [2025-01-04 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169479', 'tblTempUsageDetail_20' ) start [2025-01-04 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169479', 'tblTempUsageDetail_20' ) end [2025-01-04 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:20:21] Production.INFO: ==23335== Releasing lock... [2025-01-04 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:20:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:21:05 [end_date_ymd] => 2025-01-04 01:21:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:21:05' and `end` < '2025-01-04 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-04 01:21:18] Production.INFO: count ==373 [2025-01-04 01:21:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:21:05 - End Time 2025-01-04 01:21:05 [2025-01-04 01:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169485', 'tblTempUsageDetail_20' ) start [2025-01-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169485', 'tblTempUsageDetail_20' ) end [2025-01-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169485', 'tblTempVendorCDR_20' ) start [2025-01-04 01:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169485', 'tblTempVendorCDR_20' ) end [2025-01-04 01:21:18] Production.INFO: ProcessCDR(1,14169485,1,1,2) [2025-01-04 01:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169485', 'tblTempUsageDetail_20' ) start [2025-01-04 01:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169485', 'tblTempUsageDetail_20' ) end [2025-01-04 01:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:21:21] Production.INFO: ==23414== Releasing lock... [2025-01-04 01:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:21:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:22:05 [end_date_ymd] => 2025-01-04 01:22:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:22:05' and `end` < '2025-01-04 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-04 01:22:18] Production.INFO: count ==373 [2025-01-04 01:22:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:22:05 - End Time 2025-01-04 01:22:05 [2025-01-04 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169490', 'tblTempUsageDetail_20' ) start [2025-01-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169490', 'tblTempUsageDetail_20' ) end [2025-01-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169490', 'tblTempVendorCDR_20' ) start [2025-01-04 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169490', 'tblTempVendorCDR_20' ) end [2025-01-04 01:22:18] Production.INFO: ProcessCDR(1,14169490,1,1,2) [2025-01-04 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169490', 'tblTempUsageDetail_20' ) start [2025-01-04 01:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169490', 'tblTempUsageDetail_20' ) end [2025-01-04 01:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:22:21] Production.INFO: ==23485== Releasing lock... [2025-01-04 01:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:22:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:23:05 [end_date_ymd] => 2025-01-04 01:23:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:23:05' and `end` < '2025-01-04 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-04 01:23:18] Production.INFO: count ==373 [2025-01-04 01:23:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:23:05 - End Time 2025-01-04 01:23:05 [2025-01-04 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169495', 'tblTempUsageDetail_20' ) start [2025-01-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169495', 'tblTempUsageDetail_20' ) end [2025-01-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169495', 'tblTempVendorCDR_20' ) start [2025-01-04 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169495', 'tblTempVendorCDR_20' ) end [2025-01-04 01:23:18] Production.INFO: ProcessCDR(1,14169495,1,1,2) [2025-01-04 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169495', 'tblTempUsageDetail_20' ) start [2025-01-04 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169495', 'tblTempUsageDetail_20' ) end [2025-01-04 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:23:21] Production.INFO: ==23556== Releasing lock... [2025-01-04 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:23:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:24:05 [end_date_ymd] => 2025-01-04 01:24:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:24:05' and `end` < '2025-01-04 01: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-04 01:24:17] Production.INFO: count ==373 [2025-01-04 01:24:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:24:05 - End Time 2025-01-04 01:24:05 [2025-01-04 01:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169500', 'tblTempUsageDetail_20' ) start [2025-01-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169500', 'tblTempUsageDetail_20' ) end [2025-01-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169500', 'tblTempVendorCDR_20' ) start [2025-01-04 01:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169500', 'tblTempVendorCDR_20' ) end [2025-01-04 01:24:18] Production.INFO: ProcessCDR(1,14169500,1,1,2) [2025-01-04 01:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169500', 'tblTempUsageDetail_20' ) start [2025-01-04 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169500', 'tblTempUsageDetail_20' ) end [2025-01-04 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:24:21] Production.INFO: ==23628== Releasing lock... [2025-01-04 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:24:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:25:05 [end_date_ymd] => 2025-01-04 01:25:05 [RateCDR] => 1 ) [2025-01-04 01:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-03 22:25:05' and `end` < '2025-01-04 01:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 01:25:18] Production.INFO: count ==373 [2025-01-04 01:25:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:25:05 - End Time 2025-01-04 01:25:05 [2025-01-04 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169505', 'tblTempUsageDetail_20' ) start [2025-01-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169505', 'tblTempUsageDetail_20' ) end [2025-01-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169505', 'tblTempVendorCDR_20' ) start [2025-01-04 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169505', 'tblTempVendorCDR_20' ) end [2025-01-04 01:25:18] Production.INFO: ProcessCDR(1,14169505,1,1,2) [2025-01-04 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169505', 'tblTempUsageDetail_20' ) start [2025-01-04 01:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169505', 'tblTempUsageDetail_20' ) end [2025-01-04 01:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:25:21] Production.INFO: ==23703== Releasing lock... [2025-01-04 01:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:26:04 [end_date_ymd] => 2025-01-04 01:26:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:26:04' and `end` < '2025-01-04 01: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-04 01:26:17] Production.INFO: count ==373 [2025-01-04 01:26:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:26:04 - End Time 2025-01-04 01:26:04 [2025-01-04 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169510', 'tblTempUsageDetail_20' ) start [2025-01-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169510', 'tblTempUsageDetail_20' ) end [2025-01-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169510', 'tblTempVendorCDR_20' ) start [2025-01-04 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169510', 'tblTempVendorCDR_20' ) end [2025-01-04 01:26:17] Production.INFO: ProcessCDR(1,14169510,1,1,2) [2025-01-04 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169510', 'tblTempUsageDetail_20' ) start [2025-01-04 01:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169510', 'tblTempUsageDetail_20' ) end [2025-01-04 01:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:26:20] Production.INFO: ==23812== Releasing lock... [2025-01-04 01:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:26:20] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:27:05 [end_date_ymd] => 2025-01-04 01:27:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:27:05' and `end` < '2025-01-04 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-04 01:27:18] Production.INFO: count ==373 [2025-01-04 01:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:27:05 - End Time 2025-01-04 01:27:05 [2025-01-04 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169515', 'tblTempUsageDetail_20' ) start [2025-01-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169515', 'tblTempUsageDetail_20' ) end [2025-01-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169515', 'tblTempVendorCDR_20' ) start [2025-01-04 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169515', 'tblTempVendorCDR_20' ) end [2025-01-04 01:27:18] Production.INFO: ProcessCDR(1,14169515,1,1,2) [2025-01-04 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169515', 'tblTempUsageDetail_20' ) start [2025-01-04 01:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169515', 'tblTempUsageDetail_20' ) end [2025-01-04 01:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:27:22] Production.INFO: ==23884== Releasing lock... [2025-01-04 01:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:27:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:28:04 [end_date_ymd] => 2025-01-04 01:28:04 [RateCDR] => 1 ) [2025-01-04 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-03 22:28:04' and `end` < '2025-01-04 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-04 01:28:17] Production.INFO: count ==371 [2025-01-04 01:28:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:28:04 - End Time 2025-01-04 01:28:04 [2025-01-04 01:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169520', 'tblTempUsageDetail_20' ) start [2025-01-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169520', 'tblTempUsageDetail_20' ) end [2025-01-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169520', 'tblTempVendorCDR_20' ) start [2025-01-04 01:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169520', 'tblTempVendorCDR_20' ) end [2025-01-04 01:28:17] Production.INFO: ProcessCDR(1,14169520,1,1,2) [2025-01-04 01:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169520', 'tblTempUsageDetail_20' ) start [2025-01-04 01:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169520', 'tblTempUsageDetail_20' ) end [2025-01-04 01:28:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:28:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:28:20] Production.INFO: ==23956== Releasing lock... [2025-01-04 01:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:28:20] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:29:05 [end_date_ymd] => 2025-01-04 01:29:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:29:05' and `end` < '2025-01-04 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-04 01:29:18] Production.INFO: count ==367 [2025-01-04 01:29:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:29:05 - End Time 2025-01-04 01:29:05 [2025-01-04 01:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169525', 'tblTempUsageDetail_20' ) start [2025-01-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169525', 'tblTempUsageDetail_20' ) end [2025-01-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169525', 'tblTempVendorCDR_20' ) start [2025-01-04 01:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169525', 'tblTempVendorCDR_20' ) end [2025-01-04 01:29:19] Production.INFO: ProcessCDR(1,14169525,1,1,2) [2025-01-04 01:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169525', 'tblTempUsageDetail_20' ) start [2025-01-04 01:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169525', 'tblTempUsageDetail_20' ) end [2025-01-04 01:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:29:22] Production.INFO: ==24028== Releasing lock... [2025-01-04 01:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:29:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:30:05 [end_date_ymd] => 2025-01-04 01:30:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:30:05' and `end` < '2025-01-04 01: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-04 01:30:18] Production.INFO: count ==371 [2025-01-04 01:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:30:05 - End Time 2025-01-04 01:30:05 [2025-01-04 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169530', 'tblTempUsageDetail_20' ) start [2025-01-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169530', 'tblTempUsageDetail_20' ) end [2025-01-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169530', 'tblTempVendorCDR_20' ) start [2025-01-04 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169530', 'tblTempVendorCDR_20' ) end [2025-01-04 01:30:18] Production.INFO: ProcessCDR(1,14169530,1,1,2) [2025-01-04 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169530', 'tblTempUsageDetail_20' ) start [2025-01-04 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169530', 'tblTempUsageDetail_20' ) end [2025-01-04 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:30:21] Production.INFO: ==24102== Releasing lock... [2025-01-04 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:31:05 [end_date_ymd] => 2025-01-04 01:31:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:31:05' and `end` < '2025-01-04 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-04 01:31:18] Production.INFO: count ==379 [2025-01-04 01:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:31:05 - End Time 2025-01-04 01:31:05 [2025-01-04 01:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169536', 'tblTempUsageDetail_20' ) start [2025-01-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169536', 'tblTempUsageDetail_20' ) end [2025-01-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169536', 'tblTempVendorCDR_20' ) start [2025-01-04 01:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169536', 'tblTempVendorCDR_20' ) end [2025-01-04 01:31:18] Production.INFO: ProcessCDR(1,14169536,1,1,2) [2025-01-04 01:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169536', 'tblTempUsageDetail_20' ) start [2025-01-04 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169536', 'tblTempUsageDetail_20' ) end [2025-01-04 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:31:21] Production.INFO: ==24179== Releasing lock... [2025-01-04 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:32:05 [end_date_ymd] => 2025-01-04 01:32:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:32:05' and `end` < '2025-01-04 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-04 01:32:18] Production.INFO: count ==378 [2025-01-04 01:32:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:32:05 - End Time 2025-01-04 01:32:05 [2025-01-04 01:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169541', 'tblTempUsageDetail_20' ) start [2025-01-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169541', 'tblTempUsageDetail_20' ) end [2025-01-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169541', 'tblTempVendorCDR_20' ) start [2025-01-04 01:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169541', 'tblTempVendorCDR_20' ) end [2025-01-04 01:32:18] Production.INFO: ProcessCDR(1,14169541,1,1,2) [2025-01-04 01:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169541', 'tblTempUsageDetail_20' ) start [2025-01-04 01:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169541', 'tblTempUsageDetail_20' ) end [2025-01-04 01:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:32:22] Production.INFO: ==24251== Releasing lock... [2025-01-04 01:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:32:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:33:05 [end_date_ymd] => 2025-01-04 01:33:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:33:05' and `end` < '2025-01-04 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-04 01:33:18] Production.INFO: count ==374 [2025-01-04 01:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:33:05 - End Time 2025-01-04 01:33:05 [2025-01-04 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169546', 'tblTempUsageDetail_20' ) start [2025-01-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169546', 'tblTempUsageDetail_20' ) end [2025-01-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169546', 'tblTempVendorCDR_20' ) start [2025-01-04 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169546', 'tblTempVendorCDR_20' ) end [2025-01-04 01:33:18] Production.INFO: ProcessCDR(1,14169546,1,1,2) [2025-01-04 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169546', 'tblTempUsageDetail_20' ) start [2025-01-04 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169546', 'tblTempUsageDetail_20' ) end [2025-01-04 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:33:21] Production.INFO: ==24321== Releasing lock... [2025-01-04 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:33:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:34:05 [end_date_ymd] => 2025-01-04 01:34:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:34:05' and `end` < '2025-01-04 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-04 01:34:18] Production.INFO: count ==371 [2025-01-04 01:34:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:34:05 - End Time 2025-01-04 01:34:05 [2025-01-04 01:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169551', 'tblTempUsageDetail_20' ) start [2025-01-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169551', 'tblTempUsageDetail_20' ) end [2025-01-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169551', 'tblTempVendorCDR_20' ) start [2025-01-04 01:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169551', 'tblTempVendorCDR_20' ) end [2025-01-04 01:34:18] Production.INFO: ProcessCDR(1,14169551,1,1,2) [2025-01-04 01:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169551', 'tblTempUsageDetail_20' ) start [2025-01-04 01:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169551', 'tblTempUsageDetail_20' ) end [2025-01-04 01:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:34:21] Production.INFO: ==24398== Releasing lock... [2025-01-04 01:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:34:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:35:05 [end_date_ymd] => 2025-01-04 01:35:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:35:05' and `end` < '2025-01-04 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-04 01:35:18] Production.INFO: count ==370 [2025-01-04 01:35:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:35:05 - End Time 2025-01-04 01:35:05 [2025-01-04 01:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169556', 'tblTempUsageDetail_20' ) start [2025-01-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169556', 'tblTempUsageDetail_20' ) end [2025-01-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169556', 'tblTempVendorCDR_20' ) start [2025-01-04 01:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169556', 'tblTempVendorCDR_20' ) end [2025-01-04 01:35:18] Production.INFO: ProcessCDR(1,14169556,1,1,2) [2025-01-04 01:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169556', 'tblTempUsageDetail_20' ) start [2025-01-04 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169556', 'tblTempUsageDetail_20' ) end [2025-01-04 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:35:21] Production.INFO: ==24467== Releasing lock... [2025-01-04 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:36:05 [end_date_ymd] => 2025-01-04 01:36:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:36:05' and `end` < '2025-01-04 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-04 01:36:19] Production.INFO: count ==373 [2025-01-04 01:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:36:05 - End Time 2025-01-04 01:36:05 [2025-01-04 01:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169561', 'tblTempUsageDetail_20' ) start [2025-01-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169561', 'tblTempUsageDetail_20' ) end [2025-01-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169561', 'tblTempVendorCDR_20' ) start [2025-01-04 01:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169561', 'tblTempVendorCDR_20' ) end [2025-01-04 01:36:19] Production.INFO: ProcessCDR(1,14169561,1,1,2) [2025-01-04 01:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169561', 'tblTempUsageDetail_20' ) start [2025-01-04 01:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169561', 'tblTempUsageDetail_20' ) end [2025-01-04 01:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:36:22] Production.INFO: ==24540== Releasing lock... [2025-01-04 01:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:36:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:37:05 [end_date_ymd] => 2025-01-04 01:37:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:37:05' and `end` < '2025-01-04 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-04 01:37:19] Production.INFO: count ==372 [2025-01-04 01:37:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:37:05 - End Time 2025-01-04 01:37:05 [2025-01-04 01:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169566', 'tblTempUsageDetail_20' ) start [2025-01-04 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169566', 'tblTempUsageDetail_20' ) end [2025-01-04 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169566', 'tblTempVendorCDR_20' ) start [2025-01-04 01:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169566', 'tblTempVendorCDR_20' ) end [2025-01-04 01:37:19] Production.INFO: ProcessCDR(1,14169566,1,1,2) [2025-01-04 01:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169566', 'tblTempUsageDetail_20' ) start [2025-01-04 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169566', 'tblTempUsageDetail_20' ) end [2025-01-04 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:37:22] Production.INFO: ==24616== Releasing lock... [2025-01-04 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:37:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:38:05 [end_date_ymd] => 2025-01-04 01:38:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:38:05' and `end` < '2025-01-04 01: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-04 01:38:18] Production.INFO: count ==369 [2025-01-04 01:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:38:05 - End Time 2025-01-04 01:38:05 [2025-01-04 01:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169571', 'tblTempUsageDetail_20' ) start [2025-01-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169571', 'tblTempUsageDetail_20' ) end [2025-01-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169571', 'tblTempVendorCDR_20' ) start [2025-01-04 01:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169571', 'tblTempVendorCDR_20' ) end [2025-01-04 01:38:18] Production.INFO: ProcessCDR(1,14169571,1,1,2) [2025-01-04 01:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169571', 'tblTempUsageDetail_20' ) start [2025-01-04 01:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169571', 'tblTempUsageDetail_20' ) end [2025-01-04 01:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:38:21] Production.INFO: ==24687== Releasing lock... [2025-01-04 01:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:38:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:39:04 [end_date_ymd] => 2025-01-04 01:39:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:39:04' and `end` < '2025-01-04 01: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-04 01:39:18] Production.INFO: count ==369 [2025-01-04 01:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:39:04 - End Time 2025-01-04 01:39:04 [2025-01-04 01:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169576', 'tblTempUsageDetail_20' ) start [2025-01-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169576', 'tblTempUsageDetail_20' ) end [2025-01-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169576', 'tblTempVendorCDR_20' ) start [2025-01-04 01:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169576', 'tblTempVendorCDR_20' ) end [2025-01-04 01:39:18] Production.INFO: ProcessCDR(1,14169576,1,1,2) [2025-01-04 01:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169576', 'tblTempUsageDetail_20' ) start [2025-01-04 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169576', 'tblTempUsageDetail_20' ) end [2025-01-04 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:39:21] Production.INFO: ==24759== Releasing lock... [2025-01-04 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:40:05 [end_date_ymd] => 2025-01-04 01:40:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:40:05' and `end` < '2025-01-04 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-04 01:40:18] Production.INFO: count ==372 [2025-01-04 01:40:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:40:05 - End Time 2025-01-04 01:40:05 [2025-01-04 01:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169581', 'tblTempUsageDetail_20' ) start [2025-01-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169581', 'tblTempUsageDetail_20' ) end [2025-01-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169581', 'tblTempVendorCDR_20' ) start [2025-01-04 01:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169581', 'tblTempVendorCDR_20' ) end [2025-01-04 01:40:18] Production.INFO: ProcessCDR(1,14169581,1,1,2) [2025-01-04 01:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169581', 'tblTempUsageDetail_20' ) start [2025-01-04 01:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169581', 'tblTempUsageDetail_20' ) end [2025-01-04 01:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:40:21] Production.INFO: ==24830== Releasing lock... [2025-01-04 01:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:40:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:41:05 [end_date_ymd] => 2025-01-04 01:41:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:41:05' and `end` < '2025-01-04 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-04 01:41:18] Production.INFO: count ==373 [2025-01-04 01:41:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:41:05 - End Time 2025-01-04 01:41:05 [2025-01-04 01:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169587', 'tblTempUsageDetail_20' ) start [2025-01-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169587', 'tblTempUsageDetail_20' ) end [2025-01-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169587', 'tblTempVendorCDR_20' ) start [2025-01-04 01:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169587', 'tblTempVendorCDR_20' ) end [2025-01-04 01:41:18] Production.INFO: ProcessCDR(1,14169587,1,1,2) [2025-01-04 01:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169587', 'tblTempUsageDetail_20' ) start [2025-01-04 01:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169587', 'tblTempUsageDetail_20' ) end [2025-01-04 01:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:41:21] Production.INFO: ==24905== Releasing lock... [2025-01-04 01:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:41:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:42:05 [end_date_ymd] => 2025-01-04 01:42:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:42:05' and `end` < '2025-01-04 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-04 01:42:18] Production.INFO: count ==370 [2025-01-04 01:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:42:05 - End Time 2025-01-04 01:42:05 [2025-01-04 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169592', 'tblTempUsageDetail_20' ) start [2025-01-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169592', 'tblTempUsageDetail_20' ) end [2025-01-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169592', 'tblTempVendorCDR_20' ) start [2025-01-04 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169592', 'tblTempVendorCDR_20' ) end [2025-01-04 01:42:18] Production.INFO: ProcessCDR(1,14169592,1,1,2) [2025-01-04 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169592', 'tblTempUsageDetail_20' ) start [2025-01-04 01:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169592', 'tblTempUsageDetail_20' ) end [2025-01-04 01:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:42:21] Production.INFO: ==25014== Releasing lock... [2025-01-04 01:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:42:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:43:04 [end_date_ymd] => 2025-01-04 01:43:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:43:04' and `end` < '2025-01-04 01: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-04 01:43:17] Production.INFO: count ==369 [2025-01-04 01:43:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:43:04 - End Time 2025-01-04 01:43:04 [2025-01-04 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169597', 'tblTempUsageDetail_20' ) start [2025-01-04 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169597', 'tblTempUsageDetail_20' ) end [2025-01-04 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169597', 'tblTempVendorCDR_20' ) start [2025-01-04 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169597', 'tblTempVendorCDR_20' ) end [2025-01-04 01:43:17] Production.INFO: ProcessCDR(1,14169597,1,1,2) [2025-01-04 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169597', 'tblTempUsageDetail_20' ) start [2025-01-04 01:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169597', 'tblTempUsageDetail_20' ) end [2025-01-04 01:43:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:43:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:43:20] Production.INFO: ==25086== Releasing lock... [2025-01-04 01:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:43:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:44:05 [end_date_ymd] => 2025-01-04 01:44:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:44:05' and `end` < '2025-01-04 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-04 01:44:18] Production.INFO: count ==366 [2025-01-04 01:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:44:05 - End Time 2025-01-04 01:44:05 [2025-01-04 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169602', 'tblTempUsageDetail_20' ) start [2025-01-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169602', 'tblTempUsageDetail_20' ) end [2025-01-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169602', 'tblTempVendorCDR_20' ) start [2025-01-04 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169602', 'tblTempVendorCDR_20' ) end [2025-01-04 01:44:18] Production.INFO: ProcessCDR(1,14169602,1,1,2) [2025-01-04 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169602', 'tblTempUsageDetail_20' ) start [2025-01-04 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169602', 'tblTempUsageDetail_20' ) end [2025-01-04 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:44:21] Production.INFO: ==25159== Releasing lock... [2025-01-04 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:45:05 [end_date_ymd] => 2025-01-04 01:45:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:45:05' and `end` < '2025-01-04 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-04 01:45:18] Production.INFO: count ==365 [2025-01-04 01:45:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:45:05 - End Time 2025-01-04 01:45:05 [2025-01-04 01:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169607', 'tblTempUsageDetail_20' ) start [2025-01-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169607', 'tblTempUsageDetail_20' ) end [2025-01-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169607', 'tblTempVendorCDR_20' ) start [2025-01-04 01:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169607', 'tblTempVendorCDR_20' ) end [2025-01-04 01:45:18] Production.INFO: ProcessCDR(1,14169607,1,1,2) [2025-01-04 01:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169607', 'tblTempUsageDetail_20' ) start [2025-01-04 01:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169607', 'tblTempUsageDetail_20' ) end [2025-01-04 01:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:45:21] Production.INFO: ==25231== Releasing lock... [2025-01-04 01:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:45:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:46:05 [end_date_ymd] => 2025-01-04 01:46:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:46:05' and `end` < '2025-01-04 01: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-04 01:46:19] Production.INFO: count ==364 [2025-01-04 01:46:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:46:05 - End Time 2025-01-04 01:46:05 [2025-01-04 01:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169612', 'tblTempUsageDetail_20' ) start [2025-01-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169612', 'tblTempUsageDetail_20' ) end [2025-01-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169612', 'tblTempVendorCDR_20' ) start [2025-01-04 01:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169612', 'tblTempVendorCDR_20' ) end [2025-01-04 01:46:19] Production.INFO: ProcessCDR(1,14169612,1,1,2) [2025-01-04 01:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169612', 'tblTempUsageDetail_20' ) start [2025-01-04 01:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169612', 'tblTempUsageDetail_20' ) end [2025-01-04 01:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:46:22] Production.INFO: ==25302== Releasing lock... [2025-01-04 01:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:46:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:47:05 [end_date_ymd] => 2025-01-04 01:47:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:47:05' and `end` < '2025-01-04 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-04 01:47:17] Production.INFO: count ==363 [2025-01-04 01:47:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:47:05 - End Time 2025-01-04 01:47:05 [2025-01-04 01:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169617', 'tblTempUsageDetail_20' ) start [2025-01-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169617', 'tblTempUsageDetail_20' ) end [2025-01-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169617', 'tblTempVendorCDR_20' ) start [2025-01-04 01:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169617', 'tblTempVendorCDR_20' ) end [2025-01-04 01:47:17] Production.INFO: ProcessCDR(1,14169617,1,1,2) [2025-01-04 01:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169617', 'tblTempUsageDetail_20' ) start [2025-01-04 01:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169617', 'tblTempUsageDetail_20' ) end [2025-01-04 01:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:47:20] Production.INFO: ==25377== Releasing lock... [2025-01-04 01:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:47:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:48:05 [end_date_ymd] => 2025-01-04 01:48:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:48:05' and `end` < '2025-01-04 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-04 01:48:18] Production.INFO: count ==363 [2025-01-04 01:48:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:48:05 - End Time 2025-01-04 01:48:05 [2025-01-04 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169622', 'tblTempUsageDetail_20' ) start [2025-01-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169622', 'tblTempUsageDetail_20' ) end [2025-01-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169622', 'tblTempVendorCDR_20' ) start [2025-01-04 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169622', 'tblTempVendorCDR_20' ) end [2025-01-04 01:48:18] Production.INFO: ProcessCDR(1,14169622,1,1,2) [2025-01-04 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169622', 'tblTempUsageDetail_20' ) start [2025-01-04 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169622', 'tblTempUsageDetail_20' ) end [2025-01-04 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:48:21] Production.INFO: ==25447== Releasing lock... [2025-01-04 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:48:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:49:04 [end_date_ymd] => 2025-01-04 01:49:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:49:04' and `end` < '2025-01-04 01: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-04 01:49:17] Production.INFO: count ==363 [2025-01-04 01:49:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:49:04 - End Time 2025-01-04 01:49:04 [2025-01-04 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169627', 'tblTempUsageDetail_20' ) start [2025-01-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169627', 'tblTempUsageDetail_20' ) end [2025-01-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169627', 'tblTempVendorCDR_20' ) start [2025-01-04 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169627', 'tblTempVendorCDR_20' ) end [2025-01-04 01:49:17] Production.INFO: ProcessCDR(1,14169627,1,1,2) [2025-01-04 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169627', 'tblTempUsageDetail_20' ) start [2025-01-04 01:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169627', 'tblTempUsageDetail_20' ) end [2025-01-04 01:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:49:20] Production.INFO: ==25519== Releasing lock... [2025-01-04 01:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:49:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:50:05 [end_date_ymd] => 2025-01-04 01:50:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:50:05' and `end` < '2025-01-04 01: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-04 01:50:18] Production.INFO: count ==369 [2025-01-04 01:50:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:50:05 - End Time 2025-01-04 01:50:05 [2025-01-04 01:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169632', 'tblTempUsageDetail_20' ) start [2025-01-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169632', 'tblTempUsageDetail_20' ) end [2025-01-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169632', 'tblTempVendorCDR_20' ) start [2025-01-04 01:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169632', 'tblTempVendorCDR_20' ) end [2025-01-04 01:50:18] Production.INFO: ProcessCDR(1,14169632,1,1,2) [2025-01-04 01:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169632', 'tblTempUsageDetail_20' ) start [2025-01-04 01:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169632', 'tblTempUsageDetail_20' ) end [2025-01-04 01:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:50:21] Production.INFO: ==25594== Releasing lock... [2025-01-04 01:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:50:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:51:04 [end_date_ymd] => 2025-01-04 01:51:04 [RateCDR] => 1 ) [2025-01-04 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-03 22:51:04' and `end` < '2025-01-04 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-04 01:51:17] Production.INFO: count ==374 [2025-01-04 01:51:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:51:04 - End Time 2025-01-04 01:51:04 [2025-01-04 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169638', 'tblTempUsageDetail_20' ) start [2025-01-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169638', 'tblTempUsageDetail_20' ) end [2025-01-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169638', 'tblTempVendorCDR_20' ) start [2025-01-04 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169638', 'tblTempVendorCDR_20' ) end [2025-01-04 01:51:17] Production.INFO: ProcessCDR(1,14169638,1,1,2) [2025-01-04 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169638', 'tblTempUsageDetail_20' ) start [2025-01-04 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169638', 'tblTempUsageDetail_20' ) end [2025-01-04 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:51:20] Production.INFO: ==25666== Releasing lock... [2025-01-04 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:51:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:52:05 [end_date_ymd] => 2025-01-04 01:52:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:52:05' and `end` < '2025-01-04 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-04 01:52:17] Production.INFO: count ==374 [2025-01-04 01:52:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:52:05 - End Time 2025-01-04 01:52:05 [2025-01-04 01:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169643', 'tblTempUsageDetail_20' ) start [2025-01-04 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169643', 'tblTempUsageDetail_20' ) end [2025-01-04 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169643', 'tblTempVendorCDR_20' ) start [2025-01-04 01:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169643', 'tblTempVendorCDR_20' ) end [2025-01-04 01:52:17] Production.INFO: ProcessCDR(1,14169643,1,1,2) [2025-01-04 01:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169643', 'tblTempUsageDetail_20' ) start [2025-01-04 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169643', 'tblTempUsageDetail_20' ) end [2025-01-04 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:52:21] Production.INFO: ==25739== Releasing lock... [2025-01-04 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:52:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 01:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:53:06 [end_date_ymd] => 2025-01-04 01:53:06 [RateCDR] => 1 ) [2025-01-04 01:53: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-03 22:53:06' and `end` < '2025-01-04 01:53: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-04 01:53:19] Production.INFO: count ==372 [2025-01-04 01:53:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:53:06 - End Time 2025-01-04 01:53:06 [2025-01-04 01:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169648', 'tblTempUsageDetail_20' ) start [2025-01-04 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169648', 'tblTempUsageDetail_20' ) end [2025-01-04 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169648', 'tblTempVendorCDR_20' ) start [2025-01-04 01:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169648', 'tblTempVendorCDR_20' ) end [2025-01-04 01:53:19] Production.INFO: ProcessCDR(1,14169648,1,1,2) [2025-01-04 01:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169648', 'tblTempUsageDetail_20' ) start [2025-01-04 01:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169648', 'tblTempUsageDetail_20' ) end [2025-01-04 01:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:53:23] Production.INFO: ==25810== Releasing lock... [2025-01-04 01:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:53:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 01:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:54:04 [end_date_ymd] => 2025-01-04 01:54:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:54:04' and `end` < '2025-01-04 01: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-04 01:54:17] Production.INFO: count ==369 [2025-01-04 01:54:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:54:04 - End Time 2025-01-04 01:54:04 [2025-01-04 01:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169653', 'tblTempUsageDetail_20' ) start [2025-01-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169653', 'tblTempUsageDetail_20' ) end [2025-01-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169653', 'tblTempVendorCDR_20' ) start [2025-01-04 01:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169653', 'tblTempVendorCDR_20' ) end [2025-01-04 01:54:17] Production.INFO: ProcessCDR(1,14169653,1,1,2) [2025-01-04 01:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169653', 'tblTempUsageDetail_20' ) start [2025-01-04 01:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169653', 'tblTempUsageDetail_20' ) end [2025-01-04 01:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:54:20] Production.INFO: ==25882== Releasing lock... [2025-01-04 01:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:55:05 [end_date_ymd] => 2025-01-04 01:55:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:55:05' and `end` < '2025-01-04 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-04 01:55:18] Production.INFO: count ==368 [2025-01-04 01:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 22:55:05 - End Time 2025-01-04 01:55:05 [2025-01-04 01:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169658', 'tblTempUsageDetail_20' ) start [2025-01-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169658', 'tblTempUsageDetail_20' ) end [2025-01-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169658', 'tblTempVendorCDR_20' ) start [2025-01-04 01:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169658', 'tblTempVendorCDR_20' ) end [2025-01-04 01:55:18] Production.INFO: ProcessCDR(1,14169658,1,1,2) [2025-01-04 01:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169658', 'tblTempUsageDetail_20' ) start [2025-01-04 01:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169658', 'tblTempUsageDetail_20' ) end [2025-01-04 01:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:55:21] Production.INFO: ==25955== Releasing lock... [2025-01-04 01:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 01:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:56:04 [end_date_ymd] => 2025-01-04 01:56:04 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:56:04' and `end` < '2025-01-04 01: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-04 01:56:17] Production.INFO: count ==363 [2025-01-04 01:56:17] Production.ERROR: pbx CDR StartTime 2025-01-03 22:56:04 - End Time 2025-01-04 01:56:04 [2025-01-04 01:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169663', 'tblTempUsageDetail_20' ) start [2025-01-04 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169663', 'tblTempUsageDetail_20' ) end [2025-01-04 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169663', 'tblTempVendorCDR_20' ) start [2025-01-04 01:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169663', 'tblTempVendorCDR_20' ) end [2025-01-04 01:56:17] Production.INFO: ProcessCDR(1,14169663,1,1,2) [2025-01-04 01:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169663', 'tblTempUsageDetail_20' ) start [2025-01-04 01:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169663', 'tblTempUsageDetail_20' ) end [2025-01-04 01:56:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:56:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:56:20] Production.INFO: ==26027== Releasing lock... [2025-01-04 01:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:56:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:57:05 [end_date_ymd] => 2025-01-04 01:57:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:57:05' and `end` < '2025-01-04 01: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-04 01:57:20] Production.INFO: count ==362 [2025-01-04 01:57:21] Production.ERROR: pbx CDR StartTime 2025-01-03 22:57:05 - End Time 2025-01-04 01:57:05 [2025-01-04 01:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169668', 'tblTempUsageDetail_20' ) start [2025-01-04 01:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169668', 'tblTempUsageDetail_20' ) end [2025-01-04 01:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169668', 'tblTempVendorCDR_20' ) start [2025-01-04 01:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169668', 'tblTempVendorCDR_20' ) end [2025-01-04 01:57:21] Production.INFO: ProcessCDR(1,14169668,1,1,2) [2025-01-04 01:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169668', 'tblTempUsageDetail_20' ) start [2025-01-04 01:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169668', 'tblTempUsageDetail_20' ) end [2025-01-04 01:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:57:24] Production.INFO: ==26140== Releasing lock... [2025-01-04 01:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:57:24] Production.INFO: 30 MB #Memory Used# [2025-01-04 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:58:05 [end_date_ymd] => 2025-01-04 01:58:05 [RateCDR] => 1 ) [2025-01-04 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-03 22:58:05' and `end` < '2025-01-04 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-04 01:58:19] Production.INFO: count ==362 [2025-01-04 01:58:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:58:05 - End Time 2025-01-04 01:58:05 [2025-01-04 01:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169673', 'tblTempUsageDetail_20' ) start [2025-01-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169673', 'tblTempUsageDetail_20' ) end [2025-01-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169673', 'tblTempVendorCDR_20' ) start [2025-01-04 01:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169673', 'tblTempVendorCDR_20' ) end [2025-01-04 01:58:19] Production.INFO: ProcessCDR(1,14169673,1,1,2) [2025-01-04 01:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169673', 'tblTempUsageDetail_20' ) start [2025-01-04 01:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169673', 'tblTempUsageDetail_20' ) end [2025-01-04 01:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:58:22] Production.INFO: ==26213== Releasing lock... [2025-01-04 01:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:58:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 22:59:05 [end_date_ymd] => 2025-01-04 01:59:05 [RateCDR] => 1 ) [2025-01-04 01: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-03 22:59:05' and `end` < '2025-01-04 01: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-04 01:59:19] Production.INFO: count ==362 [2025-01-04 01:59:19] Production.ERROR: pbx CDR StartTime 2025-01-03 22:59:05 - End Time 2025-01-04 01:59:05 [2025-01-04 01:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169678', 'tblTempUsageDetail_20' ) start [2025-01-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169678', 'tblTempUsageDetail_20' ) end [2025-01-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169678', 'tblTempVendorCDR_20' ) start [2025-01-04 01:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169678', 'tblTempVendorCDR_20' ) end [2025-01-04 01:59:19] Production.INFO: ProcessCDR(1,14169678,1,1,2) [2025-01-04 01:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 01:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169678', 'tblTempUsageDetail_20' ) start [2025-01-04 01:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169678', 'tblTempUsageDetail_20' ) end [2025-01-04 01:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 01:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 01:59:22] Production.INFO: ==26285== Releasing lock... [2025-01-04 01:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 01:59:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:00:06 [end_date_ymd] => 2025-01-04 02:00:06 [RateCDR] => 1 ) [2025-01-04 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-03 23:00:06' and `end` < '2025-01-04 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-04 02:00:19] Production.INFO: count ==375 [2025-01-04 02:00:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:00:06 - End Time 2025-01-04 02:00:06 [2025-01-04 02:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169684', 'tblTempUsageDetail_20' ) start [2025-01-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169684', 'tblTempUsageDetail_20' ) end [2025-01-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169684', 'tblTempVendorCDR_20' ) start [2025-01-04 02:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169684', 'tblTempVendorCDR_20' ) end [2025-01-04 02:00:19] Production.INFO: ProcessCDR(1,14169684,1,1,2) [2025-01-04 02:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169684', 'tblTempUsageDetail_20' ) start [2025-01-04 02:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169684', 'tblTempUsageDetail_20' ) end [2025-01-04 02:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:00:23] Production.INFO: ==26374== Releasing lock... [2025-01-04 02:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:00:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:01:05 [end_date_ymd] => 2025-01-04 02:01:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:01:05' and `end` < '2025-01-04 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-04 02:01:17] Production.INFO: count ==386 [2025-01-04 02:01:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:01:05 - End Time 2025-01-04 02:01:05 [2025-01-04 02:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169689', 'tblTempUsageDetail_20' ) start [2025-01-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169689', 'tblTempUsageDetail_20' ) end [2025-01-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169689', 'tblTempVendorCDR_20' ) start [2025-01-04 02:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169689', 'tblTempVendorCDR_20' ) end [2025-01-04 02:01:17] Production.INFO: ProcessCDR(1,14169689,1,1,2) [2025-01-04 02:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169689', 'tblTempUsageDetail_20' ) start [2025-01-04 02:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169689', 'tblTempUsageDetail_20' ) end [2025-01-04 02:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:01:22] Production.INFO: ==26553== Releasing lock... [2025-01-04 02:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 02:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:02:05 [end_date_ymd] => 2025-01-04 02:02:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:02:05' and `end` < '2025-01-04 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-04 02:02:18] Production.INFO: count ==383 [2025-01-04 02:02:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:02:05 - End Time 2025-01-04 02:02:05 [2025-01-04 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169694', 'tblTempUsageDetail_20' ) start [2025-01-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169694', 'tblTempUsageDetail_20' ) end [2025-01-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169694', 'tblTempVendorCDR_20' ) start [2025-01-04 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169694', 'tblTempVendorCDR_20' ) end [2025-01-04 02:02:18] Production.INFO: ProcessCDR(1,14169694,1,1,2) [2025-01-04 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169694', 'tblTempUsageDetail_20' ) start [2025-01-04 02:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169694', 'tblTempUsageDetail_20' ) end [2025-01-04 02:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:02:21] Production.INFO: ==26629== Releasing lock... [2025-01-04 02:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:03:04 [end_date_ymd] => 2025-01-04 02:03:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:03:04' and `end` < '2025-01-04 02: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-04 02:03:17] Production.INFO: count ==382 [2025-01-04 02:03:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:03:04 - End Time 2025-01-04 02:03:04 [2025-01-04 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169699', 'tblTempUsageDetail_20' ) start [2025-01-04 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169699', 'tblTempUsageDetail_20' ) end [2025-01-04 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169699', 'tblTempVendorCDR_20' ) start [2025-01-04 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169699', 'tblTempVendorCDR_20' ) end [2025-01-04 02:03:17] Production.INFO: ProcessCDR(1,14169699,1,1,2) [2025-01-04 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169699', 'tblTempUsageDetail_20' ) start [2025-01-04 02:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169699', 'tblTempUsageDetail_20' ) end [2025-01-04 02:03:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:03:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:03:20] Production.INFO: ==26703== Releasing lock... [2025-01-04 02:03:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:03:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:04:06 [end_date_ymd] => 2025-01-04 02:04:06 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:04:06' and `end` < '2025-01-04 02: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-04 02:04:19] Production.INFO: count ==382 [2025-01-04 02:04:20] Production.ERROR: pbx CDR StartTime 2025-01-03 23:04:06 - End Time 2025-01-04 02:04:06 [2025-01-04 02:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169704', 'tblTempUsageDetail_20' ) start [2025-01-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169704', 'tblTempUsageDetail_20' ) end [2025-01-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169704', 'tblTempVendorCDR_20' ) start [2025-01-04 02:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169704', 'tblTempVendorCDR_20' ) end [2025-01-04 02:04:20] Production.INFO: ProcessCDR(1,14169704,1,1,2) [2025-01-04 02:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169704', 'tblTempUsageDetail_20' ) start [2025-01-04 02:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169704', 'tblTempUsageDetail_20' ) end [2025-01-04 02:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:04:24] Production.INFO: ==26781== Releasing lock... [2025-01-04 02:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:04:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:05:04 [end_date_ymd] => 2025-01-04 02:05:04 [RateCDR] => 1 ) [2025-01-04 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-03 23:05:04' and `end` < '2025-01-04 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-04 02:05:17] Production.INFO: count ==382 [2025-01-04 02:05:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:05:04 - End Time 2025-01-04 02:05:04 [2025-01-04 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169709', 'tblTempUsageDetail_20' ) start [2025-01-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169709', 'tblTempUsageDetail_20' ) end [2025-01-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169709', 'tblTempVendorCDR_20' ) start [2025-01-04 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169709', 'tblTempVendorCDR_20' ) end [2025-01-04 02:05:17] Production.INFO: ProcessCDR(1,14169709,1,1,2) [2025-01-04 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169709', 'tblTempUsageDetail_20' ) start [2025-01-04 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169709', 'tblTempUsageDetail_20' ) end [2025-01-04 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:05:20] Production.INFO: ==26862== Releasing lock... [2025-01-04 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:05:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:06:05 [end_date_ymd] => 2025-01-04 02:06:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:06:05' and `end` < '2025-01-04 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-04 02:06:18] Production.INFO: count ==380 [2025-01-04 02:06:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:06:05 - End Time 2025-01-04 02:06:05 [2025-01-04 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169714', 'tblTempUsageDetail_20' ) start [2025-01-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169714', 'tblTempUsageDetail_20' ) end [2025-01-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169714', 'tblTempVendorCDR_20' ) start [2025-01-04 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169714', 'tblTempVendorCDR_20' ) end [2025-01-04 02:06:18] Production.INFO: ProcessCDR(1,14169714,1,1,2) [2025-01-04 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169714', 'tblTempUsageDetail_20' ) start [2025-01-04 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169714', 'tblTempUsageDetail_20' ) end [2025-01-04 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:06:21] Production.INFO: ==26942== Releasing lock... [2025-01-04 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:06:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:07:05 [end_date_ymd] => 2025-01-04 02:07:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:07:05' and `end` < '2025-01-04 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-04 02:07:17] Production.INFO: count ==379 [2025-01-04 02:07:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:07:05 - End Time 2025-01-04 02:07:05 [2025-01-04 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169719', 'tblTempUsageDetail_20' ) start [2025-01-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169719', 'tblTempUsageDetail_20' ) end [2025-01-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169719', 'tblTempVendorCDR_20' ) start [2025-01-04 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169719', 'tblTempVendorCDR_20' ) end [2025-01-04 02:07:17] Production.INFO: ProcessCDR(1,14169719,1,1,2) [2025-01-04 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169719', 'tblTempUsageDetail_20' ) start [2025-01-04 02:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169719', 'tblTempUsageDetail_20' ) end [2025-01-04 02:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:07:20] Production.INFO: ==27020== Releasing lock... [2025-01-04 02:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:07:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:08:05 [end_date_ymd] => 2025-01-04 02:08:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:08:05' and `end` < '2025-01-04 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-04 02:08:17] Production.INFO: count ==379 [2025-01-04 02:08:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:08:05 - End Time 2025-01-04 02:08:05 [2025-01-04 02:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169724', 'tblTempUsageDetail_20' ) start [2025-01-04 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169724', 'tblTempUsageDetail_20' ) end [2025-01-04 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169724', 'tblTempVendorCDR_20' ) start [2025-01-04 02:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169724', 'tblTempVendorCDR_20' ) end [2025-01-04 02:08:17] Production.INFO: ProcessCDR(1,14169724,1,1,2) [2025-01-04 02:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169724', 'tblTempUsageDetail_20' ) start [2025-01-04 02:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169724', 'tblTempUsageDetail_20' ) end [2025-01-04 02:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:08:20] Production.INFO: ==27096== Releasing lock... [2025-01-04 02:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:08:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:09:04 [end_date_ymd] => 2025-01-04 02:09:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:09:04' and `end` < '2025-01-04 02: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-04 02:09:19] Production.INFO: count ==378 [2025-01-04 02:09:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:09:04 - End Time 2025-01-04 02:09:04 [2025-01-04 02:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169729', 'tblTempUsageDetail_20' ) start [2025-01-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169729', 'tblTempUsageDetail_20' ) end [2025-01-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169729', 'tblTempVendorCDR_20' ) start [2025-01-04 02:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169729', 'tblTempVendorCDR_20' ) end [2025-01-04 02:09:19] Production.INFO: ProcessCDR(1,14169729,1,1,2) [2025-01-04 02:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169729', 'tblTempUsageDetail_20' ) start [2025-01-04 02:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169729', 'tblTempUsageDetail_20' ) end [2025-01-04 02:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:09:22] Production.INFO: ==27170== Releasing lock... [2025-01-04 02:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:09:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:10:05 [end_date_ymd] => 2025-01-04 02:10:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:10:05' and `end` < '2025-01-04 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-04 02:10:18] Production.INFO: count ==379 [2025-01-04 02:10:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:10:05 - End Time 2025-01-04 02:10:05 [2025-01-04 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169734', 'tblTempUsageDetail_20' ) start [2025-01-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169734', 'tblTempUsageDetail_20' ) end [2025-01-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169734', 'tblTempVendorCDR_20' ) start [2025-01-04 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169734', 'tblTempVendorCDR_20' ) end [2025-01-04 02:10:18] Production.INFO: ProcessCDR(1,14169734,1,1,2) [2025-01-04 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169734', 'tblTempUsageDetail_20' ) start [2025-01-04 02:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169734', 'tblTempUsageDetail_20' ) end [2025-01-04 02:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:10:21] Production.INFO: ==27249== Releasing lock... [2025-01-04 02:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:10:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:11:05 [end_date_ymd] => 2025-01-04 02:11:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:11:05' and `end` < '2025-01-04 02: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-04 02:11:19] Production.INFO: count ==388 [2025-01-04 02:11:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:11:05 - End Time 2025-01-04 02:11:05 [2025-01-04 02:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169740', 'tblTempUsageDetail_20' ) start [2025-01-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169740', 'tblTempUsageDetail_20' ) end [2025-01-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169740', 'tblTempVendorCDR_20' ) start [2025-01-04 02:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169740', 'tblTempVendorCDR_20' ) end [2025-01-04 02:11:19] Production.INFO: ProcessCDR(1,14169740,1,1,2) [2025-01-04 02:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169740', 'tblTempUsageDetail_20' ) start [2025-01-04 02:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169740', 'tblTempUsageDetail_20' ) end [2025-01-04 02:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:11:22] Production.INFO: ==27328== Releasing lock... [2025-01-04 02:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:11:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:12:04 [end_date_ymd] => 2025-01-04 02:12:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:12:04' and `end` < '2025-01-04 02: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-04 02:12:18] Production.INFO: count ==388 [2025-01-04 02:12:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:12:04 - End Time 2025-01-04 02:12:04 [2025-01-04 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169745', 'tblTempUsageDetail_20' ) start [2025-01-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169745', 'tblTempUsageDetail_20' ) end [2025-01-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169745', 'tblTempVendorCDR_20' ) start [2025-01-04 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169745', 'tblTempVendorCDR_20' ) end [2025-01-04 02:12:18] Production.INFO: ProcessCDR(1,14169745,1,1,2) [2025-01-04 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169745', 'tblTempUsageDetail_20' ) start [2025-01-04 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169745', 'tblTempUsageDetail_20' ) end [2025-01-04 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:12:21] Production.INFO: ==27408== Releasing lock... [2025-01-04 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:12:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:13:05 [end_date_ymd] => 2025-01-04 02:13:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:13:05' and `end` < '2025-01-04 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-04 02:13:18] Production.INFO: count ==388 [2025-01-04 02:13:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:13:05 - End Time 2025-01-04 02:13:05 [2025-01-04 02:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169748', 'tblTempUsageDetail_20' ) start [2025-01-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169748', 'tblTempUsageDetail_20' ) end [2025-01-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169748', 'tblTempVendorCDR_20' ) start [2025-01-04 02:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169748', 'tblTempVendorCDR_20' ) end [2025-01-04 02:13:18] Production.INFO: ProcessCDR(1,14169748,1,1,2) [2025-01-04 02:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169748', 'tblTempUsageDetail_20' ) start [2025-01-04 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169748', 'tblTempUsageDetail_20' ) end [2025-01-04 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:13:21] Production.INFO: ==27524== Releasing lock... [2025-01-04 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:13:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:14:04 [end_date_ymd] => 2025-01-04 02:14:04 [RateCDR] => 1 ) [2025-01-04 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-03 23:14:04' and `end` < '2025-01-04 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-04 02:14:17] Production.INFO: count ==388 [2025-01-04 02:14:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:14:04 - End Time 2025-01-04 02:14:04 [2025-01-04 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169755', 'tblTempUsageDetail_20' ) start [2025-01-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169755', 'tblTempUsageDetail_20' ) end [2025-01-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169755', 'tblTempVendorCDR_20' ) start [2025-01-04 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169755', 'tblTempVendorCDR_20' ) end [2025-01-04 02:14:17] Production.INFO: ProcessCDR(1,14169755,1,1,2) [2025-01-04 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169755', 'tblTempUsageDetail_20' ) start [2025-01-04 02:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169755', 'tblTempUsageDetail_20' ) end [2025-01-04 02:14:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:14:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:14:20] Production.INFO: ==27612== Releasing lock... [2025-01-04 02:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:14:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:15:05 [end_date_ymd] => 2025-01-04 02:15:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:15:05' and `end` < '2025-01-04 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-04 02:15:18] Production.INFO: count ==388 [2025-01-04 02:15:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:15:05 - End Time 2025-01-04 02:15:05 [2025-01-04 02:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169760', 'tblTempUsageDetail_20' ) start [2025-01-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169760', 'tblTempUsageDetail_20' ) end [2025-01-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169760', 'tblTempVendorCDR_20' ) start [2025-01-04 02:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169760', 'tblTempVendorCDR_20' ) end [2025-01-04 02:15:18] Production.INFO: ProcessCDR(1,14169760,1,1,2) [2025-01-04 02:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169760', 'tblTempUsageDetail_20' ) start [2025-01-04 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169760', 'tblTempUsageDetail_20' ) end [2025-01-04 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:15:21] Production.INFO: ==27716== Releasing lock... [2025-01-04 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:16:04 [end_date_ymd] => 2025-01-04 02:16:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:16:04' and `end` < '2025-01-04 02: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-04 02:16:18] Production.INFO: count ==388 [2025-01-04 02:16:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:16:04 - End Time 2025-01-04 02:16:04 [2025-01-04 02:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169765', 'tblTempUsageDetail_20' ) start [2025-01-04 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169765', 'tblTempUsageDetail_20' ) end [2025-01-04 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169765', 'tblTempVendorCDR_20' ) start [2025-01-04 02:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169765', 'tblTempVendorCDR_20' ) end [2025-01-04 02:16:18] Production.INFO: ProcessCDR(1,14169765,1,1,2) [2025-01-04 02:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169765', 'tblTempUsageDetail_20' ) start [2025-01-04 02:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169765', 'tblTempUsageDetail_20' ) end [2025-01-04 02:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:16:21] Production.INFO: ==27793== Releasing lock... [2025-01-04 02:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:16:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:17:04 [end_date_ymd] => 2025-01-04 02:17:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:17:04' and `end` < '2025-01-04 02: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-04 02:17:17] Production.INFO: count ==388 [2025-01-04 02:17:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:17:04 - End Time 2025-01-04 02:17:04 [2025-01-04 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169770', 'tblTempUsageDetail_20' ) start [2025-01-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169770', 'tblTempUsageDetail_20' ) end [2025-01-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169770', 'tblTempVendorCDR_20' ) start [2025-01-04 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169770', 'tblTempVendorCDR_20' ) end [2025-01-04 02:17:17] Production.INFO: ProcessCDR(1,14169770,1,1,2) [2025-01-04 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169770', 'tblTempUsageDetail_20' ) start [2025-01-04 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169770', 'tblTempUsageDetail_20' ) end [2025-01-04 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:17:20] Production.INFO: ==27886== Releasing lock... [2025-01-04 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:17:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:18:06 [end_date_ymd] => 2025-01-04 02:18:06 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:18:06' and `end` < '2025-01-04 02: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-04 02:18:18] Production.INFO: count ==387 [2025-01-04 02:18:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:18:06 - End Time 2025-01-04 02:18:06 [2025-01-04 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169775', 'tblTempUsageDetail_20' ) start [2025-01-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169775', 'tblTempUsageDetail_20' ) end [2025-01-04 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169775', 'tblTempVendorCDR_20' ) start [2025-01-04 02:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169775', 'tblTempVendorCDR_20' ) end [2025-01-04 02:18:19] Production.INFO: ProcessCDR(1,14169775,1,1,2) [2025-01-04 02:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169775', 'tblTempUsageDetail_20' ) start [2025-01-04 02:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169775', 'tblTempUsageDetail_20' ) end [2025-01-04 02:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:18:22] Production.INFO: ==27983== Releasing lock... [2025-01-04 02:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:18:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:19:05 [end_date_ymd] => 2025-01-04 02:19:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:19:05' and `end` < '2025-01-04 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-04 02:19:19] Production.INFO: count ==387 [2025-01-04 02:19:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:19:05 - End Time 2025-01-04 02:19:05 [2025-01-04 02:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169780', 'tblTempUsageDetail_20' ) start [2025-01-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169780', 'tblTempUsageDetail_20' ) end [2025-01-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169780', 'tblTempVendorCDR_20' ) start [2025-01-04 02:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169780', 'tblTempVendorCDR_20' ) end [2025-01-04 02:19:19] Production.INFO: ProcessCDR(1,14169780,1,1,2) [2025-01-04 02:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169780', 'tblTempUsageDetail_20' ) start [2025-01-04 02:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169780', 'tblTempUsageDetail_20' ) end [2025-01-04 02:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:19:23] Production.INFO: ==28078== Releasing lock... [2025-01-04 02:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:19:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:20:05 [end_date_ymd] => 2025-01-04 02:20:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:20:05' and `end` < '2025-01-04 02: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-04 02:20:18] Production.INFO: count ==386 [2025-01-04 02:20:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:20:05 - End Time 2025-01-04 02:20:05 [2025-01-04 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169785', 'tblTempUsageDetail_20' ) start [2025-01-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169785', 'tblTempUsageDetail_20' ) end [2025-01-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169785', 'tblTempVendorCDR_20' ) start [2025-01-04 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169785', 'tblTempVendorCDR_20' ) end [2025-01-04 02:20:18] Production.INFO: ProcessCDR(1,14169785,1,1,2) [2025-01-04 02:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169785', 'tblTempUsageDetail_20' ) start [2025-01-04 02:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169785', 'tblTempUsageDetail_20' ) end [2025-01-04 02:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:20:21] Production.INFO: ==28183== Releasing lock... [2025-01-04 02:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:20:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:21:05 [end_date_ymd] => 2025-01-04 02:21:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:21:05' and `end` < '2025-01-04 02: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-04 02:21:20] Production.INFO: count ==386 [2025-01-04 02:21:20] Production.ERROR: pbx CDR StartTime 2025-01-03 23:21:05 - End Time 2025-01-04 02:21:05 [2025-01-04 02:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169791', 'tblTempUsageDetail_20' ) start [2025-01-04 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169791', 'tblTempUsageDetail_20' ) end [2025-01-04 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169791', 'tblTempVendorCDR_20' ) start [2025-01-04 02:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169791', 'tblTempVendorCDR_20' ) end [2025-01-04 02:21:20] Production.INFO: ProcessCDR(1,14169791,1,1,2) [2025-01-04 02:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169791', 'tblTempUsageDetail_20' ) start [2025-01-04 02:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169791', 'tblTempUsageDetail_20' ) end [2025-01-04 02:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:21:23] Production.INFO: ==28284== Releasing lock... [2025-01-04 02:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:21:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:22:05 [end_date_ymd] => 2025-01-04 02:22:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:22:05' and `end` < '2025-01-04 02: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-04 02:22:17] Production.INFO: count ==386 [2025-01-04 02:22:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:22:05 - End Time 2025-01-04 02:22:05 [2025-01-04 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169792', 'tblTempUsageDetail_20' ) start [2025-01-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169792', 'tblTempUsageDetail_20' ) end [2025-01-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169792', 'tblTempVendorCDR_20' ) start [2025-01-04 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169792', 'tblTempVendorCDR_20' ) end [2025-01-04 02:22:17] Production.INFO: ProcessCDR(1,14169792,1,1,2) [2025-01-04 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169792', 'tblTempUsageDetail_20' ) start [2025-01-04 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169792', 'tblTempUsageDetail_20' ) end [2025-01-04 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:22:21] Production.INFO: ==28385== Releasing lock... [2025-01-04 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:22:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:23:04 [end_date_ymd] => 2025-01-04 02:23:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:23:04' and `end` < '2025-01-04 02: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-04 02:23:17] Production.INFO: count ==386 [2025-01-04 02:23:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:23:04 - End Time 2025-01-04 02:23:04 [2025-01-04 02:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169801', 'tblTempUsageDetail_20' ) start [2025-01-04 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169801', 'tblTempUsageDetail_20' ) end [2025-01-04 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169801', 'tblTempVendorCDR_20' ) start [2025-01-04 02:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169801', 'tblTempVendorCDR_20' ) end [2025-01-04 02:23:17] Production.INFO: ProcessCDR(1,14169801,1,1,2) [2025-01-04 02:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169801', 'tblTempUsageDetail_20' ) start [2025-01-04 02:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169801', 'tblTempUsageDetail_20' ) end [2025-01-04 02:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:23:20] Production.INFO: ==28480== Releasing lock... [2025-01-04 02:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:24:05 [end_date_ymd] => 2025-01-04 02:24:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:24:05' and `end` < '2025-01-04 02: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-04 02:24:19] Production.INFO: count ==390 [2025-01-04 02:24:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:24:05 - End Time 2025-01-04 02:24:05 [2025-01-04 02:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169806', 'tblTempUsageDetail_20' ) start [2025-01-04 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169806', 'tblTempUsageDetail_20' ) end [2025-01-04 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169806', 'tblTempVendorCDR_20' ) start [2025-01-04 02:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169806', 'tblTempVendorCDR_20' ) end [2025-01-04 02:24:19] Production.INFO: ProcessCDR(1,14169806,1,1,2) [2025-01-04 02:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169806', 'tblTempUsageDetail_20' ) start [2025-01-04 02:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169806', 'tblTempUsageDetail_20' ) end [2025-01-04 02:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:24:23] Production.INFO: ==28581== Releasing lock... [2025-01-04 02:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:24:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:25:04 [end_date_ymd] => 2025-01-04 02:25:04 [RateCDR] => 1 ) [2025-01-04 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-03 23:25:04' and `end` < '2025-01-04 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-04 02:25:17] Production.INFO: count ==388 [2025-01-04 02:25:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:25:04 - End Time 2025-01-04 02:25:04 [2025-01-04 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169811', 'tblTempUsageDetail_20' ) start [2025-01-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169811', 'tblTempUsageDetail_20' ) end [2025-01-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169811', 'tblTempVendorCDR_20' ) start [2025-01-04 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169811', 'tblTempVendorCDR_20' ) end [2025-01-04 02:25:17] Production.INFO: ProcessCDR(1,14169811,1,1,2) [2025-01-04 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169811', 'tblTempUsageDetail_20' ) start [2025-01-04 02:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169811', 'tblTempUsageDetail_20' ) end [2025-01-04 02:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:25:20] Production.INFO: ==28667== Releasing lock... [2025-01-04 02:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:25:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:26:05 [end_date_ymd] => 2025-01-04 02:26:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:26:05' and `end` < '2025-01-04 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-04 02:26:18] Production.INFO: count ==387 [2025-01-04 02:26:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:26:05 - End Time 2025-01-04 02:26:05 [2025-01-04 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169816', 'tblTempUsageDetail_20' ) start [2025-01-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169816', 'tblTempUsageDetail_20' ) end [2025-01-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169816', 'tblTempVendorCDR_20' ) start [2025-01-04 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169816', 'tblTempVendorCDR_20' ) end [2025-01-04 02:26:18] Production.INFO: ProcessCDR(1,14169816,1,1,2) [2025-01-04 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169816', 'tblTempUsageDetail_20' ) start [2025-01-04 02:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169816', 'tblTempUsageDetail_20' ) end [2025-01-04 02:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:26:22] Production.INFO: ==28768== Releasing lock... [2025-01-04 02:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:26:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:27:05 [end_date_ymd] => 2025-01-04 02:27:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:27:05' and `end` < '2025-01-04 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-04 02:27:18] Production.INFO: count ==386 [2025-01-04 02:27:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:27:05 - End Time 2025-01-04 02:27:05 [2025-01-04 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169821', 'tblTempUsageDetail_20' ) start [2025-01-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169821', 'tblTempUsageDetail_20' ) end [2025-01-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169821', 'tblTempVendorCDR_20' ) start [2025-01-04 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169821', 'tblTempVendorCDR_20' ) end [2025-01-04 02:27:18] Production.INFO: ProcessCDR(1,14169821,1,1,2) [2025-01-04 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169821', 'tblTempUsageDetail_20' ) start [2025-01-04 02:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169821', 'tblTempUsageDetail_20' ) end [2025-01-04 02:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:27:21] Production.INFO: ==28867== Releasing lock... [2025-01-04 02:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:28:05 [end_date_ymd] => 2025-01-04 02:28:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:28:05' and `end` < '2025-01-04 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-04 02:28:20] Production.INFO: count ==384 [2025-01-04 02:28:20] Production.ERROR: pbx CDR StartTime 2025-01-03 23:28:05 - End Time 2025-01-04 02:28:05 [2025-01-04 02:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169826', 'tblTempUsageDetail_20' ) start [2025-01-04 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169826', 'tblTempUsageDetail_20' ) end [2025-01-04 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169826', 'tblTempVendorCDR_20' ) start [2025-01-04 02:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169826', 'tblTempVendorCDR_20' ) end [2025-01-04 02:28:20] Production.INFO: ProcessCDR(1,14169826,1,1,2) [2025-01-04 02:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169826', 'tblTempUsageDetail_20' ) start [2025-01-04 02:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169826', 'tblTempUsageDetail_20' ) end [2025-01-04 02:28:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:28:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:28:24] Production.INFO: ==28998== Releasing lock... [2025-01-04 02:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:28:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:29:05 [end_date_ymd] => 2025-01-04 02:29:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:29:05' and `end` < '2025-01-04 02: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-04 02:29:18] Production.INFO: count ==384 [2025-01-04 02:29:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:29:05 - End Time 2025-01-04 02:29:05 [2025-01-04 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169831', 'tblTempUsageDetail_20' ) start [2025-01-04 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169831', 'tblTempUsageDetail_20' ) end [2025-01-04 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169831', 'tblTempVendorCDR_20' ) start [2025-01-04 02:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169831', 'tblTempVendorCDR_20' ) end [2025-01-04 02:29:19] Production.INFO: ProcessCDR(1,14169831,1,1,2) [2025-01-04 02:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169831', 'tblTempUsageDetail_20' ) start [2025-01-04 02:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169831', 'tblTempUsageDetail_20' ) end [2025-01-04 02:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:29:22] Production.INFO: ==29094== Releasing lock... [2025-01-04 02:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:30:05 [end_date_ymd] => 2025-01-04 02:30:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:30:05' and `end` < '2025-01-04 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-04 02:30:18] Production.INFO: count ==389 [2025-01-04 02:30:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:30:05 - End Time 2025-01-04 02:30:05 [2025-01-04 02:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169837', 'tblTempUsageDetail_20' ) start [2025-01-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169837', 'tblTempUsageDetail_20' ) end [2025-01-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169837', 'tblTempVendorCDR_20' ) start [2025-01-04 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169837', 'tblTempVendorCDR_20' ) end [2025-01-04 02:30:18] Production.INFO: ProcessCDR(1,14169837,1,1,2) [2025-01-04 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169837', 'tblTempUsageDetail_20' ) start [2025-01-04 02:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169837', 'tblTempUsageDetail_20' ) end [2025-01-04 02:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:30:22] Production.INFO: ==29191== Releasing lock... [2025-01-04 02:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 02:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:31:05 [end_date_ymd] => 2025-01-04 02:31:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:31:05' and `end` < '2025-01-04 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-04 02:31:18] Production.INFO: count ==403 [2025-01-04 02:31:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:31:05 - End Time 2025-01-04 02:31:05 [2025-01-04 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169842', 'tblTempUsageDetail_20' ) start [2025-01-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169842', 'tblTempUsageDetail_20' ) end [2025-01-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169842', 'tblTempVendorCDR_20' ) start [2025-01-04 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169842', 'tblTempVendorCDR_20' ) end [2025-01-04 02:31:18] Production.INFO: ProcessCDR(1,14169842,1,1,2) [2025-01-04 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169842', 'tblTempUsageDetail_20' ) start [2025-01-04 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169842', 'tblTempUsageDetail_20' ) end [2025-01-04 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:31:21] Production.INFO: ==29270== Releasing lock... [2025-01-04 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:32:04 [end_date_ymd] => 2025-01-04 02:32:04 [RateCDR] => 1 ) [2025-01-04 02:32: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-03 23:32:04' and `end` < '2025-01-04 02:32: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-04 02:32:17] Production.INFO: count ==403 [2025-01-04 02:32:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:32:04 - End Time 2025-01-04 02:32:04 [2025-01-04 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169847', 'tblTempUsageDetail_20' ) start [2025-01-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169847', 'tblTempUsageDetail_20' ) end [2025-01-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169847', 'tblTempVendorCDR_20' ) start [2025-01-04 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169847', 'tblTempVendorCDR_20' ) end [2025-01-04 02:32:17] Production.INFO: ProcessCDR(1,14169847,1,1,2) [2025-01-04 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169847', 'tblTempUsageDetail_20' ) start [2025-01-04 02:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169847', 'tblTempUsageDetail_20' ) end [2025-01-04 02:32:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:32:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:32:20] Production.INFO: ==29359== Releasing lock... [2025-01-04 02:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:32:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:33:05 [end_date_ymd] => 2025-01-04 02:33:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:33:05' and `end` < '2025-01-04 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-04 02:33:18] Production.INFO: count ==406 [2025-01-04 02:33:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:33:05 - End Time 2025-01-04 02:33:05 [2025-01-04 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169852', 'tblTempUsageDetail_20' ) start [2025-01-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169852', 'tblTempUsageDetail_20' ) end [2025-01-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169852', 'tblTempVendorCDR_20' ) start [2025-01-04 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169852', 'tblTempVendorCDR_20' ) end [2025-01-04 02:33:18] Production.INFO: ProcessCDR(1,14169852,1,1,2) [2025-01-04 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169852', 'tblTempUsageDetail_20' ) start [2025-01-04 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169852', 'tblTempUsageDetail_20' ) end [2025-01-04 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:33:21] Production.INFO: ==29429== Releasing lock... [2025-01-04 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:34:05 [end_date_ymd] => 2025-01-04 02:34:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:34:05' and `end` < '2025-01-04 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-04 02:34:17] Production.INFO: count ==405 [2025-01-04 02:34:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:34:05 - End Time 2025-01-04 02:34:05 [2025-01-04 02:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169857', 'tblTempUsageDetail_20' ) start [2025-01-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169857', 'tblTempUsageDetail_20' ) end [2025-01-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169857', 'tblTempVendorCDR_20' ) start [2025-01-04 02:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169857', 'tblTempVendorCDR_20' ) end [2025-01-04 02:34:17] Production.INFO: ProcessCDR(1,14169857,1,1,2) [2025-01-04 02:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169857', 'tblTempUsageDetail_20' ) start [2025-01-04 02:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169857', 'tblTempUsageDetail_20' ) end [2025-01-04 02:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:34:20] Production.INFO: ==29501== Releasing lock... [2025-01-04 02:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:34:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:35:05 [end_date_ymd] => 2025-01-04 02:35:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:35:05' and `end` < '2025-01-04 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-04 02:35:17] Production.INFO: count ==405 [2025-01-04 02:35:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:35:05 - End Time 2025-01-04 02:35:05 [2025-01-04 02:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169862', 'tblTempUsageDetail_20' ) start [2025-01-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169862', 'tblTempUsageDetail_20' ) end [2025-01-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169862', 'tblTempVendorCDR_20' ) start [2025-01-04 02:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169862', 'tblTempVendorCDR_20' ) end [2025-01-04 02:35:17] Production.INFO: ProcessCDR(1,14169862,1,1,2) [2025-01-04 02:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169862', 'tblTempUsageDetail_20' ) start [2025-01-04 02:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169862', 'tblTempUsageDetail_20' ) end [2025-01-04 02:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:35:20] Production.INFO: ==29574== Releasing lock... [2025-01-04 02:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:35:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:36:05 [end_date_ymd] => 2025-01-04 02:36:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:36:05' and `end` < '2025-01-04 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-04 02:36:19] Production.INFO: count ==404 [2025-01-04 02:36:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:36:05 - End Time 2025-01-04 02:36:05 [2025-01-04 02:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169867', 'tblTempUsageDetail_20' ) start [2025-01-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169867', 'tblTempUsageDetail_20' ) end [2025-01-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169867', 'tblTempVendorCDR_20' ) start [2025-01-04 02:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169867', 'tblTempVendorCDR_20' ) end [2025-01-04 02:36:19] Production.INFO: ProcessCDR(1,14169867,1,1,2) [2025-01-04 02:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169867', 'tblTempUsageDetail_20' ) start [2025-01-04 02:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169867', 'tblTempUsageDetail_20' ) end [2025-01-04 02:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:36:22] Production.INFO: ==29646== Releasing lock... [2025-01-04 02:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:37:05 [end_date_ymd] => 2025-01-04 02:37:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:37:05' and `end` < '2025-01-04 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-04 02:37:18] Production.INFO: count ==404 [2025-01-04 02:37:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:37:05 - End Time 2025-01-04 02:37:05 [2025-01-04 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169872', 'tblTempUsageDetail_20' ) start [2025-01-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169872', 'tblTempUsageDetail_20' ) end [2025-01-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169872', 'tblTempVendorCDR_20' ) start [2025-01-04 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169872', 'tblTempVendorCDR_20' ) end [2025-01-04 02:37:18] Production.INFO: ProcessCDR(1,14169872,1,1,2) [2025-01-04 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169872', 'tblTempUsageDetail_20' ) start [2025-01-04 02:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169872', 'tblTempUsageDetail_20' ) end [2025-01-04 02:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:37:21] Production.INFO: ==29722== Releasing lock... [2025-01-04 02:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:37:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:38:05 [end_date_ymd] => 2025-01-04 02:38:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:38:05' and `end` < '2025-01-04 02: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-04 02:38:18] Production.INFO: count ==404 [2025-01-04 02:38:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:38:05 - End Time 2025-01-04 02:38:05 [2025-01-04 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169877', 'tblTempUsageDetail_20' ) start [2025-01-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169877', 'tblTempUsageDetail_20' ) end [2025-01-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169877', 'tblTempVendorCDR_20' ) start [2025-01-04 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169877', 'tblTempVendorCDR_20' ) end [2025-01-04 02:38:18] Production.INFO: ProcessCDR(1,14169877,1,1,2) [2025-01-04 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169877', 'tblTempUsageDetail_20' ) start [2025-01-04 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169877', 'tblTempUsageDetail_20' ) end [2025-01-04 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:38:21] Production.INFO: ==29794== Releasing lock... [2025-01-04 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:38:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:39:05 [end_date_ymd] => 2025-01-04 02:39:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:39:05' and `end` < '2025-01-04 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-04 02:39:18] Production.INFO: count ==401 [2025-01-04 02:39:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:39:05 - End Time 2025-01-04 02:39:05 [2025-01-04 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169882', 'tblTempUsageDetail_20' ) start [2025-01-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169882', 'tblTempUsageDetail_20' ) end [2025-01-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169882', 'tblTempVendorCDR_20' ) start [2025-01-04 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169882', 'tblTempVendorCDR_20' ) end [2025-01-04 02:39:18] Production.INFO: ProcessCDR(1,14169882,1,1,2) [2025-01-04 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169882', 'tblTempUsageDetail_20' ) start [2025-01-04 02:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169882', 'tblTempUsageDetail_20' ) end [2025-01-04 02:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:39:21] Production.INFO: ==29866== Releasing lock... [2025-01-04 02:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:40:06 [end_date_ymd] => 2025-01-04 02:40:06 [RateCDR] => 1 ) [2025-01-04 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-03 23:40:06' and `end` < '2025-01-04 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-04 02:40:19] Production.INFO: count ==409 [2025-01-04 02:40:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:40:06 - End Time 2025-01-04 02:40:06 [2025-01-04 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169887', 'tblTempUsageDetail_20' ) start [2025-01-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169887', 'tblTempUsageDetail_20' ) end [2025-01-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169887', 'tblTempVendorCDR_20' ) start [2025-01-04 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169887', 'tblTempVendorCDR_20' ) end [2025-01-04 02:40:19] Production.INFO: ProcessCDR(1,14169887,1,1,2) [2025-01-04 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169887', 'tblTempUsageDetail_20' ) start [2025-01-04 02:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169887', 'tblTempUsageDetail_20' ) end [2025-01-04 02:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:40:22] Production.INFO: ==29940== Releasing lock... [2025-01-04 02:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 02:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:41:05 [end_date_ymd] => 2025-01-04 02:41:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:41:05' and `end` < '2025-01-04 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-04 02:41:17] Production.INFO: count ==407 [2025-01-04 02:41:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:41:05 - End Time 2025-01-04 02:41:05 [2025-01-04 02:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169893', 'tblTempUsageDetail_20' ) start [2025-01-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169893', 'tblTempUsageDetail_20' ) end [2025-01-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169893', 'tblTempVendorCDR_20' ) start [2025-01-04 02:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169893', 'tblTempVendorCDR_20' ) end [2025-01-04 02:41:17] Production.INFO: ProcessCDR(1,14169893,1,1,2) [2025-01-04 02:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169893', 'tblTempUsageDetail_20' ) start [2025-01-04 02:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169893', 'tblTempUsageDetail_20' ) end [2025-01-04 02:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:41:20] Production.INFO: ==30014== Releasing lock... [2025-01-04 02:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:41:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:42:05 [end_date_ymd] => 2025-01-04 02:42:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:42:05' and `end` < '2025-01-04 02: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-04 02:42:18] Production.INFO: count ==402 [2025-01-04 02:42:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:42:05 - End Time 2025-01-04 02:42:05 [2025-01-04 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169898', 'tblTempUsageDetail_20' ) start [2025-01-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169898', 'tblTempUsageDetail_20' ) end [2025-01-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169898', 'tblTempVendorCDR_20' ) start [2025-01-04 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169898', 'tblTempVendorCDR_20' ) end [2025-01-04 02:42:18] Production.INFO: ProcessCDR(1,14169898,1,1,2) [2025-01-04 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169898', 'tblTempUsageDetail_20' ) start [2025-01-04 02:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169898', 'tblTempUsageDetail_20' ) end [2025-01-04 02:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:42:21] Production.INFO: ==30086== Releasing lock... [2025-01-04 02:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:43:04 [end_date_ymd] => 2025-01-04 02:43:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:43:04' and `end` < '2025-01-04 02: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-04 02:43:17] Production.INFO: count ==401 [2025-01-04 02:43:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:43:04 - End Time 2025-01-04 02:43:04 [2025-01-04 02:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169903', 'tblTempUsageDetail_20' ) start [2025-01-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169903', 'tblTempUsageDetail_20' ) end [2025-01-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169903', 'tblTempVendorCDR_20' ) start [2025-01-04 02:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169903', 'tblTempVendorCDR_20' ) end [2025-01-04 02:43:17] Production.INFO: ProcessCDR(1,14169903,1,1,2) [2025-01-04 02:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169903', 'tblTempUsageDetail_20' ) start [2025-01-04 02:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169903', 'tblTempUsageDetail_20' ) end [2025-01-04 02:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:43:21] Production.INFO: ==30159== Releasing lock... [2025-01-04 02:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:44:05 [end_date_ymd] => 2025-01-04 02:44:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:44:05' and `end` < '2025-01-04 02: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-04 02:44:18] Production.INFO: count ==401 [2025-01-04 02:44:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:44:05 - End Time 2025-01-04 02:44:05 [2025-01-04 02:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169908', 'tblTempUsageDetail_20' ) start [2025-01-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169908', 'tblTempUsageDetail_20' ) end [2025-01-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169908', 'tblTempVendorCDR_20' ) start [2025-01-04 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169908', 'tblTempVendorCDR_20' ) end [2025-01-04 02:44:18] Production.INFO: ProcessCDR(1,14169908,1,1,2) [2025-01-04 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169908', 'tblTempUsageDetail_20' ) start [2025-01-04 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169908', 'tblTempUsageDetail_20' ) end [2025-01-04 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:44:21] Production.INFO: ==30275== Releasing lock... [2025-01-04 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:44:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:45:05 [end_date_ymd] => 2025-01-04 02:45:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:45:05' and `end` < '2025-01-04 02: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-04 02:45:17] Production.INFO: count ==398 [2025-01-04 02:45:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:45:05 - End Time 2025-01-04 02:45:05 [2025-01-04 02:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169913', 'tblTempUsageDetail_20' ) start [2025-01-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169913', 'tblTempUsageDetail_20' ) end [2025-01-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169913', 'tblTempVendorCDR_20' ) start [2025-01-04 02:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169913', 'tblTempVendorCDR_20' ) end [2025-01-04 02:45:17] Production.INFO: ProcessCDR(1,14169913,1,1,2) [2025-01-04 02:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169913', 'tblTempUsageDetail_20' ) start [2025-01-04 02:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169913', 'tblTempUsageDetail_20' ) end [2025-01-04 02:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:45:21] Production.INFO: ==30347== Releasing lock... [2025-01-04 02:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:46:05 [end_date_ymd] => 2025-01-04 02:46:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:46:05' and `end` < '2025-01-04 02: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-04 02:46:18] Production.INFO: count ==398 [2025-01-04 02:46:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:46:05 - End Time 2025-01-04 02:46:05 [2025-01-04 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169918', 'tblTempUsageDetail_20' ) start [2025-01-04 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169918', 'tblTempUsageDetail_20' ) end [2025-01-04 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169918', 'tblTempVendorCDR_20' ) start [2025-01-04 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169918', 'tblTempVendorCDR_20' ) end [2025-01-04 02:46:18] Production.INFO: ProcessCDR(1,14169918,1,1,2) [2025-01-04 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169918', 'tblTempUsageDetail_20' ) start [2025-01-04 02:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169918', 'tblTempUsageDetail_20' ) end [2025-01-04 02:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:46:21] Production.INFO: ==30420== Releasing lock... [2025-01-04 02:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:46:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:47:05 [end_date_ymd] => 2025-01-04 02:47:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:47:05' and `end` < '2025-01-04 02: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-04 02:47:18] Production.INFO: count ==398 [2025-01-04 02:47:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:47:05 - End Time 2025-01-04 02:47:05 [2025-01-04 02:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169923', 'tblTempUsageDetail_20' ) start [2025-01-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169923', 'tblTempUsageDetail_20' ) end [2025-01-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169923', 'tblTempVendorCDR_20' ) start [2025-01-04 02:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169923', 'tblTempVendorCDR_20' ) end [2025-01-04 02:47:18] Production.INFO: ProcessCDR(1,14169923,1,1,2) [2025-01-04 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169923', 'tblTempUsageDetail_20' ) start [2025-01-04 02:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169923', 'tblTempUsageDetail_20' ) end [2025-01-04 02:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:47:22] Production.INFO: ==30490== Releasing lock... [2025-01-04 02:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:48:05 [end_date_ymd] => 2025-01-04 02:48:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:48:05' and `end` < '2025-01-04 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-04 02:48:17] Production.INFO: count ==398 [2025-01-04 02:48:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:48:05 - End Time 2025-01-04 02:48:05 [2025-01-04 02:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169928', 'tblTempUsageDetail_20' ) start [2025-01-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169928', 'tblTempUsageDetail_20' ) end [2025-01-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169928', 'tblTempVendorCDR_20' ) start [2025-01-04 02:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169928', 'tblTempVendorCDR_20' ) end [2025-01-04 02:48:17] Production.INFO: ProcessCDR(1,14169928,1,1,2) [2025-01-04 02:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169928', 'tblTempUsageDetail_20' ) start [2025-01-04 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169928', 'tblTempUsageDetail_20' ) end [2025-01-04 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:48:22] Production.INFO: ==30564== Releasing lock... [2025-01-04 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:49:04 [end_date_ymd] => 2025-01-04 02:49:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:49:04' and `end` < '2025-01-04 02: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-04 02:49:17] Production.INFO: count ==398 [2025-01-04 02:49:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:49:04 - End Time 2025-01-04 02:49:04 [2025-01-04 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169933', 'tblTempUsageDetail_20' ) start [2025-01-04 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169933', 'tblTempUsageDetail_20' ) end [2025-01-04 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169933', 'tblTempVendorCDR_20' ) start [2025-01-04 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169933', 'tblTempVendorCDR_20' ) end [2025-01-04 02:49:17] Production.INFO: ProcessCDR(1,14169933,1,1,2) [2025-01-04 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169933', 'tblTempUsageDetail_20' ) start [2025-01-04 02:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169933', 'tblTempUsageDetail_20' ) end [2025-01-04 02:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:49:20] Production.INFO: ==30634== Releasing lock... [2025-01-04 02:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:49:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:50:06 [end_date_ymd] => 2025-01-04 02:50:06 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:50:06' and `end` < '2025-01-04 02: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-04 02:50:19] Production.INFO: count ==402 [2025-01-04 02:50:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:50:06 - End Time 2025-01-04 02:50:06 [2025-01-04 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169939', 'tblTempUsageDetail_20' ) start [2025-01-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169939', 'tblTempUsageDetail_20' ) end [2025-01-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169939', 'tblTempVendorCDR_20' ) start [2025-01-04 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169939', 'tblTempVendorCDR_20' ) end [2025-01-04 02:50:19] Production.INFO: ProcessCDR(1,14169939,1,1,2) [2025-01-04 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169939', 'tblTempUsageDetail_20' ) start [2025-01-04 02:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169939', 'tblTempUsageDetail_20' ) end [2025-01-04 02:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:50:22] Production.INFO: ==30711== Releasing lock... [2025-01-04 02:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:51:05 [end_date_ymd] => 2025-01-04 02:51:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:51:05' and `end` < '2025-01-04 02: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-04 02:51:20] Production.INFO: count ==402 [2025-01-04 02:51:20] Production.ERROR: pbx CDR StartTime 2025-01-03 23:51:05 - End Time 2025-01-04 02:51:05 [2025-01-04 02:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169944', 'tblTempUsageDetail_20' ) start [2025-01-04 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169944', 'tblTempUsageDetail_20' ) end [2025-01-04 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169944', 'tblTempVendorCDR_20' ) start [2025-01-04 02:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169944', 'tblTempVendorCDR_20' ) end [2025-01-04 02:51:20] Production.INFO: ProcessCDR(1,14169944,1,1,2) [2025-01-04 02:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169944', 'tblTempUsageDetail_20' ) start [2025-01-04 02:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169944', 'tblTempUsageDetail_20' ) end [2025-01-04 02:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:51:23] Production.INFO: ==30784== Releasing lock... [2025-01-04 02:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:51:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:52:05 [end_date_ymd] => 2025-01-04 02:52:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:52:05' and `end` < '2025-01-04 02: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-04 02:52:19] Production.INFO: count ==401 [2025-01-04 02:52:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:52:05 - End Time 2025-01-04 02:52:05 [2025-01-04 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169949', 'tblTempUsageDetail_20' ) start [2025-01-04 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169949', 'tblTempUsageDetail_20' ) end [2025-01-04 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169949', 'tblTempVendorCDR_20' ) start [2025-01-04 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169949', 'tblTempVendorCDR_20' ) end [2025-01-04 02:52:19] Production.INFO: ProcessCDR(1,14169949,1,1,2) [2025-01-04 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169949', 'tblTempUsageDetail_20' ) start [2025-01-04 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169949', 'tblTempUsageDetail_20' ) end [2025-01-04 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:52:22] Production.INFO: ==30856== Releasing lock... [2025-01-04 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:52:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:53:04 [end_date_ymd] => 2025-01-04 02:53:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:53:04' and `end` < '2025-01-04 02: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-04 02:53:18] Production.INFO: count ==395 [2025-01-04 02:53:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:53:04 - End Time 2025-01-04 02:53:04 [2025-01-04 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169954', 'tblTempUsageDetail_20' ) start [2025-01-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169954', 'tblTempUsageDetail_20' ) end [2025-01-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169954', 'tblTempVendorCDR_20' ) start [2025-01-04 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169954', 'tblTempVendorCDR_20' ) end [2025-01-04 02:53:18] Production.INFO: ProcessCDR(1,14169954,1,1,2) [2025-01-04 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169954', 'tblTempUsageDetail_20' ) start [2025-01-04 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169954', 'tblTempUsageDetail_20' ) end [2025-01-04 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:53:21] Production.INFO: ==30926== Releasing lock... [2025-01-04 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:53:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:54:05 [end_date_ymd] => 2025-01-04 02:54:05 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:54:05' and `end` < '2025-01-04 02: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-04 02:54:17] Production.INFO: count ==395 [2025-01-04 02:54:17] Production.ERROR: pbx CDR StartTime 2025-01-03 23:54:05 - End Time 2025-01-04 02:54:05 [2025-01-04 02:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169959', 'tblTempUsageDetail_20' ) start [2025-01-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169959', 'tblTempUsageDetail_20' ) end [2025-01-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169959', 'tblTempVendorCDR_20' ) start [2025-01-04 02:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169959', 'tblTempVendorCDR_20' ) end [2025-01-04 02:54:17] Production.INFO: ProcessCDR(1,14169959,1,1,2) [2025-01-04 02:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169959', 'tblTempUsageDetail_20' ) start [2025-01-04 02:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169959', 'tblTempUsageDetail_20' ) end [2025-01-04 02:54:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:54:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:54:20] Production.INFO: ==30997== Releasing lock... [2025-01-04 02:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:54:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:55:05 [end_date_ymd] => 2025-01-04 02:55:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:55:05' and `end` < '2025-01-04 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-04 02:55:18] Production.INFO: count ==394 [2025-01-04 02:55:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:55:05 - End Time 2025-01-04 02:55:05 [2025-01-04 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169964', 'tblTempUsageDetail_20' ) start [2025-01-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169964', 'tblTempUsageDetail_20' ) end [2025-01-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169964', 'tblTempVendorCDR_20' ) start [2025-01-04 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169964', 'tblTempVendorCDR_20' ) end [2025-01-04 02:55:18] Production.INFO: ProcessCDR(1,14169964,1,1,2) [2025-01-04 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169964', 'tblTempUsageDetail_20' ) start [2025-01-04 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169964', 'tblTempUsageDetail_20' ) end [2025-01-04 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:55:21] Production.INFO: ==31070== Releasing lock... [2025-01-04 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:56:05 [end_date_ymd] => 2025-01-04 02:56:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:56:05' and `end` < '2025-01-04 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-04 02:56:19] Production.INFO: count ==392 [2025-01-04 02:56:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:56:05 - End Time 2025-01-04 02:56:05 [2025-01-04 02:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169969', 'tblTempUsageDetail_20' ) start [2025-01-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169969', 'tblTempUsageDetail_20' ) end [2025-01-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169969', 'tblTempVendorCDR_20' ) start [2025-01-04 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169969', 'tblTempVendorCDR_20' ) end [2025-01-04 02:56:19] Production.INFO: ProcessCDR(1,14169969,1,1,2) [2025-01-04 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169969', 'tblTempUsageDetail_20' ) start [2025-01-04 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169969', 'tblTempUsageDetail_20' ) end [2025-01-04 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:56:22] Production.INFO: ==31141== Releasing lock... [2025-01-04 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:56:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:57:05 [end_date_ymd] => 2025-01-04 02:57:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:57:05' and `end` < '2025-01-04 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-04 02:57:20] Production.INFO: count ==391 [2025-01-04 02:57:20] Production.ERROR: pbx CDR StartTime 2025-01-03 23:57:05 - End Time 2025-01-04 02:57:05 [2025-01-04 02:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169974', 'tblTempUsageDetail_20' ) start [2025-01-04 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169974', 'tblTempUsageDetail_20' ) end [2025-01-04 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169974', 'tblTempVendorCDR_20' ) start [2025-01-04 02:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169974', 'tblTempVendorCDR_20' ) end [2025-01-04 02:57:20] Production.INFO: ProcessCDR(1,14169974,1,1,2) [2025-01-04 02:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169974', 'tblTempUsageDetail_20' ) start [2025-01-04 02:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169974', 'tblTempUsageDetail_20' ) end [2025-01-04 02:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:57:23] Production.INFO: ==31214== Releasing lock... [2025-01-04 02:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:57:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:58:04 [end_date_ymd] => 2025-01-04 02:58:04 [RateCDR] => 1 ) [2025-01-04 02: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-03 23:58:04' and `end` < '2025-01-04 02: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-04 02:58:19] Production.INFO: count ==391 [2025-01-04 02:58:19] Production.ERROR: pbx CDR StartTime 2025-01-03 23:58:04 - End Time 2025-01-04 02:58:04 [2025-01-04 02:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169979', 'tblTempUsageDetail_20' ) start [2025-01-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169979', 'tblTempUsageDetail_20' ) end [2025-01-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169979', 'tblTempVendorCDR_20' ) start [2025-01-04 02:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169979', 'tblTempVendorCDR_20' ) end [2025-01-04 02:58:19] Production.INFO: ProcessCDR(1,14169979,1,1,2) [2025-01-04 02:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169979', 'tblTempUsageDetail_20' ) start [2025-01-04 02:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169979', 'tblTempUsageDetail_20' ) end [2025-01-04 02:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:58:23] Production.INFO: ==31290== Releasing lock... [2025-01-04 02:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:58:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 02:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-03 23:59:05 [end_date_ymd] => 2025-01-04 02:59:05 [RateCDR] => 1 ) [2025-01-04 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-03 23:59:05' and `end` < '2025-01-04 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-04 02:59:17] Production.INFO: count ==392 [2025-01-04 02:59:18] Production.ERROR: pbx CDR StartTime 2025-01-03 23:59:05 - End Time 2025-01-04 02:59:05 [2025-01-04 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169984', 'tblTempUsageDetail_20' ) start [2025-01-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169984', 'tblTempUsageDetail_20' ) end [2025-01-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169984', 'tblTempVendorCDR_20' ) start [2025-01-04 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169984', 'tblTempVendorCDR_20' ) end [2025-01-04 02:59:18] Production.INFO: ProcessCDR(1,14169984,1,1,2) [2025-01-04 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 02:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169984', 'tblTempUsageDetail_20' ) start [2025-01-04 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169984', 'tblTempUsageDetail_20' ) end [2025-01-04 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 02:59:22] Production.INFO: ==31359== Releasing lock... [2025-01-04 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 02:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:00:05 [end_date_ymd] => 2025-01-04 03:00:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:00:05' and `end` < '2025-01-04 03: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-04 03:00:18] Production.INFO: count ==392 [2025-01-04 03:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:00:05 - End Time 2025-01-04 03:00:05 [2025-01-04 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169990', 'tblTempUsageDetail_20' ) start [2025-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169990', 'tblTempUsageDetail_20' ) end [2025-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169990', 'tblTempVendorCDR_20' ) start [2025-01-04 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169990', 'tblTempVendorCDR_20' ) end [2025-01-04 03:00:18] Production.INFO: ProcessCDR(1,14169990,1,1,2) [2025-01-04 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169990', 'tblTempUsageDetail_20' ) start [2025-01-04 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169990', 'tblTempUsageDetail_20' ) end [2025-01-04 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:00:21] Production.INFO: ==31470== Releasing lock... [2025-01-04 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:01:05 [end_date_ymd] => 2025-01-04 03:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:01:05' and `end` < '2025-01-04 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-04 03:01:18] Production.INFO: count ==392 [2025-01-04 03:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:01:05 - End Time 2025-01-04 03:01:05 [2025-01-04 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169995', 'tblTempUsageDetail_20' ) start [2025-01-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14169995', 'tblTempUsageDetail_20' ) end [2025-01-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169995', 'tblTempVendorCDR_20' ) start [2025-01-04 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14169995', 'tblTempVendorCDR_20' ) end [2025-01-04 03:01:18] Production.INFO: ProcessCDR(1,14169995,1,1,2) [2025-01-04 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14169995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14169995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14169995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14169995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169995', 'tblTempUsageDetail_20' ) start [2025-01-04 03:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14169995', 'tblTempUsageDetail_20' ) end [2025-01-04 03:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:01:21] Production.INFO: ==31556== Releasing lock... [2025-01-04 03:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:01:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:02:05 [end_date_ymd] => 2025-01-04 03:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:02:05' and `end` < '2025-01-04 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-04 03:02:18] Production.INFO: count ==389 [2025-01-04 03:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:02:05 - End Time 2025-01-04 03:02:05 [2025-01-04 03:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170000', 'tblTempUsageDetail_20' ) start [2025-01-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170000', 'tblTempUsageDetail_20' ) end [2025-01-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170000', 'tblTempVendorCDR_20' ) start [2025-01-04 03:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170000', 'tblTempVendorCDR_20' ) end [2025-01-04 03:02:18] Production.INFO: ProcessCDR(1,14170000,1,1,2) [2025-01-04 03:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170000', 'tblTempUsageDetail_20' ) start [2025-01-04 03:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170000', 'tblTempUsageDetail_20' ) end [2025-01-04 03:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:02:21] Production.INFO: ==31703== Releasing lock... [2025-01-04 03:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:03:05 [end_date_ymd] => 2025-01-04 03:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:03:05' and `end` < '2025-01-04 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-04 03:03:19] Production.INFO: count ==390 [2025-01-04 03:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:03:05 - End Time 2025-01-04 03:03:05 [2025-01-04 03:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170005', 'tblTempUsageDetail_20' ) start [2025-01-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170005', 'tblTempUsageDetail_20' ) end [2025-01-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170005', 'tblTempVendorCDR_20' ) start [2025-01-04 03:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170005', 'tblTempVendorCDR_20' ) end [2025-01-04 03:03:19] Production.INFO: ProcessCDR(1,14170005,1,1,2) [2025-01-04 03:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170005', 'tblTempUsageDetail_20' ) start [2025-01-04 03:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170005', 'tblTempUsageDetail_20' ) end [2025-01-04 03:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:03:24] Production.INFO: ==31773== Releasing lock... [2025-01-04 03:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:03:24] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:04:05 [end_date_ymd] => 2025-01-04 03:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:04:05' and `end` < '2025-01-04 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-04 03:04:18] Production.INFO: count ==385 [2025-01-04 03:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:04:05 - End Time 2025-01-04 03:04:05 [2025-01-04 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170010', 'tblTempUsageDetail_20' ) start [2025-01-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170010', 'tblTempUsageDetail_20' ) end [2025-01-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170010', 'tblTempVendorCDR_20' ) start [2025-01-04 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170010', 'tblTempVendorCDR_20' ) end [2025-01-04 03:04:18] Production.INFO: ProcessCDR(1,14170010,1,1,2) [2025-01-04 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170010', 'tblTempUsageDetail_20' ) start [2025-01-04 03:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170010', 'tblTempUsageDetail_20' ) end [2025-01-04 03:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:04:21] Production.INFO: ==31843== Releasing lock... [2025-01-04 03:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:05:05 [end_date_ymd] => 2025-01-04 03:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:05:05' and `end` < '2025-01-04 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-04 03:05:17] Production.INFO: count ==385 [2025-01-04 03:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:05:05 - End Time 2025-01-04 03:05:05 [2025-01-04 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170015', 'tblTempUsageDetail_20' ) start [2025-01-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170015', 'tblTempUsageDetail_20' ) end [2025-01-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170015', 'tblTempVendorCDR_20' ) start [2025-01-04 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170015', 'tblTempVendorCDR_20' ) end [2025-01-04 03:05:17] Production.INFO: ProcessCDR(1,14170015,1,1,2) [2025-01-04 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170015', 'tblTempUsageDetail_20' ) start [2025-01-04 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170015', 'tblTempUsageDetail_20' ) end [2025-01-04 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:05:21] Production.INFO: ==31983== Releasing lock... [2025-01-04 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:06:05 [end_date_ymd] => 2025-01-04 03:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:06:05' and `end` < '2025-01-04 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-04 03:06:18] Production.INFO: count ==385 [2025-01-04 03:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:06:05 - End Time 2025-01-04 03:06:05 [2025-01-04 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170020', 'tblTempUsageDetail_20' ) start [2025-01-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170020', 'tblTempUsageDetail_20' ) end [2025-01-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170020', 'tblTempVendorCDR_20' ) start [2025-01-04 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170020', 'tblTempVendorCDR_20' ) end [2025-01-04 03:06:18] Production.INFO: ProcessCDR(1,14170020,1,1,2) [2025-01-04 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170020', 'tblTempUsageDetail_20' ) start [2025-01-04 03:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170020', 'tblTempUsageDetail_20' ) end [2025-01-04 03:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:06:21] Production.INFO: ==32134== Releasing lock... [2025-01-04 03:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:07:05 [end_date_ymd] => 2025-01-04 03:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:07:05' and `end` < '2025-01-04 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-04 03:07:18] Production.INFO: count ==384 [2025-01-04 03:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:07:05 - End Time 2025-01-04 03:07:05 [2025-01-04 03:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170025', 'tblTempUsageDetail_20' ) start [2025-01-04 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170025', 'tblTempUsageDetail_20' ) end [2025-01-04 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170025', 'tblTempVendorCDR_20' ) start [2025-01-04 03:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170025', 'tblTempVendorCDR_20' ) end [2025-01-04 03:07:18] Production.INFO: ProcessCDR(1,14170025,1,1,2) [2025-01-04 03:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170025', 'tblTempUsageDetail_20' ) start [2025-01-04 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170025', 'tblTempUsageDetail_20' ) end [2025-01-04 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:07:21] Production.INFO: ==32202== Releasing lock... [2025-01-04 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:08:05 [end_date_ymd] => 2025-01-04 03:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:08:05' and `end` < '2025-01-04 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-04 03:08:18] Production.INFO: count ==383 [2025-01-04 03:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:08:05 - End Time 2025-01-04 03:08:05 [2025-01-04 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170030', 'tblTempUsageDetail_20' ) start [2025-01-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170030', 'tblTempUsageDetail_20' ) end [2025-01-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170030', 'tblTempVendorCDR_20' ) start [2025-01-04 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170030', 'tblTempVendorCDR_20' ) end [2025-01-04 03:08:18] Production.INFO: ProcessCDR(1,14170030,1,1,2) [2025-01-04 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170030', 'tblTempUsageDetail_20' ) start [2025-01-04 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170030', 'tblTempUsageDetail_20' ) end [2025-01-04 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:08:22] Production.INFO: ==32273== Releasing lock... [2025-01-04 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 03:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:09:04 [end_date_ymd] => 2025-01-04 03:09:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:09:04' and `end` < '2025-01-04 03: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-04 03:09:18] Production.INFO: count ==379 [2025-01-04 03:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:09:04 - End Time 2025-01-04 03:09:04 [2025-01-04 03:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170035', 'tblTempUsageDetail_20' ) start [2025-01-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170035', 'tblTempUsageDetail_20' ) end [2025-01-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170035', 'tblTempVendorCDR_20' ) start [2025-01-04 03:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170035', 'tblTempVendorCDR_20' ) end [2025-01-04 03:09:18] Production.INFO: ProcessCDR(1,14170035,1,1,2) [2025-01-04 03:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170035', 'tblTempUsageDetail_20' ) start [2025-01-04 03:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170035', 'tblTempUsageDetail_20' ) end [2025-01-04 03:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:09:21] Production.INFO: ==32421== Releasing lock... [2025-01-04 03:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:09:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:10:05 [end_date_ymd] => 2025-01-04 03:10:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:10:05' and `end` < '2025-01-04 03: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-04 03:10:18] Production.INFO: count ==373 [2025-01-04 03:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:10:05 - End Time 2025-01-04 03:10:05 [2025-01-04 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170041', 'tblTempUsageDetail_20' ) start [2025-01-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170041', 'tblTempUsageDetail_20' ) end [2025-01-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170041', 'tblTempVendorCDR_20' ) start [2025-01-04 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170041', 'tblTempVendorCDR_20' ) end [2025-01-04 03:10:18] Production.INFO: ProcessCDR(1,14170041,1,1,2) [2025-01-04 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170041', 'tblTempUsageDetail_20' ) start [2025-01-04 03:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170041', 'tblTempUsageDetail_20' ) end [2025-01-04 03:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:10:21] Production.INFO: ==32493== Releasing lock... [2025-01-04 03:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:10:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:11:05 [end_date_ymd] => 2025-01-04 03:11:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:11:05' and `end` < '2025-01-04 03: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-04 03:11:18] Production.INFO: count ==333 [2025-01-04 03:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:11:05 - End Time 2025-01-04 03:11:05 [2025-01-04 03:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170046', 'tblTempUsageDetail_20' ) start [2025-01-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170046', 'tblTempUsageDetail_20' ) end [2025-01-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170046', 'tblTempVendorCDR_20' ) start [2025-01-04 03:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170046', 'tblTempVendorCDR_20' ) end [2025-01-04 03:11:18] Production.INFO: ProcessCDR(1,14170046,1,1,2) [2025-01-04 03:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170046', 'tblTempUsageDetail_20' ) start [2025-01-04 03:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170046', 'tblTempUsageDetail_20' ) end [2025-01-04 03:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:11:22] Production.INFO: ==32569== Releasing lock... [2025-01-04 03:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:11:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:12:04 [end_date_ymd] => 2025-01-04 03:12:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:12:04' and `end` < '2025-01-04 03: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-04 03:12:17] Production.INFO: count ==336 [2025-01-04 03:12:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:12:04 - End Time 2025-01-04 03:12:04 [2025-01-04 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170051', 'tblTempUsageDetail_20' ) start [2025-01-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170051', 'tblTempUsageDetail_20' ) end [2025-01-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170051', 'tblTempVendorCDR_20' ) start [2025-01-04 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170051', 'tblTempVendorCDR_20' ) end [2025-01-04 03:12:17] Production.INFO: ProcessCDR(1,14170051,1,1,2) [2025-01-04 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170051', 'tblTempUsageDetail_20' ) start [2025-01-04 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170051', 'tblTempUsageDetail_20' ) end [2025-01-04 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:12:21] Production.INFO: ==32645== Releasing lock... [2025-01-04 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:13:05 [end_date_ymd] => 2025-01-04 03:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:13:05' and `end` < '2025-01-04 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-04 03:13:19] Production.INFO: count ==336 [2025-01-04 03:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:13:05 - End Time 2025-01-04 03:13:05 [2025-01-04 03:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170056', 'tblTempUsageDetail_20' ) start [2025-01-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170056', 'tblTempUsageDetail_20' ) end [2025-01-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170056', 'tblTempVendorCDR_20' ) start [2025-01-04 03:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170056', 'tblTempVendorCDR_20' ) end [2025-01-04 03:13:19] Production.INFO: ProcessCDR(1,14170056,1,1,2) [2025-01-04 03:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170056', 'tblTempUsageDetail_20' ) start [2025-01-04 03:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170056', 'tblTempUsageDetail_20' ) end [2025-01-04 03:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:13:22] Production.INFO: ==336== Releasing lock... [2025-01-04 03:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:14:04 [end_date_ymd] => 2025-01-04 03:14:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:14:04' and `end` < '2025-01-04 03: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-04 03:14:18] Production.INFO: count ==339 [2025-01-04 03:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:14:04 - End Time 2025-01-04 03:14:04 [2025-01-04 03:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170061', 'tblTempUsageDetail_20' ) start [2025-01-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170061', 'tblTempUsageDetail_20' ) end [2025-01-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170061', 'tblTempVendorCDR_20' ) start [2025-01-04 03:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170061', 'tblTempVendorCDR_20' ) end [2025-01-04 03:14:19] Production.INFO: ProcessCDR(1,14170061,1,1,2) [2025-01-04 03:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170061', 'tblTempUsageDetail_20' ) start [2025-01-04 03:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170061', 'tblTempUsageDetail_20' ) end [2025-01-04 03:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:14:22] Production.INFO: ==417== Releasing lock... [2025-01-04 03:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:14:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:15:05 [end_date_ymd] => 2025-01-04 03:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:15:05' and `end` < '2025-01-04 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-04 03:15:18] Production.INFO: count ==337 [2025-01-04 03:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:15:05 - End Time 2025-01-04 03:15:05 [2025-01-04 03:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170066', 'tblTempUsageDetail_20' ) start [2025-01-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170066', 'tblTempUsageDetail_20' ) end [2025-01-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170066', 'tblTempVendorCDR_20' ) start [2025-01-04 03:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170066', 'tblTempVendorCDR_20' ) end [2025-01-04 03:15:18] Production.INFO: ProcessCDR(1,14170066,1,1,2) [2025-01-04 03:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170066', 'tblTempUsageDetail_20' ) start [2025-01-04 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170066', 'tblTempUsageDetail_20' ) end [2025-01-04 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:15:21] Production.INFO: ==527== Releasing lock... [2025-01-04 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:15:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:16:05 [end_date_ymd] => 2025-01-04 03:16:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:16:05' and `end` < '2025-01-04 03: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-04 03:16:19] Production.INFO: count ==337 [2025-01-04 03:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:16:05 - End Time 2025-01-04 03:16:05 [2025-01-04 03:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170071', 'tblTempUsageDetail_20' ) start [2025-01-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170071', 'tblTempUsageDetail_20' ) end [2025-01-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170071', 'tblTempVendorCDR_20' ) start [2025-01-04 03:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170071', 'tblTempVendorCDR_20' ) end [2025-01-04 03:16:19] Production.INFO: ProcessCDR(1,14170071,1,1,2) [2025-01-04 03:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170071', 'tblTempUsageDetail_20' ) start [2025-01-04 03:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170071', 'tblTempUsageDetail_20' ) end [2025-01-04 03:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:16:22] Production.INFO: ==598== Releasing lock... [2025-01-04 03:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:16:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:17:05 [end_date_ymd] => 2025-01-04 03:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:17:05' and `end` < '2025-01-04 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-04 03:17:18] Production.INFO: count ==337 [2025-01-04 03:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:17:05 - End Time 2025-01-04 03:17:05 [2025-01-04 03:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170076', 'tblTempUsageDetail_20' ) start [2025-01-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170076', 'tblTempUsageDetail_20' ) end [2025-01-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170076', 'tblTempVendorCDR_20' ) start [2025-01-04 03:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170076', 'tblTempVendorCDR_20' ) end [2025-01-04 03:17:18] Production.INFO: ProcessCDR(1,14170076,1,1,2) [2025-01-04 03:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170076', 'tblTempUsageDetail_20' ) start [2025-01-04 03:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170076', 'tblTempUsageDetail_20' ) end [2025-01-04 03:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:17:21] Production.INFO: ==778== Releasing lock... [2025-01-04 03:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:17:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:18:05 [end_date_ymd] => 2025-01-04 03:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:18:05' and `end` < '2025-01-04 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-04 03:18:18] Production.INFO: count ==335 [2025-01-04 03:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:18:05 - End Time 2025-01-04 03:18:05 [2025-01-04 03:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170081', 'tblTempUsageDetail_20' ) start [2025-01-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170081', 'tblTempUsageDetail_20' ) end [2025-01-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170081', 'tblTempVendorCDR_20' ) start [2025-01-04 03:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170081', 'tblTempVendorCDR_20' ) end [2025-01-04 03:18:18] Production.INFO: ProcessCDR(1,14170081,1,1,2) [2025-01-04 03:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170081', 'tblTempUsageDetail_20' ) start [2025-01-04 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170081', 'tblTempUsageDetail_20' ) end [2025-01-04 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:18:21] Production.INFO: ==846== Releasing lock... [2025-01-04 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:18:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:19:05 [end_date_ymd] => 2025-01-04 03:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:19:05' and `end` < '2025-01-04 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-04 03:19:18] Production.INFO: count ==335 [2025-01-04 03:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:19:05 - End Time 2025-01-04 03:19:05 [2025-01-04 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170086', 'tblTempUsageDetail_20' ) start [2025-01-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170086', 'tblTempUsageDetail_20' ) end [2025-01-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170086', 'tblTempVendorCDR_20' ) start [2025-01-04 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170086', 'tblTempVendorCDR_20' ) end [2025-01-04 03:19:18] Production.INFO: ProcessCDR(1,14170086,1,1,2) [2025-01-04 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170086', 'tblTempUsageDetail_20' ) start [2025-01-04 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170086', 'tblTempUsageDetail_20' ) end [2025-01-04 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:19:21] Production.INFO: ==915== Releasing lock... [2025-01-04 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:19:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:20:06 [end_date_ymd] => 2025-01-04 03:20:06 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:20:06' and `end` < '2025-01-04 03: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-04 03:20:19] Production.INFO: count ==335 [2025-01-04 03:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:20:06 - End Time 2025-01-04 03:20:06 [2025-01-04 03:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170092', 'tblTempUsageDetail_20' ) start [2025-01-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170092', 'tblTempUsageDetail_20' ) end [2025-01-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170092', 'tblTempVendorCDR_20' ) start [2025-01-04 03:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170092', 'tblTempVendorCDR_20' ) end [2025-01-04 03:20:19] Production.INFO: ProcessCDR(1,14170092,1,1,2) [2025-01-04 03:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170092', 'tblTempUsageDetail_20' ) start [2025-01-04 03:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170092', 'tblTempUsageDetail_20' ) end [2025-01-04 03:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:20:22] Production.INFO: ==988== Releasing lock... [2025-01-04 03:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:20:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:21:04 [end_date_ymd] => 2025-01-04 03:21:04 [RateCDR] => 1 ) [2025-01-04 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-04 00:21:04' and `end` < '2025-01-04 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-04 03:21:17] Production.INFO: count ==327 [2025-01-04 03:21:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:21:04 - End Time 2025-01-04 03:21:04 [2025-01-04 03:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170097', 'tblTempUsageDetail_20' ) start [2025-01-04 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170097', 'tblTempUsageDetail_20' ) end [2025-01-04 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170097', 'tblTempVendorCDR_20' ) start [2025-01-04 03:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170097', 'tblTempVendorCDR_20' ) end [2025-01-04 03:21:17] Production.INFO: ProcessCDR(1,14170097,1,1,2) [2025-01-04 03:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170097', 'tblTempUsageDetail_20' ) start [2025-01-04 03:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170097', 'tblTempUsageDetail_20' ) end [2025-01-04 03:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:21:20] Production.INFO: ==1060== Releasing lock... [2025-01-04 03:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:21:20] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:22:05 [end_date_ymd] => 2025-01-04 03:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:22:05' and `end` < '2025-01-04 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-04 03:22:18] Production.INFO: count ==322 [2025-01-04 03:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:22:05 - End Time 2025-01-04 03:22:05 [2025-01-04 03:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170102', 'tblTempUsageDetail_20' ) start [2025-01-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170102', 'tblTempUsageDetail_20' ) end [2025-01-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170102', 'tblTempVendorCDR_20' ) start [2025-01-04 03:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170102', 'tblTempVendorCDR_20' ) end [2025-01-04 03:22:18] Production.INFO: ProcessCDR(1,14170102,1,1,2) [2025-01-04 03:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170102', 'tblTempUsageDetail_20' ) start [2025-01-04 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170102', 'tblTempUsageDetail_20' ) end [2025-01-04 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:22:21] Production.INFO: ==1133== Releasing lock... [2025-01-04 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:23:05 [end_date_ymd] => 2025-01-04 03:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:23:05' and `end` < '2025-01-04 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-04 03:23:18] Production.INFO: count ==321 [2025-01-04 03:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:23:05 - End Time 2025-01-04 03:23:05 [2025-01-04 03:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170107', 'tblTempUsageDetail_20' ) start [2025-01-04 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170107', 'tblTempUsageDetail_20' ) end [2025-01-04 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170107', 'tblTempVendorCDR_20' ) start [2025-01-04 03:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170107', 'tblTempVendorCDR_20' ) end [2025-01-04 03:23:18] Production.INFO: ProcessCDR(1,14170107,1,1,2) [2025-01-04 03:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170107', 'tblTempUsageDetail_20' ) start [2025-01-04 03:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170107', 'tblTempUsageDetail_20' ) end [2025-01-04 03:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:23:21] Production.INFO: ==1207== Releasing lock... [2025-01-04 03:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:23:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:24:05 [end_date_ymd] => 2025-01-04 03:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:24:05' and `end` < '2025-01-04 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-04 03:24:17] Production.INFO: count ==320 [2025-01-04 03:24:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:24:05 - End Time 2025-01-04 03:24:05 [2025-01-04 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170112', 'tblTempUsageDetail_20' ) start [2025-01-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170112', 'tblTempUsageDetail_20' ) end [2025-01-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170112', 'tblTempVendorCDR_20' ) start [2025-01-04 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170112', 'tblTempVendorCDR_20' ) end [2025-01-04 03:24:17] Production.INFO: ProcessCDR(1,14170112,1,1,2) [2025-01-04 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170112', 'tblTempUsageDetail_20' ) start [2025-01-04 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170112', 'tblTempUsageDetail_20' ) end [2025-01-04 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:24:21] Production.INFO: ==1288== Releasing lock... [2025-01-04 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:25:05 [end_date_ymd] => 2025-01-04 03:25:05 [RateCDR] => 1 ) [2025-01-04 03:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 00:25:05' and `end` < '2025-01-04 03:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 03:25:17] Production.INFO: count ==318 [2025-01-04 03:25:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:25:05 - End Time 2025-01-04 03:25:05 [2025-01-04 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170117', 'tblTempUsageDetail_20' ) start [2025-01-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170117', 'tblTempUsageDetail_20' ) end [2025-01-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170117', 'tblTempVendorCDR_20' ) start [2025-01-04 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170117', 'tblTempVendorCDR_20' ) end [2025-01-04 03:25:17] Production.INFO: ProcessCDR(1,14170117,1,1,2) [2025-01-04 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170117', 'tblTempUsageDetail_20' ) start [2025-01-04 03:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170117', 'tblTempUsageDetail_20' ) end [2025-01-04 03:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:25:20] Production.INFO: ==1356== Releasing lock... [2025-01-04 03:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:26:04 [end_date_ymd] => 2025-01-04 03:26:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:26:04' and `end` < '2025-01-04 03: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-04 03:26:17] Production.INFO: count ==317 [2025-01-04 03:26:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:26:04 - End Time 2025-01-04 03:26:04 [2025-01-04 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170122', 'tblTempUsageDetail_20' ) start [2025-01-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170122', 'tblTempUsageDetail_20' ) end [2025-01-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170122', 'tblTempVendorCDR_20' ) start [2025-01-04 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170122', 'tblTempVendorCDR_20' ) end [2025-01-04 03:26:17] Production.INFO: ProcessCDR(1,14170122,1,1,2) [2025-01-04 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170122', 'tblTempUsageDetail_20' ) start [2025-01-04 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170122', 'tblTempUsageDetail_20' ) end [2025-01-04 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:26:20] Production.INFO: ==1429== Releasing lock... [2025-01-04 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:26:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:27:05 [end_date_ymd] => 2025-01-04 03:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:27:05' and `end` < '2025-01-04 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-04 03:27:18] Production.INFO: count ==313 [2025-01-04 03:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:27:05 - End Time 2025-01-04 03:27:05 [2025-01-04 03:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170127', 'tblTempUsageDetail_20' ) start [2025-01-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170127', 'tblTempUsageDetail_20' ) end [2025-01-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170127', 'tblTempVendorCDR_20' ) start [2025-01-04 03:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170127', 'tblTempVendorCDR_20' ) end [2025-01-04 03:27:18] Production.INFO: ProcessCDR(1,14170127,1,1,2) [2025-01-04 03:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170127', 'tblTempUsageDetail_20' ) start [2025-01-04 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170127', 'tblTempUsageDetail_20' ) end [2025-01-04 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:27:21] Production.INFO: ==1505== Releasing lock... [2025-01-04 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:28:04 [end_date_ymd] => 2025-01-04 03:28:04 [RateCDR] => 1 ) [2025-01-04 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-04 00:28:04' and `end` < '2025-01-04 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-04 03:28:18] Production.INFO: count ==313 [2025-01-04 03:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:28:04 - End Time 2025-01-04 03:28:04 [2025-01-04 03:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170132', 'tblTempUsageDetail_20' ) start [2025-01-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170132', 'tblTempUsageDetail_20' ) end [2025-01-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170132', 'tblTempVendorCDR_20' ) start [2025-01-04 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170132', 'tblTempVendorCDR_20' ) end [2025-01-04 03:28:18] Production.INFO: ProcessCDR(1,14170132,1,1,2) [2025-01-04 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170132', 'tblTempUsageDetail_20' ) start [2025-01-04 03:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170132', 'tblTempUsageDetail_20' ) end [2025-01-04 03:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:28:23] Production.INFO: ==1606== Releasing lock... [2025-01-04 03:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:28:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:29:05 [end_date_ymd] => 2025-01-04 03:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:29:05' and `end` < '2025-01-04 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-04 03:29:17] Production.INFO: count ==317 [2025-01-04 03:29:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:29:05 - End Time 2025-01-04 03:29:05 [2025-01-04 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170137', 'tblTempUsageDetail_20' ) start [2025-01-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170137', 'tblTempUsageDetail_20' ) end [2025-01-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170137', 'tblTempVendorCDR_20' ) start [2025-01-04 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170137', 'tblTempVendorCDR_20' ) end [2025-01-04 03:29:17] Production.INFO: ProcessCDR(1,14170137,1,1,2) [2025-01-04 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170137', 'tblTempUsageDetail_20' ) start [2025-01-04 03:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170137', 'tblTempUsageDetail_20' ) end [2025-01-04 03:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:29:22] Production.INFO: ==1675== Releasing lock... [2025-01-04 03:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:29:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:30:06 [end_date_ymd] => 2025-01-04 03:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 00:30:06' and `end` < '2025-01-04 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-04 03:30:19] Production.INFO: count ==319 [2025-01-04 03:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:30:06 - End Time 2025-01-04 03:30:06 [2025-01-04 03:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170143', 'tblTempUsageDetail_20' ) start [2025-01-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170143', 'tblTempUsageDetail_20' ) end [2025-01-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170143', 'tblTempVendorCDR_20' ) start [2025-01-04 03:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170143', 'tblTempVendorCDR_20' ) end [2025-01-04 03:30:19] Production.INFO: ProcessCDR(1,14170143,1,1,2) [2025-01-04 03:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170143', 'tblTempUsageDetail_20' ) start [2025-01-04 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170143', 'tblTempUsageDetail_20' ) end [2025-01-04 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:30:22] Production.INFO: ==1747== Releasing lock... [2025-01-04 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:30:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:31:05 [end_date_ymd] => 2025-01-04 03:31:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:31:05' and `end` < '2025-01-04 03: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-04 03:31:19] Production.INFO: count ==303 [2025-01-04 03:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:31:05 - End Time 2025-01-04 03:31:05 [2025-01-04 03:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170148', 'tblTempUsageDetail_20' ) start [2025-01-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170148', 'tblTempUsageDetail_20' ) end [2025-01-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170148', 'tblTempVendorCDR_20' ) start [2025-01-04 03:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170148', 'tblTempVendorCDR_20' ) end [2025-01-04 03:31:19] Production.INFO: ProcessCDR(1,14170148,1,1,2) [2025-01-04 03:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170148', 'tblTempUsageDetail_20' ) start [2025-01-04 03:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170148', 'tblTempUsageDetail_20' ) end [2025-01-04 03:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:31:23] Production.INFO: ==1827== Releasing lock... [2025-01-04 03:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:31:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:32:05 [end_date_ymd] => 2025-01-04 03:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:32:05' and `end` < '2025-01-04 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-04 03:32:18] Production.INFO: count ==303 [2025-01-04 03:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:32:05 - End Time 2025-01-04 03:32:05 [2025-01-04 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170153', 'tblTempUsageDetail_20' ) start [2025-01-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170153', 'tblTempUsageDetail_20' ) end [2025-01-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170153', 'tblTempVendorCDR_20' ) start [2025-01-04 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170153', 'tblTempVendorCDR_20' ) end [2025-01-04 03:32:18] Production.INFO: ProcessCDR(1,14170153,1,1,2) [2025-01-04 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170153', 'tblTempUsageDetail_20' ) start [2025-01-04 03:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170153', 'tblTempUsageDetail_20' ) end [2025-01-04 03:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:32:21] Production.INFO: ==1937== Releasing lock... [2025-01-04 03:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:32:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:33:05 [end_date_ymd] => 2025-01-04 03:33:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:33:05' and `end` < '2025-01-04 03: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-04 03:33:19] Production.INFO: count ==303 [2025-01-04 03:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:33:05 - End Time 2025-01-04 03:33:05 [2025-01-04 03:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170158', 'tblTempUsageDetail_20' ) start [2025-01-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170158', 'tblTempUsageDetail_20' ) end [2025-01-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170158', 'tblTempVendorCDR_20' ) start [2025-01-04 03:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170158', 'tblTempVendorCDR_20' ) end [2025-01-04 03:33:19] Production.INFO: ProcessCDR(1,14170158,1,1,2) [2025-01-04 03:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170158', 'tblTempUsageDetail_20' ) start [2025-01-04 03:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170158', 'tblTempUsageDetail_20' ) end [2025-01-04 03:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:33:22] Production.INFO: ==2010== Releasing lock... [2025-01-04 03:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:33:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:34:05 [end_date_ymd] => 2025-01-04 03:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:34:05' and `end` < '2025-01-04 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-04 03:34:17] Production.INFO: count ==304 [2025-01-04 03:34:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:34:05 - End Time 2025-01-04 03:34:05 [2025-01-04 03:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170163', 'tblTempUsageDetail_20' ) start [2025-01-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170163', 'tblTempUsageDetail_20' ) end [2025-01-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170163', 'tblTempVendorCDR_20' ) start [2025-01-04 03:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170163', 'tblTempVendorCDR_20' ) end [2025-01-04 03:34:17] Production.INFO: ProcessCDR(1,14170163,1,1,2) [2025-01-04 03:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170163', 'tblTempUsageDetail_20' ) start [2025-01-04 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170163', 'tblTempUsageDetail_20' ) end [2025-01-04 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:34:22] Production.INFO: ==2082== Releasing lock... [2025-01-04 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:34:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:35:04 [end_date_ymd] => 2025-01-04 03:35:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:35:04' and `end` < '2025-01-04 03: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-04 03:35:17] Production.INFO: count ==299 [2025-01-04 03:35:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:35:04 - End Time 2025-01-04 03:35:04 [2025-01-04 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170168', 'tblTempUsageDetail_20' ) start [2025-01-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170168', 'tblTempUsageDetail_20' ) end [2025-01-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170168', 'tblTempVendorCDR_20' ) start [2025-01-04 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170168', 'tblTempVendorCDR_20' ) end [2025-01-04 03:35:17] Production.INFO: ProcessCDR(1,14170168,1,1,2) [2025-01-04 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170168', 'tblTempUsageDetail_20' ) start [2025-01-04 03:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170168', 'tblTempUsageDetail_20' ) end [2025-01-04 03:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:35:20] Production.INFO: ==2151== Releasing lock... [2025-01-04 03:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:36:04 [end_date_ymd] => 2025-01-04 03:36:04 [RateCDR] => 1 ) [2025-01-04 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-04 00:36:04' and `end` < '2025-01-04 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-04 03:36:18] Production.INFO: count ==298 [2025-01-04 03:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:36:04 - End Time 2025-01-04 03:36:04 [2025-01-04 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170173', 'tblTempUsageDetail_20' ) start [2025-01-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170173', 'tblTempUsageDetail_20' ) end [2025-01-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170173', 'tblTempVendorCDR_20' ) start [2025-01-04 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170173', 'tblTempVendorCDR_20' ) end [2025-01-04 03:36:18] Production.INFO: ProcessCDR(1,14170173,1,1,2) [2025-01-04 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170173', 'tblTempUsageDetail_20' ) start [2025-01-04 03:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170173', 'tblTempUsageDetail_20' ) end [2025-01-04 03:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:36:21] Production.INFO: ==2223== Releasing lock... [2025-01-04 03:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:37:05 [end_date_ymd] => 2025-01-04 03:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:37:05' and `end` < '2025-01-04 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-04 03:37:19] Production.INFO: count ==298 [2025-01-04 03:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:37:05 - End Time 2025-01-04 03:37:05 [2025-01-04 03:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170178', 'tblTempUsageDetail_20' ) start [2025-01-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170178', 'tblTempUsageDetail_20' ) end [2025-01-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170178', 'tblTempVendorCDR_20' ) start [2025-01-04 03:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170178', 'tblTempVendorCDR_20' ) end [2025-01-04 03:37:19] Production.INFO: ProcessCDR(1,14170178,1,1,2) [2025-01-04 03:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170178', 'tblTempUsageDetail_20' ) start [2025-01-04 03:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170178', 'tblTempUsageDetail_20' ) end [2025-01-04 03:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:37:22] Production.INFO: ==2291== Releasing lock... [2025-01-04 03:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:37:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:38:05 [end_date_ymd] => 2025-01-04 03:38:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:38:05' and `end` < '2025-01-04 03: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-04 03:38:18] Production.INFO: count ==298 [2025-01-04 03:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:38:05 - End Time 2025-01-04 03:38:05 [2025-01-04 03:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170183', 'tblTempUsageDetail_20' ) start [2025-01-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170183', 'tblTempUsageDetail_20' ) end [2025-01-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170183', 'tblTempVendorCDR_20' ) start [2025-01-04 03:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170183', 'tblTempVendorCDR_20' ) end [2025-01-04 03:38:18] Production.INFO: ProcessCDR(1,14170183,1,1,2) [2025-01-04 03:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170183', 'tblTempUsageDetail_20' ) start [2025-01-04 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170183', 'tblTempUsageDetail_20' ) end [2025-01-04 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:38:21] Production.INFO: ==2361== Releasing lock... [2025-01-04 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:39:05 [end_date_ymd] => 2025-01-04 03:39:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:39:05' and `end` < '2025-01-04 03: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-04 03:39:18] Production.INFO: count ==298 [2025-01-04 03:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:39:05 - End Time 2025-01-04 03:39:05 [2025-01-04 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170188', 'tblTempUsageDetail_20' ) start [2025-01-04 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170188', 'tblTempUsageDetail_20' ) end [2025-01-04 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170188', 'tblTempVendorCDR_20' ) start [2025-01-04 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170188', 'tblTempVendorCDR_20' ) end [2025-01-04 03:39:18] Production.INFO: ProcessCDR(1,14170188,1,1,2) [2025-01-04 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170188', 'tblTempUsageDetail_20' ) start [2025-01-04 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170188', 'tblTempUsageDetail_20' ) end [2025-01-04 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:39:21] Production.INFO: ==2448== Releasing lock... [2025-01-04 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:39:21] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:40:05 [end_date_ymd] => 2025-01-04 03:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:40:05' and `end` < '2025-01-04 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-04 03:40:18] Production.INFO: count ==301 [2025-01-04 03:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:40:05 - End Time 2025-01-04 03:40:05 [2025-01-04 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170193', 'tblTempUsageDetail_20' ) start [2025-01-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170193', 'tblTempUsageDetail_20' ) end [2025-01-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170193', 'tblTempVendorCDR_20' ) start [2025-01-04 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170193', 'tblTempVendorCDR_20' ) end [2025-01-04 03:40:18] Production.INFO: ProcessCDR(1,14170193,1,1,2) [2025-01-04 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170193', 'tblTempUsageDetail_20' ) start [2025-01-04 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170193', 'tblTempUsageDetail_20' ) end [2025-01-04 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:40:22] Production.INFO: ==2544== Releasing lock... [2025-01-04 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:41:05 [end_date_ymd] => 2025-01-04 03:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:41:05' and `end` < '2025-01-04 03: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-04 03:41:18] Production.INFO: count ==289 [2025-01-04 03:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:41:05 - End Time 2025-01-04 03:41:05 [2025-01-04 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170199', 'tblTempUsageDetail_20' ) start [2025-01-04 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170199', 'tblTempUsageDetail_20' ) end [2025-01-04 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170199', 'tblTempVendorCDR_20' ) start [2025-01-04 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170199', 'tblTempVendorCDR_20' ) end [2025-01-04 03:41:18] Production.INFO: ProcessCDR(1,14170199,1,1,2) [2025-01-04 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170199', 'tblTempUsageDetail_20' ) start [2025-01-04 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170199', 'tblTempUsageDetail_20' ) end [2025-01-04 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:41:21] Production.INFO: ==2618== Releasing lock... [2025-01-04 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:41:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:42:05 [end_date_ymd] => 2025-01-04 03:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:42:05' and `end` < '2025-01-04 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-04 03:42:19] Production.INFO: count ==289 [2025-01-04 03:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:42:05 - End Time 2025-01-04 03:42:05 [2025-01-04 03:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170204', 'tblTempUsageDetail_20' ) start [2025-01-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170204', 'tblTempUsageDetail_20' ) end [2025-01-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170204', 'tblTempVendorCDR_20' ) start [2025-01-04 03:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170204', 'tblTempVendorCDR_20' ) end [2025-01-04 03:42:19] Production.INFO: ProcessCDR(1,14170204,1,1,2) [2025-01-04 03:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170204', 'tblTempUsageDetail_20' ) start [2025-01-04 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170204', 'tblTempUsageDetail_20' ) end [2025-01-04 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:42:22] Production.INFO: ==2687== Releasing lock... [2025-01-04 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:43:05 [end_date_ymd] => 2025-01-04 03:43:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:43:05' and `end` < '2025-01-04 03: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-04 03:43:18] Production.INFO: count ==289 [2025-01-04 03:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:43:05 - End Time 2025-01-04 03:43:05 [2025-01-04 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170209', 'tblTempUsageDetail_20' ) start [2025-01-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170209', 'tblTempUsageDetail_20' ) end [2025-01-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170209', 'tblTempVendorCDR_20' ) start [2025-01-04 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170209', 'tblTempVendorCDR_20' ) end [2025-01-04 03:43:18] Production.INFO: ProcessCDR(1,14170209,1,1,2) [2025-01-04 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170209', 'tblTempUsageDetail_20' ) start [2025-01-04 03:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170209', 'tblTempUsageDetail_20' ) end [2025-01-04 03:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:43:21] Production.INFO: ==2756== Releasing lock... [2025-01-04 03:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:44:05 [end_date_ymd] => 2025-01-04 03:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:44:05' and `end` < '2025-01-04 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-04 03:44:18] Production.INFO: count ==289 [2025-01-04 03:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:44:05 - End Time 2025-01-04 03:44:05 [2025-01-04 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170214', 'tblTempUsageDetail_20' ) start [2025-01-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170214', 'tblTempUsageDetail_20' ) end [2025-01-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170214', 'tblTempVendorCDR_20' ) start [2025-01-04 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170214', 'tblTempVendorCDR_20' ) end [2025-01-04 03:44:18] Production.INFO: ProcessCDR(1,14170214,1,1,2) [2025-01-04 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170214', 'tblTempUsageDetail_20' ) start [2025-01-04 03:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170214', 'tblTempUsageDetail_20' ) end [2025-01-04 03:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:44:21] Production.INFO: ==2824== Releasing lock... [2025-01-04 03:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:44:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:45:04 [end_date_ymd] => 2025-01-04 03:45:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:45:04' and `end` < '2025-01-04 03: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-04 03:45:17] Production.INFO: count ==286 [2025-01-04 03:45:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:45:04 - End Time 2025-01-04 03:45:04 [2025-01-04 03:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170219', 'tblTempUsageDetail_20' ) start [2025-01-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170219', 'tblTempUsageDetail_20' ) end [2025-01-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170219', 'tblTempVendorCDR_20' ) start [2025-01-04 03:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170219', 'tblTempVendorCDR_20' ) end [2025-01-04 03:45:17] Production.INFO: ProcessCDR(1,14170219,1,1,2) [2025-01-04 03:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170219', 'tblTempUsageDetail_20' ) start [2025-01-04 03:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170219', 'tblTempUsageDetail_20' ) end [2025-01-04 03:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:45:21] Production.INFO: ==2900== Releasing lock... [2025-01-04 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:45:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:46:05 [end_date_ymd] => 2025-01-04 03:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:46:05' and `end` < '2025-01-04 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-04 03:46:17] Production.INFO: count ==286 [2025-01-04 03:46:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:46:05 - End Time 2025-01-04 03:46:05 [2025-01-04 03:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170224', 'tblTempUsageDetail_20' ) start [2025-01-04 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170224', 'tblTempUsageDetail_20' ) end [2025-01-04 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170224', 'tblTempVendorCDR_20' ) start [2025-01-04 03:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170224', 'tblTempVendorCDR_20' ) end [2025-01-04 03:46:17] Production.INFO: ProcessCDR(1,14170224,1,1,2) [2025-01-04 03:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170224', 'tblTempUsageDetail_20' ) start [2025-01-04 03:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170224', 'tblTempUsageDetail_20' ) end [2025-01-04 03:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:46:21] Production.INFO: ==2972== Releasing lock... [2025-01-04 03:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:47:05 [end_date_ymd] => 2025-01-04 03:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:47:05' and `end` < '2025-01-04 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-04 03:47:18] Production.INFO: count ==286 [2025-01-04 03:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:47:05 - End Time 2025-01-04 03:47:05 [2025-01-04 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170229', 'tblTempUsageDetail_20' ) start [2025-01-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170229', 'tblTempUsageDetail_20' ) end [2025-01-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170229', 'tblTempVendorCDR_20' ) start [2025-01-04 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170229', 'tblTempVendorCDR_20' ) end [2025-01-04 03:47:18] Production.INFO: ProcessCDR(1,14170229,1,1,2) [2025-01-04 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170229', 'tblTempUsageDetail_20' ) start [2025-01-04 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170229', 'tblTempUsageDetail_20' ) end [2025-01-04 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:47:21] Production.INFO: ==3045== Releasing lock... [2025-01-04 03:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:47:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:48:04 [end_date_ymd] => 2025-01-04 03:48:04 [RateCDR] => 1 ) [2025-01-04 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-04 00:48:04' and `end` < '2025-01-04 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-04 03:48:18] Production.INFO: count ==285 [2025-01-04 03:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:48:04 - End Time 2025-01-04 03:48:04 [2025-01-04 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170234', 'tblTempUsageDetail_20' ) start [2025-01-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170234', 'tblTempUsageDetail_20' ) end [2025-01-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170234', 'tblTempVendorCDR_20' ) start [2025-01-04 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170234', 'tblTempVendorCDR_20' ) end [2025-01-04 03:48:18] Production.INFO: ProcessCDR(1,14170234,1,1,2) [2025-01-04 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170234', 'tblTempUsageDetail_20' ) start [2025-01-04 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170234', 'tblTempUsageDetail_20' ) end [2025-01-04 03:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:48:21] Production.INFO: ==3159== Releasing lock... [2025-01-04 03:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:49:05 [end_date_ymd] => 2025-01-04 03:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:49:05' and `end` < '2025-01-04 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-04 03:49:18] Production.INFO: count ==282 [2025-01-04 03:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:49:05 - End Time 2025-01-04 03:49:05 [2025-01-04 03:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170239', 'tblTempUsageDetail_20' ) start [2025-01-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170239', 'tblTempUsageDetail_20' ) end [2025-01-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170239', 'tblTempVendorCDR_20' ) start [2025-01-04 03:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170239', 'tblTempVendorCDR_20' ) end [2025-01-04 03:49:18] Production.INFO: ProcessCDR(1,14170239,1,1,2) [2025-01-04 03:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170239', 'tblTempUsageDetail_20' ) start [2025-01-04 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170239', 'tblTempUsageDetail_20' ) end [2025-01-04 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:49:22] Production.INFO: ==3230== Releasing lock... [2025-01-04 03:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:49:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:50:06 [end_date_ymd] => 2025-01-04 03:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 00:50:06' and `end` < '2025-01-04 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-04 03:50:19] Production.INFO: count ==274 [2025-01-04 03:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:50:06 - End Time 2025-01-04 03:50:06 [2025-01-04 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170245', 'tblTempUsageDetail_20' ) start [2025-01-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170245', 'tblTempUsageDetail_20' ) end [2025-01-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170245', 'tblTempVendorCDR_20' ) start [2025-01-04 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170245', 'tblTempVendorCDR_20' ) end [2025-01-04 03:50:19] Production.INFO: ProcessCDR(1,14170245,1,1,2) [2025-01-04 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170245', 'tblTempUsageDetail_20' ) start [2025-01-04 03:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170245', 'tblTempUsageDetail_20' ) end [2025-01-04 03:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:50:22] Production.INFO: ==3316== Releasing lock... [2025-01-04 03:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:50:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 03:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:51:04 [end_date_ymd] => 2025-01-04 03:51:04 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:51:04' and `end` < '2025-01-04 03: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-04 03:51:18] Production.INFO: count ==255 [2025-01-04 03:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:51:04 - End Time 2025-01-04 03:51:04 [2025-01-04 03:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170250', 'tblTempUsageDetail_20' ) start [2025-01-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170250', 'tblTempUsageDetail_20' ) end [2025-01-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170250', 'tblTempVendorCDR_20' ) start [2025-01-04 03:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170250', 'tblTempVendorCDR_20' ) end [2025-01-04 03:51:18] Production.INFO: ProcessCDR(1,14170250,1,1,2) [2025-01-04 03:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170250', 'tblTempUsageDetail_20' ) start [2025-01-04 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170250', 'tblTempUsageDetail_20' ) end [2025-01-04 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:51:22] Production.INFO: ==3413== Releasing lock... [2025-01-04 03:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:51:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:52:05 [end_date_ymd] => 2025-01-04 03:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:52:05' and `end` < '2025-01-04 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-04 03:52:19] Production.INFO: count ==255 [2025-01-04 03:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:52:05 - End Time 2025-01-04 03:52:05 [2025-01-04 03:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170255', 'tblTempUsageDetail_20' ) start [2025-01-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170255', 'tblTempUsageDetail_20' ) end [2025-01-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170255', 'tblTempVendorCDR_20' ) start [2025-01-04 03:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170255', 'tblTempVendorCDR_20' ) end [2025-01-04 03:52:19] Production.INFO: ProcessCDR(1,14170255,1,1,2) [2025-01-04 03:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170255', 'tblTempUsageDetail_20' ) start [2025-01-04 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170255', 'tblTempUsageDetail_20' ) end [2025-01-04 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:52:22] Production.INFO: ==3511== Releasing lock... [2025-01-04 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:52:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:53:05 [end_date_ymd] => 2025-01-04 03:53:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:53:05' and `end` < '2025-01-04 03: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-04 03:53:18] Production.INFO: count ==255 [2025-01-04 03:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:53:05 - End Time 2025-01-04 03:53:05 [2025-01-04 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170260', 'tblTempUsageDetail_20' ) start [2025-01-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170260', 'tblTempUsageDetail_20' ) end [2025-01-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170260', 'tblTempVendorCDR_20' ) start [2025-01-04 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170260', 'tblTempVendorCDR_20' ) end [2025-01-04 03:53:18] Production.INFO: ProcessCDR(1,14170260,1,1,2) [2025-01-04 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170260', 'tblTempUsageDetail_20' ) start [2025-01-04 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170260', 'tblTempUsageDetail_20' ) end [2025-01-04 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:53:21] Production.INFO: ==3596== Releasing lock... [2025-01-04 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:53:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:54:05 [end_date_ymd] => 2025-01-04 03:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:54:05' and `end` < '2025-01-04 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-04 03:54:18] Production.INFO: count ==255 [2025-01-04 03:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:54:05 - End Time 2025-01-04 03:54:05 [2025-01-04 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170265', 'tblTempUsageDetail_20' ) start [2025-01-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170265', 'tblTempUsageDetail_20' ) end [2025-01-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170265', 'tblTempVendorCDR_20' ) start [2025-01-04 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170265', 'tblTempVendorCDR_20' ) end [2025-01-04 03:54:18] Production.INFO: ProcessCDR(1,14170265,1,1,2) [2025-01-04 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170265', 'tblTempUsageDetail_20' ) start [2025-01-04 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170265', 'tblTempUsageDetail_20' ) end [2025-01-04 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:54:21] Production.INFO: ==3665== Releasing lock... [2025-01-04 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:54:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:55:05 [end_date_ymd] => 2025-01-04 03:55:05 [RateCDR] => 1 ) [2025-01-04 03: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-04 00:55:05' and `end` < '2025-01-04 03: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-04 03:55:17] Production.INFO: count ==255 [2025-01-04 03:55:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:55:05 - End Time 2025-01-04 03:55:05 [2025-01-04 03:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170270', 'tblTempUsageDetail_20' ) start [2025-01-04 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170270', 'tblTempUsageDetail_20' ) end [2025-01-04 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170270', 'tblTempVendorCDR_20' ) start [2025-01-04 03:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170270', 'tblTempVendorCDR_20' ) end [2025-01-04 03:55:17] Production.INFO: ProcessCDR(1,14170270,1,1,2) [2025-01-04 03:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170270', 'tblTempUsageDetail_20' ) start [2025-01-04 03:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170270', 'tblTempUsageDetail_20' ) end [2025-01-04 03:55:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:55:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:55:21] Production.INFO: ==3734== Releasing lock... [2025-01-04 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:55:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:56:06 [end_date_ymd] => 2025-01-04 03:56:06 [RateCDR] => 1 ) [2025-01-04 03:56: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-04 00:56:06' and `end` < '2025-01-04 03:56: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-04 03:56:19] Production.INFO: count ==252 [2025-01-04 03:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 00:56:06 - End Time 2025-01-04 03:56:06 [2025-01-04 03:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170275', 'tblTempUsageDetail_20' ) start [2025-01-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170275', 'tblTempUsageDetail_20' ) end [2025-01-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170275', 'tblTempVendorCDR_20' ) start [2025-01-04 03:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170275', 'tblTempVendorCDR_20' ) end [2025-01-04 03:56:19] Production.INFO: ProcessCDR(1,14170275,1,1,2) [2025-01-04 03:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170275', 'tblTempUsageDetail_20' ) start [2025-01-04 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170275', 'tblTempUsageDetail_20' ) end [2025-01-04 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:56:22] Production.INFO: ==3822== Releasing lock... [2025-01-04 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:56:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:57:05 [end_date_ymd] => 2025-01-04 03:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:57:05' and `end` < '2025-01-04 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-04 03:57:17] Production.INFO: count ==252 [2025-01-04 03:57:17] Production.ERROR: pbx CDR StartTime 2025-01-04 00:57:05 - End Time 2025-01-04 03:57:05 [2025-01-04 03:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170280', 'tblTempUsageDetail_20' ) start [2025-01-04 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170280', 'tblTempUsageDetail_20' ) end [2025-01-04 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170280', 'tblTempVendorCDR_20' ) start [2025-01-04 03:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170280', 'tblTempVendorCDR_20' ) end [2025-01-04 03:57:17] Production.INFO: ProcessCDR(1,14170280,1,1,2) [2025-01-04 03:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170280', 'tblTempUsageDetail_20' ) start [2025-01-04 03:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170280', 'tblTempUsageDetail_20' ) end [2025-01-04 03:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:57:20] Production.INFO: ==3891== Releasing lock... [2025-01-04 03:57:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:57:20] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:58:05 [end_date_ymd] => 2025-01-04 03:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:58:05' and `end` < '2025-01-04 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-04 03:58:18] Production.INFO: count ==252 [2025-01-04 03:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:58:05 - End Time 2025-01-04 03:58:05 [2025-01-04 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170285', 'tblTempUsageDetail_20' ) start [2025-01-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170285', 'tblTempUsageDetail_20' ) end [2025-01-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170285', 'tblTempVendorCDR_20' ) start [2025-01-04 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170285', 'tblTempVendorCDR_20' ) end [2025-01-04 03:58:18] Production.INFO: ProcessCDR(1,14170285,1,1,2) [2025-01-04 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170285', 'tblTempUsageDetail_20' ) start [2025-01-04 03:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170285', 'tblTempUsageDetail_20' ) end [2025-01-04 03:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:58:21] Production.INFO: ==3987== Releasing lock... [2025-01-04 03:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:58:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 00:59:05 [end_date_ymd] => 2025-01-04 03:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 00:59:05' and `end` < '2025-01-04 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-04 03:59:18] Production.INFO: count ==252 [2025-01-04 03:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 00:59:05 - End Time 2025-01-04 03:59:05 [2025-01-04 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170290', 'tblTempUsageDetail_20' ) start [2025-01-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170290', 'tblTempUsageDetail_20' ) end [2025-01-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170290', 'tblTempVendorCDR_20' ) start [2025-01-04 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170290', 'tblTempVendorCDR_20' ) end [2025-01-04 03:59:18] Production.INFO: ProcessCDR(1,14170290,1,1,2) [2025-01-04 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170290', 'tblTempUsageDetail_20' ) start [2025-01-04 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170290', 'tblTempUsageDetail_20' ) end [2025-01-04 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 03:59:21] Production.INFO: ==4109== Releasing lock... [2025-01-04 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 03:59:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 04:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:00:06 [end_date_ymd] => 2025-01-04 04:00:06 [RateCDR] => 1 ) [2025-01-04 04:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 01:00:06' and `end` < '2025-01-04 04:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 04:00:18] Production.INFO: count ==245 [2025-01-04 04:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:00:06 - End Time 2025-01-04 04:00:06 [2025-01-04 04:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170295', 'tblTempUsageDetail_20' ) start [2025-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170295', 'tblTempUsageDetail_20' ) end [2025-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170295', 'tblTempVendorCDR_20' ) start [2025-01-04 04:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170295', 'tblTempVendorCDR_20' ) end [2025-01-04 04:00:18] Production.INFO: ProcessCDR(1,14170295,1,1,2) [2025-01-04 04:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170295', 'tblTempUsageDetail_20' ) start [2025-01-04 04:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170295', 'tblTempUsageDetail_20' ) end [2025-01-04 04:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:00:22] Production.INFO: ==4232== Releasing lock... [2025-01-04 04:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:00:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 04:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:01:05 [end_date_ymd] => 2025-01-04 04:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:01:05' and `end` < '2025-01-04 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-04 04:01:18] Production.INFO: count ==229 [2025-01-04 04:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:01:05 - End Time 2025-01-04 04:01:05 [2025-01-04 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170302', 'tblTempUsageDetail_20' ) start [2025-01-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170302', 'tblTempUsageDetail_20' ) end [2025-01-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170302', 'tblTempVendorCDR_20' ) start [2025-01-04 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170302', 'tblTempVendorCDR_20' ) end [2025-01-04 04:01:18] Production.INFO: ProcessCDR(1,14170302,1,1,2) [2025-01-04 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170302', 'tblTempUsageDetail_20' ) start [2025-01-04 04:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170302', 'tblTempUsageDetail_20' ) end [2025-01-04 04:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:01:21] Production.INFO: ==4334== Releasing lock... [2025-01-04 04:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:01:21] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:02:05 [end_date_ymd] => 2025-01-04 04:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:02:05' and `end` < '2025-01-04 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-04 04:02:18] Production.INFO: count ==229 [2025-01-04 04:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:02:05 - End Time 2025-01-04 04:02:05 [2025-01-04 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170307', 'tblTempUsageDetail_20' ) start [2025-01-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170307', 'tblTempUsageDetail_20' ) end [2025-01-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170307', 'tblTempVendorCDR_20' ) start [2025-01-04 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170307', 'tblTempVendorCDR_20' ) end [2025-01-04 04:02:18] Production.INFO: ProcessCDR(1,14170307,1,1,2) [2025-01-04 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170307', 'tblTempUsageDetail_20' ) start [2025-01-04 04:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170307', 'tblTempUsageDetail_20' ) end [2025-01-04 04:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:02:21] Production.INFO: ==4430== Releasing lock... [2025-01-04 04:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:02:21] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:03:05 [end_date_ymd] => 2025-01-04 04:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:03:05' and `end` < '2025-01-04 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-04 04:03:20] Production.INFO: count ==228 [2025-01-04 04:03:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:03:05 - End Time 2025-01-04 04:03:05 [2025-01-04 04:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170312', 'tblTempUsageDetail_20' ) start [2025-01-04 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170312', 'tblTempUsageDetail_20' ) end [2025-01-04 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170312', 'tblTempVendorCDR_20' ) start [2025-01-04 04:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170312', 'tblTempVendorCDR_20' ) end [2025-01-04 04:03:20] Production.INFO: ProcessCDR(1,14170312,1,1,2) [2025-01-04 04:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170312', 'tblTempUsageDetail_20' ) start [2025-01-04 04:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170312', 'tblTempUsageDetail_20' ) end [2025-01-04 04:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:03:23] Production.INFO: ==4535== Releasing lock... [2025-01-04 04:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:03:23] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:04:05 [end_date_ymd] => 2025-01-04 04:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:04:05' and `end` < '2025-01-04 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-04 04:04:18] Production.INFO: count ==228 [2025-01-04 04:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:04:05 - End Time 2025-01-04 04:04:05 [2025-01-04 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170317', 'tblTempUsageDetail_20' ) start [2025-01-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170317', 'tblTempUsageDetail_20' ) end [2025-01-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170317', 'tblTempVendorCDR_20' ) start [2025-01-04 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170317', 'tblTempVendorCDR_20' ) end [2025-01-04 04:04:18] Production.INFO: ProcessCDR(1,14170317,1,1,2) [2025-01-04 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170317,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170317,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170317', 'tblTempUsageDetail_20' ) start [2025-01-04 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170317', 'tblTempUsageDetail_20' ) end [2025-01-04 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:04:21] Production.INFO: ==4673== Releasing lock... [2025-01-04 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:04:21] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:05:05 [end_date_ymd] => 2025-01-04 04:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:05:05' and `end` < '2025-01-04 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-04 04:05:17] Production.INFO: count ==227 [2025-01-04 04:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 01:05:05 - End Time 2025-01-04 04:05:05 [2025-01-04 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170322', 'tblTempUsageDetail_20' ) start [2025-01-04 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170322', 'tblTempUsageDetail_20' ) end [2025-01-04 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170322', 'tblTempVendorCDR_20' ) start [2025-01-04 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170322', 'tblTempVendorCDR_20' ) end [2025-01-04 04:05:17] Production.INFO: ProcessCDR(1,14170322,1,1,2) [2025-01-04 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170322,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170322,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170322', 'tblTempUsageDetail_20' ) start [2025-01-04 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170322', 'tblTempUsageDetail_20' ) end [2025-01-04 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:05:20] Production.INFO: ==4769== Releasing lock... [2025-01-04 04:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:05:20] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:06:05 [end_date_ymd] => 2025-01-04 04:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:06:05' and `end` < '2025-01-04 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-04 04:06:19] Production.INFO: count ==225 [2025-01-04 04:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:06:05 - End Time 2025-01-04 04:06:05 [2025-01-04 04:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170327', 'tblTempUsageDetail_20' ) start [2025-01-04 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170327', 'tblTempUsageDetail_20' ) end [2025-01-04 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170327', 'tblTempVendorCDR_20' ) start [2025-01-04 04:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170327', 'tblTempVendorCDR_20' ) end [2025-01-04 04:06:19] Production.INFO: ProcessCDR(1,14170327,1,1,2) [2025-01-04 04:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170327,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170327,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170327', 'tblTempUsageDetail_20' ) start [2025-01-04 04:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170327', 'tblTempUsageDetail_20' ) end [2025-01-04 04:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:06:22] Production.INFO: ==4864== Releasing lock... [2025-01-04 04:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:06:22] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:07:05 [end_date_ymd] => 2025-01-04 04:07:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:07:05' and `end` < '2025-01-04 04: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-04 04:07:17] Production.INFO: count ==223 [2025-01-04 04:07:17] Production.ERROR: pbx CDR StartTime 2025-01-04 01:07:05 - End Time 2025-01-04 04:07:05 [2025-01-04 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170332', 'tblTempUsageDetail_20' ) start [2025-01-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170332', 'tblTempUsageDetail_20' ) end [2025-01-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170332', 'tblTempVendorCDR_20' ) start [2025-01-04 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170332', 'tblTempVendorCDR_20' ) end [2025-01-04 04:07:17] Production.INFO: ProcessCDR(1,14170332,1,1,2) [2025-01-04 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170332', 'tblTempUsageDetail_20' ) start [2025-01-04 04:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170332', 'tblTempUsageDetail_20' ) end [2025-01-04 04:07:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:07:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:07:20] Production.INFO: ==4958== Releasing lock... [2025-01-04 04:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:07:20] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:08:05 [end_date_ymd] => 2025-01-04 04:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:08:05' and `end` < '2025-01-04 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-04 04:08:17] Production.INFO: count ==231 [2025-01-04 04:08:17] Production.ERROR: pbx CDR StartTime 2025-01-04 01:08:05 - End Time 2025-01-04 04:08:05 [2025-01-04 04:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170337', 'tblTempUsageDetail_20' ) start [2025-01-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170337', 'tblTempUsageDetail_20' ) end [2025-01-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170337', 'tblTempVendorCDR_20' ) start [2025-01-04 04:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170337', 'tblTempVendorCDR_20' ) end [2025-01-04 04:08:17] Production.INFO: ProcessCDR(1,14170337,1,1,2) [2025-01-04 04:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170337', 'tblTempUsageDetail_20' ) start [2025-01-04 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170337', 'tblTempUsageDetail_20' ) end [2025-01-04 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:08:21] Production.INFO: ==5049== Releasing lock... [2025-01-04 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:08:21] Production.INFO: 29 MB #Memory Used# [2025-01-04 04:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:09:06 [end_date_ymd] => 2025-01-04 04:09:06 [RateCDR] => 1 ) [2025-01-04 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-04 01:09:06' and `end` < '2025-01-04 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-04 04:09:18] Production.INFO: count ==269 [2025-01-04 04:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:09:06 - End Time 2025-01-04 04:09:06 [2025-01-04 04:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170342', 'tblTempUsageDetail_20' ) start [2025-01-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170342', 'tblTempUsageDetail_20' ) end [2025-01-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170342', 'tblTempVendorCDR_20' ) start [2025-01-04 04:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170342', 'tblTempVendorCDR_20' ) end [2025-01-04 04:09:18] Production.INFO: ProcessCDR(1,14170342,1,1,2) [2025-01-04 04:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170342', 'tblTempUsageDetail_20' ) start [2025-01-04 04:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170342', 'tblTempUsageDetail_20' ) end [2025-01-04 04:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:09:22] Production.INFO: ==5149== Releasing lock... [2025-01-04 04:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:09:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:10:06 [end_date_ymd] => 2025-01-04 04:10:06 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:10:06' and `end` < '2025-01-04 04: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-04 04:10:18] Production.INFO: count ==368 [2025-01-04 04:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:10:06 - End Time 2025-01-04 04:10:06 [2025-01-04 04:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170347', 'tblTempUsageDetail_20' ) start [2025-01-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170347', 'tblTempUsageDetail_20' ) end [2025-01-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170347', 'tblTempVendorCDR_20' ) start [2025-01-04 04:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170347', 'tblTempVendorCDR_20' ) end [2025-01-04 04:10:18] Production.INFO: ProcessCDR(1,14170347,1,1,2) [2025-01-04 04:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170347', 'tblTempUsageDetail_20' ) start [2025-01-04 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170347', 'tblTempUsageDetail_20' ) end [2025-01-04 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:10:22] Production.INFO: ==5242== Releasing lock... [2025-01-04 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:11:05 [end_date_ymd] => 2025-01-04 04:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:11:05' and `end` < '2025-01-04 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-04 04:11:19] Production.INFO: count ==359 [2025-01-04 04:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:11:05 - End Time 2025-01-04 04:11:05 [2025-01-04 04:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170353', 'tblTempUsageDetail_20' ) start [2025-01-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170353', 'tblTempUsageDetail_20' ) end [2025-01-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170353', 'tblTempVendorCDR_20' ) start [2025-01-04 04:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170353', 'tblTempVendorCDR_20' ) end [2025-01-04 04:11:19] Production.INFO: ProcessCDR(1,14170353,1,1,2) [2025-01-04 04:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170353', 'tblTempUsageDetail_20' ) start [2025-01-04 04:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170353', 'tblTempUsageDetail_20' ) end [2025-01-04 04:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:11:23] Production.INFO: ==5345== Releasing lock... [2025-01-04 04:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:11:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:12:05 [end_date_ymd] => 2025-01-04 04:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:12:05' and `end` < '2025-01-04 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-04 04:12:19] Production.INFO: count ==359 [2025-01-04 04:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:12:05 - End Time 2025-01-04 04:12:05 [2025-01-04 04:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170358', 'tblTempUsageDetail_20' ) start [2025-01-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170358', 'tblTempUsageDetail_20' ) end [2025-01-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170358', 'tblTempVendorCDR_20' ) start [2025-01-04 04:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170358', 'tblTempVendorCDR_20' ) end [2025-01-04 04:12:19] Production.INFO: ProcessCDR(1,14170358,1,1,2) [2025-01-04 04:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170358', 'tblTempUsageDetail_20' ) start [2025-01-04 04:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170358', 'tblTempUsageDetail_20' ) end [2025-01-04 04:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:12:23] Production.INFO: ==5440== Releasing lock... [2025-01-04 04:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:12:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:13:05 [end_date_ymd] => 2025-01-04 04:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:13:05' and `end` < '2025-01-04 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-04 04:13:18] Production.INFO: count ==359 [2025-01-04 04:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:13:05 - End Time 2025-01-04 04:13:05 [2025-01-04 04:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170363', 'tblTempUsageDetail_20' ) start [2025-01-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170363', 'tblTempUsageDetail_20' ) end [2025-01-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170363', 'tblTempVendorCDR_20' ) start [2025-01-04 04:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170363', 'tblTempVendorCDR_20' ) end [2025-01-04 04:13:18] Production.INFO: ProcessCDR(1,14170363,1,1,2) [2025-01-04 04:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170363,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170363,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170363', 'tblTempUsageDetail_20' ) start [2025-01-04 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170363', 'tblTempUsageDetail_20' ) end [2025-01-04 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:13:21] Production.INFO: ==5536== Releasing lock... [2025-01-04 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:13:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:14:04 [end_date_ymd] => 2025-01-04 04:14:04 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:14:04' and `end` < '2025-01-04 04: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-04 04:14:18] Production.INFO: count ==359 [2025-01-04 04:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:14:04 - End Time 2025-01-04 04:14:04 [2025-01-04 04:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170368', 'tblTempUsageDetail_20' ) start [2025-01-04 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170368', 'tblTempUsageDetail_20' ) end [2025-01-04 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170368', 'tblTempVendorCDR_20' ) start [2025-01-04 04:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170368', 'tblTempVendorCDR_20' ) end [2025-01-04 04:14:18] Production.INFO: ProcessCDR(1,14170368,1,1,2) [2025-01-04 04:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170368', 'tblTempUsageDetail_20' ) start [2025-01-04 04:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170368', 'tblTempUsageDetail_20' ) end [2025-01-04 04:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:14:21] Production.INFO: ==5636== Releasing lock... [2025-01-04 04:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:14:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:15:05 [end_date_ymd] => 2025-01-04 04:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:15:05' and `end` < '2025-01-04 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-04 04:15:18] Production.INFO: count ==358 [2025-01-04 04:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:15:05 - End Time 2025-01-04 04:15:05 [2025-01-04 04:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170373', 'tblTempUsageDetail_20' ) start [2025-01-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170373', 'tblTempUsageDetail_20' ) end [2025-01-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170373', 'tblTempVendorCDR_20' ) start [2025-01-04 04:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170373', 'tblTempVendorCDR_20' ) end [2025-01-04 04:15:18] Production.INFO: ProcessCDR(1,14170373,1,1,2) [2025-01-04 04:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170373', 'tblTempUsageDetail_20' ) start [2025-01-04 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170373', 'tblTempUsageDetail_20' ) end [2025-01-04 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:15:21] Production.INFO: ==5737== Releasing lock... [2025-01-04 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:15:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:16:05 [end_date_ymd] => 2025-01-04 04:16:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:16:05' and `end` < '2025-01-04 04: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-04 04:16:19] Production.INFO: count ==358 [2025-01-04 04:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:16:05 - End Time 2025-01-04 04:16:05 [2025-01-04 04:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170378', 'tblTempUsageDetail_20' ) start [2025-01-04 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170378', 'tblTempUsageDetail_20' ) end [2025-01-04 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170378', 'tblTempVendorCDR_20' ) start [2025-01-04 04:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170378', 'tblTempVendorCDR_20' ) end [2025-01-04 04:16:19] Production.INFO: ProcessCDR(1,14170378,1,1,2) [2025-01-04 04:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170378', 'tblTempUsageDetail_20' ) start [2025-01-04 04:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170378', 'tblTempUsageDetail_20' ) end [2025-01-04 04:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:16:22] Production.INFO: ==5839== Releasing lock... [2025-01-04 04:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:16:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:17:05 [end_date_ymd] => 2025-01-04 04:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:17:05' and `end` < '2025-01-04 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-04 04:17:19] Production.INFO: count ==358 [2025-01-04 04:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:17:05 - End Time 2025-01-04 04:17:05 [2025-01-04 04:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170383', 'tblTempUsageDetail_20' ) start [2025-01-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170383', 'tblTempUsageDetail_20' ) end [2025-01-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170383', 'tblTempVendorCDR_20' ) start [2025-01-04 04:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170383', 'tblTempVendorCDR_20' ) end [2025-01-04 04:17:19] Production.INFO: ProcessCDR(1,14170383,1,1,2) [2025-01-04 04:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170383', 'tblTempUsageDetail_20' ) start [2025-01-04 04:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170383', 'tblTempUsageDetail_20' ) end [2025-01-04 04:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:17:22] Production.INFO: ==5945== Releasing lock... [2025-01-04 04:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:17:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:18:04 [end_date_ymd] => 2025-01-04 04:18:04 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:18:04' and `end` < '2025-01-04 04: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-04 04:18:17] Production.INFO: count ==358 [2025-01-04 04:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:18:04 - End Time 2025-01-04 04:18:04 [2025-01-04 04:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170388', 'tblTempUsageDetail_20' ) start [2025-01-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170388', 'tblTempUsageDetail_20' ) end [2025-01-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170388', 'tblTempVendorCDR_20' ) start [2025-01-04 04:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170388', 'tblTempVendorCDR_20' ) end [2025-01-04 04:18:18] Production.INFO: ProcessCDR(1,14170388,1,1,2) [2025-01-04 04:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170388', 'tblTempUsageDetail_20' ) start [2025-01-04 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170388', 'tblTempUsageDetail_20' ) end [2025-01-04 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:18:21] Production.INFO: ==6067== Releasing lock... [2025-01-04 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:18:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:19:05 [end_date_ymd] => 2025-01-04 04:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:19:05' and `end` < '2025-01-04 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-04 04:19:18] Production.INFO: count ==358 [2025-01-04 04:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:19:05 - End Time 2025-01-04 04:19:05 [2025-01-04 04:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170393', 'tblTempUsageDetail_20' ) start [2025-01-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170393', 'tblTempUsageDetail_20' ) end [2025-01-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170393', 'tblTempVendorCDR_20' ) start [2025-01-04 04:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170393', 'tblTempVendorCDR_20' ) end [2025-01-04 04:19:18] Production.INFO: ProcessCDR(1,14170393,1,1,2) [2025-01-04 04:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170393', 'tblTempUsageDetail_20' ) start [2025-01-04 04:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170393', 'tblTempUsageDetail_20' ) end [2025-01-04 04:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:19:21] Production.INFO: ==6223== Releasing lock... [2025-01-04 04:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:19:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:20:06 [end_date_ymd] => 2025-01-04 04:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 01:20:06' and `end` < '2025-01-04 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-04 04:20:19] Production.INFO: count ==350 [2025-01-04 04:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:20:06 - End Time 2025-01-04 04:20:06 [2025-01-04 04:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170398', 'tblTempUsageDetail_20' ) start [2025-01-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170398', 'tblTempUsageDetail_20' ) end [2025-01-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170398', 'tblTempVendorCDR_20' ) start [2025-01-04 04:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170398', 'tblTempVendorCDR_20' ) end [2025-01-04 04:20:19] Production.INFO: ProcessCDR(1,14170398,1,1,2) [2025-01-04 04:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170398', 'tblTempUsageDetail_20' ) start [2025-01-04 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170398', 'tblTempUsageDetail_20' ) end [2025-01-04 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:20:22] Production.INFO: ==6343== Releasing lock... [2025-01-04 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:20:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:21:05 [end_date_ymd] => 2025-01-04 04:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:21:05' and `end` < '2025-01-04 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-04 04:21:19] Production.INFO: count ==338 [2025-01-04 04:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:21:05 - End Time 2025-01-04 04:21:05 [2025-01-04 04:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170404', 'tblTempUsageDetail_20' ) start [2025-01-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170404', 'tblTempUsageDetail_20' ) end [2025-01-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170404', 'tblTempVendorCDR_20' ) start [2025-01-04 04:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170404', 'tblTempVendorCDR_20' ) end [2025-01-04 04:21:19] Production.INFO: ProcessCDR(1,14170404,1,1,2) [2025-01-04 04:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170404,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170404,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170404', 'tblTempUsageDetail_20' ) start [2025-01-04 04:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170404', 'tblTempUsageDetail_20' ) end [2025-01-04 04:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:21:22] Production.INFO: ==6464== Releasing lock... [2025-01-04 04:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:21:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:22:05 [end_date_ymd] => 2025-01-04 04:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:22:05' and `end` < '2025-01-04 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-04 04:22:18] Production.INFO: count ==338 [2025-01-04 04:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:22:05 - End Time 2025-01-04 04:22:05 [2025-01-04 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170409', 'tblTempUsageDetail_20' ) start [2025-01-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170409', 'tblTempUsageDetail_20' ) end [2025-01-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170409', 'tblTempVendorCDR_20' ) start [2025-01-04 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170409', 'tblTempVendorCDR_20' ) end [2025-01-04 04:22:18] Production.INFO: ProcessCDR(1,14170409,1,1,2) [2025-01-04 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170409,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170409,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170409', 'tblTempUsageDetail_20' ) start [2025-01-04 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170409', 'tblTempUsageDetail_20' ) end [2025-01-04 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:22:21] Production.INFO: ==6587== Releasing lock... [2025-01-04 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:22:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:23:05 [end_date_ymd] => 2025-01-04 04:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:23:05' and `end` < '2025-01-04 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-04 04:23:18] Production.INFO: count ==338 [2025-01-04 04:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:23:05 - End Time 2025-01-04 04:23:05 [2025-01-04 04:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170414', 'tblTempUsageDetail_20' ) start [2025-01-04 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170414', 'tblTempUsageDetail_20' ) end [2025-01-04 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170414', 'tblTempVendorCDR_20' ) start [2025-01-04 04:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170414', 'tblTempVendorCDR_20' ) end [2025-01-04 04:23:18] Production.INFO: ProcessCDR(1,14170414,1,1,2) [2025-01-04 04:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170414', 'tblTempUsageDetail_20' ) start [2025-01-04 04:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170414', 'tblTempUsageDetail_20' ) end [2025-01-04 04:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:23:21] Production.INFO: ==6707== Releasing lock... [2025-01-04 04:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:23:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:24:06 [end_date_ymd] => 2025-01-04 04:24:06 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:24:06' and `end` < '2025-01-04 04: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-04 04:24:20] Production.INFO: count ==338 [2025-01-04 04:24:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:24:06 - End Time 2025-01-04 04:24:06 [2025-01-04 04:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170419', 'tblTempUsageDetail_20' ) start [2025-01-04 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170419', 'tblTempUsageDetail_20' ) end [2025-01-04 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170419', 'tblTempVendorCDR_20' ) start [2025-01-04 04:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170419', 'tblTempVendorCDR_20' ) end [2025-01-04 04:24:20] Production.INFO: ProcessCDR(1,14170419,1,1,2) [2025-01-04 04:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170419', 'tblTempUsageDetail_20' ) start [2025-01-04 04:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170419', 'tblTempUsageDetail_20' ) end [2025-01-04 04:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:24:24] Production.INFO: ==6831== Releasing lock... [2025-01-04 04:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:24:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:25:05 [end_date_ymd] => 2025-01-04 04:25:05 [RateCDR] => 1 ) [2025-01-04 04:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 01:25:05' and `end` < '2025-01-04 04:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 04:25:18] Production.INFO: count ==338 [2025-01-04 04:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:25:05 - End Time 2025-01-04 04:25:05 [2025-01-04 04:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170424', 'tblTempUsageDetail_20' ) start [2025-01-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170424', 'tblTempUsageDetail_20' ) end [2025-01-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170424', 'tblTempVendorCDR_20' ) start [2025-01-04 04:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170424', 'tblTempVendorCDR_20' ) end [2025-01-04 04:25:18] Production.INFO: ProcessCDR(1,14170424,1,1,2) [2025-01-04 04:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170424', 'tblTempUsageDetail_20' ) start [2025-01-04 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170424', 'tblTempUsageDetail_20' ) end [2025-01-04 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:25:21] Production.INFO: ==6948== Releasing lock... [2025-01-04 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:25:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:26:05 [end_date_ymd] => 2025-01-04 04:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:26:05' and `end` < '2025-01-04 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-04 04:26:18] Production.INFO: count ==338 [2025-01-04 04:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:26:05 - End Time 2025-01-04 04:26:05 [2025-01-04 04:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170429', 'tblTempUsageDetail_20' ) start [2025-01-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170429', 'tblTempUsageDetail_20' ) end [2025-01-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170429', 'tblTempVendorCDR_20' ) start [2025-01-04 04:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170429', 'tblTempVendorCDR_20' ) end [2025-01-04 04:26:18] Production.INFO: ProcessCDR(1,14170429,1,1,2) [2025-01-04 04:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170429', 'tblTempUsageDetail_20' ) start [2025-01-04 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170429', 'tblTempUsageDetail_20' ) end [2025-01-04 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:26:21] Production.INFO: ==7061== Releasing lock... [2025-01-04 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:26:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:27:05 [end_date_ymd] => 2025-01-04 04:27:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:27:05' and `end` < '2025-01-04 04: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-04 04:27:18] Production.INFO: count ==338 [2025-01-04 04:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:27:05 - End Time 2025-01-04 04:27:05 [2025-01-04 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170434', 'tblTempUsageDetail_20' ) start [2025-01-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170434', 'tblTempUsageDetail_20' ) end [2025-01-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170434', 'tblTempVendorCDR_20' ) start [2025-01-04 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170434', 'tblTempVendorCDR_20' ) end [2025-01-04 04:27:18] Production.INFO: ProcessCDR(1,14170434,1,1,2) [2025-01-04 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170434', 'tblTempUsageDetail_20' ) start [2025-01-04 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170434', 'tblTempUsageDetail_20' ) end [2025-01-04 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:27:22] Production.INFO: ==7188== Releasing lock... [2025-01-04 04:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:27:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:28:05 [end_date_ymd] => 2025-01-04 04:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:28:05' and `end` < '2025-01-04 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-04 04:28:19] Production.INFO: count ==338 [2025-01-04 04:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:28:05 - End Time 2025-01-04 04:28:05 [2025-01-04 04:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170439', 'tblTempUsageDetail_20' ) start [2025-01-04 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170439', 'tblTempUsageDetail_20' ) end [2025-01-04 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170439', 'tblTempVendorCDR_20' ) start [2025-01-04 04:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170439', 'tblTempVendorCDR_20' ) end [2025-01-04 04:28:19] Production.INFO: ProcessCDR(1,14170439,1,1,2) [2025-01-04 04:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170439', 'tblTempUsageDetail_20' ) start [2025-01-04 04:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170439', 'tblTempUsageDetail_20' ) end [2025-01-04 04:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:28:22] Production.INFO: ==7303== Releasing lock... [2025-01-04 04:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:28:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:29:05 [end_date_ymd] => 2025-01-04 04:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:29:05' and `end` < '2025-01-04 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-04 04:29:18] Production.INFO: count ==338 [2025-01-04 04:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:29:05 - End Time 2025-01-04 04:29:05 [2025-01-04 04:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170444', 'tblTempUsageDetail_20' ) start [2025-01-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170444', 'tblTempUsageDetail_20' ) end [2025-01-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170444', 'tblTempVendorCDR_20' ) start [2025-01-04 04:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170444', 'tblTempVendorCDR_20' ) end [2025-01-04 04:29:18] Production.INFO: ProcessCDR(1,14170444,1,1,2) [2025-01-04 04:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170444', 'tblTempUsageDetail_20' ) start [2025-01-04 04:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170444', 'tblTempUsageDetail_20' ) end [2025-01-04 04:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:29:21] Production.INFO: ==7412== Releasing lock... [2025-01-04 04:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:29:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:30:06 [end_date_ymd] => 2025-01-04 04:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 01:30:06' and `end` < '2025-01-04 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-04 04:30:19] Production.INFO: count ==338 [2025-01-04 04:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:30:06 - End Time 2025-01-04 04:30:06 [2025-01-04 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170451', 'tblTempUsageDetail_20' ) start [2025-01-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170451', 'tblTempUsageDetail_20' ) end [2025-01-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170451', 'tblTempVendorCDR_20' ) start [2025-01-04 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170451', 'tblTempVendorCDR_20' ) end [2025-01-04 04:30:19] Production.INFO: ProcessCDR(1,14170451,1,1,2) [2025-01-04 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170451', 'tblTempUsageDetail_20' ) start [2025-01-04 04:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170451', 'tblTempUsageDetail_20' ) end [2025-01-04 04:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:30:22] Production.INFO: ==7528== Releasing lock... [2025-01-04 04:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 04:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:31:04 [end_date_ymd] => 2025-01-04 04:31:04 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:31:04' and `end` < '2025-01-04 04: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-04 04:31:19] Production.INFO: count ==336 [2025-01-04 04:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:31:04 - End Time 2025-01-04 04:31:04 [2025-01-04 04:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170456', 'tblTempUsageDetail_20' ) start [2025-01-04 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170456', 'tblTempUsageDetail_20' ) end [2025-01-04 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170456', 'tblTempVendorCDR_20' ) start [2025-01-04 04:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170456', 'tblTempVendorCDR_20' ) end [2025-01-04 04:31:19] Production.INFO: ProcessCDR(1,14170456,1,1,2) [2025-01-04 04:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170456', 'tblTempUsageDetail_20' ) start [2025-01-04 04:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170456', 'tblTempUsageDetail_20' ) end [2025-01-04 04:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:31:22] Production.INFO: ==7742== Releasing lock... [2025-01-04 04:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:31:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:32:05 [end_date_ymd] => 2025-01-04 04:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:32:05' and `end` < '2025-01-04 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-04 04:32:18] Production.INFO: count ==336 [2025-01-04 04:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:32:05 - End Time 2025-01-04 04:32:05 [2025-01-04 04:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170461', 'tblTempUsageDetail_20' ) start [2025-01-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170461', 'tblTempUsageDetail_20' ) end [2025-01-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170461', 'tblTempVendorCDR_20' ) start [2025-01-04 04:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170461', 'tblTempVendorCDR_20' ) end [2025-01-04 04:32:19] Production.INFO: ProcessCDR(1,14170461,1,1,2) [2025-01-04 04:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170461', 'tblTempUsageDetail_20' ) start [2025-01-04 04:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170461', 'tblTempUsageDetail_20' ) end [2025-01-04 04:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:32:22] Production.INFO: ==7850== Releasing lock... [2025-01-04 04:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:32:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:33:06 [end_date_ymd] => 2025-01-04 04:33:06 [RateCDR] => 1 ) [2025-01-04 04:33: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-04 01:33:06' and `end` < '2025-01-04 04:33: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-04 04:33:19] Production.INFO: count ==336 [2025-01-04 04:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:33:06 - End Time 2025-01-04 04:33:06 [2025-01-04 04:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170466', 'tblTempUsageDetail_20' ) start [2025-01-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170466', 'tblTempUsageDetail_20' ) end [2025-01-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170466', 'tblTempVendorCDR_20' ) start [2025-01-04 04:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170466', 'tblTempVendorCDR_20' ) end [2025-01-04 04:33:19] Production.INFO: ProcessCDR(1,14170466,1,1,2) [2025-01-04 04:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170466', 'tblTempUsageDetail_20' ) start [2025-01-04 04:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170466', 'tblTempUsageDetail_20' ) end [2025-01-04 04:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:33:22] Production.INFO: ==7953== Releasing lock... [2025-01-04 04:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:33:22] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:34:04 [end_date_ymd] => 2025-01-04 04:34:04 [RateCDR] => 1 ) [2025-01-04 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-04 01:34:04' and `end` < '2025-01-04 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-04 04:34:18] Production.INFO: count ==334 [2025-01-04 04:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:34:04 - End Time 2025-01-04 04:34:04 [2025-01-04 04:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170471', 'tblTempUsageDetail_20' ) start [2025-01-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170471', 'tblTempUsageDetail_20' ) end [2025-01-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170471', 'tblTempVendorCDR_20' ) start [2025-01-04 04:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170471', 'tblTempVendorCDR_20' ) end [2025-01-04 04:34:18] Production.INFO: ProcessCDR(1,14170471,1,1,2) [2025-01-04 04:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170471', 'tblTempUsageDetail_20' ) start [2025-01-04 04:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170471', 'tblTempUsageDetail_20' ) end [2025-01-04 04:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:34:21] Production.INFO: ==8056== Releasing lock... [2025-01-04 04:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:34:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:35:05 [end_date_ymd] => 2025-01-04 04:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:35:05' and `end` < '2025-01-04 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-04 04:35:19] Production.INFO: count ==334 [2025-01-04 04:35:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:35:05 - End Time 2025-01-04 04:35:05 [2025-01-04 04:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170476', 'tblTempUsageDetail_20' ) start [2025-01-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170476', 'tblTempUsageDetail_20' ) end [2025-01-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170476', 'tblTempVendorCDR_20' ) start [2025-01-04 04:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170476', 'tblTempVendorCDR_20' ) end [2025-01-04 04:35:19] Production.INFO: ProcessCDR(1,14170476,1,1,2) [2025-01-04 04:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170476', 'tblTempUsageDetail_20' ) start [2025-01-04 04:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170476', 'tblTempUsageDetail_20' ) end [2025-01-04 04:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:35:22] Production.INFO: ==8206== Releasing lock... [2025-01-04 04:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:35:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:36:05 [end_date_ymd] => 2025-01-04 04:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:36:05' and `end` < '2025-01-04 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-04 04:36:18] Production.INFO: count ==333 [2025-01-04 04:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:36:05 - End Time 2025-01-04 04:36:05 [2025-01-04 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170481', 'tblTempUsageDetail_20' ) start [2025-01-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170481', 'tblTempUsageDetail_20' ) end [2025-01-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170481', 'tblTempVendorCDR_20' ) start [2025-01-04 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170481', 'tblTempVendorCDR_20' ) end [2025-01-04 04:36:18] Production.INFO: ProcessCDR(1,14170481,1,1,2) [2025-01-04 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170481', 'tblTempUsageDetail_20' ) start [2025-01-04 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170481', 'tblTempUsageDetail_20' ) end [2025-01-04 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:36:21] Production.INFO: ==8312== Releasing lock... [2025-01-04 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:36:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:37:05 [end_date_ymd] => 2025-01-04 04:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:37:05' and `end` < '2025-01-04 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-04 04:37:17] Production.INFO: count ==333 [2025-01-04 04:37:17] Production.ERROR: pbx CDR StartTime 2025-01-04 01:37:05 - End Time 2025-01-04 04:37:05 [2025-01-04 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170486', 'tblTempUsageDetail_20' ) start [2025-01-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170486', 'tblTempUsageDetail_20' ) end [2025-01-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170486', 'tblTempVendorCDR_20' ) start [2025-01-04 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170486', 'tblTempVendorCDR_20' ) end [2025-01-04 04:37:17] Production.INFO: ProcessCDR(1,14170486,1,1,2) [2025-01-04 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170486', 'tblTempUsageDetail_20' ) start [2025-01-04 04:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170486', 'tblTempUsageDetail_20' ) end [2025-01-04 04:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:37:21] Production.INFO: ==8416== Releasing lock... [2025-01-04 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:37:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:38:06 [end_date_ymd] => 2025-01-04 04:38:06 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:38:06' and `end` < '2025-01-04 04: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-04 04:38:18] Production.INFO: count ==333 [2025-01-04 04:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:38:06 - End Time 2025-01-04 04:38:06 [2025-01-04 04:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170491', 'tblTempUsageDetail_20' ) start [2025-01-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170491', 'tblTempUsageDetail_20' ) end [2025-01-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170491', 'tblTempVendorCDR_20' ) start [2025-01-04 04:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170491', 'tblTempVendorCDR_20' ) end [2025-01-04 04:38:18] Production.INFO: ProcessCDR(1,14170491,1,1,2) [2025-01-04 04:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170491', 'tblTempUsageDetail_20' ) start [2025-01-04 04:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170491', 'tblTempUsageDetail_20' ) end [2025-01-04 04:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:38:22] Production.INFO: ==8518== Releasing lock... [2025-01-04 04:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:38:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:39:05 [end_date_ymd] => 2025-01-04 04:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:39:05' and `end` < '2025-01-04 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-04 04:39:19] Production.INFO: count ==333 [2025-01-04 04:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:39:05 - End Time 2025-01-04 04:39:05 [2025-01-04 04:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170496', 'tblTempUsageDetail_20' ) start [2025-01-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170496', 'tblTempUsageDetail_20' ) end [2025-01-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170496', 'tblTempVendorCDR_20' ) start [2025-01-04 04:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170496', 'tblTempVendorCDR_20' ) end [2025-01-04 04:39:19] Production.INFO: ProcessCDR(1,14170496,1,1,2) [2025-01-04 04:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170496', 'tblTempUsageDetail_20' ) start [2025-01-04 04:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170496', 'tblTempUsageDetail_20' ) end [2025-01-04 04:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:39:22] Production.INFO: ==8629== Releasing lock... [2025-01-04 04:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:39:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:40:06 [end_date_ymd] => 2025-01-04 04:40:06 [RateCDR] => 1 ) [2025-01-04 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-04 01:40:06' and `end` < '2025-01-04 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-04 04:40:18] Production.INFO: count ==325 [2025-01-04 04:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:40:06 - End Time 2025-01-04 04:40:06 [2025-01-04 04:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170501', 'tblTempUsageDetail_20' ) start [2025-01-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170501', 'tblTempUsageDetail_20' ) end [2025-01-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170501', 'tblTempVendorCDR_20' ) start [2025-01-04 04:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170501', 'tblTempVendorCDR_20' ) end [2025-01-04 04:40:18] Production.INFO: ProcessCDR(1,14170501,1,1,2) [2025-01-04 04:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170501,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170501,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170501', 'tblTempUsageDetail_20' ) start [2025-01-04 04:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170501', 'tblTempUsageDetail_20' ) end [2025-01-04 04:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:40:21] Production.INFO: ==8735== Releasing lock... [2025-01-04 04:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:40:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:41:04 [end_date_ymd] => 2025-01-04 04:41:04 [RateCDR] => 1 ) [2025-01-04 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-04 01:41:04' and `end` < '2025-01-04 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-04 04:41:17] Production.INFO: count ==325 [2025-01-04 04:41:17] Production.ERROR: pbx CDR StartTime 2025-01-04 01:41:04 - End Time 2025-01-04 04:41:04 [2025-01-04 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170507', 'tblTempUsageDetail_20' ) start [2025-01-04 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170507', 'tblTempUsageDetail_20' ) end [2025-01-04 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170507', 'tblTempVendorCDR_20' ) start [2025-01-04 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170507', 'tblTempVendorCDR_20' ) end [2025-01-04 04:41:17] Production.INFO: ProcessCDR(1,14170507,1,1,2) [2025-01-04 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170507', 'tblTempUsageDetail_20' ) start [2025-01-04 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170507', 'tblTempUsageDetail_20' ) end [2025-01-04 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:41:20] Production.INFO: ==8837== Releasing lock... [2025-01-04 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:41:20] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:42:05 [end_date_ymd] => 2025-01-04 04:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:42:05' and `end` < '2025-01-04 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-04 04:42:18] Production.INFO: count ==325 [2025-01-04 04:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:42:05 - End Time 2025-01-04 04:42:05 [2025-01-04 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170512', 'tblTempUsageDetail_20' ) start [2025-01-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170512', 'tblTempUsageDetail_20' ) end [2025-01-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170512', 'tblTempVendorCDR_20' ) start [2025-01-04 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170512', 'tblTempVendorCDR_20' ) end [2025-01-04 04:42:18] Production.INFO: ProcessCDR(1,14170512,1,1,2) [2025-01-04 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170512', 'tblTempUsageDetail_20' ) start [2025-01-04 04:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170512', 'tblTempUsageDetail_20' ) end [2025-01-04 04:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:42:21] Production.INFO: ==8948== Releasing lock... [2025-01-04 04:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:42:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:43:05 [end_date_ymd] => 2025-01-04 04:43:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:43:05' and `end` < '2025-01-04 04: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-04 04:43:19] Production.INFO: count ==325 [2025-01-04 04:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:43:05 - End Time 2025-01-04 04:43:05 [2025-01-04 04:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170517', 'tblTempUsageDetail_20' ) start [2025-01-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170517', 'tblTempUsageDetail_20' ) end [2025-01-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170517', 'tblTempVendorCDR_20' ) start [2025-01-04 04:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170517', 'tblTempVendorCDR_20' ) end [2025-01-04 04:43:19] Production.INFO: ProcessCDR(1,14170517,1,1,2) [2025-01-04 04:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170517', 'tblTempUsageDetail_20' ) start [2025-01-04 04:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170517', 'tblTempUsageDetail_20' ) end [2025-01-04 04:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:43:22] Production.INFO: ==9045== Releasing lock... [2025-01-04 04:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:43:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:44:05 [end_date_ymd] => 2025-01-04 04:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:44:05' and `end` < '2025-01-04 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-04 04:44:18] Production.INFO: count ==325 [2025-01-04 04:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 01:44:05 - End Time 2025-01-04 04:44:05 [2025-01-04 04:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170522', 'tblTempUsageDetail_20' ) start [2025-01-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170522', 'tblTempUsageDetail_20' ) end [2025-01-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170522', 'tblTempVendorCDR_20' ) start [2025-01-04 04:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170522', 'tblTempVendorCDR_20' ) end [2025-01-04 04:44:18] Production.INFO: ProcessCDR(1,14170522,1,1,2) [2025-01-04 04:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170522', 'tblTempUsageDetail_20' ) start [2025-01-04 04:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170522', 'tblTempUsageDetail_20' ) end [2025-01-04 04:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:44:21] Production.INFO: ==9143== Releasing lock... [2025-01-04 04:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:44:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:45:05 [end_date_ymd] => 2025-01-04 04:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:45:05' and `end` < '2025-01-04 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-04 04:45:19] Production.INFO: count ==325 [2025-01-04 04:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:45:05 - End Time 2025-01-04 04:45:05 [2025-01-04 04:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170527', 'tblTempUsageDetail_20' ) start [2025-01-04 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170527', 'tblTempUsageDetail_20' ) end [2025-01-04 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170527', 'tblTempVendorCDR_20' ) start [2025-01-04 04:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170527', 'tblTempVendorCDR_20' ) end [2025-01-04 04:45:19] Production.INFO: ProcessCDR(1,14170527,1,1,2) [2025-01-04 04:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170527', 'tblTempUsageDetail_20' ) start [2025-01-04 04:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170527', 'tblTempUsageDetail_20' ) end [2025-01-04 04:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:45:22] Production.INFO: ==9237== Releasing lock... [2025-01-04 04:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:45:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:46:05 [end_date_ymd] => 2025-01-04 04:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:46:05' and `end` < '2025-01-04 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-04 04:46:22] Production.INFO: count ==325 [2025-01-04 04:46:22] Production.ERROR: pbx CDR StartTime 2025-01-04 01:46:05 - End Time 2025-01-04 04:46:05 [2025-01-04 04:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170532', 'tblTempUsageDetail_20' ) start [2025-01-04 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170532', 'tblTempUsageDetail_20' ) end [2025-01-04 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170532', 'tblTempVendorCDR_20' ) start [2025-01-04 04:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170532', 'tblTempVendorCDR_20' ) end [2025-01-04 04:46:22] Production.INFO: ProcessCDR(1,14170532,1,1,2) [2025-01-04 04:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170532', 'tblTempUsageDetail_20' ) start [2025-01-04 04:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170532', 'tblTempUsageDetail_20' ) end [2025-01-04 04:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:46:25] Production.INFO: ==9325== Releasing lock... [2025-01-04 04:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:46:25] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:47:05 [end_date_ymd] => 2025-01-04 04:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:47:05' and `end` < '2025-01-04 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-04 04:47:21] Production.INFO: count ==325 [2025-01-04 04:47:21] Production.ERROR: pbx CDR StartTime 2025-01-04 01:47:05 - End Time 2025-01-04 04:47:05 [2025-01-04 04:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170537', 'tblTempUsageDetail_20' ) start [2025-01-04 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170537', 'tblTempUsageDetail_20' ) end [2025-01-04 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170537', 'tblTempVendorCDR_20' ) start [2025-01-04 04:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170537', 'tblTempVendorCDR_20' ) end [2025-01-04 04:47:21] Production.INFO: ProcessCDR(1,14170537,1,1,2) [2025-01-04 04:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170537', 'tblTempUsageDetail_20' ) start [2025-01-04 04:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170537', 'tblTempUsageDetail_20' ) end [2025-01-04 04:47:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:47:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:47:24] Production.INFO: ==9416== Releasing lock... [2025-01-04 04:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:47:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:48:04 [end_date_ymd] => 2025-01-04 04:48:04 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:48:04' and `end` < '2025-01-04 04: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-04 04:48:20] Production.INFO: count ==325 [2025-01-04 04:48:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:48:04 - End Time 2025-01-04 04:48:04 [2025-01-04 04:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170542', 'tblTempUsageDetail_20' ) start [2025-01-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170542', 'tblTempUsageDetail_20' ) end [2025-01-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170542', 'tblTempVendorCDR_20' ) start [2025-01-04 04:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170542', 'tblTempVendorCDR_20' ) end [2025-01-04 04:48:20] Production.INFO: ProcessCDR(1,14170542,1,1,2) [2025-01-04 04:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170542', 'tblTempUsageDetail_20' ) start [2025-01-04 04:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170542', 'tblTempUsageDetail_20' ) end [2025-01-04 04:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:48:23] Production.INFO: ==9503== Releasing lock... [2025-01-04 04:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:48:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:49:05 [end_date_ymd] => 2025-01-04 04:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:49:05' and `end` < '2025-01-04 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-04 04:49:20] Production.INFO: count ==325 [2025-01-04 04:49:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:49:05 - End Time 2025-01-04 04:49:05 [2025-01-04 04:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170547', 'tblTempUsageDetail_20' ) start [2025-01-04 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170547', 'tblTempUsageDetail_20' ) end [2025-01-04 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170547', 'tblTempVendorCDR_20' ) start [2025-01-04 04:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170547', 'tblTempVendorCDR_20' ) end [2025-01-04 04:49:20] Production.INFO: ProcessCDR(1,14170547,1,1,2) [2025-01-04 04:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170547,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170547,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170547', 'tblTempUsageDetail_20' ) start [2025-01-04 04:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170547', 'tblTempUsageDetail_20' ) end [2025-01-04 04:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:49:23] Production.INFO: ==9584== Releasing lock... [2025-01-04 04:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:49:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:50:06 [end_date_ymd] => 2025-01-04 04:50:06 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:50:06' and `end` < '2025-01-04 04: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-04 04:50:22] Production.INFO: count ==319 [2025-01-04 04:50:22] Production.ERROR: pbx CDR StartTime 2025-01-04 01:50:06 - End Time 2025-01-04 04:50:06 [2025-01-04 04:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170553', 'tblTempUsageDetail_20' ) start [2025-01-04 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170553', 'tblTempUsageDetail_20' ) end [2025-01-04 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170553', 'tblTempVendorCDR_20' ) start [2025-01-04 04:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170553', 'tblTempVendorCDR_20' ) end [2025-01-04 04:50:22] Production.INFO: ProcessCDR(1,14170553,1,1,2) [2025-01-04 04:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:50:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170553', 'tblTempUsageDetail_20' ) start [2025-01-04 04:50:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170553', 'tblTempUsageDetail_20' ) end [2025-01-04 04:50:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:50:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:50:25] Production.INFO: ==9701== Releasing lock... [2025-01-04 04:50:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:50:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:51:05 [end_date_ymd] => 2025-01-04 04:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:51:05' and `end` < '2025-01-04 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-04 04:51:20] Production.INFO: count ==313 [2025-01-04 04:51:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:51:05 - End Time 2025-01-04 04:51:05 [2025-01-04 04:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170558', 'tblTempUsageDetail_20' ) start [2025-01-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170558', 'tblTempUsageDetail_20' ) end [2025-01-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170558', 'tblTempVendorCDR_20' ) start [2025-01-04 04:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170558', 'tblTempVendorCDR_20' ) end [2025-01-04 04:51:20] Production.INFO: ProcessCDR(1,14170558,1,1,2) [2025-01-04 04:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170558', 'tblTempUsageDetail_20' ) start [2025-01-04 04:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170558', 'tblTempUsageDetail_20' ) end [2025-01-04 04:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:51:23] Production.INFO: ==9776== Releasing lock... [2025-01-04 04:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:51:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:52:05 [end_date_ymd] => 2025-01-04 04:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:52:05' and `end` < '2025-01-04 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-04 04:52:19] Production.INFO: count ==313 [2025-01-04 04:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 01:52:05 - End Time 2025-01-04 04:52:05 [2025-01-04 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170563', 'tblTempUsageDetail_20' ) start [2025-01-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170563', 'tblTempUsageDetail_20' ) end [2025-01-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170563', 'tblTempVendorCDR_20' ) start [2025-01-04 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170563', 'tblTempVendorCDR_20' ) end [2025-01-04 04:52:19] Production.INFO: ProcessCDR(1,14170563,1,1,2) [2025-01-04 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170563', 'tblTempUsageDetail_20' ) start [2025-01-04 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170563', 'tblTempUsageDetail_20' ) end [2025-01-04 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:52:22] Production.INFO: ==9848== Releasing lock... [2025-01-04 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:52:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:53:05 [end_date_ymd] => 2025-01-04 04:53:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:53:05' and `end` < '2025-01-04 04: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-04 04:53:20] Production.INFO: count ==313 [2025-01-04 04:53:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:53:05 - End Time 2025-01-04 04:53:05 [2025-01-04 04:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170568', 'tblTempUsageDetail_20' ) start [2025-01-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170568', 'tblTempUsageDetail_20' ) end [2025-01-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170568', 'tblTempVendorCDR_20' ) start [2025-01-04 04:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170568', 'tblTempVendorCDR_20' ) end [2025-01-04 04:53:20] Production.INFO: ProcessCDR(1,14170568,1,1,2) [2025-01-04 04:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170568', 'tblTempUsageDetail_20' ) start [2025-01-04 04:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170568', 'tblTempUsageDetail_20' ) end [2025-01-04 04:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:53:23] Production.INFO: ==9920== Releasing lock... [2025-01-04 04:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:53:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:54:05 [end_date_ymd] => 2025-01-04 04:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:54:05' and `end` < '2025-01-04 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-04 04:54:21] Production.INFO: count ==313 [2025-01-04 04:54:21] Production.ERROR: pbx CDR StartTime 2025-01-04 01:54:05 - End Time 2025-01-04 04:54:05 [2025-01-04 04:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170573', 'tblTempUsageDetail_20' ) start [2025-01-04 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170573', 'tblTempUsageDetail_20' ) end [2025-01-04 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170573', 'tblTempVendorCDR_20' ) start [2025-01-04 04:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170573', 'tblTempVendorCDR_20' ) end [2025-01-04 04:54:21] Production.INFO: ProcessCDR(1,14170573,1,1,2) [2025-01-04 04:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:54:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170573', 'tblTempUsageDetail_20' ) start [2025-01-04 04:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170573', 'tblTempUsageDetail_20' ) end [2025-01-04 04:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:54:24] Production.INFO: ==9995== Releasing lock... [2025-01-04 04:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:54:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:55:05 [end_date_ymd] => 2025-01-04 04:55:05 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:55:05' and `end` < '2025-01-04 04: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-04 04:55:20] Production.INFO: count ==313 [2025-01-04 04:55:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:55:05 - End Time 2025-01-04 04:55:05 [2025-01-04 04:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170578', 'tblTempUsageDetail_20' ) start [2025-01-04 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170578', 'tblTempUsageDetail_20' ) end [2025-01-04 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170578', 'tblTempVendorCDR_20' ) start [2025-01-04 04:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170578', 'tblTempVendorCDR_20' ) end [2025-01-04 04:55:20] Production.INFO: ProcessCDR(1,14170578,1,1,2) [2025-01-04 04:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170578', 'tblTempUsageDetail_20' ) start [2025-01-04 04:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170578', 'tblTempUsageDetail_20' ) end [2025-01-04 04:55:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:55:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:55:23] Production.INFO: ==10068== Releasing lock... [2025-01-04 04:55:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:55:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:56:05 [end_date_ymd] => 2025-01-04 04:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:56:05' and `end` < '2025-01-04 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-04 04:56:20] Production.INFO: count ==313 [2025-01-04 04:56:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:56:05 - End Time 2025-01-04 04:56:05 [2025-01-04 04:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170583', 'tblTempUsageDetail_20' ) start [2025-01-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170583', 'tblTempUsageDetail_20' ) end [2025-01-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170583', 'tblTempVendorCDR_20' ) start [2025-01-04 04:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170583', 'tblTempVendorCDR_20' ) end [2025-01-04 04:56:20] Production.INFO: ProcessCDR(1,14170583,1,1,2) [2025-01-04 04:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170583', 'tblTempUsageDetail_20' ) start [2025-01-04 04:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170583', 'tblTempUsageDetail_20' ) end [2025-01-04 04:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:56:23] Production.INFO: ==10144== Releasing lock... [2025-01-04 04:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:56:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:57:04 [end_date_ymd] => 2025-01-04 04:57:04 [RateCDR] => 1 ) [2025-01-04 04: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-04 01:57:04' and `end` < '2025-01-04 04: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-04 04:57:20] Production.INFO: count ==313 [2025-01-04 04:57:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:57:04 - End Time 2025-01-04 04:57:04 [2025-01-04 04:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170588', 'tblTempUsageDetail_20' ) start [2025-01-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170588', 'tblTempUsageDetail_20' ) end [2025-01-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170588', 'tblTempVendorCDR_20' ) start [2025-01-04 04:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170588', 'tblTempVendorCDR_20' ) end [2025-01-04 04:57:20] Production.INFO: ProcessCDR(1,14170588,1,1,2) [2025-01-04 04:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170588', 'tblTempUsageDetail_20' ) start [2025-01-04 04:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170588', 'tblTempUsageDetail_20' ) end [2025-01-04 04:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:57:24] Production.INFO: ==10219== Releasing lock... [2025-01-04 04:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:57:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:58:05 [end_date_ymd] => 2025-01-04 04:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 01:58:05' and `end` < '2025-01-04 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-04 04:58:20] Production.INFO: count ==313 [2025-01-04 04:58:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:58:05 - End Time 2025-01-04 04:58:05 [2025-01-04 04:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170593', 'tblTempUsageDetail_20' ) start [2025-01-04 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170593', 'tblTempUsageDetail_20' ) end [2025-01-04 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170593', 'tblTempVendorCDR_20' ) start [2025-01-04 04:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170593', 'tblTempVendorCDR_20' ) end [2025-01-04 04:58:20] Production.INFO: ProcessCDR(1,14170593,1,1,2) [2025-01-04 04:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170593', 'tblTempUsageDetail_20' ) start [2025-01-04 04:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170593', 'tblTempUsageDetail_20' ) end [2025-01-04 04:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:58:23] Production.INFO: ==10294== Releasing lock... [2025-01-04 04:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:58:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 04:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 01:59:06 [end_date_ymd] => 2025-01-04 04:59:06 [RateCDR] => 1 ) [2025-01-04 04:59: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-04 01:59:06' and `end` < '2025-01-04 04:59: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-04 04:59:20] Production.INFO: count ==313 [2025-01-04 04:59:20] Production.ERROR: pbx CDR StartTime 2025-01-04 01:59:06 - End Time 2025-01-04 04:59:06 [2025-01-04 04:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170598', 'tblTempUsageDetail_20' ) start [2025-01-04 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170598', 'tblTempUsageDetail_20' ) end [2025-01-04 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170598', 'tblTempVendorCDR_20' ) start [2025-01-04 04:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170598', 'tblTempVendorCDR_20' ) end [2025-01-04 04:59:20] Production.INFO: ProcessCDR(1,14170598,1,1,2) [2025-01-04 04:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170598,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 04:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170598,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170598', 'tblTempUsageDetail_20' ) start [2025-01-04 04:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170598', 'tblTempUsageDetail_20' ) end [2025-01-04 04:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 04:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 04:59:23] Production.INFO: ==10366== Releasing lock... [2025-01-04 04:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 04:59:23] Production.INFO: 31 MB #Memory Used# [2025-01-04 05:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:00:06 [end_date_ymd] => 2025-01-04 05:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 02:00:06' and `end` < '2025-01-04 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-04 05:00:20] Production.INFO: count ==297 [2025-01-04 05:00:20] Production.ERROR: pbx CDR StartTime 2025-01-04 02:00:06 - End Time 2025-01-04 05:00:06 [2025-01-04 05:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170604', 'tblTempUsageDetail_20' ) start [2025-01-04 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170604', 'tblTempUsageDetail_20' ) end [2025-01-04 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170604', 'tblTempVendorCDR_20' ) start [2025-01-04 05:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170604', 'tblTempVendorCDR_20' ) end [2025-01-04 05:00:20] Production.INFO: ProcessCDR(1,14170604,1,1,2) [2025-01-04 05:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170604', 'tblTempUsageDetail_20' ) start [2025-01-04 05:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170604', 'tblTempUsageDetail_20' ) end [2025-01-04 05:00:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:00:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:00:24] Production.INFO: ==10445== Releasing lock... [2025-01-04 05:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:00:24] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:01:04 [end_date_ymd] => 2025-01-04 05:01:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:01:04' and `end` < '2025-01-04 05: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-04 05:01:18] Production.INFO: count ==286 [2025-01-04 05:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:01:04 - End Time 2025-01-04 05:01:04 [2025-01-04 05:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170609', 'tblTempUsageDetail_20' ) start [2025-01-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170609', 'tblTempUsageDetail_20' ) end [2025-01-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170609', 'tblTempVendorCDR_20' ) start [2025-01-04 05:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170609', 'tblTempVendorCDR_20' ) end [2025-01-04 05:01:18] Production.INFO: ProcessCDR(1,14170609,1,1,2) [2025-01-04 05:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170609', 'tblTempUsageDetail_20' ) start [2025-01-04 05:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170609', 'tblTempUsageDetail_20' ) end [2025-01-04 05:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:01:21] Production.INFO: ==10533== Releasing lock... [2025-01-04 05:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:01:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:02:05 [end_date_ymd] => 2025-01-04 05:02:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:02:05' and `end` < '2025-01-04 05: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-04 05:02:19] Production.INFO: count ==286 [2025-01-04 05:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:02:05 - End Time 2025-01-04 05:02:05 [2025-01-04 05:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170614', 'tblTempUsageDetail_20' ) start [2025-01-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170614', 'tblTempUsageDetail_20' ) end [2025-01-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170614', 'tblTempVendorCDR_20' ) start [2025-01-04 05:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170614', 'tblTempVendorCDR_20' ) end [2025-01-04 05:02:19] Production.INFO: ProcessCDR(1,14170614,1,1,2) [2025-01-04 05:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170614', 'tblTempUsageDetail_20' ) start [2025-01-04 05:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170614', 'tblTempUsageDetail_20' ) end [2025-01-04 05:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:02:22] Production.INFO: ==10611== Releasing lock... [2025-01-04 05:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:02:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:03:05 [end_date_ymd] => 2025-01-04 05:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:03:05' and `end` < '2025-01-04 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-04 05:03:19] Production.INFO: count ==286 [2025-01-04 05:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:03:05 - End Time 2025-01-04 05:03:05 [2025-01-04 05:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170619', 'tblTempUsageDetail_20' ) start [2025-01-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170619', 'tblTempUsageDetail_20' ) end [2025-01-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170619', 'tblTempVendorCDR_20' ) start [2025-01-04 05:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170619', 'tblTempVendorCDR_20' ) end [2025-01-04 05:03:19] Production.INFO: ProcessCDR(1,14170619,1,1,2) [2025-01-04 05:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170619', 'tblTempUsageDetail_20' ) start [2025-01-04 05:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170619', 'tblTempUsageDetail_20' ) end [2025-01-04 05:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:03:22] Production.INFO: ==10681== Releasing lock... [2025-01-04 05:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:03:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:04:05 [end_date_ymd] => 2025-01-04 05:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:04:05' and `end` < '2025-01-04 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-04 05:04:18] Production.INFO: count ==285 [2025-01-04 05:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:04:05 - End Time 2025-01-04 05:04:05 [2025-01-04 05:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170624', 'tblTempUsageDetail_20' ) start [2025-01-04 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170624', 'tblTempUsageDetail_20' ) end [2025-01-04 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170624', 'tblTempVendorCDR_20' ) start [2025-01-04 05:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170624', 'tblTempVendorCDR_20' ) end [2025-01-04 05:04:18] Production.INFO: ProcessCDR(1,14170624,1,1,2) [2025-01-04 05:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170624', 'tblTempUsageDetail_20' ) start [2025-01-04 05:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170624', 'tblTempUsageDetail_20' ) end [2025-01-04 05:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:04:21] Production.INFO: ==10751== Releasing lock... [2025-01-04 05:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:04:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:05:05 [end_date_ymd] => 2025-01-04 05:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:05:05' and `end` < '2025-01-04 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-04 05:05:19] Production.INFO: count ==285 [2025-01-04 05:05:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:05:05 - End Time 2025-01-04 05:05:05 [2025-01-04 05:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170629', 'tblTempUsageDetail_20' ) start [2025-01-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170629', 'tblTempUsageDetail_20' ) end [2025-01-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170629', 'tblTempVendorCDR_20' ) start [2025-01-04 05:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170629', 'tblTempVendorCDR_20' ) end [2025-01-04 05:05:19] Production.INFO: ProcessCDR(1,14170629,1,1,2) [2025-01-04 05:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170629', 'tblTempUsageDetail_20' ) start [2025-01-04 05:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170629', 'tblTempUsageDetail_20' ) end [2025-01-04 05:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:05:22] Production.INFO: ==10822== Releasing lock... [2025-01-04 05:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:06:04 [end_date_ymd] => 2025-01-04 05:06:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:06:04' and `end` < '2025-01-04 05: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-04 05:06:19] Production.INFO: count ==285 [2025-01-04 05:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:06:04 - End Time 2025-01-04 05:06:04 [2025-01-04 05:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170634', 'tblTempUsageDetail_20' ) start [2025-01-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170634', 'tblTempUsageDetail_20' ) end [2025-01-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170634', 'tblTempVendorCDR_20' ) start [2025-01-04 05:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170634', 'tblTempVendorCDR_20' ) end [2025-01-04 05:06:19] Production.INFO: ProcessCDR(1,14170634,1,1,2) [2025-01-04 05:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170634', 'tblTempUsageDetail_20' ) start [2025-01-04 05:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170634', 'tblTempUsageDetail_20' ) end [2025-01-04 05:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:06:22] Production.INFO: ==10932== Releasing lock... [2025-01-04 05:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:06:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:07:05 [end_date_ymd] => 2025-01-04 05:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:07:05' and `end` < '2025-01-04 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-04 05:07:24] Production.INFO: count ==285 [2025-01-04 05:07:24] Production.ERROR: pbx CDR StartTime 2025-01-04 02:07:05 - End Time 2025-01-04 05:07:05 [2025-01-04 05:07:24] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170639', 'tblTempUsageDetail_20' ) start [2025-01-04 05:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170639', 'tblTempUsageDetail_20' ) end [2025-01-04 05:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170639', 'tblTempVendorCDR_20' ) start [2025-01-04 05:07:24] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170639', 'tblTempVendorCDR_20' ) end [2025-01-04 05:07:24] Production.INFO: ProcessCDR(1,14170639,1,1,2) [2025-01-04 05:07:24] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170639', 'tblTempUsageDetail_20' ) start [2025-01-04 05:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170639', 'tblTempUsageDetail_20' ) end [2025-01-04 05:07:27] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:07:27] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:07:27] Production.INFO: ==11008== Releasing lock... [2025-01-04 05:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:07:27] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:08:05 [end_date_ymd] => 2025-01-04 05:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:08:05' and `end` < '2025-01-04 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-04 05:08:17] Production.INFO: count ==285 [2025-01-04 05:08:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:08:05 - End Time 2025-01-04 05:08:05 [2025-01-04 05:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170644', 'tblTempUsageDetail_20' ) start [2025-01-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170644', 'tblTempUsageDetail_20' ) end [2025-01-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170644', 'tblTempVendorCDR_20' ) start [2025-01-04 05:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170644', 'tblTempVendorCDR_20' ) end [2025-01-04 05:08:17] Production.INFO: ProcessCDR(1,14170644,1,1,2) [2025-01-04 05:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170644', 'tblTempUsageDetail_20' ) start [2025-01-04 05:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170644', 'tblTempUsageDetail_20' ) end [2025-01-04 05:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:08:20] Production.INFO: ==11080== Releasing lock... [2025-01-04 05:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:08:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:09:04 [end_date_ymd] => 2025-01-04 05:09:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:09:04' and `end` < '2025-01-04 05: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-04 05:09:17] Production.INFO: count ==283 [2025-01-04 05:09:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:09:04 - End Time 2025-01-04 05:09:04 [2025-01-04 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170649', 'tblTempUsageDetail_20' ) start [2025-01-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170649', 'tblTempUsageDetail_20' ) end [2025-01-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170649', 'tblTempVendorCDR_20' ) start [2025-01-04 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170649', 'tblTempVendorCDR_20' ) end [2025-01-04 05:09:17] Production.INFO: ProcessCDR(1,14170649,1,1,2) [2025-01-04 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170649,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170649,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170649', 'tblTempUsageDetail_20' ) start [2025-01-04 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170649', 'tblTempUsageDetail_20' ) end [2025-01-04 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:09:20] Production.INFO: ==11155== Releasing lock... [2025-01-04 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:09:20] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:10:06 [end_date_ymd] => 2025-01-04 05:10:06 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:10:06' and `end` < '2025-01-04 05: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-04 05:10:18] Production.INFO: count ==275 [2025-01-04 05:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:10:06 - End Time 2025-01-04 05:10:06 [2025-01-04 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170655', 'tblTempUsageDetail_20' ) start [2025-01-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170655', 'tblTempUsageDetail_20' ) end [2025-01-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170655', 'tblTempVendorCDR_20' ) start [2025-01-04 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170655', 'tblTempVendorCDR_20' ) end [2025-01-04 05:10:18] Production.INFO: ProcessCDR(1,14170655,1,1,2) [2025-01-04 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170655', 'tblTempUsageDetail_20' ) start [2025-01-04 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170655', 'tblTempUsageDetail_20' ) end [2025-01-04 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:10:22] Production.INFO: ==11228== Releasing lock... [2025-01-04 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:10:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:11:05 [end_date_ymd] => 2025-01-04 05:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:11:05' and `end` < '2025-01-04 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-04 05:11:18] Production.INFO: count ==270 [2025-01-04 05:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:11:05 - End Time 2025-01-04 05:11:05 [2025-01-04 05:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170660', 'tblTempUsageDetail_20' ) start [2025-01-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170660', 'tblTempUsageDetail_20' ) end [2025-01-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170660', 'tblTempVendorCDR_20' ) start [2025-01-04 05:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170660', 'tblTempVendorCDR_20' ) end [2025-01-04 05:11:18] Production.INFO: ProcessCDR(1,14170660,1,1,2) [2025-01-04 05:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170660', 'tblTempUsageDetail_20' ) start [2025-01-04 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170660', 'tblTempUsageDetail_20' ) end [2025-01-04 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:11:21] Production.INFO: ==11303== Releasing lock... [2025-01-04 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:11:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:12:05 [end_date_ymd] => 2025-01-04 05:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:12:05' and `end` < '2025-01-04 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-04 05:12:18] Production.INFO: count ==270 [2025-01-04 05:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:12:05 - End Time 2025-01-04 05:12:05 [2025-01-04 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170665', 'tblTempUsageDetail_20' ) start [2025-01-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170665', 'tblTempUsageDetail_20' ) end [2025-01-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170665', 'tblTempVendorCDR_20' ) start [2025-01-04 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170665', 'tblTempVendorCDR_20' ) end [2025-01-04 05:12:18] Production.INFO: ProcessCDR(1,14170665,1,1,2) [2025-01-04 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170665', 'tblTempUsageDetail_20' ) start [2025-01-04 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170665', 'tblTempUsageDetail_20' ) end [2025-01-04 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:12:21] Production.INFO: ==11375== Releasing lock... [2025-01-04 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:13:05 [end_date_ymd] => 2025-01-04 05:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:13:05' and `end` < '2025-01-04 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-04 05:13:19] Production.INFO: count ==270 [2025-01-04 05:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:13:05 - End Time 2025-01-04 05:13:05 [2025-01-04 05:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170670', 'tblTempUsageDetail_20' ) start [2025-01-04 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170670', 'tblTempUsageDetail_20' ) end [2025-01-04 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170670', 'tblTempVendorCDR_20' ) start [2025-01-04 05:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170670', 'tblTempVendorCDR_20' ) end [2025-01-04 05:13:19] Production.INFO: ProcessCDR(1,14170670,1,1,2) [2025-01-04 05:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170670', 'tblTempUsageDetail_20' ) start [2025-01-04 05:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170670', 'tblTempUsageDetail_20' ) end [2025-01-04 05:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:13:22] Production.INFO: ==11452== Releasing lock... [2025-01-04 05:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:13:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:14:05 [end_date_ymd] => 2025-01-04 05:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:14:05' and `end` < '2025-01-04 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-04 05:14:18] Production.INFO: count ==270 [2025-01-04 05:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:14:05 - End Time 2025-01-04 05:14:05 [2025-01-04 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170672', 'tblTempUsageDetail_20' ) start [2025-01-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170672', 'tblTempUsageDetail_20' ) end [2025-01-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170672', 'tblTempVendorCDR_20' ) start [2025-01-04 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170672', 'tblTempVendorCDR_20' ) end [2025-01-04 05:14:18] Production.INFO: ProcessCDR(1,14170672,1,1,2) [2025-01-04 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170672', 'tblTempUsageDetail_20' ) start [2025-01-04 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170672', 'tblTempUsageDetail_20' ) end [2025-01-04 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:14:21] Production.INFO: ==11525== Releasing lock... [2025-01-04 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:15:04 [end_date_ymd] => 2025-01-04 05:15:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:15:04' and `end` < '2025-01-04 05: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-04 05:15:17] Production.INFO: count ==270 [2025-01-04 05:15:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:15:04 - End Time 2025-01-04 05:15:04 [2025-01-04 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170680', 'tblTempUsageDetail_20' ) start [2025-01-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170680', 'tblTempUsageDetail_20' ) end [2025-01-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170680', 'tblTempVendorCDR_20' ) start [2025-01-04 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170680', 'tblTempVendorCDR_20' ) end [2025-01-04 05:15:17] Production.INFO: ProcessCDR(1,14170680,1,1,2) [2025-01-04 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170680', 'tblTempUsageDetail_20' ) start [2025-01-04 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170680', 'tblTempUsageDetail_20' ) end [2025-01-04 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:15:20] Production.INFO: ==11597== Releasing lock... [2025-01-04 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:15:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:16:05 [end_date_ymd] => 2025-01-04 05:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:16:05' and `end` < '2025-01-04 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-04 05:16:17] Production.INFO: count ==270 [2025-01-04 05:16:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:16:05 - End Time 2025-01-04 05:16:05 [2025-01-04 05:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170685', 'tblTempUsageDetail_20' ) start [2025-01-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170685', 'tblTempUsageDetail_20' ) end [2025-01-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170685', 'tblTempVendorCDR_20' ) start [2025-01-04 05:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170685', 'tblTempVendorCDR_20' ) end [2025-01-04 05:16:17] Production.INFO: ProcessCDR(1,14170685,1,1,2) [2025-01-04 05:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170685', 'tblTempUsageDetail_20' ) start [2025-01-04 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170685', 'tblTempUsageDetail_20' ) end [2025-01-04 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:16:21] Production.INFO: ==11670== Releasing lock... [2025-01-04 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:17:05 [end_date_ymd] => 2025-01-04 05:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:17:05' and `end` < '2025-01-04 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-04 05:17:17] Production.INFO: count ==270 [2025-01-04 05:17:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:17:05 - End Time 2025-01-04 05:17:05 [2025-01-04 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170690', 'tblTempUsageDetail_20' ) start [2025-01-04 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170690', 'tblTempUsageDetail_20' ) end [2025-01-04 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170690', 'tblTempVendorCDR_20' ) start [2025-01-04 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170690', 'tblTempVendorCDR_20' ) end [2025-01-04 05:17:17] Production.INFO: ProcessCDR(1,14170690,1,1,2) [2025-01-04 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170690', 'tblTempUsageDetail_20' ) start [2025-01-04 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170690', 'tblTempUsageDetail_20' ) end [2025-01-04 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:17:20] Production.INFO: ==11741== Releasing lock... [2025-01-04 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:18:05 [end_date_ymd] => 2025-01-04 05:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:18:05' and `end` < '2025-01-04 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-04 05:18:19] Production.INFO: count ==270 [2025-01-04 05:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:18:05 - End Time 2025-01-04 05:18:05 [2025-01-04 05:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170695', 'tblTempUsageDetail_20' ) start [2025-01-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170695', 'tblTempUsageDetail_20' ) end [2025-01-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170695', 'tblTempVendorCDR_20' ) start [2025-01-04 05:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170695', 'tblTempVendorCDR_20' ) end [2025-01-04 05:18:19] Production.INFO: ProcessCDR(1,14170695,1,1,2) [2025-01-04 05:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170695', 'tblTempUsageDetail_20' ) start [2025-01-04 05:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170695', 'tblTempUsageDetail_20' ) end [2025-01-04 05:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:18:23] Production.INFO: ==11814== Releasing lock... [2025-01-04 05:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:18:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:19:05 [end_date_ymd] => 2025-01-04 05:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:19:05' and `end` < '2025-01-04 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-04 05:19:17] Production.INFO: count ==269 [2025-01-04 05:19:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:19:05 - End Time 2025-01-04 05:19:05 [2025-01-04 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170700', 'tblTempUsageDetail_20' ) start [2025-01-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170700', 'tblTempUsageDetail_20' ) end [2025-01-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170700', 'tblTempVendorCDR_20' ) start [2025-01-04 05:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170700', 'tblTempVendorCDR_20' ) end [2025-01-04 05:19:18] Production.INFO: ProcessCDR(1,14170700,1,1,2) [2025-01-04 05:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170700,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170700,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170700', 'tblTempUsageDetail_20' ) start [2025-01-04 05:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170700', 'tblTempUsageDetail_20' ) end [2025-01-04 05:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:19:21] Production.INFO: ==11884== Releasing lock... [2025-01-04 05:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:20:06 [end_date_ymd] => 2025-01-04 05:20:06 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:20:06' and `end` < '2025-01-04 05: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-04 05:20:18] Production.INFO: count ==269 [2025-01-04 05:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:20:06 - End Time 2025-01-04 05:20:06 [2025-01-04 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170705', 'tblTempUsageDetail_20' ) start [2025-01-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170705', 'tblTempUsageDetail_20' ) end [2025-01-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170705', 'tblTempVendorCDR_20' ) start [2025-01-04 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170705', 'tblTempVendorCDR_20' ) end [2025-01-04 05:20:18] Production.INFO: ProcessCDR(1,14170705,1,1,2) [2025-01-04 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170705,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170705,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170705', 'tblTempUsageDetail_20' ) start [2025-01-04 05:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170705', 'tblTempUsageDetail_20' ) end [2025-01-04 05:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:20:22] Production.INFO: ==11959== Releasing lock... [2025-01-04 05:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:20:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:21:04 [end_date_ymd] => 2025-01-04 05:21:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:21:04' and `end` < '2025-01-04 05: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-04 05:21:18] Production.INFO: count ==269 [2025-01-04 05:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:21:04 - End Time 2025-01-04 05:21:04 [2025-01-04 05:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170711', 'tblTempUsageDetail_20' ) start [2025-01-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170711', 'tblTempUsageDetail_20' ) end [2025-01-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170711', 'tblTempVendorCDR_20' ) start [2025-01-04 05:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170711', 'tblTempVendorCDR_20' ) end [2025-01-04 05:21:18] Production.INFO: ProcessCDR(1,14170711,1,1,2) [2025-01-04 05:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170711', 'tblTempUsageDetail_20' ) start [2025-01-04 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170711', 'tblTempUsageDetail_20' ) end [2025-01-04 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:21:22] Production.INFO: ==12039== Releasing lock... [2025-01-04 05:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:21:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:22:05 [end_date_ymd] => 2025-01-04 05:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:22:05' and `end` < '2025-01-04 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-04 05:22:17] Production.INFO: count ==267 [2025-01-04 05:22:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:22:05 - End Time 2025-01-04 05:22:05 [2025-01-04 05:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170716', 'tblTempUsageDetail_20' ) start [2025-01-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170716', 'tblTempUsageDetail_20' ) end [2025-01-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170716', 'tblTempVendorCDR_20' ) start [2025-01-04 05:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170716', 'tblTempVendorCDR_20' ) end [2025-01-04 05:22:17] Production.INFO: ProcessCDR(1,14170716,1,1,2) [2025-01-04 05:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170716', 'tblTempUsageDetail_20' ) start [2025-01-04 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170716', 'tblTempUsageDetail_20' ) end [2025-01-04 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:22:21] Production.INFO: ==12149== Releasing lock... [2025-01-04 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:23:05 [end_date_ymd] => 2025-01-04 05:23:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:23:05' and `end` < '2025-01-04 05: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-04 05:23:19] Production.INFO: count ==267 [2025-01-04 05:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:23:05 - End Time 2025-01-04 05:23:05 [2025-01-04 05:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170721', 'tblTempUsageDetail_20' ) start [2025-01-04 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170721', 'tblTempUsageDetail_20' ) end [2025-01-04 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170721', 'tblTempVendorCDR_20' ) start [2025-01-04 05:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170721', 'tblTempVendorCDR_20' ) end [2025-01-04 05:23:19] Production.INFO: ProcessCDR(1,14170721,1,1,2) [2025-01-04 05:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170721', 'tblTempUsageDetail_20' ) start [2025-01-04 05:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170721', 'tblTempUsageDetail_20' ) end [2025-01-04 05:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:23:22] Production.INFO: ==12224== Releasing lock... [2025-01-04 05:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:23:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:24:05 [end_date_ymd] => 2025-01-04 05:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:24:05' and `end` < '2025-01-04 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-04 05:24:19] Production.INFO: count ==265 [2025-01-04 05:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:24:05 - End Time 2025-01-04 05:24:05 [2025-01-04 05:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170726', 'tblTempUsageDetail_20' ) start [2025-01-04 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170726', 'tblTempUsageDetail_20' ) end [2025-01-04 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170726', 'tblTempVendorCDR_20' ) start [2025-01-04 05:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170726', 'tblTempVendorCDR_20' ) end [2025-01-04 05:24:19] Production.INFO: ProcessCDR(1,14170726,1,1,2) [2025-01-04 05:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170726', 'tblTempUsageDetail_20' ) start [2025-01-04 05:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170726', 'tblTempUsageDetail_20' ) end [2025-01-04 05:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:24:22] Production.INFO: ==12297== Releasing lock... [2025-01-04 05:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:25:05 [end_date_ymd] => 2025-01-04 05:25:05 [RateCDR] => 1 ) [2025-01-04 05:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 02:25:05' and `end` < '2025-01-04 05:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 05:25:18] Production.INFO: count ==265 [2025-01-04 05:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:25:05 - End Time 2025-01-04 05:25:05 [2025-01-04 05:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170731', 'tblTempUsageDetail_20' ) start [2025-01-04 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170731', 'tblTempUsageDetail_20' ) end [2025-01-04 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170731', 'tblTempVendorCDR_20' ) start [2025-01-04 05:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170731', 'tblTempVendorCDR_20' ) end [2025-01-04 05:25:18] Production.INFO: ProcessCDR(1,14170731,1,1,2) [2025-01-04 05:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170731', 'tblTempUsageDetail_20' ) start [2025-01-04 05:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170731', 'tblTempUsageDetail_20' ) end [2025-01-04 05:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:25:21] Production.INFO: ==12368== Releasing lock... [2025-01-04 05:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:26:05 [end_date_ymd] => 2025-01-04 05:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:26:05' and `end` < '2025-01-04 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-04 05:26:18] Production.INFO: count ==265 [2025-01-04 05:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:26:05 - End Time 2025-01-04 05:26:05 [2025-01-04 05:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170736', 'tblTempUsageDetail_20' ) start [2025-01-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170736', 'tblTempUsageDetail_20' ) end [2025-01-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170736', 'tblTempVendorCDR_20' ) start [2025-01-04 05:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170736', 'tblTempVendorCDR_20' ) end [2025-01-04 05:26:18] Production.INFO: ProcessCDR(1,14170736,1,1,2) [2025-01-04 05:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170736', 'tblTempUsageDetail_20' ) start [2025-01-04 05:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170736', 'tblTempUsageDetail_20' ) end [2025-01-04 05:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:26:22] Production.INFO: ==12438== Releasing lock... [2025-01-04 05:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:26:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:27:04 [end_date_ymd] => 2025-01-04 05:27:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:27:04' and `end` < '2025-01-04 05: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-04 05:27:17] Production.INFO: count ==265 [2025-01-04 05:27:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:27:04 - End Time 2025-01-04 05:27:04 [2025-01-04 05:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170741', 'tblTempUsageDetail_20' ) start [2025-01-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170741', 'tblTempUsageDetail_20' ) end [2025-01-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170741', 'tblTempVendorCDR_20' ) start [2025-01-04 05:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170741', 'tblTempVendorCDR_20' ) end [2025-01-04 05:27:17] Production.INFO: ProcessCDR(1,14170741,1,1,2) [2025-01-04 05:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:27:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170741', 'tblTempUsageDetail_20' ) start [2025-01-04 05:27:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170741', 'tblTempUsageDetail_20' ) end [2025-01-04 05:27:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:27:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:27:20] Production.INFO: ==12514== Releasing lock... [2025-01-04 05:27:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:27:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:28:05 [end_date_ymd] => 2025-01-04 05:28:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:28:05' and `end` < '2025-01-04 05: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-04 05:28:18] Production.INFO: count ==265 [2025-01-04 05:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:28:05 - End Time 2025-01-04 05:28:05 [2025-01-04 05:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170746', 'tblTempUsageDetail_20' ) start [2025-01-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170746', 'tblTempUsageDetail_20' ) end [2025-01-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170746', 'tblTempVendorCDR_20' ) start [2025-01-04 05:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170746', 'tblTempVendorCDR_20' ) end [2025-01-04 05:28:18] Production.INFO: ProcessCDR(1,14170746,1,1,2) [2025-01-04 05:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170746', 'tblTempUsageDetail_20' ) start [2025-01-04 05:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170746', 'tblTempUsageDetail_20' ) end [2025-01-04 05:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:28:21] Production.INFO: ==12587== Releasing lock... [2025-01-04 05:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:28:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:29:05 [end_date_ymd] => 2025-01-04 05:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:29:05' and `end` < '2025-01-04 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-04 05:29:18] Production.INFO: count ==265 [2025-01-04 05:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:29:05 - End Time 2025-01-04 05:29:05 [2025-01-04 05:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170751', 'tblTempUsageDetail_20' ) start [2025-01-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170751', 'tblTempUsageDetail_20' ) end [2025-01-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170751', 'tblTempVendorCDR_20' ) start [2025-01-04 05:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170751', 'tblTempVendorCDR_20' ) end [2025-01-04 05:29:18] Production.INFO: ProcessCDR(1,14170751,1,1,2) [2025-01-04 05:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170751', 'tblTempUsageDetail_20' ) start [2025-01-04 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170751', 'tblTempUsageDetail_20' ) end [2025-01-04 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:29:21] Production.INFO: ==12663== Releasing lock... [2025-01-04 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:29:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:30:06 [end_date_ymd] => 2025-01-04 05:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 02:30:06' and `end` < '2025-01-04 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-04 05:30:19] Production.INFO: count ==257 [2025-01-04 05:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:30:06 - End Time 2025-01-04 05:30:06 [2025-01-04 05:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170757', 'tblTempUsageDetail_20' ) start [2025-01-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170757', 'tblTempUsageDetail_20' ) end [2025-01-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170757', 'tblTempVendorCDR_20' ) start [2025-01-04 05:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170757', 'tblTempVendorCDR_20' ) end [2025-01-04 05:30:19] Production.INFO: ProcessCDR(1,14170757,1,1,2) [2025-01-04 05:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170757', 'tblTempUsageDetail_20' ) start [2025-01-04 05:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170757', 'tblTempUsageDetail_20' ) end [2025-01-04 05:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:30:22] Production.INFO: ==12736== Releasing lock... [2025-01-04 05:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 05:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:31:05 [end_date_ymd] => 2025-01-04 05:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:31:05' and `end` < '2025-01-04 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-04 05:31:17] Production.INFO: count ==240 [2025-01-04 05:31:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:31:05 - End Time 2025-01-04 05:31:05 [2025-01-04 05:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170762', 'tblTempUsageDetail_20' ) start [2025-01-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170762', 'tblTempUsageDetail_20' ) end [2025-01-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170762', 'tblTempVendorCDR_20' ) start [2025-01-04 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170762', 'tblTempVendorCDR_20' ) end [2025-01-04 05:31:18] Production.INFO: ProcessCDR(1,14170762,1,1,2) [2025-01-04 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170762', 'tblTempUsageDetail_20' ) start [2025-01-04 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170762', 'tblTempUsageDetail_20' ) end [2025-01-04 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:31:21] Production.INFO: ==12807== Releasing lock... [2025-01-04 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:32:06 [end_date_ymd] => 2025-01-04 05:32:06 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:32:06' and `end` < '2025-01-04 05: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-04 05:32:19] Production.INFO: count ==240 [2025-01-04 05:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:32:06 - End Time 2025-01-04 05:32:06 [2025-01-04 05:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170767', 'tblTempUsageDetail_20' ) start [2025-01-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170767', 'tblTempUsageDetail_20' ) end [2025-01-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170767', 'tblTempVendorCDR_20' ) start [2025-01-04 05:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170767', 'tblTempVendorCDR_20' ) end [2025-01-04 05:32:19] Production.INFO: ProcessCDR(1,14170767,1,1,2) [2025-01-04 05:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170767', 'tblTempUsageDetail_20' ) start [2025-01-04 05:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170767', 'tblTempUsageDetail_20' ) end [2025-01-04 05:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:32:22] Production.INFO: ==12877== Releasing lock... [2025-01-04 05:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:32:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:33:05 [end_date_ymd] => 2025-01-04 05:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:33:05' and `end` < '2025-01-04 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-04 05:33:18] Production.INFO: count ==240 [2025-01-04 05:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:33:05 - End Time 2025-01-04 05:33:05 [2025-01-04 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170770', 'tblTempUsageDetail_20' ) start [2025-01-04 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170770', 'tblTempUsageDetail_20' ) end [2025-01-04 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170770', 'tblTempVendorCDR_20' ) start [2025-01-04 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170770', 'tblTempVendorCDR_20' ) end [2025-01-04 05:33:18] Production.INFO: ProcessCDR(1,14170770,1,1,2) [2025-01-04 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170770', 'tblTempUsageDetail_20' ) start [2025-01-04 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170770', 'tblTempUsageDetail_20' ) end [2025-01-04 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:33:21] Production.INFO: ==12948== Releasing lock... [2025-01-04 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:34:05 [end_date_ymd] => 2025-01-04 05:34:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:34:05' and `end` < '2025-01-04 05: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-04 05:34:18] Production.INFO: count ==240 [2025-01-04 05:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:34:05 - End Time 2025-01-04 05:34:05 [2025-01-04 05:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170777', 'tblTempUsageDetail_20' ) start [2025-01-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170777', 'tblTempUsageDetail_20' ) end [2025-01-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170777', 'tblTempVendorCDR_20' ) start [2025-01-04 05:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170777', 'tblTempVendorCDR_20' ) end [2025-01-04 05:34:18] Production.INFO: ProcessCDR(1,14170777,1,1,2) [2025-01-04 05:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170777', 'tblTempUsageDetail_20' ) start [2025-01-04 05:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170777', 'tblTempUsageDetail_20' ) end [2025-01-04 05:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:34:21] Production.INFO: ==13029== Releasing lock... [2025-01-04 05:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:34:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:35:05 [end_date_ymd] => 2025-01-04 05:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:35:05' and `end` < '2025-01-04 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-04 05:35:17] Production.INFO: count ==240 [2025-01-04 05:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:35:05 - End Time 2025-01-04 05:35:05 [2025-01-04 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170782', 'tblTempUsageDetail_20' ) start [2025-01-04 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170782', 'tblTempUsageDetail_20' ) end [2025-01-04 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170782', 'tblTempVendorCDR_20' ) start [2025-01-04 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170782', 'tblTempVendorCDR_20' ) end [2025-01-04 05:35:18] Production.INFO: ProcessCDR(1,14170782,1,1,2) [2025-01-04 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170782', 'tblTempUsageDetail_20' ) start [2025-01-04 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170782', 'tblTempUsageDetail_20' ) end [2025-01-04 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:35:21] Production.INFO: ==13099== Releasing lock... [2025-01-04 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:35:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:36:05 [end_date_ymd] => 2025-01-04 05:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:36:05' and `end` < '2025-01-04 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-04 05:36:19] Production.INFO: count ==240 [2025-01-04 05:36:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:36:05 - End Time 2025-01-04 05:36:05 [2025-01-04 05:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170787', 'tblTempUsageDetail_20' ) start [2025-01-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170787', 'tblTempUsageDetail_20' ) end [2025-01-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170787', 'tblTempVendorCDR_20' ) start [2025-01-04 05:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170787', 'tblTempVendorCDR_20' ) end [2025-01-04 05:36:19] Production.INFO: ProcessCDR(1,14170787,1,1,2) [2025-01-04 05:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170787', 'tblTempUsageDetail_20' ) start [2025-01-04 05:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170787', 'tblTempUsageDetail_20' ) end [2025-01-04 05:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:36:22] Production.INFO: ==13169== Releasing lock... [2025-01-04 05:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:36:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:37:04 [end_date_ymd] => 2025-01-04 05:37:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:37:04' and `end` < '2025-01-04 05: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-04 05:37:17] Production.INFO: count ==240 [2025-01-04 05:37:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:37:04 - End Time 2025-01-04 05:37:04 [2025-01-04 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170789', 'tblTempUsageDetail_20' ) start [2025-01-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170789', 'tblTempUsageDetail_20' ) end [2025-01-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170789', 'tblTempVendorCDR_20' ) start [2025-01-04 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170789', 'tblTempVendorCDR_20' ) end [2025-01-04 05:37:17] Production.INFO: ProcessCDR(1,14170789,1,1,2) [2025-01-04 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170789', 'tblTempUsageDetail_20' ) start [2025-01-04 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170789', 'tblTempUsageDetail_20' ) end [2025-01-04 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:37:20] Production.INFO: ==13279== Releasing lock... [2025-01-04 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:37:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:38:05 [end_date_ymd] => 2025-01-04 05:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:38:05' and `end` < '2025-01-04 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-04 05:38:18] Production.INFO: count ==240 [2025-01-04 05:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:38:05 - End Time 2025-01-04 05:38:05 [2025-01-04 05:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170797', 'tblTempUsageDetail_20' ) start [2025-01-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170797', 'tblTempUsageDetail_20' ) end [2025-01-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170797', 'tblTempVendorCDR_20' ) start [2025-01-04 05:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170797', 'tblTempVendorCDR_20' ) end [2025-01-04 05:38:18] Production.INFO: ProcessCDR(1,14170797,1,1,2) [2025-01-04 05:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170797', 'tblTempUsageDetail_20' ) start [2025-01-04 05:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170797', 'tblTempUsageDetail_20' ) end [2025-01-04 05:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:38:22] Production.INFO: ==13351== Releasing lock... [2025-01-04 05:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:38:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:39:04 [end_date_ymd] => 2025-01-04 05:39:04 [RateCDR] => 1 ) [2025-01-04 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-04 02:39:04' and `end` < '2025-01-04 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-04 05:39:18] Production.INFO: count ==240 [2025-01-04 05:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:39:04 - End Time 2025-01-04 05:39:04 [2025-01-04 05:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170802', 'tblTempUsageDetail_20' ) start [2025-01-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170802', 'tblTempUsageDetail_20' ) end [2025-01-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170802', 'tblTempVendorCDR_20' ) start [2025-01-04 05:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170802', 'tblTempVendorCDR_20' ) end [2025-01-04 05:39:18] Production.INFO: ProcessCDR(1,14170802,1,1,2) [2025-01-04 05:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170802', 'tblTempUsageDetail_20' ) start [2025-01-04 05:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170802', 'tblTempUsageDetail_20' ) end [2025-01-04 05:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:39:22] Production.INFO: ==13421== Releasing lock... [2025-01-04 05:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:39:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:40:05 [end_date_ymd] => 2025-01-04 05:40:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:40:05' and `end` < '2025-01-04 05: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-04 05:40:18] Production.INFO: count ==234 [2025-01-04 05:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:40:05 - End Time 2025-01-04 05:40:05 [2025-01-04 05:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170807', 'tblTempUsageDetail_20' ) start [2025-01-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170807', 'tblTempUsageDetail_20' ) end [2025-01-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170807', 'tblTempVendorCDR_20' ) start [2025-01-04 05:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170807', 'tblTempVendorCDR_20' ) end [2025-01-04 05:40:18] Production.INFO: ProcessCDR(1,14170807,1,1,2) [2025-01-04 05:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170807,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170807,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170807', 'tblTempUsageDetail_20' ) start [2025-01-04 05:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170807', 'tblTempUsageDetail_20' ) end [2025-01-04 05:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:40:21] Production.INFO: ==13497== Releasing lock... [2025-01-04 05:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:40:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:41:05 [end_date_ymd] => 2025-01-04 05:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:41:05' and `end` < '2025-01-04 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-04 05:41:18] Production.INFO: count ==232 [2025-01-04 05:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:41:05 - End Time 2025-01-04 05:41:05 [2025-01-04 05:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170813', 'tblTempUsageDetail_20' ) start [2025-01-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170813', 'tblTempUsageDetail_20' ) end [2025-01-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170813', 'tblTempVendorCDR_20' ) start [2025-01-04 05:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170813', 'tblTempVendorCDR_20' ) end [2025-01-04 05:41:18] Production.INFO: ProcessCDR(1,14170813,1,1,2) [2025-01-04 05:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170813', 'tblTempUsageDetail_20' ) start [2025-01-04 05:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170813', 'tblTempUsageDetail_20' ) end [2025-01-04 05:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:41:21] Production.INFO: ==13569== Releasing lock... [2025-01-04 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:41:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:42:05 [end_date_ymd] => 2025-01-04 05:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:42:05' and `end` < '2025-01-04 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-04 05:42:18] Production.INFO: count ==232 [2025-01-04 05:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:42:05 - End Time 2025-01-04 05:42:05 [2025-01-04 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170818', 'tblTempUsageDetail_20' ) start [2025-01-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170818', 'tblTempUsageDetail_20' ) end [2025-01-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170818', 'tblTempVendorCDR_20' ) start [2025-01-04 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170818', 'tblTempVendorCDR_20' ) end [2025-01-04 05:42:18] Production.INFO: ProcessCDR(1,14170818,1,1,2) [2025-01-04 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170818', 'tblTempUsageDetail_20' ) start [2025-01-04 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170818', 'tblTempUsageDetail_20' ) end [2025-01-04 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:42:21] Production.INFO: ==13641== Releasing lock... [2025-01-04 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:42:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:43:06 [end_date_ymd] => 2025-01-04 05:43:06 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:43:06' and `end` < '2025-01-04 05: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-04 05:43:18] Production.INFO: count ==232 [2025-01-04 05:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:43:06 - End Time 2025-01-04 05:43:06 [2025-01-04 05:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170823', 'tblTempUsageDetail_20' ) start [2025-01-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170823', 'tblTempUsageDetail_20' ) end [2025-01-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170823', 'tblTempVendorCDR_20' ) start [2025-01-04 05:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170823', 'tblTempVendorCDR_20' ) end [2025-01-04 05:43:18] Production.INFO: ProcessCDR(1,14170823,1,1,2) [2025-01-04 05:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170823', 'tblTempUsageDetail_20' ) start [2025-01-04 05:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170823', 'tblTempUsageDetail_20' ) end [2025-01-04 05:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:43:21] Production.INFO: ==13712== Releasing lock... [2025-01-04 05:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:43:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:44:04 [end_date_ymd] => 2025-01-04 05:44:04 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:44:04' and `end` < '2025-01-04 05: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-04 05:44:17] Production.INFO: count ==232 [2025-01-04 05:44:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:44:04 - End Time 2025-01-04 05:44:04 [2025-01-04 05:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170828', 'tblTempUsageDetail_20' ) start [2025-01-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170828', 'tblTempUsageDetail_20' ) end [2025-01-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170828', 'tblTempVendorCDR_20' ) start [2025-01-04 05:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170828', 'tblTempVendorCDR_20' ) end [2025-01-04 05:44:17] Production.INFO: ProcessCDR(1,14170828,1,1,2) [2025-01-04 05:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170828', 'tblTempUsageDetail_20' ) start [2025-01-04 05:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170828', 'tblTempUsageDetail_20' ) end [2025-01-04 05:44:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:44:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:44:20] Production.INFO: ==13788== Releasing lock... [2025-01-04 05:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:44:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:45:05 [end_date_ymd] => 2025-01-04 05:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:45:05' and `end` < '2025-01-04 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-04 05:45:17] Production.INFO: count ==232 [2025-01-04 05:45:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:45:05 - End Time 2025-01-04 05:45:05 [2025-01-04 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170833', 'tblTempUsageDetail_20' ) start [2025-01-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170833', 'tblTempUsageDetail_20' ) end [2025-01-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170833', 'tblTempVendorCDR_20' ) start [2025-01-04 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170833', 'tblTempVendorCDR_20' ) end [2025-01-04 05:45:17] Production.INFO: ProcessCDR(1,14170833,1,1,2) [2025-01-04 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170833', 'tblTempUsageDetail_20' ) start [2025-01-04 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170833', 'tblTempUsageDetail_20' ) end [2025-01-04 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:45:21] Production.INFO: ==13861== Releasing lock... [2025-01-04 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:45:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:46:05 [end_date_ymd] => 2025-01-04 05:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:46:05' and `end` < '2025-01-04 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-04 05:46:19] Production.INFO: count ==232 [2025-01-04 05:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:46:05 - End Time 2025-01-04 05:46:05 [2025-01-04 05:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170837', 'tblTempUsageDetail_20' ) start [2025-01-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170837', 'tblTempUsageDetail_20' ) end [2025-01-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170837', 'tblTempVendorCDR_20' ) start [2025-01-04 05:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170837', 'tblTempVendorCDR_20' ) end [2025-01-04 05:46:19] Production.INFO: ProcessCDR(1,14170837,1,1,2) [2025-01-04 05:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170837', 'tblTempUsageDetail_20' ) start [2025-01-04 05:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170837', 'tblTempUsageDetail_20' ) end [2025-01-04 05:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:46:22] Production.INFO: ==13936== Releasing lock... [2025-01-04 05:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:46:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:47:05 [end_date_ymd] => 2025-01-04 05:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:47:05' and `end` < '2025-01-04 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-04 05:47:19] Production.INFO: count ==232 [2025-01-04 05:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:47:05 - End Time 2025-01-04 05:47:05 [2025-01-04 05:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170843', 'tblTempUsageDetail_20' ) start [2025-01-04 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170843', 'tblTempUsageDetail_20' ) end [2025-01-04 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170843', 'tblTempVendorCDR_20' ) start [2025-01-04 05:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170843', 'tblTempVendorCDR_20' ) end [2025-01-04 05:47:19] Production.INFO: ProcessCDR(1,14170843,1,1,2) [2025-01-04 05:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170843', 'tblTempUsageDetail_20' ) start [2025-01-04 05:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170843', 'tblTempUsageDetail_20' ) end [2025-01-04 05:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:47:22] Production.INFO: ==14010== Releasing lock... [2025-01-04 05:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:47:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:48:05 [end_date_ymd] => 2025-01-04 05:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:48:05' and `end` < '2025-01-04 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-04 05:48:19] Production.INFO: count ==231 [2025-01-04 05:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:48:05 - End Time 2025-01-04 05:48:05 [2025-01-04 05:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170848', 'tblTempUsageDetail_20' ) start [2025-01-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170848', 'tblTempUsageDetail_20' ) end [2025-01-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170848', 'tblTempVendorCDR_20' ) start [2025-01-04 05:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170848', 'tblTempVendorCDR_20' ) end [2025-01-04 05:48:19] Production.INFO: ProcessCDR(1,14170848,1,1,2) [2025-01-04 05:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170848', 'tblTempUsageDetail_20' ) start [2025-01-04 05:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170848', 'tblTempUsageDetail_20' ) end [2025-01-04 05:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:48:22] Production.INFO: ==14082== Releasing lock... [2025-01-04 05:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:48:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:49:04 [end_date_ymd] => 2025-01-04 05:49:04 [RateCDR] => 1 ) [2025-01-04 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-04 02:49:04' and `end` < '2025-01-04 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-04 05:49:18] Production.INFO: count ==231 [2025-01-04 05:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:49:04 - End Time 2025-01-04 05:49:04 [2025-01-04 05:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170853', 'tblTempUsageDetail_20' ) start [2025-01-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170853', 'tblTempUsageDetail_20' ) end [2025-01-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170853', 'tblTempVendorCDR_20' ) start [2025-01-04 05:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170853', 'tblTempVendorCDR_20' ) end [2025-01-04 05:49:18] Production.INFO: ProcessCDR(1,14170853,1,1,2) [2025-01-04 05:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170853', 'tblTempUsageDetail_20' ) start [2025-01-04 05:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170853', 'tblTempUsageDetail_20' ) end [2025-01-04 05:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:49:21] Production.INFO: ==14155== Releasing lock... [2025-01-04 05:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:49:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:50:06 [end_date_ymd] => 2025-01-04 05:50:06 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:50:06' and `end` < '2025-01-04 05: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-04 05:50:18] Production.INFO: count ==227 [2025-01-04 05:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:50:06 - End Time 2025-01-04 05:50:06 [2025-01-04 05:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170859', 'tblTempUsageDetail_20' ) start [2025-01-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170859', 'tblTempUsageDetail_20' ) end [2025-01-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170859', 'tblTempVendorCDR_20' ) start [2025-01-04 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170859', 'tblTempVendorCDR_20' ) end [2025-01-04 05:50:19] Production.INFO: ProcessCDR(1,14170859,1,1,2) [2025-01-04 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170859', 'tblTempUsageDetail_20' ) start [2025-01-04 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170859', 'tblTempUsageDetail_20' ) end [2025-01-04 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:50:22] Production.INFO: ==14228== Releasing lock... [2025-01-04 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:50:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:51:04 [end_date_ymd] => 2025-01-04 05:51:04 [RateCDR] => 1 ) [2025-01-04 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-04 02:51:04' and `end` < '2025-01-04 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-04 05:51:18] Production.INFO: count ==227 [2025-01-04 05:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:51:04 - End Time 2025-01-04 05:51:04 [2025-01-04 05:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170864', 'tblTempUsageDetail_20' ) start [2025-01-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170864', 'tblTempUsageDetail_20' ) end [2025-01-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170864', 'tblTempVendorCDR_20' ) start [2025-01-04 05:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170864', 'tblTempVendorCDR_20' ) end [2025-01-04 05:51:18] Production.INFO: ProcessCDR(1,14170864,1,1,2) [2025-01-04 05:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170864', 'tblTempUsageDetail_20' ) start [2025-01-04 05:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170864', 'tblTempUsageDetail_20' ) end [2025-01-04 05:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:51:21] Production.INFO: ==14300== Releasing lock... [2025-01-04 05:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:51:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:52:05 [end_date_ymd] => 2025-01-04 05:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:52:05' and `end` < '2025-01-04 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-04 05:52:17] Production.INFO: count ==227 [2025-01-04 05:52:17] Production.ERROR: pbx CDR StartTime 2025-01-04 02:52:05 - End Time 2025-01-04 05:52:05 [2025-01-04 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170869', 'tblTempUsageDetail_20' ) start [2025-01-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170869', 'tblTempUsageDetail_20' ) end [2025-01-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170869', 'tblTempVendorCDR_20' ) start [2025-01-04 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170869', 'tblTempVendorCDR_20' ) end [2025-01-04 05:52:17] Production.INFO: ProcessCDR(1,14170869,1,1,2) [2025-01-04 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:52:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170869', 'tblTempUsageDetail_20' ) start [2025-01-04 05:52:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170869', 'tblTempUsageDetail_20' ) end [2025-01-04 05:52:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:52:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:52:20] Production.INFO: ==14371== Releasing lock... [2025-01-04 05:52:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:52:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:53:05 [end_date_ymd] => 2025-01-04 05:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:53:05' and `end` < '2025-01-04 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-04 05:53:19] Production.INFO: count ==227 [2025-01-04 05:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:53:05 - End Time 2025-01-04 05:53:05 [2025-01-04 05:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170874', 'tblTempUsageDetail_20' ) start [2025-01-04 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170874', 'tblTempUsageDetail_20' ) end [2025-01-04 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170874', 'tblTempVendorCDR_20' ) start [2025-01-04 05:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170874', 'tblTempVendorCDR_20' ) end [2025-01-04 05:53:19] Production.INFO: ProcessCDR(1,14170874,1,1,2) [2025-01-04 05:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170874', 'tblTempUsageDetail_20' ) start [2025-01-04 05:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170874', 'tblTempUsageDetail_20' ) end [2025-01-04 05:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:53:22] Production.INFO: ==14484== Releasing lock... [2025-01-04 05:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:53:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:54:05 [end_date_ymd] => 2025-01-04 05:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:54:05' and `end` < '2025-01-04 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-04 05:54:19] Production.INFO: count ==227 [2025-01-04 05:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:54:05 - End Time 2025-01-04 05:54:05 [2025-01-04 05:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170879', 'tblTempUsageDetail_20' ) start [2025-01-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170879', 'tblTempUsageDetail_20' ) end [2025-01-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170879', 'tblTempVendorCDR_20' ) start [2025-01-04 05:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170879', 'tblTempVendorCDR_20' ) end [2025-01-04 05:54:19] Production.INFO: ProcessCDR(1,14170879,1,1,2) [2025-01-04 05:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170879', 'tblTempUsageDetail_20' ) start [2025-01-04 05:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170879', 'tblTempUsageDetail_20' ) end [2025-01-04 05:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:54:22] Production.INFO: ==14556== Releasing lock... [2025-01-04 05:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:54:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:55:05 [end_date_ymd] => 2025-01-04 05:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:55:05' and `end` < '2025-01-04 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-04 05:55:18] Production.INFO: count ==227 [2025-01-04 05:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:55:05 - End Time 2025-01-04 05:55:05 [2025-01-04 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170884', 'tblTempUsageDetail_20' ) start [2025-01-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170884', 'tblTempUsageDetail_20' ) end [2025-01-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170884', 'tblTempVendorCDR_20' ) start [2025-01-04 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170884', 'tblTempVendorCDR_20' ) end [2025-01-04 05:55:18] Production.INFO: ProcessCDR(1,14170884,1,1,2) [2025-01-04 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170884', 'tblTempUsageDetail_20' ) start [2025-01-04 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170884', 'tblTempUsageDetail_20' ) end [2025-01-04 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:55:21] Production.INFO: ==14631== Releasing lock... [2025-01-04 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:55:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:56:05 [end_date_ymd] => 2025-01-04 05:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:56:05' and `end` < '2025-01-04 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-04 05:56:17] Production.INFO: count ==227 [2025-01-04 05:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:56:05 - End Time 2025-01-04 05:56:05 [2025-01-04 05:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170889', 'tblTempUsageDetail_20' ) start [2025-01-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170889', 'tblTempUsageDetail_20' ) end [2025-01-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170889', 'tblTempVendorCDR_20' ) start [2025-01-04 05:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170889', 'tblTempVendorCDR_20' ) end [2025-01-04 05:56:18] Production.INFO: ProcessCDR(1,14170889,1,1,2) [2025-01-04 05:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170889', 'tblTempUsageDetail_20' ) start [2025-01-04 05:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170889', 'tblTempUsageDetail_20' ) end [2025-01-04 05:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:56:21] Production.INFO: ==14704== Releasing lock... [2025-01-04 05:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:56:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 05:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:57:05 [end_date_ymd] => 2025-01-04 05:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:57:05' and `end` < '2025-01-04 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-04 05:57:18] Production.INFO: count ==226 [2025-01-04 05:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:57:05 - End Time 2025-01-04 05:57:05 [2025-01-04 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170894', 'tblTempUsageDetail_20' ) start [2025-01-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170894', 'tblTempUsageDetail_20' ) end [2025-01-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170894', 'tblTempVendorCDR_20' ) start [2025-01-04 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170894', 'tblTempVendorCDR_20' ) end [2025-01-04 05:57:18] Production.INFO: ProcessCDR(1,14170894,1,1,2) [2025-01-04 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170894', 'tblTempUsageDetail_20' ) start [2025-01-04 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170894', 'tblTempUsageDetail_20' ) end [2025-01-04 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:57:21] Production.INFO: ==14774== Releasing lock... [2025-01-04 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:57:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:58:05 [end_date_ymd] => 2025-01-04 05:58:05 [RateCDR] => 1 ) [2025-01-04 05: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-04 02:58:05' and `end` < '2025-01-04 05: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-04 05:58:18] Production.INFO: count ==226 [2025-01-04 05:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 02:58:05 - End Time 2025-01-04 05:58:05 [2025-01-04 05:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170899', 'tblTempUsageDetail_20' ) start [2025-01-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170899', 'tblTempUsageDetail_20' ) end [2025-01-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170899', 'tblTempVendorCDR_20' ) start [2025-01-04 05:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170899', 'tblTempVendorCDR_20' ) end [2025-01-04 05:58:18] Production.INFO: ProcessCDR(1,14170899,1,1,2) [2025-01-04 05:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170899', 'tblTempUsageDetail_20' ) start [2025-01-04 05:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170899', 'tblTempUsageDetail_20' ) end [2025-01-04 05:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:58:22] Production.INFO: ==14845== Releasing lock... [2025-01-04 05:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:58:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 02:59:05 [end_date_ymd] => 2025-01-04 05:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 02:59:05' and `end` < '2025-01-04 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-04 05:59:19] Production.INFO: count ==225 [2025-01-04 05:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 02:59:05 - End Time 2025-01-04 05:59:05 [2025-01-04 05:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170904', 'tblTempUsageDetail_20' ) start [2025-01-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170904', 'tblTempUsageDetail_20' ) end [2025-01-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170904', 'tblTempVendorCDR_20' ) start [2025-01-04 05:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170904', 'tblTempVendorCDR_20' ) end [2025-01-04 05:59:19] Production.INFO: ProcessCDR(1,14170904,1,1,2) [2025-01-04 05:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 05:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170904', 'tblTempUsageDetail_20' ) start [2025-01-04 05:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170904', 'tblTempUsageDetail_20' ) end [2025-01-04 05:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 05:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 05:59:22] Production.INFO: ==14921== Releasing lock... [2025-01-04 05:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 05:59:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:00:06 [end_date_ymd] => 2025-01-04 06:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 03:00:06' and `end` < '2025-01-04 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-04 06:00:18] Production.INFO: count ==225 [2025-01-04 06:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:00:06 - End Time 2025-01-04 06:00:06 [2025-01-04 06:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170910', 'tblTempUsageDetail_20' ) start [2025-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170910', 'tblTempUsageDetail_20' ) end [2025-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170910', 'tblTempVendorCDR_20' ) start [2025-01-04 06:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170910', 'tblTempVendorCDR_20' ) end [2025-01-04 06:00:18] Production.INFO: ProcessCDR(1,14170910,1,1,2) [2025-01-04 06:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170910', 'tblTempUsageDetail_20' ) start [2025-01-04 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170910', 'tblTempUsageDetail_20' ) end [2025-01-04 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:00:21] Production.INFO: ==14996== Releasing lock... [2025-01-04 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:00:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:01:06 [end_date_ymd] => 2025-01-04 06:01:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:01:06' and `end` < '2025-01-04 06: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-04 06:01:19] Production.INFO: count ==225 [2025-01-04 06:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:01:06 - End Time 2025-01-04 06:01:06 [2025-01-04 06:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170915', 'tblTempUsageDetail_20' ) start [2025-01-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170915', 'tblTempUsageDetail_20' ) end [2025-01-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170915', 'tblTempVendorCDR_20' ) start [2025-01-04 06:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170915', 'tblTempVendorCDR_20' ) end [2025-01-04 06:01:19] Production.INFO: ProcessCDR(1,14170915,1,1,2) [2025-01-04 06:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170915', 'tblTempUsageDetail_20' ) start [2025-01-04 06:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170915', 'tblTempUsageDetail_20' ) end [2025-01-04 06:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:01:22] Production.INFO: ==15084== Releasing lock... [2025-01-04 06:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:01:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:02:05 [end_date_ymd] => 2025-01-04 06:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:02:05' and `end` < '2025-01-04 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-04 06:02:18] Production.INFO: count ==225 [2025-01-04 06:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:02:05 - End Time 2025-01-04 06:02:05 [2025-01-04 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170920', 'tblTempUsageDetail_20' ) start [2025-01-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170920', 'tblTempUsageDetail_20' ) end [2025-01-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170920', 'tblTempVendorCDR_20' ) start [2025-01-04 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170920', 'tblTempVendorCDR_20' ) end [2025-01-04 06:02:18] Production.INFO: ProcessCDR(1,14170920,1,1,2) [2025-01-04 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170920', 'tblTempUsageDetail_20' ) start [2025-01-04 06:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170920', 'tblTempUsageDetail_20' ) end [2025-01-04 06:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:02:21] Production.INFO: ==15156== Releasing lock... [2025-01-04 06:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:02:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:03:05 [end_date_ymd] => 2025-01-04 06:03:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:03:05' and `end` < '2025-01-04 06: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-04 06:03:18] Production.INFO: count ==224 [2025-01-04 06:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:03:05 - End Time 2025-01-04 06:03:05 [2025-01-04 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170925', 'tblTempUsageDetail_20' ) start [2025-01-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170925', 'tblTempUsageDetail_20' ) end [2025-01-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170925', 'tblTempVendorCDR_20' ) start [2025-01-04 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170925', 'tblTempVendorCDR_20' ) end [2025-01-04 06:03:18] Production.INFO: ProcessCDR(1,14170925,1,1,2) [2025-01-04 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170925', 'tblTempUsageDetail_20' ) start [2025-01-04 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170925', 'tblTempUsageDetail_20' ) end [2025-01-04 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:03:21] Production.INFO: ==15227== Releasing lock... [2025-01-04 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:03:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:04:05 [end_date_ymd] => 2025-01-04 06:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:04:05' and `end` < '2025-01-04 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-04 06:04:18] Production.INFO: count ==224 [2025-01-04 06:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:04:05 - End Time 2025-01-04 06:04:05 [2025-01-04 06:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170930', 'tblTempUsageDetail_20' ) start [2025-01-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170930', 'tblTempUsageDetail_20' ) end [2025-01-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170930', 'tblTempVendorCDR_20' ) start [2025-01-04 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170930', 'tblTempVendorCDR_20' ) end [2025-01-04 06:04:18] Production.INFO: ProcessCDR(1,14170930,1,1,2) [2025-01-04 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170930', 'tblTempUsageDetail_20' ) start [2025-01-04 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170930', 'tblTempUsageDetail_20' ) end [2025-01-04 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:04:21] Production.INFO: ==15298== Releasing lock... [2025-01-04 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:04:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:05:05 [end_date_ymd] => 2025-01-04 06:05:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:05:05' and `end` < '2025-01-04 06: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-04 06:05:18] Production.INFO: count ==224 [2025-01-04 06:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:05:05 - End Time 2025-01-04 06:05:05 [2025-01-04 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170935', 'tblTempUsageDetail_20' ) start [2025-01-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170935', 'tblTempUsageDetail_20' ) end [2025-01-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170935', 'tblTempVendorCDR_20' ) start [2025-01-04 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170935', 'tblTempVendorCDR_20' ) end [2025-01-04 06:05:18] Production.INFO: ProcessCDR(1,14170935,1,1,2) [2025-01-04 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170935', 'tblTempUsageDetail_20' ) start [2025-01-04 06:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170935', 'tblTempUsageDetail_20' ) end [2025-01-04 06:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:05:21] Production.INFO: ==15369== Releasing lock... [2025-01-04 06:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:05:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:06:04 [end_date_ymd] => 2025-01-04 06:06:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:06:04' and `end` < '2025-01-04 06: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-04 06:06:17] Production.INFO: count ==224 [2025-01-04 06:06:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:06:04 - End Time 2025-01-04 06:06:04 [2025-01-04 06:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170940', 'tblTempUsageDetail_20' ) start [2025-01-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170940', 'tblTempUsageDetail_20' ) end [2025-01-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170940', 'tblTempVendorCDR_20' ) start [2025-01-04 06:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170940', 'tblTempVendorCDR_20' ) end [2025-01-04 06:06:17] Production.INFO: ProcessCDR(1,14170940,1,1,2) [2025-01-04 06:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170940', 'tblTempUsageDetail_20' ) start [2025-01-04 06:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170940', 'tblTempUsageDetail_20' ) end [2025-01-04 06:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:06:20] Production.INFO: ==15439== Releasing lock... [2025-01-04 06:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:06:20] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:07:05 [end_date_ymd] => 2025-01-04 06:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:07:05' and `end` < '2025-01-04 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-04 06:07:18] Production.INFO: count ==224 [2025-01-04 06:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:07:05 - End Time 2025-01-04 06:07:05 [2025-01-04 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170945', 'tblTempUsageDetail_20' ) start [2025-01-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170945', 'tblTempUsageDetail_20' ) end [2025-01-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170945', 'tblTempVendorCDR_20' ) start [2025-01-04 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170945', 'tblTempVendorCDR_20' ) end [2025-01-04 06:07:18] Production.INFO: ProcessCDR(1,14170945,1,1,2) [2025-01-04 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170945', 'tblTempUsageDetail_20' ) start [2025-01-04 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170945', 'tblTempUsageDetail_20' ) end [2025-01-04 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:07:21] Production.INFO: ==15511== Releasing lock... [2025-01-04 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:08:05 [end_date_ymd] => 2025-01-04 06:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:08:05' and `end` < '2025-01-04 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-04 06:08:17] Production.INFO: count ==224 [2025-01-04 06:08:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:08:05 - End Time 2025-01-04 06:08:05 [2025-01-04 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170950', 'tblTempUsageDetail_20' ) start [2025-01-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170950', 'tblTempUsageDetail_20' ) end [2025-01-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170950', 'tblTempVendorCDR_20' ) start [2025-01-04 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170950', 'tblTempVendorCDR_20' ) end [2025-01-04 06:08:17] Production.INFO: ProcessCDR(1,14170950,1,1,2) [2025-01-04 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170950', 'tblTempUsageDetail_20' ) start [2025-01-04 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170950', 'tblTempUsageDetail_20' ) end [2025-01-04 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:08:21] Production.INFO: ==15585== Releasing lock... [2025-01-04 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:08:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:09:05 [end_date_ymd] => 2025-01-04 06:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:09:05' and `end` < '2025-01-04 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-04 06:09:18] Production.INFO: count ==224 [2025-01-04 06:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:09:05 - End Time 2025-01-04 06:09:05 [2025-01-04 06:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170955', 'tblTempUsageDetail_20' ) start [2025-01-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170955', 'tblTempUsageDetail_20' ) end [2025-01-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170955', 'tblTempVendorCDR_20' ) start [2025-01-04 06:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170955', 'tblTempVendorCDR_20' ) end [2025-01-04 06:09:18] Production.INFO: ProcessCDR(1,14170955,1,1,2) [2025-01-04 06:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170955,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170955,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170955', 'tblTempUsageDetail_20' ) start [2025-01-04 06:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170955', 'tblTempUsageDetail_20' ) end [2025-01-04 06:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:09:21] Production.INFO: ==15695== Releasing lock... [2025-01-04 06:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:09:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:10:05 [end_date_ymd] => 2025-01-04 06:10:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:10:05' and `end` < '2025-01-04 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-04 06:10:18] Production.INFO: count ==224 [2025-01-04 06:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:10:05 - End Time 2025-01-04 06:10:05 [2025-01-04 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170961', 'tblTempUsageDetail_20' ) start [2025-01-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170961', 'tblTempUsageDetail_20' ) end [2025-01-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170961', 'tblTempVendorCDR_20' ) start [2025-01-04 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170961', 'tblTempVendorCDR_20' ) end [2025-01-04 06:10:18] Production.INFO: ProcessCDR(1,14170961,1,1,2) [2025-01-04 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170961', 'tblTempUsageDetail_20' ) start [2025-01-04 06:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170961', 'tblTempUsageDetail_20' ) end [2025-01-04 06:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:10:22] Production.INFO: ==15770== Releasing lock... [2025-01-04 06:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:10:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:11:05 [end_date_ymd] => 2025-01-04 06:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:11:05' and `end` < '2025-01-04 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-04 06:11:17] Production.INFO: count ==224 [2025-01-04 06:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:11:05 - End Time 2025-01-04 06:11:05 [2025-01-04 06:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170966', 'tblTempUsageDetail_20' ) start [2025-01-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170966', 'tblTempUsageDetail_20' ) end [2025-01-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170966', 'tblTempVendorCDR_20' ) start [2025-01-04 06:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170966', 'tblTempVendorCDR_20' ) end [2025-01-04 06:11:18] Production.INFO: ProcessCDR(1,14170966,1,1,2) [2025-01-04 06:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170966', 'tblTempUsageDetail_20' ) start [2025-01-04 06:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170966', 'tblTempUsageDetail_20' ) end [2025-01-04 06:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:11:21] Production.INFO: ==15842== Releasing lock... [2025-01-04 06:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:11:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:12:05 [end_date_ymd] => 2025-01-04 06:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:12:05' and `end` < '2025-01-04 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-04 06:12:17] Production.INFO: count ==219 [2025-01-04 06:12:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:12:05 - End Time 2025-01-04 06:12:05 [2025-01-04 06:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170971', 'tblTempUsageDetail_20' ) start [2025-01-04 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170971', 'tblTempUsageDetail_20' ) end [2025-01-04 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170971', 'tblTempVendorCDR_20' ) start [2025-01-04 06:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170971', 'tblTempVendorCDR_20' ) end [2025-01-04 06:12:17] Production.INFO: ProcessCDR(1,14170971,1,1,2) [2025-01-04 06:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170971', 'tblTempUsageDetail_20' ) start [2025-01-04 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170971', 'tblTempUsageDetail_20' ) end [2025-01-04 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:12:21] Production.INFO: ==15915== Releasing lock... [2025-01-04 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:12:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:13:05 [end_date_ymd] => 2025-01-04 06:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:13:05' and `end` < '2025-01-04 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-04 06:13:19] Production.INFO: count ==219 [2025-01-04 06:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:13:05 - End Time 2025-01-04 06:13:05 [2025-01-04 06:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170976', 'tblTempUsageDetail_20' ) start [2025-01-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170976', 'tblTempUsageDetail_20' ) end [2025-01-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170976', 'tblTempVendorCDR_20' ) start [2025-01-04 06:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170976', 'tblTempVendorCDR_20' ) end [2025-01-04 06:13:19] Production.INFO: ProcessCDR(1,14170976,1,1,2) [2025-01-04 06:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170976', 'tblTempUsageDetail_20' ) start [2025-01-04 06:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170976', 'tblTempUsageDetail_20' ) end [2025-01-04 06:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:13:22] Production.INFO: ==15984== Releasing lock... [2025-01-04 06:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:13:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:14:05 [end_date_ymd] => 2025-01-04 06:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:14:05' and `end` < '2025-01-04 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-04 06:14:19] Production.INFO: count ==218 [2025-01-04 06:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:14:05 - End Time 2025-01-04 06:14:05 [2025-01-04 06:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170981', 'tblTempUsageDetail_20' ) start [2025-01-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170981', 'tblTempUsageDetail_20' ) end [2025-01-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170981', 'tblTempVendorCDR_20' ) start [2025-01-04 06:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170981', 'tblTempVendorCDR_20' ) end [2025-01-04 06:14:19] Production.INFO: ProcessCDR(1,14170981,1,1,2) [2025-01-04 06:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170981', 'tblTempUsageDetail_20' ) start [2025-01-04 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170981', 'tblTempUsageDetail_20' ) end [2025-01-04 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:14:22] Production.INFO: ==16062== Releasing lock... [2025-01-04 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:14:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:15:05 [end_date_ymd] => 2025-01-04 06:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:15:05' and `end` < '2025-01-04 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-04 06:15:18] Production.INFO: count ==218 [2025-01-04 06:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:15:05 - End Time 2025-01-04 06:15:05 [2025-01-04 06:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170986', 'tblTempUsageDetail_20' ) start [2025-01-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170986', 'tblTempUsageDetail_20' ) end [2025-01-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170986', 'tblTempVendorCDR_20' ) start [2025-01-04 06:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170986', 'tblTempVendorCDR_20' ) end [2025-01-04 06:15:18] Production.INFO: ProcessCDR(1,14170986,1,1,2) [2025-01-04 06:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170986', 'tblTempUsageDetail_20' ) start [2025-01-04 06:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170986', 'tblTempUsageDetail_20' ) end [2025-01-04 06:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:15:21] Production.INFO: ==16141== Releasing lock... [2025-01-04 06:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:15:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:16:05 [end_date_ymd] => 2025-01-04 06:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:16:05' and `end` < '2025-01-04 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-04 06:16:18] Production.INFO: count ==219 [2025-01-04 06:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:16:05 - End Time 2025-01-04 06:16:05 [2025-01-04 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170991', 'tblTempUsageDetail_20' ) start [2025-01-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170991', 'tblTempUsageDetail_20' ) end [2025-01-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170991', 'tblTempVendorCDR_20' ) start [2025-01-04 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170991', 'tblTempVendorCDR_20' ) end [2025-01-04 06:16:18] Production.INFO: ProcessCDR(1,14170991,1,1,2) [2025-01-04 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170991', 'tblTempUsageDetail_20' ) start [2025-01-04 06:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170991', 'tblTempUsageDetail_20' ) end [2025-01-04 06:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:16:23] Production.INFO: ==16212== Releasing lock... [2025-01-04 06:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:16:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:17:05 [end_date_ymd] => 2025-01-04 06:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:17:05' and `end` < '2025-01-04 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-04 06:17:19] Production.INFO: count ==220 [2025-01-04 06:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:17:05 - End Time 2025-01-04 06:17:05 [2025-01-04 06:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170996', 'tblTempUsageDetail_20' ) start [2025-01-04 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14170996', 'tblTempUsageDetail_20' ) end [2025-01-04 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170996', 'tblTempVendorCDR_20' ) start [2025-01-04 06:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14170996', 'tblTempVendorCDR_20' ) end [2025-01-04 06:17:19] Production.INFO: ProcessCDR(1,14170996,1,1,2) [2025-01-04 06:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14170996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14170996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14170996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14170996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170996', 'tblTempUsageDetail_20' ) start [2025-01-04 06:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14170996', 'tblTempUsageDetail_20' ) end [2025-01-04 06:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:17:23] Production.INFO: ==16284== Releasing lock... [2025-01-04 06:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:17:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:18:05 [end_date_ymd] => 2025-01-04 06:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:18:05' and `end` < '2025-01-04 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-04 06:18:18] Production.INFO: count ==220 [2025-01-04 06:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:18:05 - End Time 2025-01-04 06:18:05 [2025-01-04 06:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171001', 'tblTempUsageDetail_20' ) start [2025-01-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171001', 'tblTempUsageDetail_20' ) end [2025-01-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171001', 'tblTempVendorCDR_20' ) start [2025-01-04 06:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171001', 'tblTempVendorCDR_20' ) end [2025-01-04 06:18:18] Production.INFO: ProcessCDR(1,14171001,1,1,2) [2025-01-04 06:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171001', 'tblTempUsageDetail_20' ) start [2025-01-04 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171001', 'tblTempUsageDetail_20' ) end [2025-01-04 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:18:21] Production.INFO: ==16356== Releasing lock... [2025-01-04 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:19:05 [end_date_ymd] => 2025-01-04 06:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:19:05' and `end` < '2025-01-04 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-04 06:19:18] Production.INFO: count ==220 [2025-01-04 06:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:19:05 - End Time 2025-01-04 06:19:05 [2025-01-04 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171006', 'tblTempUsageDetail_20' ) start [2025-01-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171006', 'tblTempUsageDetail_20' ) end [2025-01-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171006', 'tblTempVendorCDR_20' ) start [2025-01-04 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171006', 'tblTempVendorCDR_20' ) end [2025-01-04 06:19:18] Production.INFO: ProcessCDR(1,14171006,1,1,2) [2025-01-04 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171006', 'tblTempUsageDetail_20' ) start [2025-01-04 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171006', 'tblTempUsageDetail_20' ) end [2025-01-04 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:19:21] Production.INFO: ==16426== Releasing lock... [2025-01-04 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:19:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:20:06 [end_date_ymd] => 2025-01-04 06:20:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:20:06' and `end` < '2025-01-04 06: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-04 06:20:19] Production.INFO: count ==220 [2025-01-04 06:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:20:06 - End Time 2025-01-04 06:20:06 [2025-01-04 06:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171012', 'tblTempUsageDetail_20' ) start [2025-01-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171012', 'tblTempUsageDetail_20' ) end [2025-01-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171012', 'tblTempVendorCDR_20' ) start [2025-01-04 06:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171012', 'tblTempVendorCDR_20' ) end [2025-01-04 06:20:19] Production.INFO: ProcessCDR(1,14171012,1,1,2) [2025-01-04 06:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171012', 'tblTempUsageDetail_20' ) start [2025-01-04 06:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171012', 'tblTempUsageDetail_20' ) end [2025-01-04 06:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:20:22] Production.INFO: ==16497== Releasing lock... [2025-01-04 06:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:20:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:21:05 [end_date_ymd] => 2025-01-04 06:21:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:21:05' and `end` < '2025-01-04 06: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-04 06:21:17] Production.INFO: count ==218 [2025-01-04 06:21:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:21:05 - End Time 2025-01-04 06:21:05 [2025-01-04 06:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171017', 'tblTempUsageDetail_20' ) start [2025-01-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171017', 'tblTempUsageDetail_20' ) end [2025-01-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171017', 'tblTempVendorCDR_20' ) start [2025-01-04 06:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171017', 'tblTempVendorCDR_20' ) end [2025-01-04 06:21:17] Production.INFO: ProcessCDR(1,14171017,1,1,2) [2025-01-04 06:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171017', 'tblTempUsageDetail_20' ) start [2025-01-04 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171017', 'tblTempUsageDetail_20' ) end [2025-01-04 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:21:21] Production.INFO: ==16568== Releasing lock... [2025-01-04 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:21:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:22:05 [end_date_ymd] => 2025-01-04 06:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:22:05' and `end` < '2025-01-04 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-04 06:22:18] Production.INFO: count ==218 [2025-01-04 06:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:22:05 - End Time 2025-01-04 06:22:05 [2025-01-04 06:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171022', 'tblTempUsageDetail_20' ) start [2025-01-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171022', 'tblTempUsageDetail_20' ) end [2025-01-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171022', 'tblTempVendorCDR_20' ) start [2025-01-04 06:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171022', 'tblTempVendorCDR_20' ) end [2025-01-04 06:22:18] Production.INFO: ProcessCDR(1,14171022,1,1,2) [2025-01-04 06:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171022', 'tblTempUsageDetail_20' ) start [2025-01-04 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171022', 'tblTempUsageDetail_20' ) end [2025-01-04 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:22:21] Production.INFO: ==16638== Releasing lock... [2025-01-04 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:22:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:23:04 [end_date_ymd] => 2025-01-04 06:23:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:23:04' and `end` < '2025-01-04 06: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-04 06:23:17] Production.INFO: count ==218 [2025-01-04 06:23:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:23:04 - End Time 2025-01-04 06:23:04 [2025-01-04 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171027', 'tblTempUsageDetail_20' ) start [2025-01-04 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171027', 'tblTempUsageDetail_20' ) end [2025-01-04 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171027', 'tblTempVendorCDR_20' ) start [2025-01-04 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171027', 'tblTempVendorCDR_20' ) end [2025-01-04 06:23:17] Production.INFO: ProcessCDR(1,14171027,1,1,2) [2025-01-04 06:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171027', 'tblTempUsageDetail_20' ) start [2025-01-04 06:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171027', 'tblTempUsageDetail_20' ) end [2025-01-04 06:23:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:23:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:23:20] Production.INFO: ==16709== Releasing lock... [2025-01-04 06:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:23:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:24:06 [end_date_ymd] => 2025-01-04 06:24:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:24:06' and `end` < '2025-01-04 06: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-04 06:24:18] Production.INFO: count ==218 [2025-01-04 06:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:24:06 - End Time 2025-01-04 06:24:06 [2025-01-04 06:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171032', 'tblTempUsageDetail_20' ) start [2025-01-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171032', 'tblTempUsageDetail_20' ) end [2025-01-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171032', 'tblTempVendorCDR_20' ) start [2025-01-04 06:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171032', 'tblTempVendorCDR_20' ) end [2025-01-04 06:24:18] Production.INFO: ProcessCDR(1,14171032,1,1,2) [2025-01-04 06:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171032', 'tblTempUsageDetail_20' ) start [2025-01-04 06:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171032', 'tblTempUsageDetail_20' ) end [2025-01-04 06:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:24:22] Production.INFO: ==16822== Releasing lock... [2025-01-04 06:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:24:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:25:04 [end_date_ymd] => 2025-01-04 06:25:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:25:04' and `end` < '2025-01-04 06: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-04 06:25:17] Production.INFO: count ==218 [2025-01-04 06:25:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:25:04 - End Time 2025-01-04 06:25:04 [2025-01-04 06:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171037', 'tblTempUsageDetail_20' ) start [2025-01-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171037', 'tblTempUsageDetail_20' ) end [2025-01-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171037', 'tblTempVendorCDR_20' ) start [2025-01-04 06:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171037', 'tblTempVendorCDR_20' ) end [2025-01-04 06:25:17] Production.INFO: ProcessCDR(1,14171037,1,1,2) [2025-01-04 06:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171037', 'tblTempUsageDetail_20' ) start [2025-01-04 06:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171037', 'tblTempUsageDetail_20' ) end [2025-01-04 06:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:25:20] Production.INFO: ==16893== Releasing lock... [2025-01-04 06:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:25:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:26:05 [end_date_ymd] => 2025-01-04 06:26:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:26:05' and `end` < '2025-01-04 06: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-04 06:26:18] Production.INFO: count ==218 [2025-01-04 06:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:26:05 - End Time 2025-01-04 06:26:05 [2025-01-04 06:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171042', 'tblTempUsageDetail_20' ) start [2025-01-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171042', 'tblTempUsageDetail_20' ) end [2025-01-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171042', 'tblTempVendorCDR_20' ) start [2025-01-04 06:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171042', 'tblTempVendorCDR_20' ) end [2025-01-04 06:26:18] Production.INFO: ProcessCDR(1,14171042,1,1,2) [2025-01-04 06:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171042', 'tblTempUsageDetail_20' ) start [2025-01-04 06:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171042', 'tblTempUsageDetail_20' ) end [2025-01-04 06:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:26:21] Production.INFO: ==16966== Releasing lock... [2025-01-04 06:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:26:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:27:05 [end_date_ymd] => 2025-01-04 06:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:27:05' and `end` < '2025-01-04 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-04 06:27:18] Production.INFO: count ==218 [2025-01-04 06:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:27:05 - End Time 2025-01-04 06:27:05 [2025-01-04 06:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171047', 'tblTempUsageDetail_20' ) start [2025-01-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171047', 'tblTempUsageDetail_20' ) end [2025-01-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171047', 'tblTempVendorCDR_20' ) start [2025-01-04 06:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171047', 'tblTempVendorCDR_20' ) end [2025-01-04 06:27:18] Production.INFO: ProcessCDR(1,14171047,1,1,2) [2025-01-04 06:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171047', 'tblTempUsageDetail_20' ) start [2025-01-04 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171047', 'tblTempUsageDetail_20' ) end [2025-01-04 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:27:21] Production.INFO: ==17035== Releasing lock... [2025-01-04 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:27:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:28:05 [end_date_ymd] => 2025-01-04 06:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:28:05' and `end` < '2025-01-04 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-04 06:28:18] Production.INFO: count ==217 [2025-01-04 06:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:28:05 - End Time 2025-01-04 06:28:05 [2025-01-04 06:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171052', 'tblTempUsageDetail_20' ) start [2025-01-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171052', 'tblTempUsageDetail_20' ) end [2025-01-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171052', 'tblTempVendorCDR_20' ) start [2025-01-04 06:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171052', 'tblTempVendorCDR_20' ) end [2025-01-04 06:28:18] Production.INFO: ProcessCDR(1,14171052,1,1,2) [2025-01-04 06:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171052', 'tblTempUsageDetail_20' ) start [2025-01-04 06:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171052', 'tblTempUsageDetail_20' ) end [2025-01-04 06:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:28:21] Production.INFO: ==17107== Releasing lock... [2025-01-04 06:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:28:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:29:05 [end_date_ymd] => 2025-01-04 06:29:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:29:05' and `end` < '2025-01-04 06: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-04 06:29:19] Production.INFO: count ==213 [2025-01-04 06:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:29:05 - End Time 2025-01-04 06:29:05 [2025-01-04 06:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171057', 'tblTempUsageDetail_20' ) start [2025-01-04 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171057', 'tblTempUsageDetail_20' ) end [2025-01-04 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171057', 'tblTempVendorCDR_20' ) start [2025-01-04 06:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171057', 'tblTempVendorCDR_20' ) end [2025-01-04 06:29:19] Production.INFO: ProcessCDR(1,14171057,1,1,2) [2025-01-04 06:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171057', 'tblTempUsageDetail_20' ) start [2025-01-04 06:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171057', 'tblTempUsageDetail_20' ) end [2025-01-04 06:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:29:22] Production.INFO: ==17179== Releasing lock... [2025-01-04 06:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:29:22] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:30:05 [end_date_ymd] => 2025-01-04 06:30:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:30:05' and `end` < '2025-01-04 06: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-04 06:30:17] Production.INFO: count ==207 [2025-01-04 06:30:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:30:05 - End Time 2025-01-04 06:30:05 [2025-01-04 06:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171062', 'tblTempUsageDetail_20' ) start [2025-01-04 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171062', 'tblTempUsageDetail_20' ) end [2025-01-04 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171062', 'tblTempVendorCDR_20' ) start [2025-01-04 06:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171062', 'tblTempVendorCDR_20' ) end [2025-01-04 06:30:17] Production.INFO: ProcessCDR(1,14171062,1,1,2) [2025-01-04 06:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:30:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171062,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:30:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:30:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171062,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171062', 'tblTempUsageDetail_20' ) start [2025-01-04 06:30:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171062', 'tblTempUsageDetail_20' ) end [2025-01-04 06:30:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:30:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:30:20] Production.INFO: ==17253== Releasing lock... [2025-01-04 06:30:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:30:20] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:31:05 [end_date_ymd] => 2025-01-04 06:31:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:31:05' and `end` < '2025-01-04 06: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-04 06:31:18] Production.INFO: count ==202 [2025-01-04 06:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:31:05 - End Time 2025-01-04 06:31:05 [2025-01-04 06:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171068', 'tblTempUsageDetail_20' ) start [2025-01-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171068', 'tblTempUsageDetail_20' ) end [2025-01-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171068', 'tblTempVendorCDR_20' ) start [2025-01-04 06:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171068', 'tblTempVendorCDR_20' ) end [2025-01-04 06:31:18] Production.INFO: ProcessCDR(1,14171068,1,1,2) [2025-01-04 06:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171068', 'tblTempUsageDetail_20' ) start [2025-01-04 06:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171068', 'tblTempUsageDetail_20' ) end [2025-01-04 06:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:31:21] Production.INFO: ==17330== Releasing lock... [2025-01-04 06:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:31:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:32:05 [end_date_ymd] => 2025-01-04 06:32:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:32:05' and `end` < '2025-01-04 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-04 06:32:18] Production.INFO: count ==202 [2025-01-04 06:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:32:05 - End Time 2025-01-04 06:32:05 [2025-01-04 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171073', 'tblTempUsageDetail_20' ) start [2025-01-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171073', 'tblTempUsageDetail_20' ) end [2025-01-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171073', 'tblTempVendorCDR_20' ) start [2025-01-04 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171073', 'tblTempVendorCDR_20' ) end [2025-01-04 06:32:18] Production.INFO: ProcessCDR(1,14171073,1,1,2) [2025-01-04 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171073', 'tblTempUsageDetail_20' ) start [2025-01-04 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171073', 'tblTempUsageDetail_20' ) end [2025-01-04 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:32:21] Production.INFO: ==17400== Releasing lock... [2025-01-04 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:32:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:33:04 [end_date_ymd] => 2025-01-04 06:33:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:33:04' and `end` < '2025-01-04 06: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-04 06:33:18] Production.INFO: count ==202 [2025-01-04 06:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:33:04 - End Time 2025-01-04 06:33:04 [2025-01-04 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171078', 'tblTempUsageDetail_20' ) start [2025-01-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171078', 'tblTempUsageDetail_20' ) end [2025-01-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171078', 'tblTempVendorCDR_20' ) start [2025-01-04 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171078', 'tblTempVendorCDR_20' ) end [2025-01-04 06:33:18] Production.INFO: ProcessCDR(1,14171078,1,1,2) [2025-01-04 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171078', 'tblTempUsageDetail_20' ) start [2025-01-04 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171078', 'tblTempUsageDetail_20' ) end [2025-01-04 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:33:21] Production.INFO: ==17469== Releasing lock... [2025-01-04 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:33:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:34:05 [end_date_ymd] => 2025-01-04 06:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:34:05' and `end` < '2025-01-04 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-04 06:34:19] Production.INFO: count ==201 [2025-01-04 06:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:34:05 - End Time 2025-01-04 06:34:05 [2025-01-04 06:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171083', 'tblTempUsageDetail_20' ) start [2025-01-04 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171083', 'tblTempUsageDetail_20' ) end [2025-01-04 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171083', 'tblTempVendorCDR_20' ) start [2025-01-04 06:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171083', 'tblTempVendorCDR_20' ) end [2025-01-04 06:34:19] Production.INFO: ProcessCDR(1,14171083,1,1,2) [2025-01-04 06:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171083', 'tblTempUsageDetail_20' ) start [2025-01-04 06:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171083', 'tblTempUsageDetail_20' ) end [2025-01-04 06:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:34:22] Production.INFO: ==17539== Releasing lock... [2025-01-04 06:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:34:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:35:05 [end_date_ymd] => 2025-01-04 06:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:35:05' and `end` < '2025-01-04 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-04 06:35:17] Production.INFO: count ==201 [2025-01-04 06:35:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:35:05 - End Time 2025-01-04 06:35:05 [2025-01-04 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171088', 'tblTempUsageDetail_20' ) start [2025-01-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171088', 'tblTempUsageDetail_20' ) end [2025-01-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171088', 'tblTempVendorCDR_20' ) start [2025-01-04 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171088', 'tblTempVendorCDR_20' ) end [2025-01-04 06:35:17] Production.INFO: ProcessCDR(1,14171088,1,1,2) [2025-01-04 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171088', 'tblTempUsageDetail_20' ) start [2025-01-04 06:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171088', 'tblTempUsageDetail_20' ) end [2025-01-04 06:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:35:20] Production.INFO: ==17610== Releasing lock... [2025-01-04 06:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:35:20] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:36:05 [end_date_ymd] => 2025-01-04 06:36:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:36:05' and `end` < '2025-01-04 06: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-04 06:36:18] Production.INFO: count ==201 [2025-01-04 06:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:36:05 - End Time 2025-01-04 06:36:05 [2025-01-04 06:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171093', 'tblTempUsageDetail_20' ) start [2025-01-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171093', 'tblTempUsageDetail_20' ) end [2025-01-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171093', 'tblTempVendorCDR_20' ) start [2025-01-04 06:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171093', 'tblTempVendorCDR_20' ) end [2025-01-04 06:36:18] Production.INFO: ProcessCDR(1,14171093,1,1,2) [2025-01-04 06:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171093', 'tblTempUsageDetail_20' ) start [2025-01-04 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171093', 'tblTempUsageDetail_20' ) end [2025-01-04 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:36:21] Production.INFO: ==17680== Releasing lock... [2025-01-04 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:36:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:37:04 [end_date_ymd] => 2025-01-04 06:37:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:37:04' and `end` < '2025-01-04 06: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-04 06:37:18] Production.INFO: count ==201 [2025-01-04 06:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:37:04 - End Time 2025-01-04 06:37:04 [2025-01-04 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171098', 'tblTempUsageDetail_20' ) start [2025-01-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171098', 'tblTempUsageDetail_20' ) end [2025-01-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171098', 'tblTempVendorCDR_20' ) start [2025-01-04 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171098', 'tblTempVendorCDR_20' ) end [2025-01-04 06:37:18] Production.INFO: ProcessCDR(1,14171098,1,1,2) [2025-01-04 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171098', 'tblTempUsageDetail_20' ) start [2025-01-04 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171098', 'tblTempUsageDetail_20' ) end [2025-01-04 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:37:21] Production.INFO: ==17753== Releasing lock... [2025-01-04 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:37:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:38:05 [end_date_ymd] => 2025-01-04 06:38:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:38:05' and `end` < '2025-01-04 06: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-04 06:38:18] Production.INFO: count ==201 [2025-01-04 06:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:38:05 - End Time 2025-01-04 06:38:05 [2025-01-04 06:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171103', 'tblTempUsageDetail_20' ) start [2025-01-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171103', 'tblTempUsageDetail_20' ) end [2025-01-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171103', 'tblTempVendorCDR_20' ) start [2025-01-04 06:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171103', 'tblTempVendorCDR_20' ) end [2025-01-04 06:38:18] Production.INFO: ProcessCDR(1,14171103,1,1,2) [2025-01-04 06:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171103', 'tblTempUsageDetail_20' ) start [2025-01-04 06:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171103', 'tblTempUsageDetail_20' ) end [2025-01-04 06:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:38:21] Production.INFO: ==17826== Releasing lock... [2025-01-04 06:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:38:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:39:05 [end_date_ymd] => 2025-01-04 06:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:39:05' and `end` < '2025-01-04 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-04 06:39:17] Production.INFO: count ==198 [2025-01-04 06:39:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:39:05 - End Time 2025-01-04 06:39:05 [2025-01-04 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171108', 'tblTempUsageDetail_20' ) start [2025-01-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171108', 'tblTempUsageDetail_20' ) end [2025-01-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171108', 'tblTempVendorCDR_20' ) start [2025-01-04 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171108', 'tblTempVendorCDR_20' ) end [2025-01-04 06:39:17] Production.INFO: ProcessCDR(1,14171108,1,1,2) [2025-01-04 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171108,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171108,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171108', 'tblTempUsageDetail_20' ) start [2025-01-04 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171108', 'tblTempUsageDetail_20' ) end [2025-01-04 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:39:21] Production.INFO: ==17895== Releasing lock... [2025-01-04 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:39:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 06:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:40:06 [end_date_ymd] => 2025-01-04 06:40:06 [RateCDR] => 1 ) [2025-01-04 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-04 03:40:06' and `end` < '2025-01-04 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-04 06:40:18] Production.INFO: count ==190 [2025-01-04 06:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:40:06 - End Time 2025-01-04 06:40:06 [2025-01-04 06:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171114', 'tblTempUsageDetail_20' ) start [2025-01-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171114', 'tblTempUsageDetail_20' ) end [2025-01-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171114', 'tblTempVendorCDR_20' ) start [2025-01-04 06:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171114', 'tblTempVendorCDR_20' ) end [2025-01-04 06:40:18] Production.INFO: ProcessCDR(1,14171114,1,1,2) [2025-01-04 06:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171114', 'tblTempUsageDetail_20' ) start [2025-01-04 06:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171114', 'tblTempUsageDetail_20' ) end [2025-01-04 06:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:40:22] Production.INFO: ==18006== Releasing lock... [2025-01-04 06:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:40:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:41:05 [end_date_ymd] => 2025-01-04 06:41:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:41:05' and `end` < '2025-01-04 06: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-04 06:41:18] Production.INFO: count ==190 [2025-01-04 06:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:41:05 - End Time 2025-01-04 06:41:05 [2025-01-04 06:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171119', 'tblTempUsageDetail_20' ) start [2025-01-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171119', 'tblTempUsageDetail_20' ) end [2025-01-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171119', 'tblTempVendorCDR_20' ) start [2025-01-04 06:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171119', 'tblTempVendorCDR_20' ) end [2025-01-04 06:41:18] Production.INFO: ProcessCDR(1,14171119,1,1,2) [2025-01-04 06:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171119', 'tblTempUsageDetail_20' ) start [2025-01-04 06:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171119', 'tblTempUsageDetail_20' ) end [2025-01-04 06:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:41:21] Production.INFO: ==18079== Releasing lock... [2025-01-04 06:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:41:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:42:05 [end_date_ymd] => 2025-01-04 06:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:42:05' and `end` < '2025-01-04 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-04 06:42:17] Production.INFO: count ==190 [2025-01-04 06:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:42:05 - End Time 2025-01-04 06:42:05 [2025-01-04 06:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171124', 'tblTempUsageDetail_20' ) start [2025-01-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171124', 'tblTempUsageDetail_20' ) end [2025-01-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171124', 'tblTempVendorCDR_20' ) start [2025-01-04 06:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171124', 'tblTempVendorCDR_20' ) end [2025-01-04 06:42:18] Production.INFO: ProcessCDR(1,14171124,1,1,2) [2025-01-04 06:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171124', 'tblTempUsageDetail_20' ) start [2025-01-04 06:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171124', 'tblTempUsageDetail_20' ) end [2025-01-04 06:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:42:21] Production.INFO: ==18153== Releasing lock... [2025-01-04 06:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:42:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:43:05 [end_date_ymd] => 2025-01-04 06:43:05 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:43:05' and `end` < '2025-01-04 06: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-04 06:43:18] Production.INFO: count ==190 [2025-01-04 06:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:43:05 - End Time 2025-01-04 06:43:05 [2025-01-04 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171129', 'tblTempUsageDetail_20' ) start [2025-01-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171129', 'tblTempUsageDetail_20' ) end [2025-01-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171129', 'tblTempVendorCDR_20' ) start [2025-01-04 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171129', 'tblTempVendorCDR_20' ) end [2025-01-04 06:43:18] Production.INFO: ProcessCDR(1,14171129,1,1,2) [2025-01-04 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171129', 'tblTempUsageDetail_20' ) start [2025-01-04 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171129', 'tblTempUsageDetail_20' ) end [2025-01-04 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:43:21] Production.INFO: ==18224== Releasing lock... [2025-01-04 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:43:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:44:04 [end_date_ymd] => 2025-01-04 06:44:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:44:04' and `end` < '2025-01-04 06: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-04 06:44:18] Production.INFO: count ==190 [2025-01-04 06:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:44:04 - End Time 2025-01-04 06:44:04 [2025-01-04 06:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171134', 'tblTempUsageDetail_20' ) start [2025-01-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171134', 'tblTempUsageDetail_20' ) end [2025-01-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171134', 'tblTempVendorCDR_20' ) start [2025-01-04 06:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171134', 'tblTempVendorCDR_20' ) end [2025-01-04 06:44:18] Production.INFO: ProcessCDR(1,14171134,1,1,2) [2025-01-04 06:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171134', 'tblTempUsageDetail_20' ) start [2025-01-04 06:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171134', 'tblTempUsageDetail_20' ) end [2025-01-04 06:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:44:21] Production.INFO: ==18298== Releasing lock... [2025-01-04 06:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:44:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:45:04 [end_date_ymd] => 2025-01-04 06:45:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:45:04' and `end` < '2025-01-04 06: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-04 06:45:18] Production.INFO: count ==190 [2025-01-04 06:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:45:04 - End Time 2025-01-04 06:45:04 [2025-01-04 06:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171139', 'tblTempUsageDetail_20' ) start [2025-01-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171139', 'tblTempUsageDetail_20' ) end [2025-01-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171139', 'tblTempVendorCDR_20' ) start [2025-01-04 06:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171139', 'tblTempVendorCDR_20' ) end [2025-01-04 06:45:18] Production.INFO: ProcessCDR(1,14171139,1,1,2) [2025-01-04 06:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171139', 'tblTempUsageDetail_20' ) start [2025-01-04 06:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171139', 'tblTempUsageDetail_20' ) end [2025-01-04 06:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:45:21] Production.INFO: ==18370== Releasing lock... [2025-01-04 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:45:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:46:06 [end_date_ymd] => 2025-01-04 06:46:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:46:06' and `end` < '2025-01-04 06: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-04 06:46:19] Production.INFO: count ==190 [2025-01-04 06:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:46:06 - End Time 2025-01-04 06:46:06 [2025-01-04 06:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171144', 'tblTempUsageDetail_20' ) start [2025-01-04 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171144', 'tblTempUsageDetail_20' ) end [2025-01-04 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171144', 'tblTempVendorCDR_20' ) start [2025-01-04 06:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171144', 'tblTempVendorCDR_20' ) end [2025-01-04 06:46:19] Production.INFO: ProcessCDR(1,14171144,1,1,2) [2025-01-04 06:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171144', 'tblTempUsageDetail_20' ) start [2025-01-04 06:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171144', 'tblTempUsageDetail_20' ) end [2025-01-04 06:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:46:22] Production.INFO: ==18446== Releasing lock... [2025-01-04 06:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:46:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:47:04 [end_date_ymd] => 2025-01-04 06:47:04 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:47:04' and `end` < '2025-01-04 06: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-04 06:47:17] Production.INFO: count ==190 [2025-01-04 06:47:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:47:04 - End Time 2025-01-04 06:47:04 [2025-01-04 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171149', 'tblTempUsageDetail_20' ) start [2025-01-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171149', 'tblTempUsageDetail_20' ) end [2025-01-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171149', 'tblTempVendorCDR_20' ) start [2025-01-04 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171149', 'tblTempVendorCDR_20' ) end [2025-01-04 06:47:17] Production.INFO: ProcessCDR(1,14171149,1,1,2) [2025-01-04 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171149', 'tblTempUsageDetail_20' ) start [2025-01-04 06:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171149', 'tblTempUsageDetail_20' ) end [2025-01-04 06:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:47:20] Production.INFO: ==18516== Releasing lock... [2025-01-04 06:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:47:20] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:48:05 [end_date_ymd] => 2025-01-04 06:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:48:05' and `end` < '2025-01-04 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-04 06:48:18] Production.INFO: count ==190 [2025-01-04 06:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:48:05 - End Time 2025-01-04 06:48:05 [2025-01-04 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171154', 'tblTempUsageDetail_20' ) start [2025-01-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171154', 'tblTempUsageDetail_20' ) end [2025-01-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171154', 'tblTempVendorCDR_20' ) start [2025-01-04 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171154', 'tblTempVendorCDR_20' ) end [2025-01-04 06:48:18] Production.INFO: ProcessCDR(1,14171154,1,1,2) [2025-01-04 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171154', 'tblTempUsageDetail_20' ) start [2025-01-04 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171154', 'tblTempUsageDetail_20' ) end [2025-01-04 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:48:21] Production.INFO: ==18586== Releasing lock... [2025-01-04 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:48:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:49:05 [end_date_ymd] => 2025-01-04 06:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:49:05' and `end` < '2025-01-04 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-04 06:49:17] Production.INFO: count ==190 [2025-01-04 06:49:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:49:05 - End Time 2025-01-04 06:49:05 [2025-01-04 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171159', 'tblTempUsageDetail_20' ) start [2025-01-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171159', 'tblTempUsageDetail_20' ) end [2025-01-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171159', 'tblTempVendorCDR_20' ) start [2025-01-04 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171159', 'tblTempVendorCDR_20' ) end [2025-01-04 06:49:17] Production.INFO: ProcessCDR(1,14171159,1,1,2) [2025-01-04 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171159', 'tblTempUsageDetail_20' ) start [2025-01-04 06:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171159', 'tblTempUsageDetail_20' ) end [2025-01-04 06:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:49:21] Production.INFO: ==18656== Releasing lock... [2025-01-04 06:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:49:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:50:05 [end_date_ymd] => 2025-01-04 06:50:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:50:05' and `end` < '2025-01-04 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-04 06:50:18] Production.INFO: count ==190 [2025-01-04 06:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:50:05 - End Time 2025-01-04 06:50:05 [2025-01-04 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171165', 'tblTempUsageDetail_20' ) start [2025-01-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171165', 'tblTempUsageDetail_20' ) end [2025-01-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171165', 'tblTempVendorCDR_20' ) start [2025-01-04 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171165', 'tblTempVendorCDR_20' ) end [2025-01-04 06:50:18] Production.INFO: ProcessCDR(1,14171165,1,1,2) [2025-01-04 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171165', 'tblTempUsageDetail_20' ) start [2025-01-04 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171165', 'tblTempUsageDetail_20' ) end [2025-01-04 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:50:21] Production.INFO: ==18731== Releasing lock... [2025-01-04 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:50:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:51:05 [end_date_ymd] => 2025-01-04 06:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:51:05' and `end` < '2025-01-04 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-04 06:51:18] Production.INFO: count ==190 [2025-01-04 06:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:51:05 - End Time 2025-01-04 06:51:05 [2025-01-04 06:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171170', 'tblTempUsageDetail_20' ) start [2025-01-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171170', 'tblTempUsageDetail_20' ) end [2025-01-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171170', 'tblTempVendorCDR_20' ) start [2025-01-04 06:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171170', 'tblTempVendorCDR_20' ) end [2025-01-04 06:51:18] Production.INFO: ProcessCDR(1,14171170,1,1,2) [2025-01-04 06:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171170', 'tblTempUsageDetail_20' ) start [2025-01-04 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171170', 'tblTempUsageDetail_20' ) end [2025-01-04 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:51:21] Production.INFO: ==18814== Releasing lock... [2025-01-04 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:51:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:52:05 [end_date_ymd] => 2025-01-04 06:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:52:05' and `end` < '2025-01-04 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-04 06:52:19] Production.INFO: count ==190 [2025-01-04 06:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:52:05 - End Time 2025-01-04 06:52:05 [2025-01-04 06:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171175', 'tblTempUsageDetail_20' ) start [2025-01-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171175', 'tblTempUsageDetail_20' ) end [2025-01-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171175', 'tblTempVendorCDR_20' ) start [2025-01-04 06:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171175', 'tblTempVendorCDR_20' ) end [2025-01-04 06:52:19] Production.INFO: ProcessCDR(1,14171175,1,1,2) [2025-01-04 06:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171175', 'tblTempUsageDetail_20' ) start [2025-01-04 06:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171175', 'tblTempUsageDetail_20' ) end [2025-01-04 06:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:52:22] Production.INFO: ==18912== Releasing lock... [2025-01-04 06:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:52:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:53:05 [end_date_ymd] => 2025-01-04 06:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:53:05' and `end` < '2025-01-04 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-04 06:53:18] Production.INFO: count ==190 [2025-01-04 06:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:53:05 - End Time 2025-01-04 06:53:05 [2025-01-04 06:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171180', 'tblTempUsageDetail_20' ) start [2025-01-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171180', 'tblTempUsageDetail_20' ) end [2025-01-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171180', 'tblTempVendorCDR_20' ) start [2025-01-04 06:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171180', 'tblTempVendorCDR_20' ) end [2025-01-04 06:53:18] Production.INFO: ProcessCDR(1,14171180,1,1,2) [2025-01-04 06:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171180', 'tblTempUsageDetail_20' ) start [2025-01-04 06:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171180', 'tblTempUsageDetail_20' ) end [2025-01-04 06:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:53:21] Production.INFO: ==19008== Releasing lock... [2025-01-04 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:53:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:54:06 [end_date_ymd] => 2025-01-04 06:54:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:54:06' and `end` < '2025-01-04 06: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-04 06:54:19] Production.INFO: count ==190 [2025-01-04 06:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:54:06 - End Time 2025-01-04 06:54:06 [2025-01-04 06:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171185', 'tblTempUsageDetail_20' ) start [2025-01-04 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171185', 'tblTempUsageDetail_20' ) end [2025-01-04 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171185', 'tblTempVendorCDR_20' ) start [2025-01-04 06:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171185', 'tblTempVendorCDR_20' ) end [2025-01-04 06:54:19] Production.INFO: ProcessCDR(1,14171185,1,1,2) [2025-01-04 06:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171185', 'tblTempUsageDetail_20' ) start [2025-01-04 06:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171185', 'tblTempUsageDetail_20' ) end [2025-01-04 06:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:54:22] Production.INFO: ==19102== Releasing lock... [2025-01-04 06:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:54:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:55:05 [end_date_ymd] => 2025-01-04 06:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:55:05' and `end` < '2025-01-04 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-04 06:55:18] Production.INFO: count ==190 [2025-01-04 06:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:55:05 - End Time 2025-01-04 06:55:05 [2025-01-04 06:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171190', 'tblTempUsageDetail_20' ) start [2025-01-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171190', 'tblTempUsageDetail_20' ) end [2025-01-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171190', 'tblTempVendorCDR_20' ) start [2025-01-04 06:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171190', 'tblTempVendorCDR_20' ) end [2025-01-04 06:55:18] Production.INFO: ProcessCDR(1,14171190,1,1,2) [2025-01-04 06:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171190', 'tblTempUsageDetail_20' ) start [2025-01-04 06:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171190', 'tblTempUsageDetail_20' ) end [2025-01-04 06:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:55:21] Production.INFO: ==19238== Releasing lock... [2025-01-04 06:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:55:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:56:05 [end_date_ymd] => 2025-01-04 06:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:56:05' and `end` < '2025-01-04 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-04 06:56:19] Production.INFO: count ==190 [2025-01-04 06:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 03:56:05 - End Time 2025-01-04 06:56:05 [2025-01-04 06:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171195', 'tblTempUsageDetail_20' ) start [2025-01-04 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171195', 'tblTempUsageDetail_20' ) end [2025-01-04 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171195', 'tblTempVendorCDR_20' ) start [2025-01-04 06:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171195', 'tblTempVendorCDR_20' ) end [2025-01-04 06:56:19] Production.INFO: ProcessCDR(1,14171195,1,1,2) [2025-01-04 06:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171195', 'tblTempUsageDetail_20' ) start [2025-01-04 06:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171195', 'tblTempUsageDetail_20' ) end [2025-01-04 06:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:56:23] Production.INFO: ==19333== Releasing lock... [2025-01-04 06:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:56:23] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:57:05 [end_date_ymd] => 2025-01-04 06:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:57:05' and `end` < '2025-01-04 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-04 06:57:18] Production.INFO: count ==190 [2025-01-04 06:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:57:05 - End Time 2025-01-04 06:57:05 [2025-01-04 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171200', 'tblTempUsageDetail_20' ) start [2025-01-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171200', 'tblTempUsageDetail_20' ) end [2025-01-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171200', 'tblTempVendorCDR_20' ) start [2025-01-04 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171200', 'tblTempVendorCDR_20' ) end [2025-01-04 06:57:18] Production.INFO: ProcessCDR(1,14171200,1,1,2) [2025-01-04 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171200', 'tblTempUsageDetail_20' ) start [2025-01-04 06:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171200', 'tblTempUsageDetail_20' ) end [2025-01-04 06:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:57:21] Production.INFO: ==19427== Releasing lock... [2025-01-04 06:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:57:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:58:06 [end_date_ymd] => 2025-01-04 06:58:06 [RateCDR] => 1 ) [2025-01-04 06: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-04 03:58:06' and `end` < '2025-01-04 06: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-04 06:58:18] Production.INFO: count ==190 [2025-01-04 06:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 03:58:06 - End Time 2025-01-04 06:58:06 [2025-01-04 06:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171205', 'tblTempUsageDetail_20' ) start [2025-01-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171205', 'tblTempUsageDetail_20' ) end [2025-01-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171205', 'tblTempVendorCDR_20' ) start [2025-01-04 06:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171205', 'tblTempVendorCDR_20' ) end [2025-01-04 06:58:18] Production.INFO: ProcessCDR(1,14171205,1,1,2) [2025-01-04 06:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171205', 'tblTempUsageDetail_20' ) start [2025-01-04 06:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171205', 'tblTempUsageDetail_20' ) end [2025-01-04 06:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:58:21] Production.INFO: ==19523== Releasing lock... [2025-01-04 06:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:58:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 03:59:05 [end_date_ymd] => 2025-01-04 06:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 03:59:05' and `end` < '2025-01-04 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-04 06:59:17] Production.INFO: count ==190 [2025-01-04 06:59:17] Production.ERROR: pbx CDR StartTime 2025-01-04 03:59:05 - End Time 2025-01-04 06:59:05 [2025-01-04 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171210', 'tblTempUsageDetail_20' ) start [2025-01-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171210', 'tblTempUsageDetail_20' ) end [2025-01-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171210', 'tblTempVendorCDR_20' ) start [2025-01-04 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171210', 'tblTempVendorCDR_20' ) end [2025-01-04 06:59:17] Production.INFO: ProcessCDR(1,14171210,1,1,2) [2025-01-04 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171210,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171210,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171210', 'tblTempUsageDetail_20' ) start [2025-01-04 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171210', 'tblTempUsageDetail_20' ) end [2025-01-04 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 06:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 06:59:21] Production.INFO: ==19620== Releasing lock... [2025-01-04 06:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 06:59:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:00:06 [end_date_ymd] => 2025-01-04 07:00:06 [RateCDR] => 1 ) [2025-01-04 07:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 04:00:06' and `end` < '2025-01-04 07:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 07:00:19] Production.INFO: count ==188 [2025-01-04 07:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:00:06 - End Time 2025-01-04 07:00:06 [2025-01-04 07:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171216', 'tblTempUsageDetail_20' ) start [2025-01-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171216', 'tblTempUsageDetail_20' ) end [2025-01-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171216', 'tblTempVendorCDR_20' ) start [2025-01-04 07:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171216', 'tblTempVendorCDR_20' ) end [2025-01-04 07:00:19] Production.INFO: ProcessCDR(1,14171216,1,1,2) [2025-01-04 07:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171216', 'tblTempUsageDetail_20' ) start [2025-01-04 07:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171216', 'tblTempUsageDetail_20' ) end [2025-01-04 07:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:00:22] Production.INFO: ==19715== Releasing lock... [2025-01-04 07:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:00:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:01:05 [end_date_ymd] => 2025-01-04 07:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:01:05' and `end` < '2025-01-04 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-04 07:01:26] Production.INFO: count ==188 [2025-01-04 07:01:27] Production.ERROR: pbx CDR StartTime 2025-01-04 04:01:05 - End Time 2025-01-04 07:01:05 [2025-01-04 07:01:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171221', 'tblTempUsageDetail_20' ) start [2025-01-04 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171221', 'tblTempUsageDetail_20' ) end [2025-01-04 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171221', 'tblTempVendorCDR_20' ) start [2025-01-04 07:01:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171221', 'tblTempVendorCDR_20' ) end [2025-01-04 07:01:27] Production.INFO: ProcessCDR(1,14171221,1,1,2) [2025-01-04 07:01:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:01:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:01:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:01:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171221', 'tblTempUsageDetail_20' ) start [2025-01-04 07:01:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171221', 'tblTempUsageDetail_20' ) end [2025-01-04 07:01:30] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:01:30] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:01:30] Production.INFO: ==19865== Releasing lock... [2025-01-04 07:01:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:01:30] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:02:05 [end_date_ymd] => 2025-01-04 07:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:02:05' and `end` < '2025-01-04 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-04 07:02:21] Production.INFO: count ==188 [2025-01-04 07:02:21] Production.ERROR: pbx CDR StartTime 2025-01-04 04:02:05 - End Time 2025-01-04 07:02:05 [2025-01-04 07:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171226', 'tblTempUsageDetail_20' ) start [2025-01-04 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171226', 'tblTempUsageDetail_20' ) end [2025-01-04 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171226', 'tblTempVendorCDR_20' ) start [2025-01-04 07:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171226', 'tblTempVendorCDR_20' ) end [2025-01-04 07:02:21] Production.INFO: ProcessCDR(1,14171226,1,1,2) [2025-01-04 07:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171226', 'tblTempUsageDetail_20' ) start [2025-01-04 07:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171226', 'tblTempUsageDetail_20' ) end [2025-01-04 07:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:02:24] Production.INFO: ==19999== Releasing lock... [2025-01-04 07:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:02:24] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:03:04 [end_date_ymd] => 2025-01-04 07:03:04 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:03:04' and `end` < '2025-01-04 07: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-04 07:03:19] Production.INFO: count ==188 [2025-01-04 07:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:03:04 - End Time 2025-01-04 07:03:04 [2025-01-04 07:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171231', 'tblTempUsageDetail_20' ) start [2025-01-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171231', 'tblTempUsageDetail_20' ) end [2025-01-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171231', 'tblTempVendorCDR_20' ) start [2025-01-04 07:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171231', 'tblTempVendorCDR_20' ) end [2025-01-04 07:03:19] Production.INFO: ProcessCDR(1,14171231,1,1,2) [2025-01-04 07:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171231', 'tblTempUsageDetail_20' ) start [2025-01-04 07:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171231', 'tblTempUsageDetail_20' ) end [2025-01-04 07:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:03:23] Production.INFO: ==20093== Releasing lock... [2025-01-04 07:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:03:23] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:04:04 [end_date_ymd] => 2025-01-04 07:04:04 [RateCDR] => 1 ) [2025-01-04 07:04: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-04 04:04:04' and `end` < '2025-01-04 07:04: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-04 07:04:19] Production.INFO: count ==188 [2025-01-04 07:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:04:04 - End Time 2025-01-04 07:04:04 [2025-01-04 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171234', 'tblTempUsageDetail_20' ) start [2025-01-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171234', 'tblTempUsageDetail_20' ) end [2025-01-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171234', 'tblTempVendorCDR_20' ) start [2025-01-04 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171234', 'tblTempVendorCDR_20' ) end [2025-01-04 07:04:19] Production.INFO: ProcessCDR(1,14171234,1,1,2) [2025-01-04 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171234', 'tblTempUsageDetail_20' ) start [2025-01-04 07:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171234', 'tblTempUsageDetail_20' ) end [2025-01-04 07:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:04:22] Production.INFO: ==20190== Releasing lock... [2025-01-04 07:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:04:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:05:05 [end_date_ymd] => 2025-01-04 07:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:05:05' and `end` < '2025-01-04 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-04 07:05:19] Production.INFO: count ==188 [2025-01-04 07:05:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:05:05 - End Time 2025-01-04 07:05:05 [2025-01-04 07:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171241', 'tblTempUsageDetail_20' ) start [2025-01-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171241', 'tblTempUsageDetail_20' ) end [2025-01-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171241', 'tblTempVendorCDR_20' ) start [2025-01-04 07:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171241', 'tblTempVendorCDR_20' ) end [2025-01-04 07:05:19] Production.INFO: ProcessCDR(1,14171241,1,1,2) [2025-01-04 07:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171241', 'tblTempUsageDetail_20' ) start [2025-01-04 07:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171241', 'tblTempUsageDetail_20' ) end [2025-01-04 07:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:05:23] Production.INFO: ==20361== Releasing lock... [2025-01-04 07:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:05:23] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:06:05 [end_date_ymd] => 2025-01-04 07:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:06:05' and `end` < '2025-01-04 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-04 07:06:20] Production.INFO: count ==188 [2025-01-04 07:06:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:06:05 - End Time 2025-01-04 07:06:05 [2025-01-04 07:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171246', 'tblTempUsageDetail_20' ) start [2025-01-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171246', 'tblTempUsageDetail_20' ) end [2025-01-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171246', 'tblTempVendorCDR_20' ) start [2025-01-04 07:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171246', 'tblTempVendorCDR_20' ) end [2025-01-04 07:06:20] Production.INFO: ProcessCDR(1,14171246,1,1,2) [2025-01-04 07:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171246', 'tblTempUsageDetail_20' ) start [2025-01-04 07:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171246', 'tblTempUsageDetail_20' ) end [2025-01-04 07:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:06:23] Production.INFO: ==20457== Releasing lock... [2025-01-04 07:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:06:23] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:07:05 [end_date_ymd] => 2025-01-04 07:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:07:05' and `end` < '2025-01-04 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-04 07:07:20] Production.INFO: count ==188 [2025-01-04 07:07:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:07:05 - End Time 2025-01-04 07:07:05 [2025-01-04 07:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171251', 'tblTempUsageDetail_20' ) start [2025-01-04 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171251', 'tblTempUsageDetail_20' ) end [2025-01-04 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171251', 'tblTempVendorCDR_20' ) start [2025-01-04 07:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171251', 'tblTempVendorCDR_20' ) end [2025-01-04 07:07:20] Production.INFO: ProcessCDR(1,14171251,1,1,2) [2025-01-04 07:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171251', 'tblTempUsageDetail_20' ) start [2025-01-04 07:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171251', 'tblTempUsageDetail_20' ) end [2025-01-04 07:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:07:23] Production.INFO: ==20553== Releasing lock... [2025-01-04 07:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:07:23] Production.INFO: 30 MB #Memory Used# [2025-01-04 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:08:05 [end_date_ymd] => 2025-01-04 07:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:08:05' and `end` < '2025-01-04 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-04 07:08:20] Production.INFO: count ==166 [2025-01-04 07:08:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:08:05 - End Time 2025-01-04 07:08:05 [2025-01-04 07:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171256', 'tblTempUsageDetail_20' ) start [2025-01-04 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171256', 'tblTempUsageDetail_20' ) end [2025-01-04 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171256', 'tblTempVendorCDR_20' ) start [2025-01-04 07:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171256', 'tblTempVendorCDR_20' ) end [2025-01-04 07:08:20] Production.INFO: ProcessCDR(1,14171256,1,1,2) [2025-01-04 07:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171256', 'tblTempUsageDetail_20' ) start [2025-01-04 07:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171256', 'tblTempUsageDetail_20' ) end [2025-01-04 07:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:08:23] Production.INFO: ==20728== Releasing lock... [2025-01-04 07:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:08:23] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 07:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:09:05 [end_date_ymd] => 2025-01-04 07:09:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:09:05' and `end` < '2025-01-04 07: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-04 07:09:19] Production.INFO: count ==88 [2025-01-04 07:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:09:05 - End Time 2025-01-04 07:09:05 [2025-01-04 07:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171261', 'tblTempUsageDetail_20' ) start [2025-01-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171261', 'tblTempUsageDetail_20' ) end [2025-01-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171261', 'tblTempVendorCDR_20' ) start [2025-01-04 07:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171261', 'tblTempVendorCDR_20' ) end [2025-01-04 07:09:19] Production.INFO: ProcessCDR(1,14171261,1,1,2) [2025-01-04 07:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171261,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171261,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171261', 'tblTempUsageDetail_20' ) start [2025-01-04 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171261', 'tblTempUsageDetail_20' ) end [2025-01-04 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:09:23] Production.INFO: ==20824== Releasing lock... [2025-01-04 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:09:23] Production.INFO: 28.5 MB #Memory Used# [2025-01-04 07:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:10:05 [end_date_ymd] => 2025-01-04 07:10:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:10:05' and `end` < '2025-01-04 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-04 07:10:19] Production.INFO: count ==28 [2025-01-04 07:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:10:05 - End Time 2025-01-04 07:10:05 [2025-01-04 07:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171267', 'tblTempUsageDetail_20' ) start [2025-01-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171267', 'tblTempUsageDetail_20' ) end [2025-01-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171267', 'tblTempVendorCDR_20' ) start [2025-01-04 07:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171267', 'tblTempVendorCDR_20' ) end [2025-01-04 07:10:19] Production.INFO: ProcessCDR(1,14171267,1,1,2) [2025-01-04 07:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171267', 'tblTempUsageDetail_20' ) start [2025-01-04 07:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171267', 'tblTempUsageDetail_20' ) end [2025-01-04 07:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:10:23] Production.INFO: ==20919== Releasing lock... [2025-01-04 07:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:10:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:11:06 [end_date_ymd] => 2025-01-04 07:11:06 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:11:06' and `end` < '2025-01-04 07: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-04 07:11:20] Production.INFO: count ==28 [2025-01-04 07:11:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:11:06 - End Time 2025-01-04 07:11:06 [2025-01-04 07:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171272', 'tblTempUsageDetail_20' ) start [2025-01-04 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171272', 'tblTempUsageDetail_20' ) end [2025-01-04 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171272', 'tblTempVendorCDR_20' ) start [2025-01-04 07:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171272', 'tblTempVendorCDR_20' ) end [2025-01-04 07:11:20] Production.INFO: ProcessCDR(1,14171272,1,1,2) [2025-01-04 07:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171272', 'tblTempUsageDetail_20' ) start [2025-01-04 07:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171272', 'tblTempUsageDetail_20' ) end [2025-01-04 07:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:11:23] Production.INFO: ==21055== Releasing lock... [2025-01-04 07:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:11:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:12:04 [end_date_ymd] => 2025-01-04 07:12:04 [RateCDR] => 1 ) [2025-01-04 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-04 04:12:04' and `end` < '2025-01-04 07: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-04 07:12:18] Production.INFO: count ==28 [2025-01-04 07:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:12:04 - End Time 2025-01-04 07:12:04 [2025-01-04 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171277', 'tblTempUsageDetail_20' ) start [2025-01-04 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171277', 'tblTempUsageDetail_20' ) end [2025-01-04 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171277', 'tblTempVendorCDR_20' ) start [2025-01-04 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171277', 'tblTempVendorCDR_20' ) end [2025-01-04 07:12:18] Production.INFO: ProcessCDR(1,14171277,1,1,2) [2025-01-04 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171277', 'tblTempUsageDetail_20' ) start [2025-01-04 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171277', 'tblTempUsageDetail_20' ) end [2025-01-04 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:12:21] Production.INFO: ==21226== Releasing lock... [2025-01-04 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:13:05 [end_date_ymd] => 2025-01-04 07:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:13:05' and `end` < '2025-01-04 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-04 07:13:18] Production.INFO: count ==28 [2025-01-04 07:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:13:05 - End Time 2025-01-04 07:13:05 [2025-01-04 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171282', 'tblTempUsageDetail_20' ) start [2025-01-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171282', 'tblTempUsageDetail_20' ) end [2025-01-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171282', 'tblTempVendorCDR_20' ) start [2025-01-04 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171282', 'tblTempVendorCDR_20' ) end [2025-01-04 07:13:18] Production.INFO: ProcessCDR(1,14171282,1,1,2) [2025-01-04 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171282', 'tblTempUsageDetail_20' ) start [2025-01-04 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171282', 'tblTempUsageDetail_20' ) end [2025-01-04 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:13:22] Production.INFO: ==21322== Releasing lock... [2025-01-04 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:13:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:14:05 [end_date_ymd] => 2025-01-04 07:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:14:05' and `end` < '2025-01-04 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-04 07:14:19] Production.INFO: count ==28 [2025-01-04 07:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:14:05 - End Time 2025-01-04 07:14:05 [2025-01-04 07:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171287', 'tblTempUsageDetail_20' ) start [2025-01-04 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171287', 'tblTempUsageDetail_20' ) end [2025-01-04 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171287', 'tblTempVendorCDR_20' ) start [2025-01-04 07:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171287', 'tblTempVendorCDR_20' ) end [2025-01-04 07:14:19] Production.INFO: ProcessCDR(1,14171287,1,1,2) [2025-01-04 07:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171287', 'tblTempUsageDetail_20' ) start [2025-01-04 07:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171287', 'tblTempUsageDetail_20' ) end [2025-01-04 07:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:14:22] Production.INFO: ==21416== Releasing lock... [2025-01-04 07:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:14:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:15:05 [end_date_ymd] => 2025-01-04 07:15:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:15:05' and `end` < '2025-01-04 07: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-04 07:15:19] Production.INFO: count ==28 [2025-01-04 07:15:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:15:05 - End Time 2025-01-04 07:15:05 [2025-01-04 07:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171292', 'tblTempUsageDetail_20' ) start [2025-01-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171292', 'tblTempUsageDetail_20' ) end [2025-01-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171292', 'tblTempVendorCDR_20' ) start [2025-01-04 07:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171292', 'tblTempVendorCDR_20' ) end [2025-01-04 07:15:19] Production.INFO: ProcessCDR(1,14171292,1,1,2) [2025-01-04 07:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171292', 'tblTempUsageDetail_20' ) start [2025-01-04 07:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171292', 'tblTempUsageDetail_20' ) end [2025-01-04 07:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:15:23] Production.INFO: ==21592== Releasing lock... [2025-01-04 07:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:15:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:16:05 [end_date_ymd] => 2025-01-04 07:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:16:05' and `end` < '2025-01-04 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-04 07:16:18] Production.INFO: count ==28 [2025-01-04 07:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:16:05 - End Time 2025-01-04 07:16:05 [2025-01-04 07:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171297', 'tblTempUsageDetail_20' ) start [2025-01-04 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171297', 'tblTempUsageDetail_20' ) end [2025-01-04 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171297', 'tblTempVendorCDR_20' ) start [2025-01-04 07:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171297', 'tblTempVendorCDR_20' ) end [2025-01-04 07:16:18] Production.INFO: ProcessCDR(1,14171297,1,1,2) [2025-01-04 07:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171297', 'tblTempUsageDetail_20' ) start [2025-01-04 07:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171297', 'tblTempUsageDetail_20' ) end [2025-01-04 07:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:16:21] Production.INFO: ==21684== Releasing lock... [2025-01-04 07:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:17:05 [end_date_ymd] => 2025-01-04 07:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:17:05' and `end` < '2025-01-04 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-04 07:17:20] Production.INFO: count ==28 [2025-01-04 07:17:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:17:05 - End Time 2025-01-04 07:17:05 [2025-01-04 07:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171302', 'tblTempUsageDetail_20' ) start [2025-01-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171302', 'tblTempUsageDetail_20' ) end [2025-01-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171302', 'tblTempVendorCDR_20' ) start [2025-01-04 07:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171302', 'tblTempVendorCDR_20' ) end [2025-01-04 07:17:20] Production.INFO: ProcessCDR(1,14171302,1,1,2) [2025-01-04 07:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171302', 'tblTempUsageDetail_20' ) start [2025-01-04 07:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171302', 'tblTempUsageDetail_20' ) end [2025-01-04 07:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:17:24] Production.INFO: ==21783== Releasing lock... [2025-01-04 07:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:17:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:18:06 [end_date_ymd] => 2025-01-04 07:18:06 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:18:06' and `end` < '2025-01-04 07: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-04 07:18:20] Production.INFO: count ==28 [2025-01-04 07:18:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:18:06 - End Time 2025-01-04 07:18:06 [2025-01-04 07:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171307', 'tblTempUsageDetail_20' ) start [2025-01-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171307', 'tblTempUsageDetail_20' ) end [2025-01-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171307', 'tblTempVendorCDR_20' ) start [2025-01-04 07:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171307', 'tblTempVendorCDR_20' ) end [2025-01-04 07:18:20] Production.INFO: ProcessCDR(1,14171307,1,1,2) [2025-01-04 07:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171307', 'tblTempUsageDetail_20' ) start [2025-01-04 07:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171307', 'tblTempUsageDetail_20' ) end [2025-01-04 07:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:18:23] Production.INFO: ==21876== Releasing lock... [2025-01-04 07:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:18:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:19:05 [end_date_ymd] => 2025-01-04 07:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:19:05' and `end` < '2025-01-04 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-04 07:19:18] Production.INFO: count ==28 [2025-01-04 07:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:19:05 - End Time 2025-01-04 07:19:05 [2025-01-04 07:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171312', 'tblTempUsageDetail_20' ) start [2025-01-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171312', 'tblTempUsageDetail_20' ) end [2025-01-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171312', 'tblTempVendorCDR_20' ) start [2025-01-04 07:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171312', 'tblTempVendorCDR_20' ) end [2025-01-04 07:19:18] Production.INFO: ProcessCDR(1,14171312,1,1,2) [2025-01-04 07:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171312,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171312,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171312', 'tblTempUsageDetail_20' ) start [2025-01-04 07:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171312', 'tblTempUsageDetail_20' ) end [2025-01-04 07:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:19:21] Production.INFO: ==21988== Releasing lock... [2025-01-04 07:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:19:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:20:06 [end_date_ymd] => 2025-01-04 07:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 04:20:06' and `end` < '2025-01-04 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-04 07:20:19] Production.INFO: count ==28 [2025-01-04 07:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:20:06 - End Time 2025-01-04 07:20:06 [2025-01-04 07:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171318', 'tblTempUsageDetail_20' ) start [2025-01-04 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171318', 'tblTempUsageDetail_20' ) end [2025-01-04 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171318', 'tblTempVendorCDR_20' ) start [2025-01-04 07:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171318', 'tblTempVendorCDR_20' ) end [2025-01-04 07:20:19] Production.INFO: ProcessCDR(1,14171318,1,1,2) [2025-01-04 07:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171318', 'tblTempUsageDetail_20' ) start [2025-01-04 07:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171318', 'tblTempUsageDetail_20' ) end [2025-01-04 07:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:20:22] Production.INFO: ==22089== Releasing lock... [2025-01-04 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:20:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:21:05 [end_date_ymd] => 2025-01-04 07:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:21:05' and `end` < '2025-01-04 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-04 07:22:00] Production.INFO: count ==28 [2025-01-04 07:22:00] Production.ERROR: pbx CDR StartTime 2025-01-04 04:21:05 - End Time 2025-01-04 07:21:05 [2025-01-04 07:22:00] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171323', 'tblTempUsageDetail_20' ) start [2025-01-04 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171323', 'tblTempUsageDetail_20' ) end [2025-01-04 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171323', 'tblTempVendorCDR_20' ) start [2025-01-04 07:22:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171323', 'tblTempVendorCDR_20' ) end [2025-01-04 07:22:00] Production.INFO: ProcessCDR(1,14171323,1,1,2) [2025-01-04 07:22:00] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:22:01] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:22:01] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:22:07] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:22:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171323', 'tblTempUsageDetail_20' ) start [2025-01-04 07:22:07] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171323', 'tblTempUsageDetail_20' ) end [2025-01-04 07:22:07] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:22:07] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:22:07] Production.INFO: ==22184== Releasing lock... [2025-01-04 07:22:07] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:22:07] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:23:05 [end_date_ymd] => 2025-01-04 07:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:23:05' and `end` < '2025-01-04 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-04 07:23:20] Production.INFO: count ==28 [2025-01-04 07:23:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:23:05 - End Time 2025-01-04 07:23:05 [2025-01-04 07:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171332', 'tblTempUsageDetail_20' ) start [2025-01-04 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171332', 'tblTempUsageDetail_20' ) end [2025-01-04 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171332', 'tblTempVendorCDR_20' ) start [2025-01-04 07:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171332', 'tblTempVendorCDR_20' ) end [2025-01-04 07:23:20] Production.INFO: ProcessCDR(1,14171332,1,1,2) [2025-01-04 07:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171332,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171332,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171332', 'tblTempUsageDetail_20' ) start [2025-01-04 07:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171332', 'tblTempUsageDetail_20' ) end [2025-01-04 07:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:23:23] Production.INFO: ==22367== Releasing lock... [2025-01-04 07:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:23:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:24:05 [end_date_ymd] => 2025-01-04 07:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:24:05' and `end` < '2025-01-04 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-04 07:24:17] Production.INFO: count ==28 [2025-01-04 07:24:17] Production.ERROR: pbx CDR StartTime 2025-01-04 04:24:05 - End Time 2025-01-04 07:24:05 [2025-01-04 07:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171337', 'tblTempUsageDetail_20' ) start [2025-01-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171337', 'tblTempUsageDetail_20' ) end [2025-01-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171337', 'tblTempVendorCDR_20' ) start [2025-01-04 07:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171337', 'tblTempVendorCDR_20' ) end [2025-01-04 07:24:17] Production.INFO: ProcessCDR(1,14171337,1,1,2) [2025-01-04 07:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171337', 'tblTempUsageDetail_20' ) start [2025-01-04 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171337', 'tblTempUsageDetail_20' ) end [2025-01-04 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:24:21] Production.INFO: ==22462== Releasing lock... [2025-01-04 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:24:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:25:05 [end_date_ymd] => 2025-01-04 07:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:25:05' and `end` < '2025-01-04 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-04 07:25:18] Production.INFO: count ==28 [2025-01-04 07:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:25:05 - End Time 2025-01-04 07:25:05 [2025-01-04 07:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171342', 'tblTempUsageDetail_20' ) start [2025-01-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171342', 'tblTempUsageDetail_20' ) end [2025-01-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171342', 'tblTempVendorCDR_20' ) start [2025-01-04 07:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171342', 'tblTempVendorCDR_20' ) end [2025-01-04 07:25:18] Production.INFO: ProcessCDR(1,14171342,1,1,2) [2025-01-04 07:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171342', 'tblTempUsageDetail_20' ) start [2025-01-04 07:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171342', 'tblTempUsageDetail_20' ) end [2025-01-04 07:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:25:21] Production.INFO: ==22557== Releasing lock... [2025-01-04 07:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:25:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:26:05 [end_date_ymd] => 2025-01-04 07:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:26:05' and `end` < '2025-01-04 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-04 07:26:17] Production.INFO: count ==28 [2025-01-04 07:26:17] Production.ERROR: pbx CDR StartTime 2025-01-04 04:26:05 - End Time 2025-01-04 07:26:05 [2025-01-04 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171347', 'tblTempUsageDetail_20' ) start [2025-01-04 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171347', 'tblTempUsageDetail_20' ) end [2025-01-04 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171347', 'tblTempVendorCDR_20' ) start [2025-01-04 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171347', 'tblTempVendorCDR_20' ) end [2025-01-04 07:26:17] Production.INFO: ProcessCDR(1,14171347,1,1,2) [2025-01-04 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171347', 'tblTempUsageDetail_20' ) start [2025-01-04 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171347', 'tblTempUsageDetail_20' ) end [2025-01-04 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:26:21] Production.INFO: ==22650== Releasing lock... [2025-01-04 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:26:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:27:05 [end_date_ymd] => 2025-01-04 07:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:27:05' and `end` < '2025-01-04 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-04 07:27:18] Production.INFO: count ==28 [2025-01-04 07:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:27:05 - End Time 2025-01-04 07:27:05 [2025-01-04 07:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171352', 'tblTempUsageDetail_20' ) start [2025-01-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171352', 'tblTempUsageDetail_20' ) end [2025-01-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171352', 'tblTempVendorCDR_20' ) start [2025-01-04 07:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171352', 'tblTempVendorCDR_20' ) end [2025-01-04 07:27:18] Production.INFO: ProcessCDR(1,14171352,1,1,2) [2025-01-04 07:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171352', 'tblTempUsageDetail_20' ) start [2025-01-04 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171352', 'tblTempUsageDetail_20' ) end [2025-01-04 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:27:21] Production.INFO: ==22788== Releasing lock... [2025-01-04 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:27:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:28:05 [end_date_ymd] => 2025-01-04 07:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:28:05' and `end` < '2025-01-04 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-04 07:28:18] Production.INFO: count ==28 [2025-01-04 07:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:28:05 - End Time 2025-01-04 07:28:05 [2025-01-04 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171357', 'tblTempUsageDetail_20' ) start [2025-01-04 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171357', 'tblTempUsageDetail_20' ) end [2025-01-04 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171357', 'tblTempVendorCDR_20' ) start [2025-01-04 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171357', 'tblTempVendorCDR_20' ) end [2025-01-04 07:28:18] Production.INFO: ProcessCDR(1,14171357,1,1,2) [2025-01-04 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171357', 'tblTempUsageDetail_20' ) start [2025-01-04 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171357', 'tblTempUsageDetail_20' ) end [2025-01-04 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:28:21] Production.INFO: ==22880== Releasing lock... [2025-01-04 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:28:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:29:05 [end_date_ymd] => 2025-01-04 07:29:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:29:05' and `end` < '2025-01-04 07: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-04 07:29:18] Production.INFO: count ==28 [2025-01-04 07:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:29:05 - End Time 2025-01-04 07:29:05 [2025-01-04 07:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171362', 'tblTempUsageDetail_20' ) start [2025-01-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171362', 'tblTempUsageDetail_20' ) end [2025-01-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171362', 'tblTempVendorCDR_20' ) start [2025-01-04 07:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171362', 'tblTempVendorCDR_20' ) end [2025-01-04 07:29:18] Production.INFO: ProcessCDR(1,14171362,1,1,2) [2025-01-04 07:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171362', 'tblTempUsageDetail_20' ) start [2025-01-04 07:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171362', 'tblTempUsageDetail_20' ) end [2025-01-04 07:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:29:21] Production.INFO: ==22977== Releasing lock... [2025-01-04 07:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:29:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:30:05 [end_date_ymd] => 2025-01-04 07:30:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:30:05' and `end` < '2025-01-04 07: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-04 07:30:18] Production.INFO: count ==20 [2025-01-04 07:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:30:05 - End Time 2025-01-04 07:30:05 [2025-01-04 07:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171368', 'tblTempUsageDetail_20' ) start [2025-01-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171368', 'tblTempUsageDetail_20' ) end [2025-01-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171368', 'tblTempVendorCDR_20' ) start [2025-01-04 07:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171368', 'tblTempVendorCDR_20' ) end [2025-01-04 07:30:18] Production.INFO: ProcessCDR(1,14171368,1,1,2) [2025-01-04 07:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171368,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171368,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171368', 'tblTempUsageDetail_20' ) start [2025-01-04 07:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171368', 'tblTempUsageDetail_20' ) end [2025-01-04 07:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:30:21] Production.INFO: ==23072== Releasing lock... [2025-01-04 07:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:30:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:31:05 [end_date_ymd] => 2025-01-04 07:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:31:05' and `end` < '2025-01-04 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-04 07:31:19] Production.INFO: count ==16 [2025-01-04 07:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:31:05 - End Time 2025-01-04 07:31:05 [2025-01-04 07:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171373', 'tblTempUsageDetail_20' ) start [2025-01-04 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171373', 'tblTempUsageDetail_20' ) end [2025-01-04 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171373', 'tblTempVendorCDR_20' ) start [2025-01-04 07:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171373', 'tblTempVendorCDR_20' ) end [2025-01-04 07:31:19] Production.INFO: ProcessCDR(1,14171373,1,1,2) [2025-01-04 07:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171373,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171373,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171373', 'tblTempUsageDetail_20' ) start [2025-01-04 07:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171373', 'tblTempUsageDetail_20' ) end [2025-01-04 07:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:31:22] Production.INFO: ==23171== Releasing lock... [2025-01-04 07:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:31:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:32:05 [end_date_ymd] => 2025-01-04 07:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:32:05' and `end` < '2025-01-04 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-04 07:32:17] Production.INFO: count ==16 [2025-01-04 07:32:17] Production.ERROR: pbx CDR StartTime 2025-01-04 04:32:05 - End Time 2025-01-04 07:32:05 [2025-01-04 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171378', 'tblTempUsageDetail_20' ) start [2025-01-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171378', 'tblTempUsageDetail_20' ) end [2025-01-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171378', 'tblTempVendorCDR_20' ) start [2025-01-04 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171378', 'tblTempVendorCDR_20' ) end [2025-01-04 07:32:17] Production.INFO: ProcessCDR(1,14171378,1,1,2) [2025-01-04 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171378,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171378,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171378', 'tblTempUsageDetail_20' ) start [2025-01-04 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171378', 'tblTempUsageDetail_20' ) end [2025-01-04 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:32:21] Production.INFO: ==23270== Releasing lock... [2025-01-04 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:32:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:33:05 [end_date_ymd] => 2025-01-04 07:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:33:05' and `end` < '2025-01-04 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-04 07:33:19] Production.INFO: count ==16 [2025-01-04 07:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:33:05 - End Time 2025-01-04 07:33:05 [2025-01-04 07:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171383', 'tblTempUsageDetail_20' ) start [2025-01-04 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171383', 'tblTempUsageDetail_20' ) end [2025-01-04 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171383', 'tblTempVendorCDR_20' ) start [2025-01-04 07:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171383', 'tblTempVendorCDR_20' ) end [2025-01-04 07:33:19] Production.INFO: ProcessCDR(1,14171383,1,1,2) [2025-01-04 07:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171383,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171383,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171383', 'tblTempUsageDetail_20' ) start [2025-01-04 07:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171383', 'tblTempUsageDetail_20' ) end [2025-01-04 07:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:33:22] Production.INFO: ==23368== Releasing lock... [2025-01-04 07:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:33:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:34:05 [end_date_ymd] => 2025-01-04 07:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:34:05' and `end` < '2025-01-04 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-04 07:34:19] Production.INFO: count ==16 [2025-01-04 07:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:34:05 - End Time 2025-01-04 07:34:05 [2025-01-04 07:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171388', 'tblTempUsageDetail_20' ) start [2025-01-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171388', 'tblTempUsageDetail_20' ) end [2025-01-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171388', 'tblTempVendorCDR_20' ) start [2025-01-04 07:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171388', 'tblTempVendorCDR_20' ) end [2025-01-04 07:34:19] Production.INFO: ProcessCDR(1,14171388,1,1,2) [2025-01-04 07:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171388', 'tblTempUsageDetail_20' ) start [2025-01-04 07:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171388', 'tblTempUsageDetail_20' ) end [2025-01-04 07:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:34:22] Production.INFO: ==23466== Releasing lock... [2025-01-04 07:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:34:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:35:05 [end_date_ymd] => 2025-01-04 07:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:35:05' and `end` < '2025-01-04 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-04 07:35:17] Production.INFO: count ==16 [2025-01-04 07:35:17] Production.ERROR: pbx CDR StartTime 2025-01-04 04:35:05 - End Time 2025-01-04 07:35:05 [2025-01-04 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171393', 'tblTempUsageDetail_20' ) start [2025-01-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171393', 'tblTempUsageDetail_20' ) end [2025-01-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171393', 'tblTempVendorCDR_20' ) start [2025-01-04 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171393', 'tblTempVendorCDR_20' ) end [2025-01-04 07:35:17] Production.INFO: ProcessCDR(1,14171393,1,1,2) [2025-01-04 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171393', 'tblTempUsageDetail_20' ) start [2025-01-04 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171393', 'tblTempUsageDetail_20' ) end [2025-01-04 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:35:21] Production.INFO: ==23561== Releasing lock... [2025-01-04 07:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:35:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:36:05 [end_date_ymd] => 2025-01-04 07:36:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:36:05' and `end` < '2025-01-04 07: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-04 07:36:18] Production.INFO: count ==16 [2025-01-04 07:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:36:05 - End Time 2025-01-04 07:36:05 [2025-01-04 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171398', 'tblTempUsageDetail_20' ) start [2025-01-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171398', 'tblTempUsageDetail_20' ) end [2025-01-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171398', 'tblTempVendorCDR_20' ) start [2025-01-04 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171398', 'tblTempVendorCDR_20' ) end [2025-01-04 07:36:18] Production.INFO: ProcessCDR(1,14171398,1,1,2) [2025-01-04 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171398', 'tblTempUsageDetail_20' ) start [2025-01-04 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171398', 'tblTempUsageDetail_20' ) end [2025-01-04 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:36:21] Production.INFO: ==23655== Releasing lock... [2025-01-04 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:36:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:37:05 [end_date_ymd] => 2025-01-04 07:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:37:05' and `end` < '2025-01-04 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-04 07:37:19] Production.INFO: count ==16 [2025-01-04 07:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:37:05 - End Time 2025-01-04 07:37:05 [2025-01-04 07:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171403', 'tblTempUsageDetail_20' ) start [2025-01-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171403', 'tblTempUsageDetail_20' ) end [2025-01-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171403', 'tblTempVendorCDR_20' ) start [2025-01-04 07:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171403', 'tblTempVendorCDR_20' ) end [2025-01-04 07:37:19] Production.INFO: ProcessCDR(1,14171403,1,1,2) [2025-01-04 07:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171403', 'tblTempUsageDetail_20' ) start [2025-01-04 07:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171403', 'tblTempUsageDetail_20' ) end [2025-01-04 07:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:37:22] Production.INFO: ==23754== Releasing lock... [2025-01-04 07:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:37:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:38:04 [end_date_ymd] => 2025-01-04 07:38:04 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:38:04' and `end` < '2025-01-04 07: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-04 07:38:18] Production.INFO: count ==16 [2025-01-04 07:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:38:04 - End Time 2025-01-04 07:38:04 [2025-01-04 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171408', 'tblTempUsageDetail_20' ) start [2025-01-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171408', 'tblTempUsageDetail_20' ) end [2025-01-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171408', 'tblTempVendorCDR_20' ) start [2025-01-04 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171408', 'tblTempVendorCDR_20' ) end [2025-01-04 07:38:18] Production.INFO: ProcessCDR(1,14171408,1,1,2) [2025-01-04 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171408', 'tblTempUsageDetail_20' ) start [2025-01-04 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171408', 'tblTempUsageDetail_20' ) end [2025-01-04 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:38:21] Production.INFO: ==23878== Releasing lock... [2025-01-04 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:38:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:39:05 [end_date_ymd] => 2025-01-04 07:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:39:05' and `end` < '2025-01-04 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-04 07:39:19] Production.INFO: count ==16 [2025-01-04 07:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:39:05 - End Time 2025-01-04 07:39:05 [2025-01-04 07:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171413', 'tblTempUsageDetail_20' ) start [2025-01-04 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171413', 'tblTempUsageDetail_20' ) end [2025-01-04 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171413', 'tblTempVendorCDR_20' ) start [2025-01-04 07:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171413', 'tblTempVendorCDR_20' ) end [2025-01-04 07:39:19] Production.INFO: ProcessCDR(1,14171413,1,1,2) [2025-01-04 07:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171413', 'tblTempUsageDetail_20' ) start [2025-01-04 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171413', 'tblTempUsageDetail_20' ) end [2025-01-04 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:39:22] Production.INFO: ==24004== Releasing lock... [2025-01-04 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:39:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:40:05 [end_date_ymd] => 2025-01-04 07:40:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:40:05' and `end` < '2025-01-04 07: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-04 07:40:18] Production.INFO: count ==16 [2025-01-04 07:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:40:05 - End Time 2025-01-04 07:40:05 [2025-01-04 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171419', 'tblTempUsageDetail_20' ) start [2025-01-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171419', 'tblTempUsageDetail_20' ) end [2025-01-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171419', 'tblTempVendorCDR_20' ) start [2025-01-04 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171419', 'tblTempVendorCDR_20' ) end [2025-01-04 07:40:18] Production.INFO: ProcessCDR(1,14171419,1,1,2) [2025-01-04 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171419,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171419,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171419', 'tblTempUsageDetail_20' ) start [2025-01-04 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171419', 'tblTempUsageDetail_20' ) end [2025-01-04 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:40:21] Production.INFO: ==24129== Releasing lock... [2025-01-04 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:40:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:41:05 [end_date_ymd] => 2025-01-04 07:41:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:41:05' and `end` < '2025-01-04 07: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-04 07:41:18] Production.INFO: count ==16 [2025-01-04 07:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:41:05 - End Time 2025-01-04 07:41:05 [2025-01-04 07:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171424', 'tblTempUsageDetail_20' ) start [2025-01-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171424', 'tblTempUsageDetail_20' ) end [2025-01-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171424', 'tblTempVendorCDR_20' ) start [2025-01-04 07:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171424', 'tblTempVendorCDR_20' ) end [2025-01-04 07:41:18] Production.INFO: ProcessCDR(1,14171424,1,1,2) [2025-01-04 07:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171424,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171424,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171424', 'tblTempUsageDetail_20' ) start [2025-01-04 07:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171424', 'tblTempUsageDetail_20' ) end [2025-01-04 07:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:41:21] Production.INFO: ==24243== Releasing lock... [2025-01-04 07:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:41:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:42:06 [end_date_ymd] => 2025-01-04 07:42:06 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:42:06' and `end` < '2025-01-04 07: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-04 07:42:19] Production.INFO: count ==16 [2025-01-04 07:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:42:06 - End Time 2025-01-04 07:42:06 [2025-01-04 07:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171429', 'tblTempUsageDetail_20' ) start [2025-01-04 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171429', 'tblTempUsageDetail_20' ) end [2025-01-04 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171429', 'tblTempVendorCDR_20' ) start [2025-01-04 07:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171429', 'tblTempVendorCDR_20' ) end [2025-01-04 07:42:19] Production.INFO: ProcessCDR(1,14171429,1,1,2) [2025-01-04 07:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171429,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171429,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171429', 'tblTempUsageDetail_20' ) start [2025-01-04 07:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171429', 'tblTempUsageDetail_20' ) end [2025-01-04 07:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:42:22] Production.INFO: ==24387== Releasing lock... [2025-01-04 07:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:42:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:43:04 [end_date_ymd] => 2025-01-04 07:43:04 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:43:04' and `end` < '2025-01-04 07: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-04 07:43:19] Production.INFO: count ==16 [2025-01-04 07:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:43:04 - End Time 2025-01-04 07:43:04 [2025-01-04 07:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171434', 'tblTempUsageDetail_20' ) start [2025-01-04 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171434', 'tblTempUsageDetail_20' ) end [2025-01-04 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171434', 'tblTempVendorCDR_20' ) start [2025-01-04 07:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171434', 'tblTempVendorCDR_20' ) end [2025-01-04 07:43:19] Production.INFO: ProcessCDR(1,14171434,1,1,2) [2025-01-04 07:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171434,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171434,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171434', 'tblTempUsageDetail_20' ) start [2025-01-04 07:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171434', 'tblTempUsageDetail_20' ) end [2025-01-04 07:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:43:22] Production.INFO: ==24492== Releasing lock... [2025-01-04 07:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:43:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:44:05 [end_date_ymd] => 2025-01-04 07:44:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:44:05' and `end` < '2025-01-04 07: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-04 07:44:18] Production.INFO: count ==16 [2025-01-04 07:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:44:05 - End Time 2025-01-04 07:44:05 [2025-01-04 07:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171439', 'tblTempUsageDetail_20' ) start [2025-01-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171439', 'tblTempUsageDetail_20' ) end [2025-01-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171439', 'tblTempVendorCDR_20' ) start [2025-01-04 07:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171439', 'tblTempVendorCDR_20' ) end [2025-01-04 07:44:18] Production.INFO: ProcessCDR(1,14171439,1,1,2) [2025-01-04 07:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171439', 'tblTempUsageDetail_20' ) start [2025-01-04 07:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171439', 'tblTempUsageDetail_20' ) end [2025-01-04 07:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:44:22] Production.INFO: ==24594== Releasing lock... [2025-01-04 07:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:44:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:45:05 [end_date_ymd] => 2025-01-04 07:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:45:05' and `end` < '2025-01-04 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-04 07:45:18] Production.INFO: count ==16 [2025-01-04 07:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:45:05 - End Time 2025-01-04 07:45:05 [2025-01-04 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171444', 'tblTempUsageDetail_20' ) start [2025-01-04 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171444', 'tblTempUsageDetail_20' ) end [2025-01-04 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171444', 'tblTempVendorCDR_20' ) start [2025-01-04 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171444', 'tblTempVendorCDR_20' ) end [2025-01-04 07:45:18] Production.INFO: ProcessCDR(1,14171444,1,1,2) [2025-01-04 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171444', 'tblTempUsageDetail_20' ) start [2025-01-04 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171444', 'tblTempUsageDetail_20' ) end [2025-01-04 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:45:21] Production.INFO: ==24696== Releasing lock... [2025-01-04 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:45:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:46:05 [end_date_ymd] => 2025-01-04 07:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:46:05' and `end` < '2025-01-04 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-04 07:46:18] Production.INFO: count ==16 [2025-01-04 07:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:46:05 - End Time 2025-01-04 07:46:05 [2025-01-04 07:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171449', 'tblTempUsageDetail_20' ) start [2025-01-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171449', 'tblTempUsageDetail_20' ) end [2025-01-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171449', 'tblTempVendorCDR_20' ) start [2025-01-04 07:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171449', 'tblTempVendorCDR_20' ) end [2025-01-04 07:46:18] Production.INFO: ProcessCDR(1,14171449,1,1,2) [2025-01-04 07:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171449', 'tblTempUsageDetail_20' ) start [2025-01-04 07:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171449', 'tblTempUsageDetail_20' ) end [2025-01-04 07:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:46:22] Production.INFO: ==24799== Releasing lock... [2025-01-04 07:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:46:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:47:04 [end_date_ymd] => 2025-01-04 07:47:04 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:47:04' and `end` < '2025-01-04 07: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-04 07:47:18] Production.INFO: count ==16 [2025-01-04 07:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:47:04 - End Time 2025-01-04 07:47:04 [2025-01-04 07:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171454', 'tblTempUsageDetail_20' ) start [2025-01-04 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171454', 'tblTempUsageDetail_20' ) end [2025-01-04 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171454', 'tblTempVendorCDR_20' ) start [2025-01-04 07:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171454', 'tblTempVendorCDR_20' ) end [2025-01-04 07:47:18] Production.INFO: ProcessCDR(1,14171454,1,1,2) [2025-01-04 07:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171454', 'tblTempUsageDetail_20' ) start [2025-01-04 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171454', 'tblTempUsageDetail_20' ) end [2025-01-04 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:47:21] Production.INFO: ==24904== Releasing lock... [2025-01-04 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:47:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:48:05 [end_date_ymd] => 2025-01-04 07:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:48:05' and `end` < '2025-01-04 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-04 07:48:21] Production.INFO: count ==17 [2025-01-04 07:48:21] Production.ERROR: pbx CDR StartTime 2025-01-04 04:48:05 - End Time 2025-01-04 07:48:05 [2025-01-04 07:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171459', 'tblTempUsageDetail_20' ) start [2025-01-04 07:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171459', 'tblTempUsageDetail_20' ) end [2025-01-04 07:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171459', 'tblTempVendorCDR_20' ) start [2025-01-04 07:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171459', 'tblTempVendorCDR_20' ) end [2025-01-04 07:48:21] Production.INFO: ProcessCDR(1,14171459,1,1,2) [2025-01-04 07:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171459', 'tblTempUsageDetail_20' ) start [2025-01-04 07:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171459', 'tblTempUsageDetail_20' ) end [2025-01-04 07:48:26] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:48:26] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:48:26] Production.INFO: ==25015== Releasing lock... [2025-01-04 07:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:48:26] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:49:06 [end_date_ymd] => 2025-01-04 07:49:06 [RateCDR] => 1 ) [2025-01-04 07:49: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-04 04:49:06' and `end` < '2025-01-04 07:49: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-04 07:49:19] Production.INFO: count ==17 [2025-01-04 07:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:49:06 - End Time 2025-01-04 07:49:06 [2025-01-04 07:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171464', 'tblTempUsageDetail_20' ) start [2025-01-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171464', 'tblTempUsageDetail_20' ) end [2025-01-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171464', 'tblTempVendorCDR_20' ) start [2025-01-04 07:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171464', 'tblTempVendorCDR_20' ) end [2025-01-04 07:49:19] Production.INFO: ProcessCDR(1,14171464,1,1,2) [2025-01-04 07:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171464', 'tblTempUsageDetail_20' ) start [2025-01-04 07:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171464', 'tblTempUsageDetail_20' ) end [2025-01-04 07:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:49:22] Production.INFO: ==25119== Releasing lock... [2025-01-04 07:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:49:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:50:05 [end_date_ymd] => 2025-01-04 07:50:05 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:50:05' and `end` < '2025-01-04 07: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-04 07:50:18] Production.INFO: count ==15 [2025-01-04 07:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:50:05 - End Time 2025-01-04 07:50:05 [2025-01-04 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171470', 'tblTempUsageDetail_20' ) start [2025-01-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171470', 'tblTempUsageDetail_20' ) end [2025-01-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171470', 'tblTempVendorCDR_20' ) start [2025-01-04 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171470', 'tblTempVendorCDR_20' ) end [2025-01-04 07:50:18] Production.INFO: ProcessCDR(1,14171470,1,1,2) [2025-01-04 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171470,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171470,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171470', 'tblTempUsageDetail_20' ) start [2025-01-04 07:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171470', 'tblTempUsageDetail_20' ) end [2025-01-04 07:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:50:21] Production.INFO: ==25200== Releasing lock... [2025-01-04 07:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:50:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:51:06 [end_date_ymd] => 2025-01-04 07:51:06 [RateCDR] => 1 ) [2025-01-04 07:51: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-04 04:51:06' and `end` < '2025-01-04 07:51: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-04 07:51:18] Production.INFO: count ==15 [2025-01-04 07:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:51:06 - End Time 2025-01-04 07:51:06 [2025-01-04 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171475', 'tblTempUsageDetail_20' ) start [2025-01-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171475', 'tblTempUsageDetail_20' ) end [2025-01-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171475', 'tblTempVendorCDR_20' ) start [2025-01-04 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171475', 'tblTempVendorCDR_20' ) end [2025-01-04 07:51:18] Production.INFO: ProcessCDR(1,14171475,1,1,2) [2025-01-04 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171475,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171475,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171475', 'tblTempUsageDetail_20' ) start [2025-01-04 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171475', 'tblTempUsageDetail_20' ) end [2025-01-04 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:51:21] Production.INFO: ==25274== Releasing lock... [2025-01-04 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:51:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:52:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:52:04 [end_date_ymd] => 2025-01-04 07:52:04 [RateCDR] => 1 ) [2025-01-04 07:52: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-04 04:52:04' and `end` < '2025-01-04 07: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-04 07:52:19] Production.INFO: count ==16 [2025-01-04 07:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:52:04 - End Time 2025-01-04 07:52:04 [2025-01-04 07:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171480', 'tblTempUsageDetail_20' ) start [2025-01-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171480', 'tblTempUsageDetail_20' ) end [2025-01-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171480', 'tblTempVendorCDR_20' ) start [2025-01-04 07:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171480', 'tblTempVendorCDR_20' ) end [2025-01-04 07:52:19] Production.INFO: ProcessCDR(1,14171480,1,1,2) [2025-01-04 07:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171480,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171480,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171480', 'tblTempUsageDetail_20' ) start [2025-01-04 07:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171480', 'tblTempUsageDetail_20' ) end [2025-01-04 07:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:52:23] Production.INFO: ==25343== Releasing lock... [2025-01-04 07:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:52:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:53:05 [end_date_ymd] => 2025-01-04 07:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:53:05' and `end` < '2025-01-04 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-04 07:53:18] Production.INFO: count ==16 [2025-01-04 07:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:53:05 - End Time 2025-01-04 07:53:05 [2025-01-04 07:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171485', 'tblTempUsageDetail_20' ) start [2025-01-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171485', 'tblTempUsageDetail_20' ) end [2025-01-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171485', 'tblTempVendorCDR_20' ) start [2025-01-04 07:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171485', 'tblTempVendorCDR_20' ) end [2025-01-04 07:53:18] Production.INFO: ProcessCDR(1,14171485,1,1,2) [2025-01-04 07:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171485,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171485,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171485', 'tblTempUsageDetail_20' ) start [2025-01-04 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171485', 'tblTempUsageDetail_20' ) end [2025-01-04 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:53:21] Production.INFO: ==25417== Releasing lock... [2025-01-04 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:53:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:54:05 [end_date_ymd] => 2025-01-04 07:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:54:05' and `end` < '2025-01-04 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-04 07:54:19] Production.INFO: count ==17 [2025-01-04 07:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:54:05 - End Time 2025-01-04 07:54:05 [2025-01-04 07:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171490', 'tblTempUsageDetail_20' ) start [2025-01-04 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171490', 'tblTempUsageDetail_20' ) end [2025-01-04 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171490', 'tblTempVendorCDR_20' ) start [2025-01-04 07:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171490', 'tblTempVendorCDR_20' ) end [2025-01-04 07:54:19] Production.INFO: ProcessCDR(1,14171490,1,1,2) [2025-01-04 07:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171490', 'tblTempUsageDetail_20' ) start [2025-01-04 07:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171490', 'tblTempUsageDetail_20' ) end [2025-01-04 07:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:54:24] Production.INFO: ==25486== Releasing lock... [2025-01-04 07:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:54:24] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:55:05 [end_date_ymd] => 2025-01-04 07:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:55:05' and `end` < '2025-01-04 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-04 07:55:18] Production.INFO: count ==18 [2025-01-04 07:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:55:05 - End Time 2025-01-04 07:55:05 [2025-01-04 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171495', 'tblTempUsageDetail_20' ) start [2025-01-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171495', 'tblTempUsageDetail_20' ) end [2025-01-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171495', 'tblTempVendorCDR_20' ) start [2025-01-04 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171495', 'tblTempVendorCDR_20' ) end [2025-01-04 07:55:18] Production.INFO: ProcessCDR(1,14171495,1,1,2) [2025-01-04 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171495', 'tblTempUsageDetail_20' ) start [2025-01-04 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171495', 'tblTempUsageDetail_20' ) end [2025-01-04 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:55:21] Production.INFO: ==25556== Releasing lock... [2025-01-04 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:55:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:56:05 [end_date_ymd] => 2025-01-04 07:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:56:05' and `end` < '2025-01-04 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-04 07:56:17] Production.INFO: count ==18 [2025-01-04 07:56:17] Production.ERROR: pbx CDR StartTime 2025-01-04 04:56:05 - End Time 2025-01-04 07:56:05 [2025-01-04 07:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171500', 'tblTempUsageDetail_20' ) start [2025-01-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171500', 'tblTempUsageDetail_20' ) end [2025-01-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171500', 'tblTempVendorCDR_20' ) start [2025-01-04 07:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171500', 'tblTempVendorCDR_20' ) end [2025-01-04 07:56:17] Production.INFO: ProcessCDR(1,14171500,1,1,2) [2025-01-04 07:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171500', 'tblTempUsageDetail_20' ) start [2025-01-04 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171500', 'tblTempUsageDetail_20' ) end [2025-01-04 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:56:21] Production.INFO: ==25630== Releasing lock... [2025-01-04 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:56:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:57:06 [end_date_ymd] => 2025-01-04 07:57:06 [RateCDR] => 1 ) [2025-01-04 07: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-04 04:57:06' and `end` < '2025-01-04 07: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-04 07:57:18] Production.INFO: count ==18 [2025-01-04 07:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 04:57:06 - End Time 2025-01-04 07:57:06 [2025-01-04 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171505', 'tblTempUsageDetail_20' ) start [2025-01-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171505', 'tblTempUsageDetail_20' ) end [2025-01-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171505', 'tblTempVendorCDR_20' ) start [2025-01-04 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171505', 'tblTempVendorCDR_20' ) end [2025-01-04 07:57:18] Production.INFO: ProcessCDR(1,14171505,1,1,2) [2025-01-04 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171505', 'tblTempUsageDetail_20' ) start [2025-01-04 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171505', 'tblTempUsageDetail_20' ) end [2025-01-04 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:57:21] Production.INFO: ==25703== Releasing lock... [2025-01-04 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:57:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:58:05 [end_date_ymd] => 2025-01-04 07:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:58:05' and `end` < '2025-01-04 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-04 07:58:20] Production.INFO: count ==18 [2025-01-04 07:58:20] Production.ERROR: pbx CDR StartTime 2025-01-04 04:58:05 - End Time 2025-01-04 07:58:05 [2025-01-04 07:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171510', 'tblTempUsageDetail_20' ) start [2025-01-04 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171510', 'tblTempUsageDetail_20' ) end [2025-01-04 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171510', 'tblTempVendorCDR_20' ) start [2025-01-04 07:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171510', 'tblTempVendorCDR_20' ) end [2025-01-04 07:58:20] Production.INFO: ProcessCDR(1,14171510,1,1,2) [2025-01-04 07:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171510', 'tblTempUsageDetail_20' ) start [2025-01-04 07:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171510', 'tblTempUsageDetail_20' ) end [2025-01-04 07:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:58:23] Production.INFO: ==25814== Releasing lock... [2025-01-04 07:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:58:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 04:59:05 [end_date_ymd] => 2025-01-04 07:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 04:59:05' and `end` < '2025-01-04 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-04 07:59:19] Production.INFO: count ==18 [2025-01-04 07:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 04:59:05 - End Time 2025-01-04 07:59:05 [2025-01-04 07:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171515', 'tblTempUsageDetail_20' ) start [2025-01-04 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171515', 'tblTempUsageDetail_20' ) end [2025-01-04 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171515', 'tblTempVendorCDR_20' ) start [2025-01-04 07:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171515', 'tblTempVendorCDR_20' ) end [2025-01-04 07:59:19] Production.INFO: ProcessCDR(1,14171515,1,1,2) [2025-01-04 07:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 07:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171515', 'tblTempUsageDetail_20' ) start [2025-01-04 07:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171515', 'tblTempUsageDetail_20' ) end [2025-01-04 07:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 07:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 07:59:22] Production.INFO: ==25891== Releasing lock... [2025-01-04 07:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 07:59:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:00:05 [end_date_ymd] => 2025-01-04 08:00:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:00:05' and `end` < '2025-01-04 08: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-04 08:00:18] Production.INFO: count ==18 [2025-01-04 08:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:00:05 - End Time 2025-01-04 08:00:05 [2025-01-04 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171521', 'tblTempUsageDetail_20' ) start [2025-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171521', 'tblTempUsageDetail_20' ) end [2025-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171521', 'tblTempVendorCDR_20' ) start [2025-01-04 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171521', 'tblTempVendorCDR_20' ) end [2025-01-04 08:00:18] Production.INFO: ProcessCDR(1,14171521,1,1,2) [2025-01-04 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171521,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171521,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171521', 'tblTempUsageDetail_20' ) start [2025-01-04 08:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171521', 'tblTempUsageDetail_20' ) end [2025-01-04 08:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:00:21] Production.INFO: ==25986== Releasing lock... [2025-01-04 08:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:00:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:01:05 [end_date_ymd] => 2025-01-04 08:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:01:05' and `end` < '2025-01-04 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-04 08:01:19] Production.INFO: count ==18 [2025-01-04 08:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:01:05 - End Time 2025-01-04 08:01:05 [2025-01-04 08:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171526', 'tblTempUsageDetail_20' ) start [2025-01-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171526', 'tblTempUsageDetail_20' ) end [2025-01-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171526', 'tblTempVendorCDR_20' ) start [2025-01-04 08:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171526', 'tblTempVendorCDR_20' ) end [2025-01-04 08:01:19] Production.INFO: ProcessCDR(1,14171526,1,1,2) [2025-01-04 08:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171526,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171526,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171526', 'tblTempUsageDetail_20' ) start [2025-01-04 08:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171526', 'tblTempUsageDetail_20' ) end [2025-01-04 08:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:01:22] Production.INFO: ==26072== Releasing lock... [2025-01-04 08:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:01:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:02:04 [end_date_ymd] => 2025-01-04 08:02:04 [RateCDR] => 1 ) [2025-01-04 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-04 05:02:04' and `end` < '2025-01-04 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-04 08:02:18] Production.INFO: count ==18 [2025-01-04 08:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:02:04 - End Time 2025-01-04 08:02:04 [2025-01-04 08:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171531', 'tblTempUsageDetail_20' ) start [2025-01-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171531', 'tblTempUsageDetail_20' ) end [2025-01-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171531', 'tblTempVendorCDR_20' ) start [2025-01-04 08:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171531', 'tblTempVendorCDR_20' ) end [2025-01-04 08:02:18] Production.INFO: ProcessCDR(1,14171531,1,1,2) [2025-01-04 08:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171531,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171531,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171531', 'tblTempUsageDetail_20' ) start [2025-01-04 08:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171531', 'tblTempUsageDetail_20' ) end [2025-01-04 08:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:02:21] Production.INFO: ==26141== Releasing lock... [2025-01-04 08:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:02:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:03:05 [end_date_ymd] => 2025-01-04 08:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:03:05' and `end` < '2025-01-04 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-04 08:03:18] Production.INFO: count ==18 [2025-01-04 08:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:03:05 - End Time 2025-01-04 08:03:05 [2025-01-04 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171536', 'tblTempUsageDetail_20' ) start [2025-01-04 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171536', 'tblTempUsageDetail_20' ) end [2025-01-04 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171536', 'tblTempVendorCDR_20' ) start [2025-01-04 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171536', 'tblTempVendorCDR_20' ) end [2025-01-04 08:03:18] Production.INFO: ProcessCDR(1,14171536,1,1,2) [2025-01-04 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171536,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171536,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171536', 'tblTempUsageDetail_20' ) start [2025-01-04 08:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171536', 'tblTempUsageDetail_20' ) end [2025-01-04 08:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:03:21] Production.INFO: ==26219== Releasing lock... [2025-01-04 08:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:03:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:04:04 [end_date_ymd] => 2025-01-04 08:04:04 [RateCDR] => 1 ) [2025-01-04 08:04: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-04 05:04:04' and `end` < '2025-01-04 08:04: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-04 08:04:18] Production.INFO: count ==18 [2025-01-04 08:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:04:04 - End Time 2025-01-04 08:04:04 [2025-01-04 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171541', 'tblTempUsageDetail_20' ) start [2025-01-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171541', 'tblTempUsageDetail_20' ) end [2025-01-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171541', 'tblTempVendorCDR_20' ) start [2025-01-04 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171541', 'tblTempVendorCDR_20' ) end [2025-01-04 08:04:18] Production.INFO: ProcessCDR(1,14171541,1,1,2) [2025-01-04 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171541', 'tblTempUsageDetail_20' ) start [2025-01-04 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171541', 'tblTempUsageDetail_20' ) end [2025-01-04 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:04:21] Production.INFO: ==26292== Releasing lock... [2025-01-04 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:04:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:05:05 [end_date_ymd] => 2025-01-04 08:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:05:05' and `end` < '2025-01-04 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-04 08:05:17] Production.INFO: count ==18 [2025-01-04 08:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:05:05 - End Time 2025-01-04 08:05:05 [2025-01-04 08:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171546', 'tblTempUsageDetail_20' ) start [2025-01-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171546', 'tblTempUsageDetail_20' ) end [2025-01-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171546', 'tblTempVendorCDR_20' ) start [2025-01-04 08:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171546', 'tblTempVendorCDR_20' ) end [2025-01-04 08:05:17] Production.INFO: ProcessCDR(1,14171546,1,1,2) [2025-01-04 08:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171546', 'tblTempUsageDetail_20' ) start [2025-01-04 08:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171546', 'tblTempUsageDetail_20' ) end [2025-01-04 08:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:05:20] Production.INFO: ==26362== Releasing lock... [2025-01-04 08:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:05:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:06:05 [end_date_ymd] => 2025-01-04 08:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:06:05' and `end` < '2025-01-04 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-04 08:06:17] Production.INFO: count ==18 [2025-01-04 08:06:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:06:05 - End Time 2025-01-04 08:06:05 [2025-01-04 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171551', 'tblTempUsageDetail_20' ) start [2025-01-04 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171551', 'tblTempUsageDetail_20' ) end [2025-01-04 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171551', 'tblTempVendorCDR_20' ) start [2025-01-04 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171551', 'tblTempVendorCDR_20' ) end [2025-01-04 08:06:17] Production.INFO: ProcessCDR(1,14171551,1,1,2) [2025-01-04 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171551', 'tblTempUsageDetail_20' ) start [2025-01-04 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171551', 'tblTempUsageDetail_20' ) end [2025-01-04 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:06:21] Production.INFO: ==26432== Releasing lock... [2025-01-04 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:06:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:07:05 [end_date_ymd] => 2025-01-04 08:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:07:05' and `end` < '2025-01-04 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-04 08:07:18] Production.INFO: count ==18 [2025-01-04 08:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:07:05 - End Time 2025-01-04 08:07:05 [2025-01-04 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171556', 'tblTempUsageDetail_20' ) start [2025-01-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171556', 'tblTempUsageDetail_20' ) end [2025-01-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171556', 'tblTempVendorCDR_20' ) start [2025-01-04 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171556', 'tblTempVendorCDR_20' ) end [2025-01-04 08:07:18] Production.INFO: ProcessCDR(1,14171556,1,1,2) [2025-01-04 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171556', 'tblTempUsageDetail_20' ) start [2025-01-04 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171556', 'tblTempUsageDetail_20' ) end [2025-01-04 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:07:21] Production.INFO: ==26506== Releasing lock... [2025-01-04 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:07:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:08:06 [end_date_ymd] => 2025-01-04 08:08:06 [RateCDR] => 1 ) [2025-01-04 08:08: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-04 05:08:06' and `end` < '2025-01-04 08:08: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-04 08:08:19] Production.INFO: count ==18 [2025-01-04 08:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:08:06 - End Time 2025-01-04 08:08:06 [2025-01-04 08:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171561', 'tblTempUsageDetail_20' ) start [2025-01-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171561', 'tblTempUsageDetail_20' ) end [2025-01-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171561', 'tblTempVendorCDR_20' ) start [2025-01-04 08:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171561', 'tblTempVendorCDR_20' ) end [2025-01-04 08:08:19] Production.INFO: ProcessCDR(1,14171561,1,1,2) [2025-01-04 08:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171561', 'tblTempUsageDetail_20' ) start [2025-01-04 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171561', 'tblTempUsageDetail_20' ) end [2025-01-04 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:08:22] Production.INFO: ==26578== Releasing lock... [2025-01-04 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:08:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:09:05 [end_date_ymd] => 2025-01-04 08:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:09:05' and `end` < '2025-01-04 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-04 08:09:18] Production.INFO: count ==18 [2025-01-04 08:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:09:05 - End Time 2025-01-04 08:09:05 [2025-01-04 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171566', 'tblTempUsageDetail_20' ) start [2025-01-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171566', 'tblTempUsageDetail_20' ) end [2025-01-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171566', 'tblTempVendorCDR_20' ) start [2025-01-04 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171566', 'tblTempVendorCDR_20' ) end [2025-01-04 08:09:18] Production.INFO: ProcessCDR(1,14171566,1,1,2) [2025-01-04 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171566', 'tblTempUsageDetail_20' ) start [2025-01-04 08:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171566', 'tblTempUsageDetail_20' ) end [2025-01-04 08:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:09:21] Production.INFO: ==26650== Releasing lock... [2025-01-04 08:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:09:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:10:06 [end_date_ymd] => 2025-01-04 08:10:06 [RateCDR] => 1 ) [2025-01-04 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-04 05:10:06' and `end` < '2025-01-04 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-04 08:10:19] Production.INFO: count ==18 [2025-01-04 08:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:10:06 - End Time 2025-01-04 08:10:06 [2025-01-04 08:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171571', 'tblTempUsageDetail_20' ) start [2025-01-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171571', 'tblTempUsageDetail_20' ) end [2025-01-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171571', 'tblTempVendorCDR_20' ) start [2025-01-04 08:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171571', 'tblTempVendorCDR_20' ) end [2025-01-04 08:10:19] Production.INFO: ProcessCDR(1,14171571,1,1,2) [2025-01-04 08:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171571', 'tblTempUsageDetail_20' ) start [2025-01-04 08:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171571', 'tblTempUsageDetail_20' ) end [2025-01-04 08:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:10:22] Production.INFO: ==26725== Releasing lock... [2025-01-04 08:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:10:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:11:04 [end_date_ymd] => 2025-01-04 08:11:04 [RateCDR] => 1 ) [2025-01-04 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-04 05:11:04' and `end` < '2025-01-04 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-04 08:11:18] Production.INFO: count ==18 [2025-01-04 08:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:11:04 - End Time 2025-01-04 08:11:04 [2025-01-04 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171577', 'tblTempUsageDetail_20' ) start [2025-01-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171577', 'tblTempUsageDetail_20' ) end [2025-01-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171577', 'tblTempVendorCDR_20' ) start [2025-01-04 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171577', 'tblTempVendorCDR_20' ) end [2025-01-04 08:11:18] Production.INFO: ProcessCDR(1,14171577,1,1,2) [2025-01-04 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171577,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171577,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171577', 'tblTempUsageDetail_20' ) start [2025-01-04 08:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171577', 'tblTempUsageDetail_20' ) end [2025-01-04 08:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:11:21] Production.INFO: ==26797== Releasing lock... [2025-01-04 08:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:11:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:12:05 [end_date_ymd] => 2025-01-04 08:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:12:05' and `end` < '2025-01-04 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-04 08:12:18] Production.INFO: count ==18 [2025-01-04 08:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:12:05 - End Time 2025-01-04 08:12:05 [2025-01-04 08:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171582', 'tblTempUsageDetail_20' ) start [2025-01-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171582', 'tblTempUsageDetail_20' ) end [2025-01-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171582', 'tblTempVendorCDR_20' ) start [2025-01-04 08:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171582', 'tblTempVendorCDR_20' ) end [2025-01-04 08:12:18] Production.INFO: ProcessCDR(1,14171582,1,1,2) [2025-01-04 08:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171582,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171582,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171582', 'tblTempUsageDetail_20' ) start [2025-01-04 08:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171582', 'tblTempUsageDetail_20' ) end [2025-01-04 08:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:12:21] Production.INFO: ==26867== Releasing lock... [2025-01-04 08:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:12:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:13:05 [end_date_ymd] => 2025-01-04 08:13:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:13:05' and `end` < '2025-01-04 08: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-04 08:13:19] Production.INFO: count ==23 [2025-01-04 08:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:13:05 - End Time 2025-01-04 08:13:05 [2025-01-04 08:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171587', 'tblTempUsageDetail_20' ) start [2025-01-04 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171587', 'tblTempUsageDetail_20' ) end [2025-01-04 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171587', 'tblTempVendorCDR_20' ) start [2025-01-04 08:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171587', 'tblTempVendorCDR_20' ) end [2025-01-04 08:13:19] Production.INFO: ProcessCDR(1,14171587,1,1,2) [2025-01-04 08:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171587,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171587,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171587', 'tblTempUsageDetail_20' ) start [2025-01-04 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171587', 'tblTempUsageDetail_20' ) end [2025-01-04 08:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:13:22] Production.INFO: ==26976== Releasing lock... [2025-01-04 08:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:13:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:14:05 [end_date_ymd] => 2025-01-04 08:14:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:14:05' and `end` < '2025-01-04 08: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-04 08:14:17] Production.INFO: count ==24 [2025-01-04 08:14:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:14:05 - End Time 2025-01-04 08:14:05 [2025-01-04 08:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171592', 'tblTempUsageDetail_20' ) start [2025-01-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171592', 'tblTempUsageDetail_20' ) end [2025-01-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171592', 'tblTempVendorCDR_20' ) start [2025-01-04 08:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171592', 'tblTempVendorCDR_20' ) end [2025-01-04 08:14:17] Production.INFO: ProcessCDR(1,14171592,1,1,2) [2025-01-04 08:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171592', 'tblTempUsageDetail_20' ) start [2025-01-04 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171592', 'tblTempUsageDetail_20' ) end [2025-01-04 08:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:14:22] Production.INFO: ==27050== Releasing lock... [2025-01-04 08:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:14:22] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:15:04 [end_date_ymd] => 2025-01-04 08:15:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:15:04' and `end` < '2025-01-04 08: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-04 08:15:17] Production.INFO: count ==24 [2025-01-04 08:15:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:15:04 - End Time 2025-01-04 08:15:04 [2025-01-04 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171597', 'tblTempUsageDetail_20' ) start [2025-01-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171597', 'tblTempUsageDetail_20' ) end [2025-01-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171597', 'tblTempVendorCDR_20' ) start [2025-01-04 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171597', 'tblTempVendorCDR_20' ) end [2025-01-04 08:15:17] Production.INFO: ProcessCDR(1,14171597,1,1,2) [2025-01-04 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171597', 'tblTempUsageDetail_20' ) start [2025-01-04 08:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171597', 'tblTempUsageDetail_20' ) end [2025-01-04 08:15:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:15:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:15:20] Production.INFO: ==27119== Releasing lock... [2025-01-04 08:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:15:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:16:05 [end_date_ymd] => 2025-01-04 08:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:16:05' and `end` < '2025-01-04 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-04 08:16:18] Production.INFO: count ==24 [2025-01-04 08:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:16:05 - End Time 2025-01-04 08:16:05 [2025-01-04 08:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171602', 'tblTempUsageDetail_20' ) start [2025-01-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171602', 'tblTempUsageDetail_20' ) end [2025-01-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171602', 'tblTempVendorCDR_20' ) start [2025-01-04 08:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171602', 'tblTempVendorCDR_20' ) end [2025-01-04 08:16:18] Production.INFO: ProcessCDR(1,14171602,1,1,2) [2025-01-04 08:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171602', 'tblTempUsageDetail_20' ) start [2025-01-04 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171602', 'tblTempUsageDetail_20' ) end [2025-01-04 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:16:21] Production.INFO: ==27190== Releasing lock... [2025-01-04 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:16:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:17:05 [end_date_ymd] => 2025-01-04 08:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:17:05' and `end` < '2025-01-04 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-04 08:17:18] Production.INFO: count ==24 [2025-01-04 08:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:17:05 - End Time 2025-01-04 08:17:05 [2025-01-04 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171607', 'tblTempUsageDetail_20' ) start [2025-01-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171607', 'tblTempUsageDetail_20' ) end [2025-01-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171607', 'tblTempVendorCDR_20' ) start [2025-01-04 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171607', 'tblTempVendorCDR_20' ) end [2025-01-04 08:17:18] Production.INFO: ProcessCDR(1,14171607,1,1,2) [2025-01-04 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171607', 'tblTempUsageDetail_20' ) start [2025-01-04 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171607', 'tblTempUsageDetail_20' ) end [2025-01-04 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:17:21] Production.INFO: ==27264== Releasing lock... [2025-01-04 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:17:21] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:18:04 [end_date_ymd] => 2025-01-04 08:18:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:18:04' and `end` < '2025-01-04 08: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-04 08:18:17] Production.INFO: count ==24 [2025-01-04 08:18:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:18:04 - End Time 2025-01-04 08:18:04 [2025-01-04 08:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171612', 'tblTempUsageDetail_20' ) start [2025-01-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171612', 'tblTempUsageDetail_20' ) end [2025-01-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171612', 'tblTempVendorCDR_20' ) start [2025-01-04 08:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171612', 'tblTempVendorCDR_20' ) end [2025-01-04 08:18:17] Production.INFO: ProcessCDR(1,14171612,1,1,2) [2025-01-04 08:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171612', 'tblTempUsageDetail_20' ) start [2025-01-04 08:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171612', 'tblTempUsageDetail_20' ) end [2025-01-04 08:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:18:20] Production.INFO: ==27346== Releasing lock... [2025-01-04 08:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:18:20] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:19:05 [end_date_ymd] => 2025-01-04 08:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:19:05' and `end` < '2025-01-04 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-04 08:19:20] Production.INFO: count ==24 [2025-01-04 08:19:20] Production.ERROR: pbx CDR StartTime 2025-01-04 05:19:05 - End Time 2025-01-04 08:19:05 [2025-01-04 08:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171617', 'tblTempUsageDetail_20' ) start [2025-01-04 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171617', 'tblTempUsageDetail_20' ) end [2025-01-04 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171617', 'tblTempVendorCDR_20' ) start [2025-01-04 08:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171617', 'tblTempVendorCDR_20' ) end [2025-01-04 08:19:20] Production.INFO: ProcessCDR(1,14171617,1,1,2) [2025-01-04 08:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171617', 'tblTempUsageDetail_20' ) start [2025-01-04 08:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171617', 'tblTempUsageDetail_20' ) end [2025-01-04 08:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:19:23] Production.INFO: ==27426== Releasing lock... [2025-01-04 08:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:19:23] Production.INFO: 27.75 MB #Memory Used# [2025-01-04 08:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:20:05 [end_date_ymd] => 2025-01-04 08:20:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:20:05' and `end` < '2025-01-04 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-04 08:20:18] Production.INFO: count ==35 [2025-01-04 08:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:20:05 - End Time 2025-01-04 08:20:05 [2025-01-04 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171623', 'tblTempUsageDetail_20' ) start [2025-01-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171623', 'tblTempUsageDetail_20' ) end [2025-01-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171623', 'tblTempVendorCDR_20' ) start [2025-01-04 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171623', 'tblTempVendorCDR_20' ) end [2025-01-04 08:20:18] Production.INFO: ProcessCDR(1,14171623,1,1,2) [2025-01-04 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171623,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171623,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171623', 'tblTempUsageDetail_20' ) start [2025-01-04 08:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171623', 'tblTempUsageDetail_20' ) end [2025-01-04 08:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:20:21] Production.INFO: ==27499== Releasing lock... [2025-01-04 08:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:20:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:21:05 [end_date_ymd] => 2025-01-04 08:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:21:05' and `end` < '2025-01-04 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-04 08:21:19] Production.INFO: count ==37 [2025-01-04 08:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:21:05 - End Time 2025-01-04 08:21:05 [2025-01-04 08:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171628', 'tblTempUsageDetail_20' ) start [2025-01-04 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171628', 'tblTempUsageDetail_20' ) end [2025-01-04 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171628', 'tblTempVendorCDR_20' ) start [2025-01-04 08:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171628', 'tblTempVendorCDR_20' ) end [2025-01-04 08:21:19] Production.INFO: ProcessCDR(1,14171628,1,1,2) [2025-01-04 08:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171628,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171628,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171628', 'tblTempUsageDetail_20' ) start [2025-01-04 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171628', 'tblTempUsageDetail_20' ) end [2025-01-04 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:21:22] Production.INFO: ==27572== Releasing lock... [2025-01-04 08:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:21:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:22:05 [end_date_ymd] => 2025-01-04 08:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:22:05' and `end` < '2025-01-04 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-04 08:22:20] Production.INFO: count ==37 [2025-01-04 08:22:20] Production.ERROR: pbx CDR StartTime 2025-01-04 05:22:05 - End Time 2025-01-04 08:22:05 [2025-01-04 08:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171633', 'tblTempUsageDetail_20' ) start [2025-01-04 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171633', 'tblTempUsageDetail_20' ) end [2025-01-04 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171633', 'tblTempVendorCDR_20' ) start [2025-01-04 08:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171633', 'tblTempVendorCDR_20' ) end [2025-01-04 08:22:20] Production.INFO: ProcessCDR(1,14171633,1,1,2) [2025-01-04 08:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171633,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171633,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171633', 'tblTempUsageDetail_20' ) start [2025-01-04 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171633', 'tblTempUsageDetail_20' ) end [2025-01-04 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:22:23] Production.INFO: ==27642== Releasing lock... [2025-01-04 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:22:23] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:23:05 [end_date_ymd] => 2025-01-04 08:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:23:05' and `end` < '2025-01-04 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-04 08:23:18] Production.INFO: count ==37 [2025-01-04 08:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:23:05 - End Time 2025-01-04 08:23:05 [2025-01-04 08:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171638', 'tblTempUsageDetail_20' ) start [2025-01-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171638', 'tblTempUsageDetail_20' ) end [2025-01-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171638', 'tblTempVendorCDR_20' ) start [2025-01-04 08:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171638', 'tblTempVendorCDR_20' ) end [2025-01-04 08:23:18] Production.INFO: ProcessCDR(1,14171638,1,1,2) [2025-01-04 08:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171638,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171638,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171638', 'tblTempUsageDetail_20' ) start [2025-01-04 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171638', 'tblTempUsageDetail_20' ) end [2025-01-04 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:23:21] Production.INFO: ==27725== Releasing lock... [2025-01-04 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:23:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:24:05 [end_date_ymd] => 2025-01-04 08:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:24:05' and `end` < '2025-01-04 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-04 08:24:20] Production.INFO: count ==37 [2025-01-04 08:24:20] Production.ERROR: pbx CDR StartTime 2025-01-04 05:24:05 - End Time 2025-01-04 08:24:05 [2025-01-04 08:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171643', 'tblTempUsageDetail_20' ) start [2025-01-04 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171643', 'tblTempUsageDetail_20' ) end [2025-01-04 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171643', 'tblTempVendorCDR_20' ) start [2025-01-04 08:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171643', 'tblTempVendorCDR_20' ) end [2025-01-04 08:24:20] Production.INFO: ProcessCDR(1,14171643,1,1,2) [2025-01-04 08:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171643', 'tblTempUsageDetail_20' ) start [2025-01-04 08:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171643', 'tblTempUsageDetail_20' ) end [2025-01-04 08:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:24:23] Production.INFO: ==27830== Releasing lock... [2025-01-04 08:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:24:23] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:25:05 [end_date_ymd] => 2025-01-04 08:25:05 [RateCDR] => 1 ) [2025-01-04 08:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 05:25:05' and `end` < '2025-01-04 08:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 08:25:18] Production.INFO: count ==37 [2025-01-04 08:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:25:05 - End Time 2025-01-04 08:25:05 [2025-01-04 08:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171648', 'tblTempUsageDetail_20' ) start [2025-01-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171648', 'tblTempUsageDetail_20' ) end [2025-01-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171648', 'tblTempVendorCDR_20' ) start [2025-01-04 08:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171648', 'tblTempVendorCDR_20' ) end [2025-01-04 08:25:18] Production.INFO: ProcessCDR(1,14171648,1,1,2) [2025-01-04 08:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171648', 'tblTempUsageDetail_20' ) start [2025-01-04 08:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171648', 'tblTempUsageDetail_20' ) end [2025-01-04 08:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:25:21] Production.INFO: ==27934== Releasing lock... [2025-01-04 08:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:25:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:26:05 [end_date_ymd] => 2025-01-04 08:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:26:05' and `end` < '2025-01-04 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-04 08:26:17] Production.INFO: count ==37 [2025-01-04 08:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:26:05 - End Time 2025-01-04 08:26:05 [2025-01-04 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171653', 'tblTempUsageDetail_20' ) start [2025-01-04 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171653', 'tblTempUsageDetail_20' ) end [2025-01-04 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171653', 'tblTempVendorCDR_20' ) start [2025-01-04 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171653', 'tblTempVendorCDR_20' ) end [2025-01-04 08:26:18] Production.INFO: ProcessCDR(1,14171653,1,1,2) [2025-01-04 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171653', 'tblTempUsageDetail_20' ) start [2025-01-04 08:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171653', 'tblTempUsageDetail_20' ) end [2025-01-04 08:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:26:21] Production.INFO: ==28011== Releasing lock... [2025-01-04 08:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:26:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:27:05 [end_date_ymd] => 2025-01-04 08:27:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:27:05' and `end` < '2025-01-04 08: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-04 08:27:19] Production.INFO: count ==37 [2025-01-04 08:27:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:27:05 - End Time 2025-01-04 08:27:05 [2025-01-04 08:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171658', 'tblTempUsageDetail_20' ) start [2025-01-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171658', 'tblTempUsageDetail_20' ) end [2025-01-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171658', 'tblTempVendorCDR_20' ) start [2025-01-04 08:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171658', 'tblTempVendorCDR_20' ) end [2025-01-04 08:27:19] Production.INFO: ProcessCDR(1,14171658,1,1,2) [2025-01-04 08:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171658', 'tblTempUsageDetail_20' ) start [2025-01-04 08:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171658', 'tblTempUsageDetail_20' ) end [2025-01-04 08:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:27:22] Production.INFO: ==28084== Releasing lock... [2025-01-04 08:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:27:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:28:05 [end_date_ymd] => 2025-01-04 08:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:28:05' and `end` < '2025-01-04 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-04 08:28:19] Production.INFO: count ==37 [2025-01-04 08:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:28:05 - End Time 2025-01-04 08:28:05 [2025-01-04 08:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171663', 'tblTempUsageDetail_20' ) start [2025-01-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171663', 'tblTempUsageDetail_20' ) end [2025-01-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171663', 'tblTempVendorCDR_20' ) start [2025-01-04 08:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171663', 'tblTempVendorCDR_20' ) end [2025-01-04 08:28:19] Production.INFO: ProcessCDR(1,14171663,1,1,2) [2025-01-04 08:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171663', 'tblTempUsageDetail_20' ) start [2025-01-04 08:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171663', 'tblTempUsageDetail_20' ) end [2025-01-04 08:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:28:22] Production.INFO: ==28154== Releasing lock... [2025-01-04 08:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:28:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:29:05 [end_date_ymd] => 2025-01-04 08:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:29:05' and `end` < '2025-01-04 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-04 08:29:17] Production.INFO: count ==37 [2025-01-04 08:29:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:29:05 - End Time 2025-01-04 08:29:05 [2025-01-04 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171668', 'tblTempUsageDetail_20' ) start [2025-01-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171668', 'tblTempUsageDetail_20' ) end [2025-01-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171668', 'tblTempVendorCDR_20' ) start [2025-01-04 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171668', 'tblTempVendorCDR_20' ) end [2025-01-04 08:29:17] Production.INFO: ProcessCDR(1,14171668,1,1,2) [2025-01-04 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171668', 'tblTempUsageDetail_20' ) start [2025-01-04 08:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171668', 'tblTempUsageDetail_20' ) end [2025-01-04 08:29:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:29:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:29:20] Production.INFO: ==28264== Releasing lock... [2025-01-04 08:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:29:20] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:30:05 [end_date_ymd] => 2025-01-04 08:30:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:30:05' and `end` < '2025-01-04 08: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-04 08:30:18] Production.INFO: count ==41 [2025-01-04 08:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:30:05 - End Time 2025-01-04 08:30:05 [2025-01-04 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171673', 'tblTempUsageDetail_20' ) start [2025-01-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171673', 'tblTempUsageDetail_20' ) end [2025-01-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171673', 'tblTempVendorCDR_20' ) start [2025-01-04 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171673', 'tblTempVendorCDR_20' ) end [2025-01-04 08:30:18] Production.INFO: ProcessCDR(1,14171673,1,1,2) [2025-01-04 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171673', 'tblTempUsageDetail_20' ) start [2025-01-04 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171673', 'tblTempUsageDetail_20' ) end [2025-01-04 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:30:21] Production.INFO: ==28337== Releasing lock... [2025-01-04 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:30:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:31:04 [end_date_ymd] => 2025-01-04 08:31:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:31:04' and `end` < '2025-01-04 08: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-04 08:31:18] Production.INFO: count ==41 [2025-01-04 08:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:31:04 - End Time 2025-01-04 08:31:04 [2025-01-04 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171679', 'tblTempUsageDetail_20' ) start [2025-01-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171679', 'tblTempUsageDetail_20' ) end [2025-01-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171679', 'tblTempVendorCDR_20' ) start [2025-01-04 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171679', 'tblTempVendorCDR_20' ) end [2025-01-04 08:31:18] Production.INFO: ProcessCDR(1,14171679,1,1,2) [2025-01-04 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171679,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171679,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171679', 'tblTempUsageDetail_20' ) start [2025-01-04 08:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171679', 'tblTempUsageDetail_20' ) end [2025-01-04 08:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:31:21] Production.INFO: ==28411== Releasing lock... [2025-01-04 08:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:31:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:32:05 [end_date_ymd] => 2025-01-04 08:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:32:05' and `end` < '2025-01-04 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-04 08:32:19] Production.INFO: count ==42 [2025-01-04 08:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:32:05 - End Time 2025-01-04 08:32:05 [2025-01-04 08:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171684', 'tblTempUsageDetail_20' ) start [2025-01-04 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171684', 'tblTempUsageDetail_20' ) end [2025-01-04 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171684', 'tblTempVendorCDR_20' ) start [2025-01-04 08:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171684', 'tblTempVendorCDR_20' ) end [2025-01-04 08:32:19] Production.INFO: ProcessCDR(1,14171684,1,1,2) [2025-01-04 08:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171684,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171684,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171684', 'tblTempUsageDetail_20' ) start [2025-01-04 08:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171684', 'tblTempUsageDetail_20' ) end [2025-01-04 08:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:32:22] Production.INFO: ==28481== Releasing lock... [2025-01-04 08:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:32:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:33:05 [end_date_ymd] => 2025-01-04 08:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:33:05' and `end` < '2025-01-04 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-04 08:33:19] Production.INFO: count ==42 [2025-01-04 08:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:33:05 - End Time 2025-01-04 08:33:05 [2025-01-04 08:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171689', 'tblTempUsageDetail_20' ) start [2025-01-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171689', 'tblTempUsageDetail_20' ) end [2025-01-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171689', 'tblTempVendorCDR_20' ) start [2025-01-04 08:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171689', 'tblTempVendorCDR_20' ) end [2025-01-04 08:33:19] Production.INFO: ProcessCDR(1,14171689,1,1,2) [2025-01-04 08:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171689,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171689,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171689', 'tblTempUsageDetail_20' ) start [2025-01-04 08:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171689', 'tblTempUsageDetail_20' ) end [2025-01-04 08:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:33:23] Production.INFO: ==28554== Releasing lock... [2025-01-04 08:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:33:23] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:34:05 [end_date_ymd] => 2025-01-04 08:34:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:34:05' and `end` < '2025-01-04 08: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-04 08:34:18] Production.INFO: count ==42 [2025-01-04 08:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:34:05 - End Time 2025-01-04 08:34:05 [2025-01-04 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171694', 'tblTempUsageDetail_20' ) start [2025-01-04 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171694', 'tblTempUsageDetail_20' ) end [2025-01-04 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171694', 'tblTempVendorCDR_20' ) start [2025-01-04 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171694', 'tblTempVendorCDR_20' ) end [2025-01-04 08:34:18] Production.INFO: ProcessCDR(1,14171694,1,1,2) [2025-01-04 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171694', 'tblTempUsageDetail_20' ) start [2025-01-04 08:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171694', 'tblTempUsageDetail_20' ) end [2025-01-04 08:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:34:22] Production.INFO: ==28628== Releasing lock... [2025-01-04 08:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:34:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:35:06 [end_date_ymd] => 2025-01-04 08:35:06 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:35:06' and `end` < '2025-01-04 08: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-04 08:35:18] Production.INFO: count ==42 [2025-01-04 08:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:35:06 - End Time 2025-01-04 08:35:06 [2025-01-04 08:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171699', 'tblTempUsageDetail_20' ) start [2025-01-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171699', 'tblTempUsageDetail_20' ) end [2025-01-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171699', 'tblTempVendorCDR_20' ) start [2025-01-04 08:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171699', 'tblTempVendorCDR_20' ) end [2025-01-04 08:35:18] Production.INFO: ProcessCDR(1,14171699,1,1,2) [2025-01-04 08:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171699', 'tblTempUsageDetail_20' ) start [2025-01-04 08:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171699', 'tblTempUsageDetail_20' ) end [2025-01-04 08:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:35:22] Production.INFO: ==28700== Releasing lock... [2025-01-04 08:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:35:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:36:05 [end_date_ymd] => 2025-01-04 08:36:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:36:05' and `end` < '2025-01-04 08: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-04 08:36:18] Production.INFO: count ==42 [2025-01-04 08:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:36:05 - End Time 2025-01-04 08:36:05 [2025-01-04 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171704', 'tblTempUsageDetail_20' ) start [2025-01-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171704', 'tblTempUsageDetail_20' ) end [2025-01-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171704', 'tblTempVendorCDR_20' ) start [2025-01-04 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171704', 'tblTempVendorCDR_20' ) end [2025-01-04 08:36:18] Production.INFO: ProcessCDR(1,14171704,1,1,2) [2025-01-04 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171704', 'tblTempUsageDetail_20' ) start [2025-01-04 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171704', 'tblTempUsageDetail_20' ) end [2025-01-04 08:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:36:21] Production.INFO: ==28771== Releasing lock... [2025-01-04 08:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:36:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:37:05 [end_date_ymd] => 2025-01-04 08:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:37:05' and `end` < '2025-01-04 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-04 08:37:19] Production.INFO: count ==42 [2025-01-04 08:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:37:05 - End Time 2025-01-04 08:37:05 [2025-01-04 08:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171709', 'tblTempUsageDetail_20' ) start [2025-01-04 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171709', 'tblTempUsageDetail_20' ) end [2025-01-04 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171709', 'tblTempVendorCDR_20' ) start [2025-01-04 08:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171709', 'tblTempVendorCDR_20' ) end [2025-01-04 08:37:19] Production.INFO: ProcessCDR(1,14171709,1,1,2) [2025-01-04 08:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171709', 'tblTempUsageDetail_20' ) start [2025-01-04 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171709', 'tblTempUsageDetail_20' ) end [2025-01-04 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:37:22] Production.INFO: ==28842== Releasing lock... [2025-01-04 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:37:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:38:05 [end_date_ymd] => 2025-01-04 08:38:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:38:05' and `end` < '2025-01-04 08: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-04 08:38:18] Production.INFO: count ==42 [2025-01-04 08:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:38:05 - End Time 2025-01-04 08:38:05 [2025-01-04 08:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171714', 'tblTempUsageDetail_20' ) start [2025-01-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171714', 'tblTempUsageDetail_20' ) end [2025-01-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171714', 'tblTempVendorCDR_20' ) start [2025-01-04 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171714', 'tblTempVendorCDR_20' ) end [2025-01-04 08:38:18] Production.INFO: ProcessCDR(1,14171714,1,1,2) [2025-01-04 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171714', 'tblTempUsageDetail_20' ) start [2025-01-04 08:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171714', 'tblTempUsageDetail_20' ) end [2025-01-04 08:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:38:21] Production.INFO: ==28914== Releasing lock... [2025-01-04 08:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:38:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:39:05 [end_date_ymd] => 2025-01-04 08:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:39:05' and `end` < '2025-01-04 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-04 08:39:20] Production.INFO: count ==42 [2025-01-04 08:39:20] Production.ERROR: pbx CDR StartTime 2025-01-04 05:39:05 - End Time 2025-01-04 08:39:05 [2025-01-04 08:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171719', 'tblTempUsageDetail_20' ) start [2025-01-04 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171719', 'tblTempUsageDetail_20' ) end [2025-01-04 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171719', 'tblTempVendorCDR_20' ) start [2025-01-04 08:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171719', 'tblTempVendorCDR_20' ) end [2025-01-04 08:39:20] Production.INFO: ProcessCDR(1,14171719,1,1,2) [2025-01-04 08:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171719', 'tblTempUsageDetail_20' ) start [2025-01-04 08:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171719', 'tblTempUsageDetail_20' ) end [2025-01-04 08:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:39:23] Production.INFO: ==28986== Releasing lock... [2025-01-04 08:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:39:23] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:40:05 [end_date_ymd] => 2025-01-04 08:40:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:40:05' and `end` < '2025-01-04 08: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-04 08:40:18] Production.INFO: count ==44 [2025-01-04 08:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:40:05 - End Time 2025-01-04 08:40:05 [2025-01-04 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171725', 'tblTempUsageDetail_20' ) start [2025-01-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171725', 'tblTempUsageDetail_20' ) end [2025-01-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171725', 'tblTempVendorCDR_20' ) start [2025-01-04 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171725', 'tblTempVendorCDR_20' ) end [2025-01-04 08:40:18] Production.INFO: ProcessCDR(1,14171725,1,1,2) [2025-01-04 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171725,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171725,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171725', 'tblTempUsageDetail_20' ) start [2025-01-04 08:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171725', 'tblTempUsageDetail_20' ) end [2025-01-04 08:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:40:21] Production.INFO: ==29062== Releasing lock... [2025-01-04 08:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:40:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:41:05 [end_date_ymd] => 2025-01-04 08:41:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:41:05' and `end` < '2025-01-04 08: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-04 08:41:18] Production.INFO: count ==44 [2025-01-04 08:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:41:05 - End Time 2025-01-04 08:41:05 [2025-01-04 08:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171730', 'tblTempUsageDetail_20' ) start [2025-01-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171730', 'tblTempUsageDetail_20' ) end [2025-01-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171730', 'tblTempVendorCDR_20' ) start [2025-01-04 08:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171730', 'tblTempVendorCDR_20' ) end [2025-01-04 08:41:18] Production.INFO: ProcessCDR(1,14171730,1,1,2) [2025-01-04 08:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171730,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171730,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171730', 'tblTempUsageDetail_20' ) start [2025-01-04 08:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171730', 'tblTempUsageDetail_20' ) end [2025-01-04 08:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:41:21] Production.INFO: ==29137== Releasing lock... [2025-01-04 08:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:41:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:42:04 [end_date_ymd] => 2025-01-04 08:42:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:42:04' and `end` < '2025-01-04 08: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-04 08:42:16] Production.INFO: count ==44 [2025-01-04 08:42:16] Production.ERROR: pbx CDR StartTime 2025-01-04 05:42:04 - End Time 2025-01-04 08:42:04 [2025-01-04 08:42:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171735', 'tblTempUsageDetail_20' ) start [2025-01-04 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171735', 'tblTempUsageDetail_20' ) end [2025-01-04 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171735', 'tblTempVendorCDR_20' ) start [2025-01-04 08:42:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171735', 'tblTempVendorCDR_20' ) end [2025-01-04 08:42:16] Production.INFO: ProcessCDR(1,14171735,1,1,2) [2025-01-04 08:42:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:42:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171735,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:42:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:42:19] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171735,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171735', 'tblTempUsageDetail_20' ) start [2025-01-04 08:42:19] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171735', 'tblTempUsageDetail_20' ) end [2025-01-04 08:42:19] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:42:19] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:42:19] Production.INFO: ==29210== Releasing lock... [2025-01-04 08:42:19] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:42:19] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:43:05 [end_date_ymd] => 2025-01-04 08:43:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:43:05' and `end` < '2025-01-04 08: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-04 08:43:18] Production.INFO: count ==44 [2025-01-04 08:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:43:05 - End Time 2025-01-04 08:43:05 [2025-01-04 08:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171740', 'tblTempUsageDetail_20' ) start [2025-01-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171740', 'tblTempUsageDetail_20' ) end [2025-01-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171740', 'tblTempVendorCDR_20' ) start [2025-01-04 08:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171740', 'tblTempVendorCDR_20' ) end [2025-01-04 08:43:18] Production.INFO: ProcessCDR(1,14171740,1,1,2) [2025-01-04 08:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171740,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171740,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171740', 'tblTempUsageDetail_20' ) start [2025-01-04 08:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171740', 'tblTempUsageDetail_20' ) end [2025-01-04 08:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:43:21] Production.INFO: ==29281== Releasing lock... [2025-01-04 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:43:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:44:05 [end_date_ymd] => 2025-01-04 08:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:44:05' and `end` < '2025-01-04 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-04 08:44:18] Production.INFO: count ==44 [2025-01-04 08:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:44:05 - End Time 2025-01-04 08:44:05 [2025-01-04 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171745', 'tblTempUsageDetail_20' ) start [2025-01-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171745', 'tblTempUsageDetail_20' ) end [2025-01-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171745', 'tblTempVendorCDR_20' ) start [2025-01-04 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171745', 'tblTempVendorCDR_20' ) end [2025-01-04 08:44:18] Production.INFO: ProcessCDR(1,14171745,1,1,2) [2025-01-04 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171745', 'tblTempUsageDetail_20' ) start [2025-01-04 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171745', 'tblTempUsageDetail_20' ) end [2025-01-04 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:44:21] Production.INFO: ==29351== Releasing lock... [2025-01-04 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:44:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:45:04 [end_date_ymd] => 2025-01-04 08:45:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:45:04' and `end` < '2025-01-04 08: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-04 08:45:17] Production.INFO: count ==44 [2025-01-04 08:45:17] Production.ERROR: pbx CDR StartTime 2025-01-04 05:45:04 - End Time 2025-01-04 08:45:04 [2025-01-04 08:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171750', 'tblTempUsageDetail_20' ) start [2025-01-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171750', 'tblTempUsageDetail_20' ) end [2025-01-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171750', 'tblTempVendorCDR_20' ) start [2025-01-04 08:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171750', 'tblTempVendorCDR_20' ) end [2025-01-04 08:45:17] Production.INFO: ProcessCDR(1,14171750,1,1,2) [2025-01-04 08:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171750', 'tblTempUsageDetail_20' ) start [2025-01-04 08:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171750', 'tblTempUsageDetail_20' ) end [2025-01-04 08:45:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:45:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:45:20] Production.INFO: ==29464== Releasing lock... [2025-01-04 08:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:45:20] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:46:05 [end_date_ymd] => 2025-01-04 08:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:46:05' and `end` < '2025-01-04 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-04 08:46:20] Production.INFO: count ==44 [2025-01-04 08:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 05:46:05 - End Time 2025-01-04 08:46:05 [2025-01-04 08:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171755', 'tblTempUsageDetail_20' ) start [2025-01-04 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171755', 'tblTempUsageDetail_20' ) end [2025-01-04 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171755', 'tblTempVendorCDR_20' ) start [2025-01-04 08:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171755', 'tblTempVendorCDR_20' ) end [2025-01-04 08:46:20] Production.INFO: ProcessCDR(1,14171755,1,1,2) [2025-01-04 08:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171755', 'tblTempUsageDetail_20' ) start [2025-01-04 08:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171755', 'tblTempUsageDetail_20' ) end [2025-01-04 08:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:46:23] Production.INFO: ==29538== Releasing lock... [2025-01-04 08:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:46:23] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:47:04 [end_date_ymd] => 2025-01-04 08:47:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:47:04' and `end` < '2025-01-04 08: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-04 08:47:18] Production.INFO: count ==44 [2025-01-04 08:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:47:04 - End Time 2025-01-04 08:47:04 [2025-01-04 08:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171760', 'tblTempUsageDetail_20' ) start [2025-01-04 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171760', 'tblTempUsageDetail_20' ) end [2025-01-04 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171760', 'tblTempVendorCDR_20' ) start [2025-01-04 08:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171760', 'tblTempVendorCDR_20' ) end [2025-01-04 08:47:18] Production.INFO: ProcessCDR(1,14171760,1,1,2) [2025-01-04 08:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171760', 'tblTempUsageDetail_20' ) start [2025-01-04 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171760', 'tblTempUsageDetail_20' ) end [2025-01-04 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:47:22] Production.INFO: ==29608== Releasing lock... [2025-01-04 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:47:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:48:05 [end_date_ymd] => 2025-01-04 08:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:48:05' and `end` < '2025-01-04 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-04 08:48:18] Production.INFO: count ==44 [2025-01-04 08:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:48:05 - End Time 2025-01-04 08:48:05 [2025-01-04 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171765', 'tblTempUsageDetail_20' ) start [2025-01-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171765', 'tblTempUsageDetail_20' ) end [2025-01-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171765', 'tblTempVendorCDR_20' ) start [2025-01-04 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171765', 'tblTempVendorCDR_20' ) end [2025-01-04 08:48:18] Production.INFO: ProcessCDR(1,14171765,1,1,2) [2025-01-04 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171765', 'tblTempUsageDetail_20' ) start [2025-01-04 08:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171765', 'tblTempUsageDetail_20' ) end [2025-01-04 08:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:48:21] Production.INFO: ==29681== Releasing lock... [2025-01-04 08:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:48:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:49:05 [end_date_ymd] => 2025-01-04 08:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:49:05' and `end` < '2025-01-04 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-04 08:49:18] Production.INFO: count ==44 [2025-01-04 08:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:49:05 - End Time 2025-01-04 08:49:05 [2025-01-04 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171770', 'tblTempUsageDetail_20' ) start [2025-01-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171770', 'tblTempUsageDetail_20' ) end [2025-01-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171770', 'tblTempVendorCDR_20' ) start [2025-01-04 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171770', 'tblTempVendorCDR_20' ) end [2025-01-04 08:49:18] Production.INFO: ProcessCDR(1,14171770,1,1,2) [2025-01-04 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171770', 'tblTempUsageDetail_20' ) start [2025-01-04 08:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171770', 'tblTempUsageDetail_20' ) end [2025-01-04 08:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:49:22] Production.INFO: ==29750== Releasing lock... [2025-01-04 08:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:49:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:50:06 [end_date_ymd] => 2025-01-04 08:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 05:50:06' and `end` < '2025-01-04 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-04 08:50:18] Production.INFO: count ==50 [2025-01-04 08:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:50:06 - End Time 2025-01-04 08:50:06 [2025-01-04 08:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171775', 'tblTempUsageDetail_20' ) start [2025-01-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171775', 'tblTempUsageDetail_20' ) end [2025-01-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171775', 'tblTempVendorCDR_20' ) start [2025-01-04 08:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171775', 'tblTempVendorCDR_20' ) end [2025-01-04 08:50:18] Production.INFO: ProcessCDR(1,14171775,1,1,2) [2025-01-04 08:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171775', 'tblTempUsageDetail_20' ) start [2025-01-04 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171775', 'tblTempUsageDetail_20' ) end [2025-01-04 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:50:22] Production.INFO: ==29829== Releasing lock... [2025-01-04 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:50:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:51:05 [end_date_ymd] => 2025-01-04 08:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:51:05' and `end` < '2025-01-04 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-04 08:51:18] Production.INFO: count ==50 [2025-01-04 08:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:51:05 - End Time 2025-01-04 08:51:05 [2025-01-04 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171781', 'tblTempUsageDetail_20' ) start [2025-01-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171781', 'tblTempUsageDetail_20' ) end [2025-01-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171781', 'tblTempVendorCDR_20' ) start [2025-01-04 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171781', 'tblTempVendorCDR_20' ) end [2025-01-04 08:51:18] Production.INFO: ProcessCDR(1,14171781,1,1,2) [2025-01-04 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171781,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171781,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171781', 'tblTempUsageDetail_20' ) start [2025-01-04 08:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171781', 'tblTempUsageDetail_20' ) end [2025-01-04 08:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:51:21] Production.INFO: ==29903== Releasing lock... [2025-01-04 08:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:51:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:52:05 [end_date_ymd] => 2025-01-04 08:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:52:05' and `end` < '2025-01-04 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-04 08:52:21] Production.INFO: count ==51 [2025-01-04 08:52:21] Production.ERROR: pbx CDR StartTime 2025-01-04 05:52:05 - End Time 2025-01-04 08:52:05 [2025-01-04 08:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171786', 'tblTempUsageDetail_20' ) start [2025-01-04 08:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171786', 'tblTempUsageDetail_20' ) end [2025-01-04 08:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171786', 'tblTempVendorCDR_20' ) start [2025-01-04 08:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171786', 'tblTempVendorCDR_20' ) end [2025-01-04 08:52:21] Production.INFO: ProcessCDR(1,14171786,1,1,2) [2025-01-04 08:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171786,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171786,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171786', 'tblTempUsageDetail_20' ) start [2025-01-04 08:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171786', 'tblTempUsageDetail_20' ) end [2025-01-04 08:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:52:24] Production.INFO: ==29975== Releasing lock... [2025-01-04 08:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:52:24] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:53:05 [end_date_ymd] => 2025-01-04 08:53:05 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:53:05' and `end` < '2025-01-04 08: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-04 08:53:18] Production.INFO: count ==51 [2025-01-04 08:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:53:05 - End Time 2025-01-04 08:53:05 [2025-01-04 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171791', 'tblTempUsageDetail_20' ) start [2025-01-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171791', 'tblTempUsageDetail_20' ) end [2025-01-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171791', 'tblTempVendorCDR_20' ) start [2025-01-04 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171791', 'tblTempVendorCDR_20' ) end [2025-01-04 08:53:18] Production.INFO: ProcessCDR(1,14171791,1,1,2) [2025-01-04 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171791,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171791,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171791', 'tblTempUsageDetail_20' ) start [2025-01-04 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171791', 'tblTempUsageDetail_20' ) end [2025-01-04 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:53:21] Production.INFO: ==30048== Releasing lock... [2025-01-04 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:53:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:54:05 [end_date_ymd] => 2025-01-04 08:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:54:05' and `end` < '2025-01-04 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-04 08:54:19] Production.INFO: count ==51 [2025-01-04 08:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:54:05 - End Time 2025-01-04 08:54:05 [2025-01-04 08:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171796', 'tblTempUsageDetail_20' ) start [2025-01-04 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171796', 'tblTempUsageDetail_20' ) end [2025-01-04 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171796', 'tblTempVendorCDR_20' ) start [2025-01-04 08:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171796', 'tblTempVendorCDR_20' ) end [2025-01-04 08:54:19] Production.INFO: ProcessCDR(1,14171796,1,1,2) [2025-01-04 08:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171796', 'tblTempUsageDetail_20' ) start [2025-01-04 08:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171796', 'tblTempUsageDetail_20' ) end [2025-01-04 08:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:54:22] Production.INFO: ==30118== Releasing lock... [2025-01-04 08:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:54:22] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:55:05 [end_date_ymd] => 2025-01-04 08:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:55:05' and `end` < '2025-01-04 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-04 08:55:18] Production.INFO: count ==51 [2025-01-04 08:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:55:05 - End Time 2025-01-04 08:55:05 [2025-01-04 08:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171801', 'tblTempUsageDetail_20' ) start [2025-01-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171801', 'tblTempUsageDetail_20' ) end [2025-01-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171801', 'tblTempVendorCDR_20' ) start [2025-01-04 08:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171801', 'tblTempVendorCDR_20' ) end [2025-01-04 08:55:18] Production.INFO: ProcessCDR(1,14171801,1,1,2) [2025-01-04 08:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171801', 'tblTempUsageDetail_20' ) start [2025-01-04 08:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171801', 'tblTempUsageDetail_20' ) end [2025-01-04 08:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:55:21] Production.INFO: ==30188== Releasing lock... [2025-01-04 08:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:55:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:56:05 [end_date_ymd] => 2025-01-04 08:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:56:05' and `end` < '2025-01-04 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-04 08:56:18] Production.INFO: count ==56 [2025-01-04 08:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:56:05 - End Time 2025-01-04 08:56:05 [2025-01-04 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171806', 'tblTempUsageDetail_20' ) start [2025-01-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171806', 'tblTempUsageDetail_20' ) end [2025-01-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171806', 'tblTempVendorCDR_20' ) start [2025-01-04 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171806', 'tblTempVendorCDR_20' ) end [2025-01-04 08:56:18] Production.INFO: ProcessCDR(1,14171806,1,1,2) [2025-01-04 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171806', 'tblTempUsageDetail_20' ) start [2025-01-04 08:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171806', 'tblTempUsageDetail_20' ) end [2025-01-04 08:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:56:21] Production.INFO: ==30262== Releasing lock... [2025-01-04 08:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:56:21] Production.INFO: 28 MB #Memory Used# [2025-01-04 08:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:57:04 [end_date_ymd] => 2025-01-04 08:57:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:57:04' and `end` < '2025-01-04 08: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-04 08:57:19] Production.INFO: count ==67 [2025-01-04 08:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 05:57:04 - End Time 2025-01-04 08:57:04 [2025-01-04 08:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171811', 'tblTempUsageDetail_20' ) start [2025-01-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171811', 'tblTempUsageDetail_20' ) end [2025-01-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171811', 'tblTempVendorCDR_20' ) start [2025-01-04 08:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171811', 'tblTempVendorCDR_20' ) end [2025-01-04 08:57:19] Production.INFO: ProcessCDR(1,14171811,1,1,2) [2025-01-04 08:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171811', 'tblTempUsageDetail_20' ) start [2025-01-04 08:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171811', 'tblTempUsageDetail_20' ) end [2025-01-04 08:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:57:22] Production.INFO: ==30331== Releasing lock... [2025-01-04 08:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:57:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 08:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:58:04 [end_date_ymd] => 2025-01-04 08:58:04 [RateCDR] => 1 ) [2025-01-04 08: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-04 05:58:04' and `end` < '2025-01-04 08: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-04 08:58:18] Production.INFO: count ==67 [2025-01-04 08:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:58:04 - End Time 2025-01-04 08:58:04 [2025-01-04 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171816', 'tblTempUsageDetail_20' ) start [2025-01-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171816', 'tblTempUsageDetail_20' ) end [2025-01-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171816', 'tblTempVendorCDR_20' ) start [2025-01-04 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171816', 'tblTempVendorCDR_20' ) end [2025-01-04 08:58:18] Production.INFO: ProcessCDR(1,14171816,1,1,2) [2025-01-04 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171816', 'tblTempUsageDetail_20' ) start [2025-01-04 08:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171816', 'tblTempUsageDetail_20' ) end [2025-01-04 08:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:58:21] Production.INFO: ==30402== Releasing lock... [2025-01-04 08:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:58:21] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 08:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 05:59:05 [end_date_ymd] => 2025-01-04 08:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 05:59:05' and `end` < '2025-01-04 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-04 08:59:18] Production.INFO: count ==68 [2025-01-04 08:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 05:59:05 - End Time 2025-01-04 08:59:05 [2025-01-04 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171821', 'tblTempUsageDetail_20' ) start [2025-01-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171821', 'tblTempUsageDetail_20' ) end [2025-01-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171821', 'tblTempVendorCDR_20' ) start [2025-01-04 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171821', 'tblTempVendorCDR_20' ) end [2025-01-04 08:59:18] Production.INFO: ProcessCDR(1,14171821,1,1,2) [2025-01-04 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 08:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171821', 'tblTempUsageDetail_20' ) start [2025-01-04 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171821', 'tblTempUsageDetail_20' ) end [2025-01-04 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 08:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 08:59:23] Production.INFO: ==30476== Releasing lock... [2025-01-04 08:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 08:59:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:00:05 [end_date_ymd] => 2025-01-04 09:00:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:00:05' and `end` < '2025-01-04 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-04 09:00:23] Production.INFO: count ==68 [2025-01-04 09:00:23] Production.ERROR: pbx CDR StartTime 2025-01-04 06:00:05 - End Time 2025-01-04 09:00:05 [2025-01-04 09:00:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171827', 'tblTempUsageDetail_20' ) start [2025-01-04 09:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171827', 'tblTempUsageDetail_20' ) end [2025-01-04 09:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171827', 'tblTempVendorCDR_20' ) start [2025-01-04 09:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171827', 'tblTempVendorCDR_20' ) end [2025-01-04 09:00:23] Production.INFO: ProcessCDR(1,14171827,1,1,2) [2025-01-04 09:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171827,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171827,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171827', 'tblTempUsageDetail_20' ) start [2025-01-04 09:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171827', 'tblTempUsageDetail_20' ) end [2025-01-04 09:00:26] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:00:26] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:00:26] Production.INFO: ==30588== Releasing lock... [2025-01-04 09:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:00:26] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:01:05 [end_date_ymd] => 2025-01-04 09:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:01:05' and `end` < '2025-01-04 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-04 09:01:20] Production.INFO: count ==68 [2025-01-04 09:01:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:01:05 - End Time 2025-01-04 09:01:05 [2025-01-04 09:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171832', 'tblTempUsageDetail_20' ) start [2025-01-04 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171832', 'tblTempUsageDetail_20' ) end [2025-01-04 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171832', 'tblTempVendorCDR_20' ) start [2025-01-04 09:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171832', 'tblTempVendorCDR_20' ) end [2025-01-04 09:01:20] Production.INFO: ProcessCDR(1,14171832,1,1,2) [2025-01-04 09:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171832,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171832,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171832', 'tblTempUsageDetail_20' ) start [2025-01-04 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171832', 'tblTempUsageDetail_20' ) end [2025-01-04 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:01:23] Production.INFO: ==30674== Releasing lock... [2025-01-04 09:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:01:23] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:02:05 [end_date_ymd] => 2025-01-04 09:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:02:05' and `end` < '2025-01-04 09: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-04 09:02:19] Production.INFO: count ==71 [2025-01-04 09:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:02:05 - End Time 2025-01-04 09:02:05 [2025-01-04 09:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171837', 'tblTempUsageDetail_20' ) start [2025-01-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171837', 'tblTempUsageDetail_20' ) end [2025-01-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171837', 'tblTempVendorCDR_20' ) start [2025-01-04 09:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171837', 'tblTempVendorCDR_20' ) end [2025-01-04 09:02:19] Production.INFO: ProcessCDR(1,14171837,1,1,2) [2025-01-04 09:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171837,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171837,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171837', 'tblTempUsageDetail_20' ) start [2025-01-04 09:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171837', 'tblTempUsageDetail_20' ) end [2025-01-04 09:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:02:22] Production.INFO: ==30745== Releasing lock... [2025-01-04 09:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:02:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:03:05 [end_date_ymd] => 2025-01-04 09:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:03:05' and `end` < '2025-01-04 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-04 09:03:19] Production.INFO: count ==77 [2025-01-04 09:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:03:05 - End Time 2025-01-04 09:03:05 [2025-01-04 09:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171842', 'tblTempUsageDetail_20' ) start [2025-01-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171842', 'tblTempUsageDetail_20' ) end [2025-01-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171842', 'tblTempVendorCDR_20' ) start [2025-01-04 09:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171842', 'tblTempVendorCDR_20' ) end [2025-01-04 09:03:19] Production.INFO: ProcessCDR(1,14171842,1,1,2) [2025-01-04 09:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171842,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171842,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171842', 'tblTempUsageDetail_20' ) start [2025-01-04 09:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171842', 'tblTempUsageDetail_20' ) end [2025-01-04 09:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:03:22] Production.INFO: ==30821== Releasing lock... [2025-01-04 09:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:03:22] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:04:05 [end_date_ymd] => 2025-01-04 09:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:04:05' and `end` < '2025-01-04 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-04 09:04:17] Production.INFO: count ==82 [2025-01-04 09:04:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:04:05 - End Time 2025-01-04 09:04:05 [2025-01-04 09:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171847', 'tblTempUsageDetail_20' ) start [2025-01-04 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171847', 'tblTempUsageDetail_20' ) end [2025-01-04 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171847', 'tblTempVendorCDR_20' ) start [2025-01-04 09:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171847', 'tblTempVendorCDR_20' ) end [2025-01-04 09:04:17] Production.INFO: ProcessCDR(1,14171847,1,1,2) [2025-01-04 09:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171847', 'tblTempUsageDetail_20' ) start [2025-01-04 09:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171847', 'tblTempUsageDetail_20' ) end [2025-01-04 09:04:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:04:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:04:20] Production.INFO: ==30891== Releasing lock... [2025-01-04 09:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:04:20] Production.INFO: 28.25 MB #Memory Used# [2025-01-04 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:05:05 [end_date_ymd] => 2025-01-04 09:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:05:05' and `end` < '2025-01-04 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-04 09:05:17] Production.INFO: count ==86 [2025-01-04 09:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:05:05 - End Time 2025-01-04 09:05:05 [2025-01-04 09:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171852', 'tblTempUsageDetail_20' ) start [2025-01-04 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171852', 'tblTempUsageDetail_20' ) end [2025-01-04 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171852', 'tblTempVendorCDR_20' ) start [2025-01-04 09:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171852', 'tblTempVendorCDR_20' ) end [2025-01-04 09:05:17] Production.INFO: ProcessCDR(1,14171852,1,1,2) [2025-01-04 09:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171852', 'tblTempUsageDetail_20' ) start [2025-01-04 09:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171852', 'tblTempUsageDetail_20' ) end [2025-01-04 09:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:05:21] Production.INFO: ==30963== Releasing lock... [2025-01-04 09:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:05:21] Production.INFO: 28.5 MB #Memory Used# [2025-01-04 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:06:05 [end_date_ymd] => 2025-01-04 09:06:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:06:05' and `end` < '2025-01-04 09: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-04 09:06:19] Production.INFO: count ==88 [2025-01-04 09:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:06:05 - End Time 2025-01-04 09:06:05 [2025-01-04 09:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171857', 'tblTempUsageDetail_20' ) start [2025-01-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171857', 'tblTempUsageDetail_20' ) end [2025-01-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171857', 'tblTempVendorCDR_20' ) start [2025-01-04 09:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171857', 'tblTempVendorCDR_20' ) end [2025-01-04 09:06:19] Production.INFO: ProcessCDR(1,14171857,1,1,2) [2025-01-04 09:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171857', 'tblTempUsageDetail_20' ) start [2025-01-04 09:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171857', 'tblTempUsageDetail_20' ) end [2025-01-04 09:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:06:22] Production.INFO: ==31037== Releasing lock... [2025-01-04 09:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:06:22] Production.INFO: 28.5 MB #Memory Used# [2025-01-04 09:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:07:05 [end_date_ymd] => 2025-01-04 09:07:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:07:05' and `end` < '2025-01-04 09: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-04 09:07:20] Production.INFO: count ==90 [2025-01-04 09:07:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:07:05 - End Time 2025-01-04 09:07:05 [2025-01-04 09:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171862', 'tblTempUsageDetail_20' ) start [2025-01-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171862', 'tblTempUsageDetail_20' ) end [2025-01-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171862', 'tblTempVendorCDR_20' ) start [2025-01-04 09:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171862', 'tblTempVendorCDR_20' ) end [2025-01-04 09:07:20] Production.INFO: ProcessCDR(1,14171862,1,1,2) [2025-01-04 09:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171862', 'tblTempUsageDetail_20' ) start [2025-01-04 09:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171862', 'tblTempUsageDetail_20' ) end [2025-01-04 09:07:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:07:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:07:25] Production.INFO: ==31108== Releasing lock... [2025-01-04 09:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:07:25] Production.INFO: 28.5 MB #Memory Used# [2025-01-04 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:08:05 [end_date_ymd] => 2025-01-04 09:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:08:05' and `end` < '2025-01-04 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-04 09:08:18] Production.INFO: count ==101 [2025-01-04 09:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:08:05 - End Time 2025-01-04 09:08:05 [2025-01-04 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171867', 'tblTempUsageDetail_20' ) start [2025-01-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171867', 'tblTempUsageDetail_20' ) end [2025-01-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171867', 'tblTempVendorCDR_20' ) start [2025-01-04 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171867', 'tblTempVendorCDR_20' ) end [2025-01-04 09:08:18] Production.INFO: ProcessCDR(1,14171867,1,1,2) [2025-01-04 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171867', 'tblTempUsageDetail_20' ) start [2025-01-04 09:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171867', 'tblTempUsageDetail_20' ) end [2025-01-04 09:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:08:21] Production.INFO: ==31180== Releasing lock... [2025-01-04 09:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:08:21] Production.INFO: 28.75 MB #Memory Used# [2025-01-04 09:09:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:09:04 [end_date_ymd] => 2025-01-04 09:09:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:09:04' and `end` < '2025-01-04 09: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-04 09:09:17] Production.INFO: count ==107 [2025-01-04 09:09:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:09:04 - End Time 2025-01-04 09:09:04 [2025-01-04 09:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171872', 'tblTempUsageDetail_20' ) start [2025-01-04 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171872', 'tblTempUsageDetail_20' ) end [2025-01-04 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171872', 'tblTempVendorCDR_20' ) start [2025-01-04 09:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171872', 'tblTempVendorCDR_20' ) end [2025-01-04 09:09:17] Production.INFO: ProcessCDR(1,14171872,1,1,2) [2025-01-04 09:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171872', 'tblTempUsageDetail_20' ) start [2025-01-04 09:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171872', 'tblTempUsageDetail_20' ) end [2025-01-04 09:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:09:22] Production.INFO: ==31250== Releasing lock... [2025-01-04 09:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:09:22] Production.INFO: 28.75 MB #Memory Used# [2025-01-04 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:10:06 [end_date_ymd] => 2025-01-04 09:10:06 [RateCDR] => 1 ) [2025-01-04 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-04 06:10:06' and `end` < '2025-01-04 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-04 09:10:18] Production.INFO: count ==116 [2025-01-04 09:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:10:06 - End Time 2025-01-04 09:10:06 [2025-01-04 09:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171878', 'tblTempUsageDetail_20' ) start [2025-01-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171878', 'tblTempUsageDetail_20' ) end [2025-01-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171878', 'tblTempVendorCDR_20' ) start [2025-01-04 09:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171878', 'tblTempVendorCDR_20' ) end [2025-01-04 09:10:18] Production.INFO: ProcessCDR(1,14171878,1,1,2) [2025-01-04 09:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171878,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171878,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171878', 'tblTempUsageDetail_20' ) start [2025-01-04 09:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171878', 'tblTempUsageDetail_20' ) end [2025-01-04 09:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:10:23] Production.INFO: ==31323== Releasing lock... [2025-01-04 09:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:10:23] Production.INFO: 29 MB #Memory Used# [2025-01-04 09:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:11:06 [end_date_ymd] => 2025-01-04 09:11:06 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:11:06' and `end` < '2025-01-04 09: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-04 09:11:18] Production.INFO: count ==127 [2025-01-04 09:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:11:06 - End Time 2025-01-04 09:11:06 [2025-01-04 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171883', 'tblTempUsageDetail_20' ) start [2025-01-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171883', 'tblTempUsageDetail_20' ) end [2025-01-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171883', 'tblTempVendorCDR_20' ) start [2025-01-04 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171883', 'tblTempVendorCDR_20' ) end [2025-01-04 09:11:18] Production.INFO: ProcessCDR(1,14171883,1,1,2) [2025-01-04 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171883,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171883,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171883', 'tblTempUsageDetail_20' ) start [2025-01-04 09:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171883', 'tblTempUsageDetail_20' ) end [2025-01-04 09:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:11:21] Production.INFO: ==31397== Releasing lock... [2025-01-04 09:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:11:21] Production.INFO: 29 MB #Memory Used# [2025-01-04 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:12:05 [end_date_ymd] => 2025-01-04 09:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:12:05' and `end` < '2025-01-04 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-04 09:12:19] Production.INFO: count ==133 [2025-01-04 09:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:12:05 - End Time 2025-01-04 09:12:05 [2025-01-04 09:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171888', 'tblTempUsageDetail_20' ) start [2025-01-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171888', 'tblTempUsageDetail_20' ) end [2025-01-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171888', 'tblTempVendorCDR_20' ) start [2025-01-04 09:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171888', 'tblTempVendorCDR_20' ) end [2025-01-04 09:12:19] Production.INFO: ProcessCDR(1,14171888,1,1,2) [2025-01-04 09:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171888,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171888,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171888', 'tblTempUsageDetail_20' ) start [2025-01-04 09:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171888', 'tblTempUsageDetail_20' ) end [2025-01-04 09:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:12:22] Production.INFO: ==31469== Releasing lock... [2025-01-04 09:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:12:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 09:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:13:05 [end_date_ymd] => 2025-01-04 09:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:13:05' and `end` < '2025-01-04 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-04 09:13:18] Production.INFO: count ==139 [2025-01-04 09:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:13:05 - End Time 2025-01-04 09:13:05 [2025-01-04 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171893', 'tblTempUsageDetail_20' ) start [2025-01-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171893', 'tblTempUsageDetail_20' ) end [2025-01-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171893', 'tblTempVendorCDR_20' ) start [2025-01-04 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171893', 'tblTempVendorCDR_20' ) end [2025-01-04 09:13:18] Production.INFO: ProcessCDR(1,14171893,1,1,2) [2025-01-04 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171893,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171893,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171893', 'tblTempUsageDetail_20' ) start [2025-01-04 09:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171893', 'tblTempUsageDetail_20' ) end [2025-01-04 09:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:13:21] Production.INFO: ==31538== Releasing lock... [2025-01-04 09:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:13:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:14:05 [end_date_ymd] => 2025-01-04 09:14:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:14:05' and `end` < '2025-01-04 09: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-04 09:14:19] Production.INFO: count ==139 [2025-01-04 09:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:14:05 - End Time 2025-01-04 09:14:05 [2025-01-04 09:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171898', 'tblTempUsageDetail_20' ) start [2025-01-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171898', 'tblTempUsageDetail_20' ) end [2025-01-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171898', 'tblTempVendorCDR_20' ) start [2025-01-04 09:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171898', 'tblTempVendorCDR_20' ) end [2025-01-04 09:14:19] Production.INFO: ProcessCDR(1,14171898,1,1,2) [2025-01-04 09:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171898,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171898,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171898', 'tblTempUsageDetail_20' ) start [2025-01-04 09:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171898', 'tblTempUsageDetail_20' ) end [2025-01-04 09:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:14:22] Production.INFO: ==31612== Releasing lock... [2025-01-04 09:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:14:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:15:05 [end_date_ymd] => 2025-01-04 09:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:15:05' and `end` < '2025-01-04 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-04 09:15:18] Production.INFO: count ==148 [2025-01-04 09:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:15:05 - End Time 2025-01-04 09:15:05 [2025-01-04 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171903', 'tblTempUsageDetail_20' ) start [2025-01-04 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171903', 'tblTempUsageDetail_20' ) end [2025-01-04 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171903', 'tblTempVendorCDR_20' ) start [2025-01-04 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171903', 'tblTempVendorCDR_20' ) end [2025-01-04 09:15:18] Production.INFO: ProcessCDR(1,14171903,1,1,2) [2025-01-04 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171903', 'tblTempUsageDetail_20' ) start [2025-01-04 09:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171903', 'tblTempUsageDetail_20' ) end [2025-01-04 09:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:15:21] Production.INFO: ==31685== Releasing lock... [2025-01-04 09:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:15:21] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:16:05 [end_date_ymd] => 2025-01-04 09:16:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:16:05' and `end` < '2025-01-04 09: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-04 09:16:19] Production.INFO: count ==147 [2025-01-04 09:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:16:05 - End Time 2025-01-04 09:16:05 [2025-01-04 09:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171908', 'tblTempUsageDetail_20' ) start [2025-01-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171908', 'tblTempUsageDetail_20' ) end [2025-01-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171908', 'tblTempVendorCDR_20' ) start [2025-01-04 09:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171908', 'tblTempVendorCDR_20' ) end [2025-01-04 09:16:19] Production.INFO: ProcessCDR(1,14171908,1,1,2) [2025-01-04 09:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171908', 'tblTempUsageDetail_20' ) start [2025-01-04 09:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171908', 'tblTempUsageDetail_20' ) end [2025-01-04 09:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:16:22] Production.INFO: ==31807== Releasing lock... [2025-01-04 09:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:16:22] Production.INFO: 29 MB #Memory Used# [2025-01-04 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:17:05 [end_date_ymd] => 2025-01-04 09:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:17:05' and `end` < '2025-01-04 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-04 09:17:18] Production.INFO: count ==146 [2025-01-04 09:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:17:05 - End Time 2025-01-04 09:17:05 [2025-01-04 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171913', 'tblTempUsageDetail_20' ) start [2025-01-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171913', 'tblTempUsageDetail_20' ) end [2025-01-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171913', 'tblTempVendorCDR_20' ) start [2025-01-04 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171913', 'tblTempVendorCDR_20' ) end [2025-01-04 09:17:18] Production.INFO: ProcessCDR(1,14171913,1,1,2) [2025-01-04 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171913', 'tblTempUsageDetail_20' ) start [2025-01-04 09:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171913', 'tblTempUsageDetail_20' ) end [2025-01-04 09:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:17:22] Production.INFO: ==31912== Releasing lock... [2025-01-04 09:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:17:22] Production.INFO: 29.25 MB #Memory Used# [2025-01-04 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:18:05 [end_date_ymd] => 2025-01-04 09:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:18:05' and `end` < '2025-01-04 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-04 09:18:19] Production.INFO: count ==149 [2025-01-04 09:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:18:05 - End Time 2025-01-04 09:18:05 [2025-01-04 09:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171918', 'tblTempUsageDetail_20' ) start [2025-01-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171918', 'tblTempUsageDetail_20' ) end [2025-01-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171918', 'tblTempVendorCDR_20' ) start [2025-01-04 09:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171918', 'tblTempVendorCDR_20' ) end [2025-01-04 09:18:19] Production.INFO: ProcessCDR(1,14171918,1,1,2) [2025-01-04 09:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171918', 'tblTempUsageDetail_20' ) start [2025-01-04 09:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171918', 'tblTempUsageDetail_20' ) end [2025-01-04 09:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:18:22] Production.INFO: ==32011== Releasing lock... [2025-01-04 09:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:18:22] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:19:05 [end_date_ymd] => 2025-01-04 09:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:19:05' and `end` < '2025-01-04 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-04 09:19:18] Production.INFO: count ==149 [2025-01-04 09:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:19:05 - End Time 2025-01-04 09:19:05 [2025-01-04 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171923', 'tblTempUsageDetail_20' ) start [2025-01-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171923', 'tblTempUsageDetail_20' ) end [2025-01-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171923', 'tblTempVendorCDR_20' ) start [2025-01-04 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171923', 'tblTempVendorCDR_20' ) end [2025-01-04 09:19:18] Production.INFO: ProcessCDR(1,14171923,1,1,2) [2025-01-04 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171923', 'tblTempUsageDetail_20' ) start [2025-01-04 09:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171923', 'tblTempUsageDetail_20' ) end [2025-01-04 09:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:19:21] Production.INFO: ==32109== Releasing lock... [2025-01-04 09:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:19:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 09:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:20:05 [end_date_ymd] => 2025-01-04 09:20:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:20:05' and `end` < '2025-01-04 09: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-04 09:20:18] Production.INFO: count ==163 [2025-01-04 09:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:20:05 - End Time 2025-01-04 09:20:05 [2025-01-04 09:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171929', 'tblTempUsageDetail_20' ) start [2025-01-04 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171929', 'tblTempUsageDetail_20' ) end [2025-01-04 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171929', 'tblTempVendorCDR_20' ) start [2025-01-04 09:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171929', 'tblTempVendorCDR_20' ) end [2025-01-04 09:20:18] Production.INFO: ProcessCDR(1,14171929,1,1,2) [2025-01-04 09:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171929,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171929,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171929', 'tblTempUsageDetail_20' ) start [2025-01-04 09:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171929', 'tblTempUsageDetail_20' ) end [2025-01-04 09:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:20:21] Production.INFO: ==32209== Releasing lock... [2025-01-04 09:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:20:21] Production.INFO: 29.5 MB #Memory Used# [2025-01-04 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:21:05 [end_date_ymd] => 2025-01-04 09:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:21:05' and `end` < '2025-01-04 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-04 09:21:18] Production.INFO: count ==206 [2025-01-04 09:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:21:05 - End Time 2025-01-04 09:21:05 [2025-01-04 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171934', 'tblTempUsageDetail_20' ) start [2025-01-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171934', 'tblTempUsageDetail_20' ) end [2025-01-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171934', 'tblTempVendorCDR_20' ) start [2025-01-04 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171934', 'tblTempVendorCDR_20' ) end [2025-01-04 09:21:18] Production.INFO: ProcessCDR(1,14171934,1,1,2) [2025-01-04 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171934,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171934,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171934', 'tblTempUsageDetail_20' ) start [2025-01-04 09:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171934', 'tblTempUsageDetail_20' ) end [2025-01-04 09:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:21:23] Production.INFO: ==32313== Releasing lock... [2025-01-04 09:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:21:23] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 09:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:22:05 [end_date_ymd] => 2025-01-04 09:22:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:22:05' and `end` < '2025-01-04 09: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-04 09:22:20] Production.INFO: count ==213 [2025-01-04 09:22:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:22:05 - End Time 2025-01-04 09:22:05 [2025-01-04 09:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171939', 'tblTempUsageDetail_20' ) start [2025-01-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171939', 'tblTempUsageDetail_20' ) end [2025-01-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171939', 'tblTempVendorCDR_20' ) start [2025-01-04 09:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171939', 'tblTempVendorCDR_20' ) end [2025-01-04 09:22:20] Production.INFO: ProcessCDR(1,14171939,1,1,2) [2025-01-04 09:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:22:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171939,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:22:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:22:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171939,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171939', 'tblTempUsageDetail_20' ) start [2025-01-04 09:22:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171939', 'tblTempUsageDetail_20' ) end [2025-01-04 09:22:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:22:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:22:24] Production.INFO: ==32418== Releasing lock... [2025-01-04 09:22:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:22:24] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 09:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:23:04 [end_date_ymd] => 2025-01-04 09:23:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:23:04' and `end` < '2025-01-04 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-04 09:23:17] Production.INFO: count ==218 [2025-01-04 09:23:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:23:04 - End Time 2025-01-04 09:23:04 [2025-01-04 09:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171944', 'tblTempUsageDetail_20' ) start [2025-01-04 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171944', 'tblTempUsageDetail_20' ) end [2025-01-04 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171944', 'tblTempVendorCDR_20' ) start [2025-01-04 09:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171944', 'tblTempVendorCDR_20' ) end [2025-01-04 09:23:17] Production.INFO: ProcessCDR(1,14171944,1,1,2) [2025-01-04 09:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171944,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171944,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171944', 'tblTempUsageDetail_20' ) start [2025-01-04 09:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171944', 'tblTempUsageDetail_20' ) end [2025-01-04 09:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:23:22] Production.INFO: ==32513== Releasing lock... [2025-01-04 09:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:23:22] Production.INFO: 30 MB #Memory Used# [2025-01-04 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:24:05 [end_date_ymd] => 2025-01-04 09:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:24:05' and `end` < '2025-01-04 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-04 09:24:18] Production.INFO: count ==223 [2025-01-04 09:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:24:05 - End Time 2025-01-04 09:24:05 [2025-01-04 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171949', 'tblTempUsageDetail_20' ) start [2025-01-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171949', 'tblTempUsageDetail_20' ) end [2025-01-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171949', 'tblTempVendorCDR_20' ) start [2025-01-04 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171949', 'tblTempVendorCDR_20' ) end [2025-01-04 09:24:18] Production.INFO: ProcessCDR(1,14171949,1,1,2) [2025-01-04 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171949,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171949,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171949', 'tblTempUsageDetail_20' ) start [2025-01-04 09:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171949', 'tblTempUsageDetail_20' ) end [2025-01-04 09:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:24:21] Production.INFO: ==32614== Releasing lock... [2025-01-04 09:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:24:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 09:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:25:04 [end_date_ymd] => 2025-01-04 09:25:04 [RateCDR] => 1 ) [2025-01-04 09:25:04] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 06:25:04' and `end` < '2025-01-04 09:25:04' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 09:25:17] Production.INFO: count ==226 [2025-01-04 09:25:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:25:04 - End Time 2025-01-04 09:25:04 [2025-01-04 09:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171954', 'tblTempUsageDetail_20' ) start [2025-01-04 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171954', 'tblTempUsageDetail_20' ) end [2025-01-04 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171954', 'tblTempVendorCDR_20' ) start [2025-01-04 09:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171954', 'tblTempVendorCDR_20' ) end [2025-01-04 09:25:17] Production.INFO: ProcessCDR(1,14171954,1,1,2) [2025-01-04 09:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171954', 'tblTempUsageDetail_20' ) start [2025-01-04 09:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171954', 'tblTempUsageDetail_20' ) end [2025-01-04 09:25:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:25:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:25:20] Production.INFO: ==32713== Releasing lock... [2025-01-04 09:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:25:20] Production.INFO: 29.75 MB #Memory Used# [2025-01-04 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:26:05 [end_date_ymd] => 2025-01-04 09:26:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:26:05' and `end` < '2025-01-04 09: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-04 09:26:18] Production.INFO: count ==239 [2025-01-04 09:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:26:05 - End Time 2025-01-04 09:26:05 [2025-01-04 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171959', 'tblTempUsageDetail_20' ) start [2025-01-04 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171959', 'tblTempUsageDetail_20' ) end [2025-01-04 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171959', 'tblTempVendorCDR_20' ) start [2025-01-04 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171959', 'tblTempVendorCDR_20' ) end [2025-01-04 09:26:18] Production.INFO: ProcessCDR(1,14171959,1,1,2) [2025-01-04 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171959', 'tblTempUsageDetail_20' ) start [2025-01-04 09:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171959', 'tblTempUsageDetail_20' ) end [2025-01-04 09:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:26:21] Production.INFO: ==366== Releasing lock... [2025-01-04 09:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:26:21] Production.INFO: 30 MB #Memory Used# [2025-01-04 09:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:27:05 [end_date_ymd] => 2025-01-04 09:27:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:27:05' and `end` < '2025-01-04 09: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-04 09:27:17] Production.INFO: count ==240 [2025-01-04 09:27:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:27:05 - End Time 2025-01-04 09:27:05 [2025-01-04 09:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171964', 'tblTempUsageDetail_20' ) start [2025-01-04 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171964', 'tblTempUsageDetail_20' ) end [2025-01-04 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171964', 'tblTempVendorCDR_20' ) start [2025-01-04 09:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171964', 'tblTempVendorCDR_20' ) end [2025-01-04 09:27:17] Production.INFO: ProcessCDR(1,14171964,1,1,2) [2025-01-04 09:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171964', 'tblTempUsageDetail_20' ) start [2025-01-04 09:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171964', 'tblTempUsageDetail_20' ) end [2025-01-04 09:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:27:21] Production.INFO: ==461== Releasing lock... [2025-01-04 09:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:27:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:28:05 [end_date_ymd] => 2025-01-04 09:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:28:05' and `end` < '2025-01-04 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-04 09:28:18] Production.INFO: count ==248 [2025-01-04 09:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:28:05 - End Time 2025-01-04 09:28:05 [2025-01-04 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171969', 'tblTempUsageDetail_20' ) start [2025-01-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171969', 'tblTempUsageDetail_20' ) end [2025-01-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171969', 'tblTempVendorCDR_20' ) start [2025-01-04 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171969', 'tblTempVendorCDR_20' ) end [2025-01-04 09:28:18] Production.INFO: ProcessCDR(1,14171969,1,1,2) [2025-01-04 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171969', 'tblTempUsageDetail_20' ) start [2025-01-04 09:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171969', 'tblTempUsageDetail_20' ) end [2025-01-04 09:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:28:23] Production.INFO: ==566== Releasing lock... [2025-01-04 09:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:28:23] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 09:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:29:05 [end_date_ymd] => 2025-01-04 09:29:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:29:05' and `end` < '2025-01-04 09: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-04 09:29:18] Production.INFO: count ==248 [2025-01-04 09:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:29:05 - End Time 2025-01-04 09:29:05 [2025-01-04 09:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171974', 'tblTempUsageDetail_20' ) start [2025-01-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171974', 'tblTempUsageDetail_20' ) end [2025-01-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171974', 'tblTempVendorCDR_20' ) start [2025-01-04 09:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171974', 'tblTempVendorCDR_20' ) end [2025-01-04 09:29:18] Production.INFO: ProcessCDR(1,14171974,1,1,2) [2025-01-04 09:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171974', 'tblTempUsageDetail_20' ) start [2025-01-04 09:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171974', 'tblTempUsageDetail_20' ) end [2025-01-04 09:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:29:21] Production.INFO: ==690== Releasing lock... [2025-01-04 09:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:29:21] Production.INFO: 30.25 MB #Memory Used# [2025-01-04 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:30:06 [end_date_ymd] => 2025-01-04 09:30:06 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:30:06' and `end` < '2025-01-04 09: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-04 09:30:19] Production.INFO: count ==268 [2025-01-04 09:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:30:06 - End Time 2025-01-04 09:30:06 [2025-01-04 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171980', 'tblTempUsageDetail_20' ) start [2025-01-04 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171980', 'tblTempUsageDetail_20' ) end [2025-01-04 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171980', 'tblTempVendorCDR_20' ) start [2025-01-04 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171980', 'tblTempVendorCDR_20' ) end [2025-01-04 09:30:19] Production.INFO: ProcessCDR(1,14171980,1,1,2) [2025-01-04 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171980,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171980,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171980', 'tblTempUsageDetail_20' ) start [2025-01-04 09:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171980', 'tblTempUsageDetail_20' ) end [2025-01-04 09:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:30:22] Production.INFO: ==798== Releasing lock... [2025-01-04 09:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:30:22] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 09:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:31:05 [end_date_ymd] => 2025-01-04 09:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:31:05' and `end` < '2025-01-04 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-04 09:31:19] Production.INFO: count ==268 [2025-01-04 09:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:31:05 - End Time 2025-01-04 09:31:05 [2025-01-04 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171985', 'tblTempUsageDetail_20' ) start [2025-01-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171985', 'tblTempUsageDetail_20' ) end [2025-01-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171985', 'tblTempVendorCDR_20' ) start [2025-01-04 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171985', 'tblTempVendorCDR_20' ) end [2025-01-04 09:31:19] Production.INFO: ProcessCDR(1,14171985,1,1,2) [2025-01-04 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171985,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171985,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171985', 'tblTempUsageDetail_20' ) start [2025-01-04 09:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171985', 'tblTempUsageDetail_20' ) end [2025-01-04 09:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:31:23] Production.INFO: ==938== Releasing lock... [2025-01-04 09:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:31:23] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:32:05 [end_date_ymd] => 2025-01-04 09:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:32:05' and `end` < '2025-01-04 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-04 09:32:17] Production.INFO: count ==281 [2025-01-04 09:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:32:05 - End Time 2025-01-04 09:32:05 [2025-01-04 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171990', 'tblTempUsageDetail_20' ) start [2025-01-04 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171990', 'tblTempUsageDetail_20' ) end [2025-01-04 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171990', 'tblTempVendorCDR_20' ) start [2025-01-04 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171990', 'tblTempVendorCDR_20' ) end [2025-01-04 09:32:18] Production.INFO: ProcessCDR(1,14171990,1,1,2) [2025-01-04 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171990,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171990,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171990', 'tblTempUsageDetail_20' ) start [2025-01-04 09:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171990', 'tblTempUsageDetail_20' ) end [2025-01-04 09:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:32:21] Production.INFO: ==1039== Releasing lock... [2025-01-04 09:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:32:21] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:33:05 [end_date_ymd] => 2025-01-04 09:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:33:05' and `end` < '2025-01-04 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-04 09:33:20] Production.INFO: count ==287 [2025-01-04 09:33:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:33:05 - End Time 2025-01-04 09:33:05 [2025-01-04 09:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171995', 'tblTempUsageDetail_20' ) start [2025-01-04 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14171995', 'tblTempUsageDetail_20' ) end [2025-01-04 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171995', 'tblTempVendorCDR_20' ) start [2025-01-04 09:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14171995', 'tblTempVendorCDR_20' ) end [2025-01-04 09:33:20] Production.INFO: ProcessCDR(1,14171995,1,1,2) [2025-01-04 09:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14171995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14171995,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14171995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14171995,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171995', 'tblTempUsageDetail_20' ) start [2025-01-04 09:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14171995', 'tblTempUsageDetail_20' ) end [2025-01-04 09:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:33:23] Production.INFO: ==1144== Releasing lock... [2025-01-04 09:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:33:23] Production.INFO: 30.75 MB #Memory Used# [2025-01-04 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:34:05 [end_date_ymd] => 2025-01-04 09:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:34:05' and `end` < '2025-01-04 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-04 09:34:21] Production.INFO: count ==293 [2025-01-04 09:34:21] Production.ERROR: pbx CDR StartTime 2025-01-04 06:34:05 - End Time 2025-01-04 09:34:05 [2025-01-04 09:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172000', 'tblTempUsageDetail_20' ) start [2025-01-04 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172000', 'tblTempUsageDetail_20' ) end [2025-01-04 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172000', 'tblTempVendorCDR_20' ) start [2025-01-04 09:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172000', 'tblTempVendorCDR_20' ) end [2025-01-04 09:34:21] Production.INFO: ProcessCDR(1,14172000,1,1,2) [2025-01-04 09:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:34:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:34:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172000', 'tblTempUsageDetail_20' ) start [2025-01-04 09:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172000', 'tblTempUsageDetail_20' ) end [2025-01-04 09:34:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:34:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:34:25] Production.INFO: ==1221== Releasing lock... [2025-01-04 09:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:34:25] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 09:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:35:05 [end_date_ymd] => 2025-01-04 09:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:35:05' and `end` < '2025-01-04 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-04 09:35:18] Production.INFO: count ==293 [2025-01-04 09:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:35:05 - End Time 2025-01-04 09:35:05 [2025-01-04 09:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172005', 'tblTempUsageDetail_20' ) start [2025-01-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172005', 'tblTempUsageDetail_20' ) end [2025-01-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172005', 'tblTempVendorCDR_20' ) start [2025-01-04 09:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172005', 'tblTempVendorCDR_20' ) end [2025-01-04 09:35:18] Production.INFO: ProcessCDR(1,14172005,1,1,2) [2025-01-04 09:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172005', 'tblTempUsageDetail_20' ) start [2025-01-04 09:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172005', 'tblTempUsageDetail_20' ) end [2025-01-04 09:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:35:21] Production.INFO: ==1303== Releasing lock... [2025-01-04 09:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:35:21] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 09:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:36:04 [end_date_ymd] => 2025-01-04 09:36:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:36:04' and `end` < '2025-01-04 09: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-04 09:36:17] Production.INFO: count ==293 [2025-01-04 09:36:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:36:04 - End Time 2025-01-04 09:36:04 [2025-01-04 09:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172010', 'tblTempUsageDetail_20' ) start [2025-01-04 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172010', 'tblTempUsageDetail_20' ) end [2025-01-04 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172010', 'tblTempVendorCDR_20' ) start [2025-01-04 09:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172010', 'tblTempVendorCDR_20' ) end [2025-01-04 09:36:17] Production.INFO: ProcessCDR(1,14172010,1,1,2) [2025-01-04 09:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172010', 'tblTempUsageDetail_20' ) start [2025-01-04 09:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172010', 'tblTempUsageDetail_20' ) end [2025-01-04 09:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:36:20] Production.INFO: ==1373== Releasing lock... [2025-01-04 09:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:36:20] Production.INFO: 30.5 MB #Memory Used# [2025-01-04 09:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:37:05 [end_date_ymd] => 2025-01-04 09:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:37:05' and `end` < '2025-01-04 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-04 09:37:18] Production.INFO: count ==299 [2025-01-04 09:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:37:05 - End Time 2025-01-04 09:37:05 [2025-01-04 09:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172015', 'tblTempUsageDetail_20' ) start [2025-01-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172015', 'tblTempUsageDetail_20' ) end [2025-01-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172015', 'tblTempVendorCDR_20' ) start [2025-01-04 09:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172015', 'tblTempVendorCDR_20' ) end [2025-01-04 09:37:18] Production.INFO: ProcessCDR(1,14172015,1,1,2) [2025-01-04 09:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172015', 'tblTempUsageDetail_20' ) start [2025-01-04 09:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172015', 'tblTempUsageDetail_20' ) end [2025-01-04 09:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:37:21] Production.INFO: ==1450== Releasing lock... [2025-01-04 09:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:37:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:38:05 [end_date_ymd] => 2025-01-04 09:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:38:05' and `end` < '2025-01-04 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-04 09:38:18] Production.INFO: count ==299 [2025-01-04 09:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:38:05 - End Time 2025-01-04 09:38:05 [2025-01-04 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172020', 'tblTempUsageDetail_20' ) start [2025-01-04 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172020', 'tblTempUsageDetail_20' ) end [2025-01-04 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172020', 'tblTempVendorCDR_20' ) start [2025-01-04 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172020', 'tblTempVendorCDR_20' ) end [2025-01-04 09:38:18] Production.INFO: ProcessCDR(1,14172020,1,1,2) [2025-01-04 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172020', 'tblTempUsageDetail_20' ) start [2025-01-04 09:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172020', 'tblTempUsageDetail_20' ) end [2025-01-04 09:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:38:21] Production.INFO: ==1554== Releasing lock... [2025-01-04 09:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:38:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 09:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:39:05 [end_date_ymd] => 2025-01-04 09:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:39:05' and `end` < '2025-01-04 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-04 09:39:18] Production.INFO: count ==304 [2025-01-04 09:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:39:05 - End Time 2025-01-04 09:39:05 [2025-01-04 09:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172025', 'tblTempUsageDetail_20' ) start [2025-01-04 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172025', 'tblTempUsageDetail_20' ) end [2025-01-04 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172025', 'tblTempVendorCDR_20' ) start [2025-01-04 09:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172025', 'tblTempVendorCDR_20' ) end [2025-01-04 09:39:18] Production.INFO: ProcessCDR(1,14172025,1,1,2) [2025-01-04 09:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172025', 'tblTempUsageDetail_20' ) start [2025-01-04 09:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172025', 'tblTempUsageDetail_20' ) end [2025-01-04 09:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:39:21] Production.INFO: ==1632== Releasing lock... [2025-01-04 09:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:39:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:40:06 [end_date_ymd] => 2025-01-04 09:40:06 [RateCDR] => 1 ) [2025-01-04 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-04 06:40:06' and `end` < '2025-01-04 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-04 09:40:19] Production.INFO: count ==317 [2025-01-04 09:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:40:06 - End Time 2025-01-04 09:40:06 [2025-01-04 09:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172030', 'tblTempUsageDetail_20' ) start [2025-01-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172030', 'tblTempUsageDetail_20' ) end [2025-01-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172030', 'tblTempVendorCDR_20' ) start [2025-01-04 09:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172030', 'tblTempVendorCDR_20' ) end [2025-01-04 09:40:19] Production.INFO: ProcessCDR(1,14172030,1,1,2) [2025-01-04 09:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172030', 'tblTempUsageDetail_20' ) start [2025-01-04 09:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172030', 'tblTempUsageDetail_20' ) end [2025-01-04 09:40:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:40:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:40:24] Production.INFO: ==1706== Releasing lock... [2025-01-04 09:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:40:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:41:05 [end_date_ymd] => 2025-01-04 09:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:41:05' and `end` < '2025-01-04 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-04 09:41:18] Production.INFO: count ==324 [2025-01-04 09:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:41:05 - End Time 2025-01-04 09:41:05 [2025-01-04 09:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172036', 'tblTempUsageDetail_20' ) start [2025-01-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172036', 'tblTempUsageDetail_20' ) end [2025-01-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172036', 'tblTempVendorCDR_20' ) start [2025-01-04 09:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172036', 'tblTempVendorCDR_20' ) end [2025-01-04 09:41:18] Production.INFO: ProcessCDR(1,14172036,1,1,2) [2025-01-04 09:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172036,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172036,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172036', 'tblTempUsageDetail_20' ) start [2025-01-04 09:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172036', 'tblTempUsageDetail_20' ) end [2025-01-04 09:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:41:21] Production.INFO: ==1779== Releasing lock... [2025-01-04 09:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:41:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:42:04 [end_date_ymd] => 2025-01-04 09:42:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:42:04' and `end` < '2025-01-04 09: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-04 09:42:17] Production.INFO: count ==324 [2025-01-04 09:42:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:42:04 - End Time 2025-01-04 09:42:04 [2025-01-04 09:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172041', 'tblTempUsageDetail_20' ) start [2025-01-04 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172041', 'tblTempUsageDetail_20' ) end [2025-01-04 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172041', 'tblTempVendorCDR_20' ) start [2025-01-04 09:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172041', 'tblTempVendorCDR_20' ) end [2025-01-04 09:42:17] Production.INFO: ProcessCDR(1,14172041,1,1,2) [2025-01-04 09:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172041,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172041,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172041', 'tblTempUsageDetail_20' ) start [2025-01-04 09:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172041', 'tblTempUsageDetail_20' ) end [2025-01-04 09:42:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:42:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:42:20] Production.INFO: ==1855== Releasing lock... [2025-01-04 09:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:42:20] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:43:05 [end_date_ymd] => 2025-01-04 09:43:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:43:05' and `end` < '2025-01-04 09: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-04 09:43:18] Production.INFO: count ==324 [2025-01-04 09:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:43:05 - End Time 2025-01-04 09:43:05 [2025-01-04 09:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172046', 'tblTempUsageDetail_20' ) start [2025-01-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172046', 'tblTempUsageDetail_20' ) end [2025-01-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172046', 'tblTempVendorCDR_20' ) start [2025-01-04 09:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172046', 'tblTempVendorCDR_20' ) end [2025-01-04 09:43:18] Production.INFO: ProcessCDR(1,14172046,1,1,2) [2025-01-04 09:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172046,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172046,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172046', 'tblTempUsageDetail_20' ) start [2025-01-04 09:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172046', 'tblTempUsageDetail_20' ) end [2025-01-04 09:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:43:22] Production.INFO: ==1927== Releasing lock... [2025-01-04 09:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:43:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:44:05 [end_date_ymd] => 2025-01-04 09:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:44:05' and `end` < '2025-01-04 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-04 09:44:17] Production.INFO: count ==324 [2025-01-04 09:44:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:44:05 - End Time 2025-01-04 09:44:05 [2025-01-04 09:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172051', 'tblTempUsageDetail_20' ) start [2025-01-04 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172051', 'tblTempUsageDetail_20' ) end [2025-01-04 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172051', 'tblTempVendorCDR_20' ) start [2025-01-04 09:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172051', 'tblTempVendorCDR_20' ) end [2025-01-04 09:44:17] Production.INFO: ProcessCDR(1,14172051,1,1,2) [2025-01-04 09:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172051', 'tblTempUsageDetail_20' ) start [2025-01-04 09:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172051', 'tblTempUsageDetail_20' ) end [2025-01-04 09:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:44:21] Production.INFO: ==1998== Releasing lock... [2025-01-04 09:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:44:21] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:45:05 [end_date_ymd] => 2025-01-04 09:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:45:05' and `end` < '2025-01-04 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-04 09:45:19] Production.INFO: count ==324 [2025-01-04 09:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:45:05 - End Time 2025-01-04 09:45:05 [2025-01-04 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172056', 'tblTempUsageDetail_20' ) start [2025-01-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172056', 'tblTempUsageDetail_20' ) end [2025-01-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172056', 'tblTempVendorCDR_20' ) start [2025-01-04 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172056', 'tblTempVendorCDR_20' ) end [2025-01-04 09:45:19] Production.INFO: ProcessCDR(1,14172056,1,1,2) [2025-01-04 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172056', 'tblTempUsageDetail_20' ) start [2025-01-04 09:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172056', 'tblTempUsageDetail_20' ) end [2025-01-04 09:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:45:22] Production.INFO: ==2067== Releasing lock... [2025-01-04 09:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:45:22] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:46:05 [end_date_ymd] => 2025-01-04 09:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:46:05' and `end` < '2025-01-04 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-04 09:46:20] Production.INFO: count ==324 [2025-01-04 09:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:46:05 - End Time 2025-01-04 09:46:05 [2025-01-04 09:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172061', 'tblTempUsageDetail_20' ) start [2025-01-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172061', 'tblTempUsageDetail_20' ) end [2025-01-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172061', 'tblTempVendorCDR_20' ) start [2025-01-04 09:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172061', 'tblTempVendorCDR_20' ) end [2025-01-04 09:46:20] Production.INFO: ProcessCDR(1,14172061,1,1,2) [2025-01-04 09:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172061', 'tblTempUsageDetail_20' ) start [2025-01-04 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172061', 'tblTempUsageDetail_20' ) end [2025-01-04 09:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:46:24] Production.INFO: ==2140== Releasing lock... [2025-01-04 09:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:46:24] Production.INFO: 31 MB #Memory Used# [2025-01-04 09:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:47:05 [end_date_ymd] => 2025-01-04 09:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:47:05' and `end` < '2025-01-04 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-04 09:47:18] Production.INFO: count ==345 [2025-01-04 09:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:47:05 - End Time 2025-01-04 09:47:05 [2025-01-04 09:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172066', 'tblTempUsageDetail_20' ) start [2025-01-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172066', 'tblTempUsageDetail_20' ) end [2025-01-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172066', 'tblTempVendorCDR_20' ) start [2025-01-04 09:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172066', 'tblTempVendorCDR_20' ) end [2025-01-04 09:47:18] Production.INFO: ProcessCDR(1,14172066,1,1,2) [2025-01-04 09:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172066', 'tblTempUsageDetail_20' ) start [2025-01-04 09:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172066', 'tblTempUsageDetail_20' ) end [2025-01-04 09:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:47:21] Production.INFO: ==2276== Releasing lock... [2025-01-04 09:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-01-04 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:48:05 [end_date_ymd] => 2025-01-04 09:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:48:05' and `end` < '2025-01-04 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-04 09:48:18] Production.INFO: count ==361 [2025-01-04 09:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:48:05 - End Time 2025-01-04 09:48:05 [2025-01-04 09:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172071', 'tblTempUsageDetail_20' ) start [2025-01-04 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172071', 'tblTempUsageDetail_20' ) end [2025-01-04 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172071', 'tblTempVendorCDR_20' ) start [2025-01-04 09:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172071', 'tblTempVendorCDR_20' ) end [2025-01-04 09:48:18] Production.INFO: ProcessCDR(1,14172071,1,1,2) [2025-01-04 09:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172071', 'tblTempUsageDetail_20' ) start [2025-01-04 09:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172071', 'tblTempUsageDetail_20' ) end [2025-01-04 09:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:48:21] Production.INFO: ==2350== Releasing lock... [2025-01-04 09:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-01-04 09:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:49:05 [end_date_ymd] => 2025-01-04 09:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:49:05' and `end` < '2025-01-04 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-04 09:49:20] Production.INFO: count ==372 [2025-01-04 09:49:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:49:05 - End Time 2025-01-04 09:49:05 [2025-01-04 09:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172076', 'tblTempUsageDetail_20' ) start [2025-01-04 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172076', 'tblTempUsageDetail_20' ) end [2025-01-04 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172076', 'tblTempVendorCDR_20' ) start [2025-01-04 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172076', 'tblTempVendorCDR_20' ) end [2025-01-04 09:49:20] Production.INFO: ProcessCDR(1,14172076,1,1,2) [2025-01-04 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172076', 'tblTempUsageDetail_20' ) start [2025-01-04 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172076', 'tblTempUsageDetail_20' ) end [2025-01-04 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:49:25] Production.INFO: ==2419== Releasing lock... [2025-01-04 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:49:25] Production.INFO: 31.5 MB #Memory Used# [2025-01-04 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:50:06 [end_date_ymd] => 2025-01-04 09:50:06 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:50:06' and `end` < '2025-01-04 09: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-04 09:50:19] Production.INFO: count ==389 [2025-01-04 09:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:50:06 - End Time 2025-01-04 09:50:06 [2025-01-04 09:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172082', 'tblTempUsageDetail_20' ) start [2025-01-04 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172082', 'tblTempUsageDetail_20' ) end [2025-01-04 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172082', 'tblTempVendorCDR_20' ) start [2025-01-04 09:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172082', 'tblTempVendorCDR_20' ) end [2025-01-04 09:50:19] Production.INFO: ProcessCDR(1,14172082,1,1,2) [2025-01-04 09:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172082,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172082,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172082', 'tblTempUsageDetail_20' ) start [2025-01-04 09:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172082', 'tblTempUsageDetail_20' ) end [2025-01-04 09:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:50:22] Production.INFO: ==2492== Releasing lock... [2025-01-04 09:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-04 09:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:51:04 [end_date_ymd] => 2025-01-04 09:51:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:51:04' and `end` < '2025-01-04 09: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-04 09:51:18] Production.INFO: count ==407 [2025-01-04 09:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:51:04 - End Time 2025-01-04 09:51:04 [2025-01-04 09:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172087', 'tblTempUsageDetail_20' ) start [2025-01-04 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172087', 'tblTempUsageDetail_20' ) end [2025-01-04 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172087', 'tblTempVendorCDR_20' ) start [2025-01-04 09:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172087', 'tblTempVendorCDR_20' ) end [2025-01-04 09:51:18] Production.INFO: ProcessCDR(1,14172087,1,1,2) [2025-01-04 09:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172087,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172087,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172087', 'tblTempUsageDetail_20' ) start [2025-01-04 09:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172087', 'tblTempUsageDetail_20' ) end [2025-01-04 09:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:51:22] Production.INFO: ==2564== Releasing lock... [2025-01-04 09:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:51:22] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:52:05 [end_date_ymd] => 2025-01-04 09:52:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:52:05' and `end` < '2025-01-04 09: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-04 09:52:21] Production.INFO: count ==407 [2025-01-04 09:52:21] Production.ERROR: pbx CDR StartTime 2025-01-04 06:52:05 - End Time 2025-01-04 09:52:05 [2025-01-04 09:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172092', 'tblTempUsageDetail_20' ) start [2025-01-04 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172092', 'tblTempUsageDetail_20' ) end [2025-01-04 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172092', 'tblTempVendorCDR_20' ) start [2025-01-04 09:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172092', 'tblTempVendorCDR_20' ) end [2025-01-04 09:52:21] Production.INFO: ProcessCDR(1,14172092,1,1,2) [2025-01-04 09:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172092,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172092,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172092', 'tblTempUsageDetail_20' ) start [2025-01-04 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172092', 'tblTempUsageDetail_20' ) end [2025-01-04 09:52:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:52:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:52:24] Production.INFO: ==2635== Releasing lock... [2025-01-04 09:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:52:24] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:53:04 [end_date_ymd] => 2025-01-04 09:53:04 [RateCDR] => 1 ) [2025-01-04 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-04 06:53:04' and `end` < '2025-01-04 09: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-04 09:53:18] Production.INFO: count ==407 [2025-01-04 09:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:53:04 - End Time 2025-01-04 09:53:04 [2025-01-04 09:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172097', 'tblTempUsageDetail_20' ) start [2025-01-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172097', 'tblTempUsageDetail_20' ) end [2025-01-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172097', 'tblTempVendorCDR_20' ) start [2025-01-04 09:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172097', 'tblTempVendorCDR_20' ) end [2025-01-04 09:53:18] Production.INFO: ProcessCDR(1,14172097,1,1,2) [2025-01-04 09:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172097,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172097,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172097', 'tblTempUsageDetail_20' ) start [2025-01-04 09:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172097', 'tblTempUsageDetail_20' ) end [2025-01-04 09:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:53:21] Production.INFO: ==2707== Releasing lock... [2025-01-04 09:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:53:21] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:54:05 [end_date_ymd] => 2025-01-04 09:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:54:05' and `end` < '2025-01-04 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-04 09:54:18] Production.INFO: count ==413 [2025-01-04 09:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:54:05 - End Time 2025-01-04 09:54:05 [2025-01-04 09:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172102', 'tblTempUsageDetail_20' ) start [2025-01-04 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172102', 'tblTempUsageDetail_20' ) end [2025-01-04 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172102', 'tblTempVendorCDR_20' ) start [2025-01-04 09:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172102', 'tblTempVendorCDR_20' ) end [2025-01-04 09:54:18] Production.INFO: ProcessCDR(1,14172102,1,1,2) [2025-01-04 09:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172102,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172102,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172102', 'tblTempUsageDetail_20' ) start [2025-01-04 09:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172102', 'tblTempUsageDetail_20' ) end [2025-01-04 09:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:54:22] Production.INFO: ==2780== Releasing lock... [2025-01-04 09:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:54:22] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:55:05 [end_date_ymd] => 2025-01-04 09:55:05 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:55:05' and `end` < '2025-01-04 09: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-04 09:55:17] Production.INFO: count ==425 [2025-01-04 09:55:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:55:05 - End Time 2025-01-04 09:55:05 [2025-01-04 09:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172107', 'tblTempUsageDetail_20' ) start [2025-01-04 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172107', 'tblTempUsageDetail_20' ) end [2025-01-04 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172107', 'tblTempVendorCDR_20' ) start [2025-01-04 09:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172107', 'tblTempVendorCDR_20' ) end [2025-01-04 09:55:17] Production.INFO: ProcessCDR(1,14172107,1,1,2) [2025-01-04 09:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172107', 'tblTempUsageDetail_20' ) start [2025-01-04 09:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172107', 'tblTempUsageDetail_20' ) end [2025-01-04 09:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:55:21] Production.INFO: ==2851== Releasing lock... [2025-01-04 09:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:55:21] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:56:05 [end_date_ymd] => 2025-01-04 09:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:56:05' and `end` < '2025-01-04 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-04 09:56:18] Production.INFO: count ==454 [2025-01-04 09:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 06:56:05 - End Time 2025-01-04 09:56:05 [2025-01-04 09:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172112', 'tblTempUsageDetail_20' ) start [2025-01-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172112', 'tblTempUsageDetail_20' ) end [2025-01-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172112', 'tblTempVendorCDR_20' ) start [2025-01-04 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172112', 'tblTempVendorCDR_20' ) end [2025-01-04 09:56:19] Production.INFO: ProcessCDR(1,14172112,1,1,2) [2025-01-04 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172112', 'tblTempUsageDetail_20' ) start [2025-01-04 09:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172112', 'tblTempUsageDetail_20' ) end [2025-01-04 09:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:56:22] Production.INFO: ==2922== Releasing lock... [2025-01-04 09:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:56:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-04 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:57:06 [end_date_ymd] => 2025-01-04 09:57:06 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:57:06' and `end` < '2025-01-04 09: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-04 09:57:20] Production.INFO: count ==465 [2025-01-04 09:57:20] Production.ERROR: pbx CDR StartTime 2025-01-04 06:57:06 - End Time 2025-01-04 09:57:06 [2025-01-04 09:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172117', 'tblTempUsageDetail_20' ) start [2025-01-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172117', 'tblTempUsageDetail_20' ) end [2025-01-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172117', 'tblTempVendorCDR_20' ) start [2025-01-04 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172117', 'tblTempVendorCDR_20' ) end [2025-01-04 09:57:20] Production.INFO: ProcessCDR(1,14172117,1,1,2) [2025-01-04 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172117', 'tblTempUsageDetail_20' ) start [2025-01-04 09:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172117', 'tblTempUsageDetail_20' ) end [2025-01-04 09:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:57:23] Production.INFO: ==2993== Releasing lock... [2025-01-04 09:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:57:23] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:58:05 [end_date_ymd] => 2025-01-04 09:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 06:58:05' and `end` < '2025-01-04 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-04 09:58:19] Production.INFO: count ==465 [2025-01-04 09:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 06:58:05 - End Time 2025-01-04 09:58:05 [2025-01-04 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172122', 'tblTempUsageDetail_20' ) start [2025-01-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172122', 'tblTempUsageDetail_20' ) end [2025-01-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172122', 'tblTempVendorCDR_20' ) start [2025-01-04 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172122', 'tblTempVendorCDR_20' ) end [2025-01-04 09:58:19] Production.INFO: ProcessCDR(1,14172122,1,1,2) [2025-01-04 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172122', 'tblTempUsageDetail_20' ) start [2025-01-04 09:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172122', 'tblTempUsageDetail_20' ) end [2025-01-04 09:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:58:23] Production.INFO: ==3064== Releasing lock... [2025-01-04 09:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:58:23] Production.INFO: 32 MB #Memory Used# [2025-01-04 09:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 06:59:04 [end_date_ymd] => 2025-01-04 09:59:04 [RateCDR] => 1 ) [2025-01-04 09: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-04 06:59:04' and `end` < '2025-01-04 09: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-04 09:59:17] Production.INFO: count ==472 [2025-01-04 09:59:17] Production.ERROR: pbx CDR StartTime 2025-01-04 06:59:04 - End Time 2025-01-04 09:59:04 [2025-01-04 09:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172127', 'tblTempUsageDetail_20' ) start [2025-01-04 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172127', 'tblTempUsageDetail_20' ) end [2025-01-04 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172127', 'tblTempVendorCDR_20' ) start [2025-01-04 09:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172127', 'tblTempVendorCDR_20' ) end [2025-01-04 09:59:17] Production.INFO: ProcessCDR(1,14172127,1,1,2) [2025-01-04 09:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 09:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172127', 'tblTempUsageDetail_20' ) start [2025-01-04 09:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172127', 'tblTempUsageDetail_20' ) end [2025-01-04 09:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 09:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 09:59:22] Production.INFO: ==3140== Releasing lock... [2025-01-04 09:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 09:59:22] Production.INFO: 31.75 MB #Memory Used# [2025-01-04 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:00:06 [end_date_ymd] => 2025-01-04 10:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 07:00:06' and `end` < '2025-01-04 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-04 10:00:18] Production.INFO: count ==480 [2025-01-04 10:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:00:06 - End Time 2025-01-04 10:00:06 [2025-01-04 10:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172133', 'tblTempUsageDetail_20' ) start [2025-01-04 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172133', 'tblTempUsageDetail_20' ) end [2025-01-04 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172133', 'tblTempVendorCDR_20' ) start [2025-01-04 10:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172133', 'tblTempVendorCDR_20' ) end [2025-01-04 10:00:19] Production.INFO: ProcessCDR(1,14172133,1,1,2) [2025-01-04 10:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172133,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172133,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172133', 'tblTempUsageDetail_20' ) start [2025-01-04 10:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172133', 'tblTempUsageDetail_20' ) end [2025-01-04 10:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:00:22] Production.INFO: ==3216== Releasing lock... [2025-01-04 10:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:00:22] Production.INFO: 32.5 MB #Memory Used# [2025-01-04 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:01:05 [end_date_ymd] => 2025-01-04 10:01:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:01:05' and `end` < '2025-01-04 10: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-04 10:01:21] Production.INFO: count ==492 [2025-01-04 10:01:21] Production.ERROR: pbx CDR StartTime 2025-01-04 07:01:05 - End Time 2025-01-04 10:01:05 [2025-01-04 10:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172138', 'tblTempUsageDetail_20' ) start [2025-01-04 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172138', 'tblTempUsageDetail_20' ) end [2025-01-04 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172138', 'tblTempVendorCDR_20' ) start [2025-01-04 10:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172138', 'tblTempVendorCDR_20' ) end [2025-01-04 10:01:21] Production.INFO: ProcessCDR(1,14172138,1,1,2) [2025-01-04 10:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172138,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172138,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172138', 'tblTempUsageDetail_20' ) start [2025-01-04 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172138', 'tblTempUsageDetail_20' ) end [2025-01-04 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:01:24] Production.INFO: ==3301== Releasing lock... [2025-01-04 10:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:01:24] Production.INFO: 32.25 MB #Memory Used# [2025-01-04 10:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:02:05 [end_date_ymd] => 2025-01-04 10:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:02:05' and `end` < '2025-01-04 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-04 10:02:18] Production.INFO: count ==499 [2025-01-04 10:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:02:05 - End Time 2025-01-04 10:02:05 [2025-01-04 10:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172143', 'tblTempUsageDetail_20' ) start [2025-01-04 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172143', 'tblTempUsageDetail_20' ) end [2025-01-04 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172143', 'tblTempVendorCDR_20' ) start [2025-01-04 10:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172143', 'tblTempVendorCDR_20' ) end [2025-01-04 10:02:18] Production.INFO: ProcessCDR(1,14172143,1,1,2) [2025-01-04 10:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172143,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172143,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172143', 'tblTempUsageDetail_20' ) start [2025-01-04 10:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172143', 'tblTempUsageDetail_20' ) end [2025-01-04 10:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:02:23] Production.INFO: ==3371== Releasing lock... [2025-01-04 10:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:02:23] Production.INFO: 32.25 MB #Memory Used# [2025-01-04 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:03:05 [end_date_ymd] => 2025-01-04 10:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:03:05' and `end` < '2025-01-04 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-04 10:03:18] Production.INFO: count ==510 [2025-01-04 10:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:03:05 - End Time 2025-01-04 10:03:05 [2025-01-04 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172148', 'tblTempUsageDetail_20' ) start [2025-01-04 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172148', 'tblTempUsageDetail_20' ) end [2025-01-04 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172148', 'tblTempVendorCDR_20' ) start [2025-01-04 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172148', 'tblTempVendorCDR_20' ) end [2025-01-04 10:03:18] Production.INFO: ProcessCDR(1,14172148,1,1,2) [2025-01-04 10:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172148,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172148,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172148', 'tblTempUsageDetail_20' ) start [2025-01-04 10:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172148', 'tblTempUsageDetail_20' ) end [2025-01-04 10:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:03:21] Production.INFO: ==3481== Releasing lock... [2025-01-04 10:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:03:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:04:05 [end_date_ymd] => 2025-01-04 10:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:04:05' and `end` < '2025-01-04 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-04 10:04:20] Production.INFO: count ==510 [2025-01-04 10:04:20] Production.ERROR: pbx CDR StartTime 2025-01-04 07:04:05 - End Time 2025-01-04 10:04:05 [2025-01-04 10:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172153', 'tblTempUsageDetail_20' ) start [2025-01-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172153', 'tblTempUsageDetail_20' ) end [2025-01-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172153', 'tblTempVendorCDR_20' ) start [2025-01-04 10:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172153', 'tblTempVendorCDR_20' ) end [2025-01-04 10:04:20] Production.INFO: ProcessCDR(1,14172153,1,1,2) [2025-01-04 10:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172153,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172153,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172153', 'tblTempUsageDetail_20' ) start [2025-01-04 10:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172153', 'tblTempUsageDetail_20' ) end [2025-01-04 10:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:04:23] Production.INFO: ==3554== Releasing lock... [2025-01-04 10:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:04:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:05:05 [end_date_ymd] => 2025-01-04 10:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:05:05' and `end` < '2025-01-04 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-04 10:05:18] Production.INFO: count ==517 [2025-01-04 10:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:05:05 - End Time 2025-01-04 10:05:05 [2025-01-04 10:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172158', 'tblTempUsageDetail_20' ) start [2025-01-04 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172158', 'tblTempUsageDetail_20' ) end [2025-01-04 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172158', 'tblTempVendorCDR_20' ) start [2025-01-04 10:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172158', 'tblTempVendorCDR_20' ) end [2025-01-04 10:05:18] Production.INFO: ProcessCDR(1,14172158,1,1,2) [2025-01-04 10:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172158', 'tblTempUsageDetail_20' ) start [2025-01-04 10:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172158', 'tblTempUsageDetail_20' ) end [2025-01-04 10:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:05:22] Production.INFO: ==3625== Releasing lock... [2025-01-04 10:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:05:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:06:05 [end_date_ymd] => 2025-01-04 10:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:06:05' and `end` < '2025-01-04 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-04 10:06:17] Production.INFO: count ==526 [2025-01-04 10:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:06:05 - End Time 2025-01-04 10:06:05 [2025-01-04 10:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172163', 'tblTempUsageDetail_20' ) start [2025-01-04 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172163', 'tblTempUsageDetail_20' ) end [2025-01-04 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172163', 'tblTempVendorCDR_20' ) start [2025-01-04 10:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172163', 'tblTempVendorCDR_20' ) end [2025-01-04 10:06:18] Production.INFO: ProcessCDR(1,14172163,1,1,2) [2025-01-04 10:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172163', 'tblTempUsageDetail_20' ) start [2025-01-04 10:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172163', 'tblTempUsageDetail_20' ) end [2025-01-04 10:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:06:21] Production.INFO: ==3696== Releasing lock... [2025-01-04 10:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:06:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:07:05 [end_date_ymd] => 2025-01-04 10:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:07:05' and `end` < '2025-01-04 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-04 10:07:19] Production.INFO: count ==526 [2025-01-04 10:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:07:05 - End Time 2025-01-04 10:07:05 [2025-01-04 10:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172168', 'tblTempUsageDetail_20' ) start [2025-01-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172168', 'tblTempUsageDetail_20' ) end [2025-01-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172168', 'tblTempVendorCDR_20' ) start [2025-01-04 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172168', 'tblTempVendorCDR_20' ) end [2025-01-04 10:07:20] Production.INFO: ProcessCDR(1,14172168,1,1,2) [2025-01-04 10:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172168', 'tblTempUsageDetail_20' ) start [2025-01-04 10:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172168', 'tblTempUsageDetail_20' ) end [2025-01-04 10:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:07:23] Production.INFO: ==3768== Releasing lock... [2025-01-04 10:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:07:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:08:05 [end_date_ymd] => 2025-01-04 10:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:08:05' and `end` < '2025-01-04 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-04 10:08:18] Production.INFO: count ==528 [2025-01-04 10:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:08:05 - End Time 2025-01-04 10:08:05 [2025-01-04 10:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172173', 'tblTempUsageDetail_20' ) start [2025-01-04 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172173', 'tblTempUsageDetail_20' ) end [2025-01-04 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172173', 'tblTempVendorCDR_20' ) start [2025-01-04 10:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172173', 'tblTempVendorCDR_20' ) end [2025-01-04 10:08:18] Production.INFO: ProcessCDR(1,14172173,1,1,2) [2025-01-04 10:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172173', 'tblTempUsageDetail_20' ) start [2025-01-04 10:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172173', 'tblTempUsageDetail_20' ) end [2025-01-04 10:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:08:22] Production.INFO: ==3844== Releasing lock... [2025-01-04 10:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:08:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:09:05 [end_date_ymd] => 2025-01-04 10:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:09:05' and `end` < '2025-01-04 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-04 10:09:19] Production.INFO: count ==529 [2025-01-04 10:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:09:05 - End Time 2025-01-04 10:09:05 [2025-01-04 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172178', 'tblTempUsageDetail_20' ) start [2025-01-04 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172178', 'tblTempUsageDetail_20' ) end [2025-01-04 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172178', 'tblTempVendorCDR_20' ) start [2025-01-04 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172178', 'tblTempVendorCDR_20' ) end [2025-01-04 10:09:19] Production.INFO: ProcessCDR(1,14172178,1,1,2) [2025-01-04 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172178', 'tblTempUsageDetail_20' ) start [2025-01-04 10:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172178', 'tblTempUsageDetail_20' ) end [2025-01-04 10:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:09:22] Production.INFO: ==3917== Releasing lock... [2025-01-04 10:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:09:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:10:05 [end_date_ymd] => 2025-01-04 10:10:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:10:05' and `end` < '2025-01-04 10: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-04 10:10:18] Production.INFO: count ==535 [2025-01-04 10:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:10:05 - End Time 2025-01-04 10:10:05 [2025-01-04 10:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172184', 'tblTempUsageDetail_20' ) start [2025-01-04 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172184', 'tblTempUsageDetail_20' ) end [2025-01-04 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172184', 'tblTempVendorCDR_20' ) start [2025-01-04 10:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172184', 'tblTempVendorCDR_20' ) end [2025-01-04 10:10:18] Production.INFO: ProcessCDR(1,14172184,1,1,2) [2025-01-04 10:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172184,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172184,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172184', 'tblTempUsageDetail_20' ) start [2025-01-04 10:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172184', 'tblTempUsageDetail_20' ) end [2025-01-04 10:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:10:21] Production.INFO: ==3989== Releasing lock... [2025-01-04 10:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:10:21] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:11:05 [end_date_ymd] => 2025-01-04 10:11:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:11:05' and `end` < '2025-01-04 10: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-04 10:11:18] Production.INFO: count ==544 [2025-01-04 10:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:11:05 - End Time 2025-01-04 10:11:05 [2025-01-04 10:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172189', 'tblTempUsageDetail_20' ) start [2025-01-04 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172189', 'tblTempUsageDetail_20' ) end [2025-01-04 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172189', 'tblTempVendorCDR_20' ) start [2025-01-04 10:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172189', 'tblTempVendorCDR_20' ) end [2025-01-04 10:11:18] Production.INFO: ProcessCDR(1,14172189,1,1,2) [2025-01-04 10:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172189,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172189,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172189', 'tblTempUsageDetail_20' ) start [2025-01-04 10:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172189', 'tblTempUsageDetail_20' ) end [2025-01-04 10:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:11:22] Production.INFO: ==4065== Releasing lock... [2025-01-04 10:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:11:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:12:05 [end_date_ymd] => 2025-01-04 10:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:12:05' and `end` < '2025-01-04 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-04 10:12:19] Production.INFO: count ==551 [2025-01-04 10:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:12:05 - End Time 2025-01-04 10:12:05 [2025-01-04 10:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172194', 'tblTempUsageDetail_20' ) start [2025-01-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172194', 'tblTempUsageDetail_20' ) end [2025-01-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172194', 'tblTempVendorCDR_20' ) start [2025-01-04 10:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172194', 'tblTempVendorCDR_20' ) end [2025-01-04 10:12:19] Production.INFO: ProcessCDR(1,14172194,1,1,2) [2025-01-04 10:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172194,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172194,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172194', 'tblTempUsageDetail_20' ) start [2025-01-04 10:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172194', 'tblTempUsageDetail_20' ) end [2025-01-04 10:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:12:23] Production.INFO: ==4140== Releasing lock... [2025-01-04 10:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:12:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:13:05 [end_date_ymd] => 2025-01-04 10:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:13:05' and `end` < '2025-01-04 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-04 10:13:19] Production.INFO: count ==552 [2025-01-04 10:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:13:05 - End Time 2025-01-04 10:13:05 [2025-01-04 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172199', 'tblTempUsageDetail_20' ) start [2025-01-04 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172199', 'tblTempUsageDetail_20' ) end [2025-01-04 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172199', 'tblTempVendorCDR_20' ) start [2025-01-04 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172199', 'tblTempVendorCDR_20' ) end [2025-01-04 10:13:19] Production.INFO: ProcessCDR(1,14172199,1,1,2) [2025-01-04 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172199,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172199,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172199', 'tblTempUsageDetail_20' ) start [2025-01-04 10:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172199', 'tblTempUsageDetail_20' ) end [2025-01-04 10:13:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:13:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:13:24] Production.INFO: ==4211== Releasing lock... [2025-01-04 10:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:13:24] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:14:06 [end_date_ymd] => 2025-01-04 10:14:06 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:14:06' and `end` < '2025-01-04 10: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-04 10:14:18] Production.INFO: count ==554 [2025-01-04 10:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:14:06 - End Time 2025-01-04 10:14:06 [2025-01-04 10:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172204', 'tblTempUsageDetail_20' ) start [2025-01-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172204', 'tblTempUsageDetail_20' ) end [2025-01-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172204', 'tblTempVendorCDR_20' ) start [2025-01-04 10:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172204', 'tblTempVendorCDR_20' ) end [2025-01-04 10:14:19] Production.INFO: ProcessCDR(1,14172204,1,1,2) [2025-01-04 10:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172204', 'tblTempUsageDetail_20' ) start [2025-01-04 10:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172204', 'tblTempUsageDetail_20' ) end [2025-01-04 10:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:14:23] Production.INFO: ==4282== Releasing lock... [2025-01-04 10:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:14:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:15:05 [end_date_ymd] => 2025-01-04 10:15:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:15:05' and `end` < '2025-01-04 10: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-04 10:15:19] Production.INFO: count ==557 [2025-01-04 10:15:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:15:05 - End Time 2025-01-04 10:15:05 [2025-01-04 10:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172209', 'tblTempUsageDetail_20' ) start [2025-01-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172209', 'tblTempUsageDetail_20' ) end [2025-01-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172209', 'tblTempVendorCDR_20' ) start [2025-01-04 10:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172209', 'tblTempVendorCDR_20' ) end [2025-01-04 10:15:19] Production.INFO: ProcessCDR(1,14172209,1,1,2) [2025-01-04 10:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172209', 'tblTempUsageDetail_20' ) start [2025-01-04 10:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172209', 'tblTempUsageDetail_20' ) end [2025-01-04 10:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:15:23] Production.INFO: ==4383== Releasing lock... [2025-01-04 10:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:15:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:16:06 [end_date_ymd] => 2025-01-04 10:16:06 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:16:06' and `end` < '2025-01-04 10: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-04 10:16:20] Production.INFO: count ==559 [2025-01-04 10:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 07:16:06 - End Time 2025-01-04 10:16:06 [2025-01-04 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172214', 'tblTempUsageDetail_20' ) start [2025-01-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172214', 'tblTempUsageDetail_20' ) end [2025-01-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172214', 'tblTempVendorCDR_20' ) start [2025-01-04 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172214', 'tblTempVendorCDR_20' ) end [2025-01-04 10:16:20] Production.INFO: ProcessCDR(1,14172214,1,1,2) [2025-01-04 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172214', 'tblTempUsageDetail_20' ) start [2025-01-04 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172214', 'tblTempUsageDetail_20' ) end [2025-01-04 10:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:16:25] Production.INFO: ==4500== Releasing lock... [2025-01-04 10:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:16:25] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:17:05 [end_date_ymd] => 2025-01-04 10:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:17:05' and `end` < '2025-01-04 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-04 10:17:18] Production.INFO: count ==563 [2025-01-04 10:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:17:05 - End Time 2025-01-04 10:17:05 [2025-01-04 10:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172219', 'tblTempUsageDetail_20' ) start [2025-01-04 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172219', 'tblTempUsageDetail_20' ) end [2025-01-04 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172219', 'tblTempVendorCDR_20' ) start [2025-01-04 10:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172219', 'tblTempVendorCDR_20' ) end [2025-01-04 10:17:18] Production.INFO: ProcessCDR(1,14172219,1,1,2) [2025-01-04 10:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172219', 'tblTempUsageDetail_20' ) start [2025-01-04 10:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172219', 'tblTempUsageDetail_20' ) end [2025-01-04 10:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:17:23] Production.INFO: ==4572== Releasing lock... [2025-01-04 10:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:17:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:18:06 [end_date_ymd] => 2025-01-04 10:18:06 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:18:06' and `end` < '2025-01-04 10: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-04 10:18:18] Production.INFO: count ==565 [2025-01-04 10:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:18:06 - End Time 2025-01-04 10:18:06 [2025-01-04 10:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172224', 'tblTempUsageDetail_20' ) start [2025-01-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172224', 'tblTempUsageDetail_20' ) end [2025-01-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172224', 'tblTempVendorCDR_20' ) start [2025-01-04 10:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172224', 'tblTempVendorCDR_20' ) end [2025-01-04 10:18:19] Production.INFO: ProcessCDR(1,14172224,1,1,2) [2025-01-04 10:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172224', 'tblTempUsageDetail_20' ) start [2025-01-04 10:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172224', 'tblTempUsageDetail_20' ) end [2025-01-04 10:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:18:23] Production.INFO: ==4690== Releasing lock... [2025-01-04 10:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:18:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:19:05 [end_date_ymd] => 2025-01-04 10:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:19:05' and `end` < '2025-01-04 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-04 10:19:20] Production.INFO: count ==568 [2025-01-04 10:19:20] Production.ERROR: pbx CDR StartTime 2025-01-04 07:19:05 - End Time 2025-01-04 10:19:05 [2025-01-04 10:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172229', 'tblTempUsageDetail_20' ) start [2025-01-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172229', 'tblTempUsageDetail_20' ) end [2025-01-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172229', 'tblTempVendorCDR_20' ) start [2025-01-04 10:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172229', 'tblTempVendorCDR_20' ) end [2025-01-04 10:19:20] Production.INFO: ProcessCDR(1,14172229,1,1,2) [2025-01-04 10:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172229', 'tblTempUsageDetail_20' ) start [2025-01-04 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172229', 'tblTempUsageDetail_20' ) end [2025-01-04 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:19:25] Production.INFO: ==4760== Releasing lock... [2025-01-04 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:19:25] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:20:06 [end_date_ymd] => 2025-01-04 10:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 07:20:06' and `end` < '2025-01-04 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-04 10:20:19] Production.INFO: count ==576 [2025-01-04 10:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:20:06 - End Time 2025-01-04 10:20:06 [2025-01-04 10:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172234', 'tblTempUsageDetail_20' ) start [2025-01-04 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172234', 'tblTempUsageDetail_20' ) end [2025-01-04 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172234', 'tblTempVendorCDR_20' ) start [2025-01-04 10:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172234', 'tblTempVendorCDR_20' ) end [2025-01-04 10:20:19] Production.INFO: ProcessCDR(1,14172234,1,1,2) [2025-01-04 10:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172234', 'tblTempUsageDetail_20' ) start [2025-01-04 10:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172234', 'tblTempUsageDetail_20' ) end [2025-01-04 10:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:20:22] Production.INFO: ==4835== Releasing lock... [2025-01-04 10:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:20:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:21:05 [end_date_ymd] => 2025-01-04 10:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:21:05' and `end` < '2025-01-04 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-04 10:21:19] Production.INFO: count ==582 [2025-01-04 10:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:21:05 - End Time 2025-01-04 10:21:05 [2025-01-04 10:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172240', 'tblTempUsageDetail_20' ) start [2025-01-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172240', 'tblTempUsageDetail_20' ) end [2025-01-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172240', 'tblTempVendorCDR_20' ) start [2025-01-04 10:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172240', 'tblTempVendorCDR_20' ) end [2025-01-04 10:21:19] Production.INFO: ProcessCDR(1,14172240,1,1,2) [2025-01-04 10:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172240,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172240,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172240', 'tblTempUsageDetail_20' ) start [2025-01-04 10:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172240', 'tblTempUsageDetail_20' ) end [2025-01-04 10:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:21:22] Production.INFO: ==4909== Releasing lock... [2025-01-04 10:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:21:22] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:22:05 [end_date_ymd] => 2025-01-04 10:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:22:05' and `end` < '2025-01-04 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-04 10:22:18] Production.INFO: count ==591 [2025-01-04 10:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:22:05 - End Time 2025-01-04 10:22:05 [2025-01-04 10:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172245', 'tblTempUsageDetail_20' ) start [2025-01-04 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172245', 'tblTempUsageDetail_20' ) end [2025-01-04 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172245', 'tblTempVendorCDR_20' ) start [2025-01-04 10:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172245', 'tblTempVendorCDR_20' ) end [2025-01-04 10:22:18] Production.INFO: ProcessCDR(1,14172245,1,1,2) [2025-01-04 10:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172245,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172245,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172245', 'tblTempUsageDetail_20' ) start [2025-01-04 10:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172245', 'tblTempUsageDetail_20' ) end [2025-01-04 10:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:22:23] Production.INFO: ==4980== Releasing lock... [2025-01-04 10:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:22:23] Production.INFO: 32.75 MB #Memory Used# [2025-01-04 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:23:05 [end_date_ymd] => 2025-01-04 10:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:23:05' and `end` < '2025-01-04 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-04 10:23:19] Production.INFO: count ==602 [2025-01-04 10:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:23:05 - End Time 2025-01-04 10:23:05 [2025-01-04 10:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172250', 'tblTempUsageDetail_20' ) start [2025-01-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172250', 'tblTempUsageDetail_20' ) end [2025-01-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172250', 'tblTempVendorCDR_20' ) start [2025-01-04 10:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172250', 'tblTempVendorCDR_20' ) end [2025-01-04 10:23:19] Production.INFO: ProcessCDR(1,14172250,1,1,2) [2025-01-04 10:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172250,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172250,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172250', 'tblTempUsageDetail_20' ) start [2025-01-04 10:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172250', 'tblTempUsageDetail_20' ) end [2025-01-04 10:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:23:24] Production.INFO: ==5050== Releasing lock... [2025-01-04 10:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:23:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 10:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:24:05 [end_date_ymd] => 2025-01-04 10:24:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:24:05' and `end` < '2025-01-04 10: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-04 10:24:18] Production.INFO: count ==610 [2025-01-04 10:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:24:05 - End Time 2025-01-04 10:24:05 [2025-01-04 10:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172255', 'tblTempUsageDetail_20' ) start [2025-01-04 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172255', 'tblTempUsageDetail_20' ) end [2025-01-04 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172255', 'tblTempVendorCDR_20' ) start [2025-01-04 10:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172255', 'tblTempVendorCDR_20' ) end [2025-01-04 10:24:19] Production.INFO: ProcessCDR(1,14172255,1,1,2) [2025-01-04 10:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172255', 'tblTempUsageDetail_20' ) start [2025-01-04 10:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172255', 'tblTempUsageDetail_20' ) end [2025-01-04 10:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:24:23] Production.INFO: ==5129== Releasing lock... [2025-01-04 10:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:24:23] Production.INFO: 33 MB #Memory Used# [2025-01-04 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:25:05 [end_date_ymd] => 2025-01-04 10:25:05 [RateCDR] => 1 ) [2025-01-04 10:25:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 07:25:05' and `end` < '2025-01-04 10:25:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 10:25:17] Production.INFO: count ==612 [2025-01-04 10:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:25:05 - End Time 2025-01-04 10:25:05 [2025-01-04 10:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172260', 'tblTempUsageDetail_20' ) start [2025-01-04 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172260', 'tblTempUsageDetail_20' ) end [2025-01-04 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172260', 'tblTempVendorCDR_20' ) start [2025-01-04 10:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172260', 'tblTempVendorCDR_20' ) end [2025-01-04 10:25:18] Production.INFO: ProcessCDR(1,14172260,1,1,2) [2025-01-04 10:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172260', 'tblTempUsageDetail_20' ) start [2025-01-04 10:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172260', 'tblTempUsageDetail_20' ) end [2025-01-04 10:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:25:21] Production.INFO: ==5203== Releasing lock... [2025-01-04 10:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:25:21] Production.INFO: 33.25 MB #Memory Used# [2025-01-04 10:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:26:05 [end_date_ymd] => 2025-01-04 10:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:26:05' and `end` < '2025-01-04 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-04 10:26:18] Production.INFO: count ==618 [2025-01-04 10:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:26:05 - End Time 2025-01-04 10:26:05 [2025-01-04 10:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172265', 'tblTempUsageDetail_20' ) start [2025-01-04 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172265', 'tblTempUsageDetail_20' ) end [2025-01-04 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172265', 'tblTempVendorCDR_20' ) start [2025-01-04 10:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172265', 'tblTempVendorCDR_20' ) end [2025-01-04 10:26:18] Production.INFO: ProcessCDR(1,14172265,1,1,2) [2025-01-04 10:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172265', 'tblTempUsageDetail_20' ) start [2025-01-04 10:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172265', 'tblTempUsageDetail_20' ) end [2025-01-04 10:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:26:21] Production.INFO: ==5274== Releasing lock... [2025-01-04 10:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:26:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 10:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:27:04 [end_date_ymd] => 2025-01-04 10:27:04 [RateCDR] => 1 ) [2025-01-04 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-04 07:27:04' and `end` < '2025-01-04 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-04 10:27:18] Production.INFO: count ==634 [2025-01-04 10:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:27:04 - End Time 2025-01-04 10:27:04 [2025-01-04 10:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172270', 'tblTempUsageDetail_20' ) start [2025-01-04 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172270', 'tblTempUsageDetail_20' ) end [2025-01-04 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172270', 'tblTempVendorCDR_20' ) start [2025-01-04 10:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172270', 'tblTempVendorCDR_20' ) end [2025-01-04 10:27:18] Production.INFO: ProcessCDR(1,14172270,1,1,2) [2025-01-04 10:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172270', 'tblTempUsageDetail_20' ) start [2025-01-04 10:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172270', 'tblTempUsageDetail_20' ) end [2025-01-04 10:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:27:21] Production.INFO: ==5347== Releasing lock... [2025-01-04 10:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:27:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 10:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:28:05 [end_date_ymd] => 2025-01-04 10:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:28:05' and `end` < '2025-01-04 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-04 10:28:18] Production.INFO: count ==634 [2025-01-04 10:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:28:05 - End Time 2025-01-04 10:28:05 [2025-01-04 10:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172275', 'tblTempUsageDetail_20' ) start [2025-01-04 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172275', 'tblTempUsageDetail_20' ) end [2025-01-04 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172275', 'tblTempVendorCDR_20' ) start [2025-01-04 10:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172275', 'tblTempVendorCDR_20' ) end [2025-01-04 10:28:18] Production.INFO: ProcessCDR(1,14172275,1,1,2) [2025-01-04 10:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172275', 'tblTempUsageDetail_20' ) start [2025-01-04 10:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172275', 'tblTempUsageDetail_20' ) end [2025-01-04 10:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:28:21] Production.INFO: ==5430== Releasing lock... [2025-01-04 10:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:28:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:29:05 [end_date_ymd] => 2025-01-04 10:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:29:05' and `end` < '2025-01-04 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-04 10:29:18] Production.INFO: count ==641 [2025-01-04 10:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:29:05 - End Time 2025-01-04 10:29:05 [2025-01-04 10:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172280', 'tblTempUsageDetail_20' ) start [2025-01-04 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172280', 'tblTempUsageDetail_20' ) end [2025-01-04 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172280', 'tblTempVendorCDR_20' ) start [2025-01-04 10:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172280', 'tblTempVendorCDR_20' ) end [2025-01-04 10:29:18] Production.INFO: ProcessCDR(1,14172280,1,1,2) [2025-01-04 10:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172280', 'tblTempUsageDetail_20' ) start [2025-01-04 10:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172280', 'tblTempUsageDetail_20' ) end [2025-01-04 10:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:29:23] Production.INFO: ==5512== Releasing lock... [2025-01-04 10:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:29:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 10:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:30:05 [end_date_ymd] => 2025-01-04 10:30:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:30:05' and `end` < '2025-01-04 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-04 10:30:18] Production.INFO: count ==663 [2025-01-04 10:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:30:05 - End Time 2025-01-04 10:30:05 [2025-01-04 10:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172286', 'tblTempUsageDetail_20' ) start [2025-01-04 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172286', 'tblTempUsageDetail_20' ) end [2025-01-04 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172286', 'tblTempVendorCDR_20' ) start [2025-01-04 10:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172286', 'tblTempVendorCDR_20' ) end [2025-01-04 10:30:19] Production.INFO: ProcessCDR(1,14172286,1,1,2) [2025-01-04 10:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172286,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172286,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172286', 'tblTempUsageDetail_20' ) start [2025-01-04 10:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172286', 'tblTempUsageDetail_20' ) end [2025-01-04 10:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:30:24] Production.INFO: ==5592== Releasing lock... [2025-01-04 10:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:30:24] Production.INFO: 33.25 MB #Memory Used# [2025-01-04 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:31:05 [end_date_ymd] => 2025-01-04 10:31:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:31:05' and `end` < '2025-01-04 10: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-04 10:31:18] Production.INFO: count ==690 [2025-01-04 10:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:31:05 - End Time 2025-01-04 10:31:05 [2025-01-04 10:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172291', 'tblTempUsageDetail_20' ) start [2025-01-04 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172291', 'tblTempUsageDetail_20' ) end [2025-01-04 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172291', 'tblTempVendorCDR_20' ) start [2025-01-04 10:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172291', 'tblTempVendorCDR_20' ) end [2025-01-04 10:31:18] Production.INFO: ProcessCDR(1,14172291,1,1,2) [2025-01-04 10:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172291,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172291,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172291', 'tblTempUsageDetail_20' ) start [2025-01-04 10:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172291', 'tblTempUsageDetail_20' ) end [2025-01-04 10:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:31:23] Production.INFO: ==5679== Releasing lock... [2025-01-04 10:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:31:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 10:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:32:05 [end_date_ymd] => 2025-01-04 10:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:32:05' and `end` < '2025-01-04 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-04 10:32:18] Production.INFO: count ==698 [2025-01-04 10:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:32:05 - End Time 2025-01-04 10:32:05 [2025-01-04 10:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172296', 'tblTempUsageDetail_20' ) start [2025-01-04 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172296', 'tblTempUsageDetail_20' ) end [2025-01-04 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172296', 'tblTempVendorCDR_20' ) start [2025-01-04 10:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172296', 'tblTempVendorCDR_20' ) end [2025-01-04 10:32:18] Production.INFO: ProcessCDR(1,14172296,1,1,2) [2025-01-04 10:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172296,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172296,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172296', 'tblTempUsageDetail_20' ) start [2025-01-04 10:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172296', 'tblTempUsageDetail_20' ) end [2025-01-04 10:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:32:22] Production.INFO: ==5758== Releasing lock... [2025-01-04 10:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:33:05 [end_date_ymd] => 2025-01-04 10:33:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:33:05' and `end` < '2025-01-04 10: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-04 10:33:19] Production.INFO: count ==717 [2025-01-04 10:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:33:05 - End Time 2025-01-04 10:33:05 [2025-01-04 10:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172301', 'tblTempUsageDetail_20' ) start [2025-01-04 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172301', 'tblTempUsageDetail_20' ) end [2025-01-04 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172301', 'tblTempVendorCDR_20' ) start [2025-01-04 10:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172301', 'tblTempVendorCDR_20' ) end [2025-01-04 10:33:19] Production.INFO: ProcessCDR(1,14172301,1,1,2) [2025-01-04 10:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172301,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172301,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172301', 'tblTempUsageDetail_20' ) start [2025-01-04 10:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172301', 'tblTempUsageDetail_20' ) end [2025-01-04 10:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:33:24] Production.INFO: ==5840== Releasing lock... [2025-01-04 10:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:33:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:34:06 [end_date_ymd] => 2025-01-04 10:34:06 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:34:06' and `end` < '2025-01-04 10: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-04 10:34:19] Production.INFO: count ==724 [2025-01-04 10:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:34:06 - End Time 2025-01-04 10:34:06 [2025-01-04 10:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172306', 'tblTempUsageDetail_20' ) start [2025-01-04 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172306', 'tblTempUsageDetail_20' ) end [2025-01-04 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172306', 'tblTempVendorCDR_20' ) start [2025-01-04 10:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172306', 'tblTempVendorCDR_20' ) end [2025-01-04 10:34:19] Production.INFO: ProcessCDR(1,14172306,1,1,2) [2025-01-04 10:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172306', 'tblTempUsageDetail_20' ) start [2025-01-04 10:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172306', 'tblTempUsageDetail_20' ) end [2025-01-04 10:34:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:34:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:34:24] Production.INFO: ==5962== Releasing lock... [2025-01-04 10:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:34:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 10:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:35:05 [end_date_ymd] => 2025-01-04 10:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:35:05' and `end` < '2025-01-04 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-04 10:35:18] Production.INFO: count ==731 [2025-01-04 10:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:35:05 - End Time 2025-01-04 10:35:05 [2025-01-04 10:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172311', 'tblTempUsageDetail_20' ) start [2025-01-04 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172311', 'tblTempUsageDetail_20' ) end [2025-01-04 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172311', 'tblTempVendorCDR_20' ) start [2025-01-04 10:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172311', 'tblTempVendorCDR_20' ) end [2025-01-04 10:35:18] Production.INFO: ProcessCDR(1,14172311,1,1,2) [2025-01-04 10:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172311', 'tblTempUsageDetail_20' ) start [2025-01-04 10:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172311', 'tblTempUsageDetail_20' ) end [2025-01-04 10:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:35:22] Production.INFO: ==6031== Releasing lock... [2025-01-04 10:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:35:22] Production.INFO: 34 MB #Memory Used# [2025-01-04 10:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:36:05 [end_date_ymd] => 2025-01-04 10:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:36:05' and `end` < '2025-01-04 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-04 10:36:18] Production.INFO: count ==736 [2025-01-04 10:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:36:05 - End Time 2025-01-04 10:36:05 [2025-01-04 10:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172316', 'tblTempUsageDetail_20' ) start [2025-01-04 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172316', 'tblTempUsageDetail_20' ) end [2025-01-04 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172316', 'tblTempVendorCDR_20' ) start [2025-01-04 10:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172316', 'tblTempVendorCDR_20' ) end [2025-01-04 10:36:18] Production.INFO: ProcessCDR(1,14172316,1,1,2) [2025-01-04 10:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172316', 'tblTempUsageDetail_20' ) start [2025-01-04 10:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172316', 'tblTempUsageDetail_20' ) end [2025-01-04 10:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:36:22] Production.INFO: ==6106== Releasing lock... [2025-01-04 10:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:36:22] Production.INFO: 33.25 MB #Memory Used# [2025-01-04 10:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:37:05 [end_date_ymd] => 2025-01-04 10:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:37:05' and `end` < '2025-01-04 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-04 10:37:20] Production.INFO: count ==744 [2025-01-04 10:37:20] Production.ERROR: pbx CDR StartTime 2025-01-04 07:37:05 - End Time 2025-01-04 10:37:05 [2025-01-04 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172321', 'tblTempUsageDetail_20' ) start [2025-01-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172321', 'tblTempUsageDetail_20' ) end [2025-01-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172321', 'tblTempVendorCDR_20' ) start [2025-01-04 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172321', 'tblTempVendorCDR_20' ) end [2025-01-04 10:37:20] Production.INFO: ProcessCDR(1,14172321,1,1,2) [2025-01-04 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172321', 'tblTempUsageDetail_20' ) start [2025-01-04 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172321', 'tblTempUsageDetail_20' ) end [2025-01-04 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:37:25] Production.INFO: ==6176== Releasing lock... [2025-01-04 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:37:25] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 10:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:38:05 [end_date_ymd] => 2025-01-04 10:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:38:05' and `end` < '2025-01-04 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-04 10:38:19] Production.INFO: count ==751 [2025-01-04 10:38:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:38:05 - End Time 2025-01-04 10:38:05 [2025-01-04 10:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172326', 'tblTempUsageDetail_20' ) start [2025-01-04 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172326', 'tblTempUsageDetail_20' ) end [2025-01-04 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172326', 'tblTempVendorCDR_20' ) start [2025-01-04 10:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172326', 'tblTempVendorCDR_20' ) end [2025-01-04 10:38:19] Production.INFO: ProcessCDR(1,14172326,1,1,2) [2025-01-04 10:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172326', 'tblTempUsageDetail_20' ) start [2025-01-04 10:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172326', 'tblTempUsageDetail_20' ) end [2025-01-04 10:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:38:22] Production.INFO: ==6252== Releasing lock... [2025-01-04 10:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:38:22] Production.INFO: 34 MB #Memory Used# [2025-01-04 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:39:05 [end_date_ymd] => 2025-01-04 10:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:39:05' and `end` < '2025-01-04 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-04 10:39:17] Production.INFO: count ==759 [2025-01-04 10:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:39:05 - End Time 2025-01-04 10:39:05 [2025-01-04 10:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172331', 'tblTempUsageDetail_20' ) start [2025-01-04 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172331', 'tblTempUsageDetail_20' ) end [2025-01-04 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172331', 'tblTempVendorCDR_20' ) start [2025-01-04 10:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172331', 'tblTempVendorCDR_20' ) end [2025-01-04 10:39:18] Production.INFO: ProcessCDR(1,14172331,1,1,2) [2025-01-04 10:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172331', 'tblTempUsageDetail_20' ) start [2025-01-04 10:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172331', 'tblTempUsageDetail_20' ) end [2025-01-04 10:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:39:22] Production.INFO: ==6327== Releasing lock... [2025-01-04 10:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:39:22] Production.INFO: 34 MB #Memory Used# [2025-01-04 10:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:40:06 [end_date_ymd] => 2025-01-04 10:40:06 [RateCDR] => 1 ) [2025-01-04 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-04 07:40:06' and `end` < '2025-01-04 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-04 10:40:19] Production.INFO: count ==777 [2025-01-04 10:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:40:06 - End Time 2025-01-04 10:40:06 [2025-01-04 10:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172337', 'tblTempUsageDetail_20' ) start [2025-01-04 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172337', 'tblTempUsageDetail_20' ) end [2025-01-04 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172337', 'tblTempVendorCDR_20' ) start [2025-01-04 10:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172337', 'tblTempVendorCDR_20' ) end [2025-01-04 10:40:19] Production.INFO: ProcessCDR(1,14172337,1,1,2) [2025-01-04 10:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172337,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172337,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172337', 'tblTempUsageDetail_20' ) start [2025-01-04 10:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172337', 'tblTempUsageDetail_20' ) end [2025-01-04 10:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:40:23] Production.INFO: ==6400== Releasing lock... [2025-01-04 10:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:40:23] Production.INFO: 34 MB #Memory Used# [2025-01-04 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:41:05 [end_date_ymd] => 2025-01-04 10:41:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:41:05' and `end` < '2025-01-04 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-04 10:41:18] Production.INFO: count ==790 [2025-01-04 10:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:41:05 - End Time 2025-01-04 10:41:05 [2025-01-04 10:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172342', 'tblTempUsageDetail_20' ) start [2025-01-04 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172342', 'tblTempUsageDetail_20' ) end [2025-01-04 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172342', 'tblTempVendorCDR_20' ) start [2025-01-04 10:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172342', 'tblTempVendorCDR_20' ) end [2025-01-04 10:41:18] Production.INFO: ProcessCDR(1,14172342,1,1,2) [2025-01-04 10:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172342,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172342,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172342', 'tblTempUsageDetail_20' ) start [2025-01-04 10:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172342', 'tblTempUsageDetail_20' ) end [2025-01-04 10:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:41:23] Production.INFO: ==6473== Releasing lock... [2025-01-04 10:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:41:23] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:42:05 [end_date_ymd] => 2025-01-04 10:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:42:05' and `end` < '2025-01-04 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-04 10:42:18] Production.INFO: count ==791 [2025-01-04 10:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:42:05 - End Time 2025-01-04 10:42:05 [2025-01-04 10:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172347', 'tblTempUsageDetail_20' ) start [2025-01-04 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172347', 'tblTempUsageDetail_20' ) end [2025-01-04 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172347', 'tblTempVendorCDR_20' ) start [2025-01-04 10:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172347', 'tblTempVendorCDR_20' ) end [2025-01-04 10:42:18] Production.INFO: ProcessCDR(1,14172347,1,1,2) [2025-01-04 10:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172347,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172347,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172347', 'tblTempUsageDetail_20' ) start [2025-01-04 10:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172347', 'tblTempUsageDetail_20' ) end [2025-01-04 10:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:42:23] Production.INFO: ==6543== Releasing lock... [2025-01-04 10:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:42:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 10:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:43:04 [end_date_ymd] => 2025-01-04 10:43:04 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:43:04' and `end` < '2025-01-04 10: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-04 10:43:19] Production.INFO: count ==798 [2025-01-04 10:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:43:04 - End Time 2025-01-04 10:43:04 [2025-01-04 10:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172352', 'tblTempUsageDetail_20' ) start [2025-01-04 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172352', 'tblTempUsageDetail_20' ) end [2025-01-04 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172352', 'tblTempVendorCDR_20' ) start [2025-01-04 10:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172352', 'tblTempVendorCDR_20' ) end [2025-01-04 10:43:19] Production.INFO: ProcessCDR(1,14172352,1,1,2) [2025-01-04 10:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172352,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172352,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172352', 'tblTempUsageDetail_20' ) start [2025-01-04 10:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172352', 'tblTempUsageDetail_20' ) end [2025-01-04 10:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:43:24] Production.INFO: ==6613== Releasing lock... [2025-01-04 10:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:43:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:44:05 [end_date_ymd] => 2025-01-04 10:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:44:05' and `end` < '2025-01-04 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-04 10:44:19] Production.INFO: count ==800 [2025-01-04 10:44:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:44:05 - End Time 2025-01-04 10:44:05 [2025-01-04 10:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172357', 'tblTempUsageDetail_20' ) start [2025-01-04 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172357', 'tblTempUsageDetail_20' ) end [2025-01-04 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172357', 'tblTempVendorCDR_20' ) start [2025-01-04 10:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172357', 'tblTempVendorCDR_20' ) end [2025-01-04 10:44:19] Production.INFO: ProcessCDR(1,14172357,1,1,2) [2025-01-04 10:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:44:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:44:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172357', 'tblTempUsageDetail_20' ) start [2025-01-04 10:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172357', 'tblTempUsageDetail_20' ) end [2025-01-04 10:44:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:44:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:44:24] Production.INFO: ==6688== Releasing lock... [2025-01-04 10:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:44:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 10:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:45:05 [end_date_ymd] => 2025-01-04 10:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:45:05' and `end` < '2025-01-04 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-04 10:45:17] Production.INFO: count ==814 [2025-01-04 10:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:45:05 - End Time 2025-01-04 10:45:05 [2025-01-04 10:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172362', 'tblTempUsageDetail_20' ) start [2025-01-04 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172362', 'tblTempUsageDetail_20' ) end [2025-01-04 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172362', 'tblTempVendorCDR_20' ) start [2025-01-04 10:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172362', 'tblTempVendorCDR_20' ) end [2025-01-04 10:45:18] Production.INFO: ProcessCDR(1,14172362,1,1,2) [2025-01-04 10:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172362', 'tblTempUsageDetail_20' ) start [2025-01-04 10:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172362', 'tblTempUsageDetail_20' ) end [2025-01-04 10:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:45:22] Production.INFO: ==6758== Releasing lock... [2025-01-04 10:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:45:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:46:05 [end_date_ymd] => 2025-01-04 10:46:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:46:05' and `end` < '2025-01-04 10: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-04 10:46:21] Production.INFO: count ==814 [2025-01-04 10:46:21] Production.ERROR: pbx CDR StartTime 2025-01-04 07:46:05 - End Time 2025-01-04 10:46:05 [2025-01-04 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172367', 'tblTempUsageDetail_20' ) start [2025-01-04 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172367', 'tblTempUsageDetail_20' ) end [2025-01-04 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172367', 'tblTempVendorCDR_20' ) start [2025-01-04 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172367', 'tblTempVendorCDR_20' ) end [2025-01-04 10:46:21] Production.INFO: ProcessCDR(1,14172367,1,1,2) [2025-01-04 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172367', 'tblTempUsageDetail_20' ) start [2025-01-04 10:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172367', 'tblTempUsageDetail_20' ) end [2025-01-04 10:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:46:24] Production.INFO: ==6828== Releasing lock... [2025-01-04 10:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:46:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:47:05 [end_date_ymd] => 2025-01-04 10:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:47:05' and `end` < '2025-01-04 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-04 10:47:18] Production.INFO: count ==821 [2025-01-04 10:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:47:05 - End Time 2025-01-04 10:47:05 [2025-01-04 10:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172372', 'tblTempUsageDetail_20' ) start [2025-01-04 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172372', 'tblTempUsageDetail_20' ) end [2025-01-04 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172372', 'tblTempVendorCDR_20' ) start [2025-01-04 10:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172372', 'tblTempVendorCDR_20' ) end [2025-01-04 10:47:19] Production.INFO: ProcessCDR(1,14172372,1,1,2) [2025-01-04 10:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172372', 'tblTempUsageDetail_20' ) start [2025-01-04 10:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172372', 'tblTempUsageDetail_20' ) end [2025-01-04 10:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:47:22] Production.INFO: ==6901== Releasing lock... [2025-01-04 10:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:47:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 10:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:48:05 [end_date_ymd] => 2025-01-04 10:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:48:05' and `end` < '2025-01-04 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-04 10:48:17] Production.INFO: count ==821 [2025-01-04 10:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:48:05 - End Time 2025-01-04 10:48:05 [2025-01-04 10:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172377', 'tblTempUsageDetail_20' ) start [2025-01-04 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172377', 'tblTempUsageDetail_20' ) end [2025-01-04 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172377', 'tblTempVendorCDR_20' ) start [2025-01-04 10:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172377', 'tblTempVendorCDR_20' ) end [2025-01-04 10:48:18] Production.INFO: ProcessCDR(1,14172377,1,1,2) [2025-01-04 10:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172377', 'tblTempUsageDetail_20' ) start [2025-01-04 10:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172377', 'tblTempUsageDetail_20' ) end [2025-01-04 10:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:48:21] Production.INFO: ==6972== Releasing lock... [2025-01-04 10:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:48:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:49:05 [end_date_ymd] => 2025-01-04 10:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:49:05' and `end` < '2025-01-04 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-04 10:49:18] Production.INFO: count ==830 [2025-01-04 10:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:49:05 - End Time 2025-01-04 10:49:05 [2025-01-04 10:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172382', 'tblTempUsageDetail_20' ) start [2025-01-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172382', 'tblTempUsageDetail_20' ) end [2025-01-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172382', 'tblTempVendorCDR_20' ) start [2025-01-04 10:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172382', 'tblTempVendorCDR_20' ) end [2025-01-04 10:49:19] Production.INFO: ProcessCDR(1,14172382,1,1,2) [2025-01-04 10:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172382', 'tblTempUsageDetail_20' ) start [2025-01-04 10:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172382', 'tblTempUsageDetail_20' ) end [2025-01-04 10:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:49:22] Production.INFO: ==7042== Releasing lock... [2025-01-04 10:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:49:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:50:05 [end_date_ymd] => 2025-01-04 10:50:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:50:05' and `end` < '2025-01-04 10: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-04 10:50:18] Production.INFO: count ==841 [2025-01-04 10:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:50:05 - End Time 2025-01-04 10:50:05 [2025-01-04 10:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172388', 'tblTempUsageDetail_20' ) start [2025-01-04 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172388', 'tblTempUsageDetail_20' ) end [2025-01-04 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172388', 'tblTempVendorCDR_20' ) start [2025-01-04 10:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172388', 'tblTempVendorCDR_20' ) end [2025-01-04 10:50:18] Production.INFO: ProcessCDR(1,14172388,1,1,2) [2025-01-04 10:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172388,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172388,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172388', 'tblTempUsageDetail_20' ) start [2025-01-04 10:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172388', 'tblTempUsageDetail_20' ) end [2025-01-04 10:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:50:22] Production.INFO: ==7154== Releasing lock... [2025-01-04 10:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:50:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 10:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:51:04 [end_date_ymd] => 2025-01-04 10:51:04 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:51:04' and `end` < '2025-01-04 10: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-04 10:51:18] Production.INFO: count ==864 [2025-01-04 10:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:51:04 - End Time 2025-01-04 10:51:04 [2025-01-04 10:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172393', 'tblTempUsageDetail_20' ) start [2025-01-04 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172393', 'tblTempUsageDetail_20' ) end [2025-01-04 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172393', 'tblTempVendorCDR_20' ) start [2025-01-04 10:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172393', 'tblTempVendorCDR_20' ) end [2025-01-04 10:51:18] Production.INFO: ProcessCDR(1,14172393,1,1,2) [2025-01-04 10:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172393,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172393,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172393', 'tblTempUsageDetail_20' ) start [2025-01-04 10:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172393', 'tblTempUsageDetail_20' ) end [2025-01-04 10:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:51:21] Production.INFO: ==7226== Releasing lock... [2025-01-04 10:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:51:21] Production.INFO: 35 MB #Memory Used# [2025-01-04 10:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:52:05 [end_date_ymd] => 2025-01-04 10:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:52:05' and `end` < '2025-01-04 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-04 10:52:18] Production.INFO: count ==865 [2025-01-04 10:52:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:52:05 - End Time 2025-01-04 10:52:05 [2025-01-04 10:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172398', 'tblTempUsageDetail_20' ) start [2025-01-04 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172398', 'tblTempUsageDetail_20' ) end [2025-01-04 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172398', 'tblTempVendorCDR_20' ) start [2025-01-04 10:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172398', 'tblTempVendorCDR_20' ) end [2025-01-04 10:52:18] Production.INFO: ProcessCDR(1,14172398,1,1,2) [2025-01-04 10:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172398,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172398,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172398', 'tblTempUsageDetail_20' ) start [2025-01-04 10:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172398', 'tblTempUsageDetail_20' ) end [2025-01-04 10:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:52:21] Production.INFO: ==7298== Releasing lock... [2025-01-04 10:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:52:21] Production.INFO: 35 MB #Memory Used# [2025-01-04 10:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:53:05 [end_date_ymd] => 2025-01-04 10:53:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:53:05' and `end` < '2025-01-04 10: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-04 10:53:18] Production.INFO: count ==866 [2025-01-04 10:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:53:05 - End Time 2025-01-04 10:53:05 [2025-01-04 10:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172403', 'tblTempUsageDetail_20' ) start [2025-01-04 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172403', 'tblTempUsageDetail_20' ) end [2025-01-04 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172403', 'tblTempVendorCDR_20' ) start [2025-01-04 10:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172403', 'tblTempVendorCDR_20' ) end [2025-01-04 10:53:18] Production.INFO: ProcessCDR(1,14172403,1,1,2) [2025-01-04 10:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172403', 'tblTempUsageDetail_20' ) start [2025-01-04 10:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172403', 'tblTempUsageDetail_20' ) end [2025-01-04 10:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:53:22] Production.INFO: ==7374== Releasing lock... [2025-01-04 10:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:53:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 10:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:54:05 [end_date_ymd] => 2025-01-04 10:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:54:05' and `end` < '2025-01-04 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-04 10:54:20] Production.INFO: count ==865 [2025-01-04 10:54:20] Production.ERROR: pbx CDR StartTime 2025-01-04 07:54:05 - End Time 2025-01-04 10:54:05 [2025-01-04 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172408', 'tblTempUsageDetail_20' ) start [2025-01-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172408', 'tblTempUsageDetail_20' ) end [2025-01-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172408', 'tblTempVendorCDR_20' ) start [2025-01-04 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172408', 'tblTempVendorCDR_20' ) end [2025-01-04 10:54:20] Production.INFO: ProcessCDR(1,14172408,1,1,2) [2025-01-04 10:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172408', 'tblTempUsageDetail_20' ) start [2025-01-04 10:54:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172408', 'tblTempUsageDetail_20' ) end [2025-01-04 10:54:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:54:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:54:24] Production.INFO: ==7448== Releasing lock... [2025-01-04 10:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:54:24] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:55:05 [end_date_ymd] => 2025-01-04 10:55:05 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:55:05' and `end` < '2025-01-04 10: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-04 10:55:18] Production.INFO: count ==864 [2025-01-04 10:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:55:05 - End Time 2025-01-04 10:55:05 [2025-01-04 10:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172413', 'tblTempUsageDetail_20' ) start [2025-01-04 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172413', 'tblTempUsageDetail_20' ) end [2025-01-04 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172413', 'tblTempVendorCDR_20' ) start [2025-01-04 10:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172413', 'tblTempVendorCDR_20' ) end [2025-01-04 10:55:18] Production.INFO: ProcessCDR(1,14172413,1,1,2) [2025-01-04 10:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172413', 'tblTempUsageDetail_20' ) start [2025-01-04 10:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172413', 'tblTempUsageDetail_20' ) end [2025-01-04 10:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:55:21] Production.INFO: ==7523== Releasing lock... [2025-01-04 10:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:55:21] Production.INFO: 35 MB #Memory Used# [2025-01-04 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:56:06 [end_date_ymd] => 2025-01-04 10:56:06 [RateCDR] => 1 ) [2025-01-04 10:56: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-04 07:56:06' and `end` < '2025-01-04 10:56: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-04 10:56:18] Production.INFO: count ==866 [2025-01-04 10:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:56:06 - End Time 2025-01-04 10:56:06 [2025-01-04 10:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172418', 'tblTempUsageDetail_20' ) start [2025-01-04 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172418', 'tblTempUsageDetail_20' ) end [2025-01-04 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172418', 'tblTempVendorCDR_20' ) start [2025-01-04 10:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172418', 'tblTempVendorCDR_20' ) end [2025-01-04 10:56:19] Production.INFO: ProcessCDR(1,14172418,1,1,2) [2025-01-04 10:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172418', 'tblTempUsageDetail_20' ) start [2025-01-04 10:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172418', 'tblTempUsageDetail_20' ) end [2025-01-04 10:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:56:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:56:24] Production.INFO: ==7598== Releasing lock... [2025-01-04 10:56:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:56:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 10:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:57:05 [end_date_ymd] => 2025-01-04 10:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:57:05' and `end` < '2025-01-04 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-04 10:57:17] Production.INFO: count ==867 [2025-01-04 10:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:57:05 - End Time 2025-01-04 10:57:05 [2025-01-04 10:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172423', 'tblTempUsageDetail_20' ) start [2025-01-04 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172423', 'tblTempUsageDetail_20' ) end [2025-01-04 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172423', 'tblTempVendorCDR_20' ) start [2025-01-04 10:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172423', 'tblTempVendorCDR_20' ) end [2025-01-04 10:57:18] Production.INFO: ProcessCDR(1,14172423,1,1,2) [2025-01-04 10:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172423', 'tblTempUsageDetail_20' ) start [2025-01-04 10:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172423', 'tblTempUsageDetail_20' ) end [2025-01-04 10:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:57:22] Production.INFO: ==7670== Releasing lock... [2025-01-04 10:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:57:22] Production.INFO: 35 MB #Memory Used# [2025-01-04 10:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:58:04 [end_date_ymd] => 2025-01-04 10:58:04 [RateCDR] => 1 ) [2025-01-04 10: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-04 07:58:04' and `end` < '2025-01-04 10: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-04 10:58:18] Production.INFO: count ==873 [2025-01-04 10:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 07:58:04 - End Time 2025-01-04 10:58:04 [2025-01-04 10:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172426', 'tblTempUsageDetail_20' ) start [2025-01-04 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172426', 'tblTempUsageDetail_20' ) end [2025-01-04 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172426', 'tblTempVendorCDR_20' ) start [2025-01-04 10:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172426', 'tblTempVendorCDR_20' ) end [2025-01-04 10:58:19] Production.INFO: ProcessCDR(1,14172426,1,1,2) [2025-01-04 10:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172426', 'tblTempUsageDetail_20' ) start [2025-01-04 10:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172426', 'tblTempUsageDetail_20' ) end [2025-01-04 10:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:58:22] Production.INFO: ==7742== Releasing lock... [2025-01-04 10:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:58:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 10:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 07:59:05 [end_date_ymd] => 2025-01-04 10:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 07:59:05' and `end` < '2025-01-04 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-04 10:59:18] Production.INFO: count ==876 [2025-01-04 10:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 07:59:05 - End Time 2025-01-04 10:59:05 [2025-01-04 10:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172433', 'tblTempUsageDetail_20' ) start [2025-01-04 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172433', 'tblTempUsageDetail_20' ) end [2025-01-04 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172433', 'tblTempVendorCDR_20' ) start [2025-01-04 10:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172433', 'tblTempVendorCDR_20' ) end [2025-01-04 10:59:18] Production.INFO: ProcessCDR(1,14172433,1,1,2) [2025-01-04 10:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 10:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172433', 'tblTempUsageDetail_20' ) start [2025-01-04 10:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172433', 'tblTempUsageDetail_20' ) end [2025-01-04 10:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 10:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 10:59:21] Production.INFO: ==7812== Releasing lock... [2025-01-04 10:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 10:59:21] Production.INFO: 35 MB #Memory Used# [2025-01-04 11:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:00:06 [end_date_ymd] => 2025-01-04 11:00:06 [RateCDR] => 1 ) [2025-01-04 11:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 08:00:06' and `end` < '2025-01-04 11:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 11:00:19] Production.INFO: count ==884 [2025-01-04 11:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:00:06 - End Time 2025-01-04 11:00:06 [2025-01-04 11:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172439', 'tblTempUsageDetail_20' ) start [2025-01-04 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172439', 'tblTempUsageDetail_20' ) end [2025-01-04 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172439', 'tblTempVendorCDR_20' ) start [2025-01-04 11:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172439', 'tblTempVendorCDR_20' ) end [2025-01-04 11:00:19] Production.INFO: ProcessCDR(1,14172439,1,1,2) [2025-01-04 11:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172439,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172439,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172439', 'tblTempUsageDetail_20' ) start [2025-01-04 11:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172439', 'tblTempUsageDetail_20' ) end [2025-01-04 11:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:00:22] Production.INFO: ==7885== Releasing lock... [2025-01-04 11:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:00:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 11:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:01:05 [end_date_ymd] => 2025-01-04 11:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:01:05' and `end` < '2025-01-04 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-04 11:01:18] Production.INFO: count ==901 [2025-01-04 11:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:01:05 - End Time 2025-01-04 11:01:05 [2025-01-04 11:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172444', 'tblTempUsageDetail_20' ) start [2025-01-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172444', 'tblTempUsageDetail_20' ) end [2025-01-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172444', 'tblTempVendorCDR_20' ) start [2025-01-04 11:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172444', 'tblTempVendorCDR_20' ) end [2025-01-04 11:01:19] Production.INFO: ProcessCDR(1,14172444,1,1,2) [2025-01-04 11:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172444,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172444,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172444', 'tblTempUsageDetail_20' ) start [2025-01-04 11:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172444', 'tblTempUsageDetail_20' ) end [2025-01-04 11:01:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:01:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:01:23] Production.INFO: ==8009== Releasing lock... [2025-01-04 11:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:01:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:02:05 [end_date_ymd] => 2025-01-04 11:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:02:05' and `end` < '2025-01-04 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-04 11:02:18] Production.INFO: count ==907 [2025-01-04 11:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:02:05 - End Time 2025-01-04 11:02:05 [2025-01-04 11:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172449', 'tblTempUsageDetail_20' ) start [2025-01-04 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172449', 'tblTempUsageDetail_20' ) end [2025-01-04 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172449', 'tblTempVendorCDR_20' ) start [2025-01-04 11:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172449', 'tblTempVendorCDR_20' ) end [2025-01-04 11:02:18] Production.INFO: ProcessCDR(1,14172449,1,1,2) [2025-01-04 11:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172449,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172449,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172449', 'tblTempUsageDetail_20' ) start [2025-01-04 11:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172449', 'tblTempUsageDetail_20' ) end [2025-01-04 11:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:02:22] Production.INFO: ==8120== Releasing lock... [2025-01-04 11:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:02:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:03:05 [end_date_ymd] => 2025-01-04 11:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:03:05' and `end` < '2025-01-04 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-04 11:03:19] Production.INFO: count ==908 [2025-01-04 11:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:03:05 - End Time 2025-01-04 11:03:05 [2025-01-04 11:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172454', 'tblTempUsageDetail_20' ) start [2025-01-04 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172454', 'tblTempUsageDetail_20' ) end [2025-01-04 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172454', 'tblTempVendorCDR_20' ) start [2025-01-04 11:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172454', 'tblTempVendorCDR_20' ) end [2025-01-04 11:03:19] Production.INFO: ProcessCDR(1,14172454,1,1,2) [2025-01-04 11:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172454', 'tblTempUsageDetail_20' ) start [2025-01-04 11:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172454', 'tblTempUsageDetail_20' ) end [2025-01-04 11:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:03:24] Production.INFO: ==8192== Releasing lock... [2025-01-04 11:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:03:24] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:04:05 [end_date_ymd] => 2025-01-04 11:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:04:05' and `end` < '2025-01-04 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-04 11:04:19] Production.INFO: count ==914 [2025-01-04 11:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:04:05 - End Time 2025-01-04 11:04:05 [2025-01-04 11:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172459', 'tblTempUsageDetail_20' ) start [2025-01-04 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172459', 'tblTempUsageDetail_20' ) end [2025-01-04 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172459', 'tblTempVendorCDR_20' ) start [2025-01-04 11:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172459', 'tblTempVendorCDR_20' ) end [2025-01-04 11:04:19] Production.INFO: ProcessCDR(1,14172459,1,1,2) [2025-01-04 11:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172459', 'tblTempUsageDetail_20' ) start [2025-01-04 11:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172459', 'tblTempUsageDetail_20' ) end [2025-01-04 11:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:04:22] Production.INFO: ==8263== Releasing lock... [2025-01-04 11:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:04:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:05:05 [end_date_ymd] => 2025-01-04 11:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:05:05' and `end` < '2025-01-04 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-04 11:05:17] Production.INFO: count ==927 [2025-01-04 11:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:05:05 - End Time 2025-01-04 11:05:05 [2025-01-04 11:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172464', 'tblTempUsageDetail_20' ) start [2025-01-04 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172464', 'tblTempUsageDetail_20' ) end [2025-01-04 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172464', 'tblTempVendorCDR_20' ) start [2025-01-04 11:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172464', 'tblTempVendorCDR_20' ) end [2025-01-04 11:05:18] Production.INFO: ProcessCDR(1,14172464,1,1,2) [2025-01-04 11:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172464', 'tblTempUsageDetail_20' ) start [2025-01-04 11:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172464', 'tblTempUsageDetail_20' ) end [2025-01-04 11:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:05:22] Production.INFO: ==8449== Releasing lock... [2025-01-04 11:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:05:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:06:05 [end_date_ymd] => 2025-01-04 11:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:06:05' and `end` < '2025-01-04 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-04 11:06:19] Production.INFO: count ==930 [2025-01-04 11:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:06:05 - End Time 2025-01-04 11:06:05 [2025-01-04 11:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172469', 'tblTempUsageDetail_20' ) start [2025-01-04 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172469', 'tblTempUsageDetail_20' ) end [2025-01-04 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172469', 'tblTempVendorCDR_20' ) start [2025-01-04 11:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172469', 'tblTempVendorCDR_20' ) end [2025-01-04 11:06:19] Production.INFO: ProcessCDR(1,14172469,1,1,2) [2025-01-04 11:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172469', 'tblTempUsageDetail_20' ) start [2025-01-04 11:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172469', 'tblTempUsageDetail_20' ) end [2025-01-04 11:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:06:24] Production.INFO: ==8521== Releasing lock... [2025-01-04 11:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:06:24] Production.INFO: 35 MB #Memory Used# [2025-01-04 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:07:06 [end_date_ymd] => 2025-01-04 11:07:06 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:07:06' and `end` < '2025-01-04 11: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-04 11:07:18] Production.INFO: count ==931 [2025-01-04 11:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:07:06 - End Time 2025-01-04 11:07:06 [2025-01-04 11:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172474', 'tblTempUsageDetail_20' ) start [2025-01-04 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172474', 'tblTempUsageDetail_20' ) end [2025-01-04 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172474', 'tblTempVendorCDR_20' ) start [2025-01-04 11:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172474', 'tblTempVendorCDR_20' ) end [2025-01-04 11:07:19] Production.INFO: ProcessCDR(1,14172474,1,1,2) [2025-01-04 11:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172474', 'tblTempUsageDetail_20' ) start [2025-01-04 11:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172474', 'tblTempUsageDetail_20' ) end [2025-01-04 11:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:07:23] Production.INFO: ==8591== Releasing lock... [2025-01-04 11:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:07:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 11:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:08:05 [end_date_ymd] => 2025-01-04 11:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:08:05' and `end` < '2025-01-04 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-04 11:08:19] Production.INFO: count ==933 [2025-01-04 11:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:08:05 - End Time 2025-01-04 11:08:05 [2025-01-04 11:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172479', 'tblTempUsageDetail_20' ) start [2025-01-04 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172479', 'tblTempUsageDetail_20' ) end [2025-01-04 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172479', 'tblTempVendorCDR_20' ) start [2025-01-04 11:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172479', 'tblTempVendorCDR_20' ) end [2025-01-04 11:08:19] Production.INFO: ProcessCDR(1,14172479,1,1,2) [2025-01-04 11:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172479', 'tblTempUsageDetail_20' ) start [2025-01-04 11:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172479', 'tblTempUsageDetail_20' ) end [2025-01-04 11:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:08:23] Production.INFO: ==8741== Releasing lock... [2025-01-04 11:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:08:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 11:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:09:05 [end_date_ymd] => 2025-01-04 11:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:09:05' and `end` < '2025-01-04 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-04 11:09:18] Production.INFO: count ==961 [2025-01-04 11:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:09:05 - End Time 2025-01-04 11:09:05 [2025-01-04 11:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172484', 'tblTempUsageDetail_20' ) start [2025-01-04 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172484', 'tblTempUsageDetail_20' ) end [2025-01-04 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172484', 'tblTempVendorCDR_20' ) start [2025-01-04 11:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172484', 'tblTempVendorCDR_20' ) end [2025-01-04 11:09:18] Production.INFO: ProcessCDR(1,14172484,1,1,2) [2025-01-04 11:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172484', 'tblTempUsageDetail_20' ) start [2025-01-04 11:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172484', 'tblTempUsageDetail_20' ) end [2025-01-04 11:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:09:23] Production.INFO: ==8812== Releasing lock... [2025-01-04 11:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:09:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:10:06 [end_date_ymd] => 2025-01-04 11:10:06 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:10:06' and `end` < '2025-01-04 11: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-04 11:10:19] Production.INFO: count ==983 [2025-01-04 11:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:10:06 - End Time 2025-01-04 11:10:06 [2025-01-04 11:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172490', 'tblTempUsageDetail_20' ) start [2025-01-04 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172490', 'tblTempUsageDetail_20' ) end [2025-01-04 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172490', 'tblTempVendorCDR_20' ) start [2025-01-04 11:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172490', 'tblTempVendorCDR_20' ) end [2025-01-04 11:10:19] Production.INFO: ProcessCDR(1,14172490,1,1,2) [2025-01-04 11:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172490', 'tblTempUsageDetail_20' ) start [2025-01-04 11:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172490', 'tblTempUsageDetail_20' ) end [2025-01-04 11:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:10:23] Production.INFO: ==8887== Releasing lock... [2025-01-04 11:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:10:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:11:05 [end_date_ymd] => 2025-01-04 11:11:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:11:05' and `end` < '2025-01-04 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-04 11:11:18] Production.INFO: count ==1018 [2025-01-04 11:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:11:05 - End Time 2025-01-04 11:11:05 [2025-01-04 11:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172495', 'tblTempUsageDetail_20' ) start [2025-01-04 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172495', 'tblTempUsageDetail_20' ) end [2025-01-04 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172495', 'tblTempVendorCDR_20' ) start [2025-01-04 11:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172495', 'tblTempVendorCDR_20' ) end [2025-01-04 11:11:19] Production.INFO: ProcessCDR(1,14172495,1,1,2) [2025-01-04 11:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172495,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172495,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172495', 'tblTempUsageDetail_20' ) start [2025-01-04 11:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172495', 'tblTempUsageDetail_20' ) end [2025-01-04 11:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:11:23] Production.INFO: ==8961== Releasing lock... [2025-01-04 11:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:11:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:12:04 [end_date_ymd] => 2025-01-04 11:12:04 [RateCDR] => 1 ) [2025-01-04 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-04 08:12:04' and `end` < '2025-01-04 11: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-04 11:12:19] Production.INFO: count ==1014 [2025-01-04 11:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:12:04 - End Time 2025-01-04 11:12:04 [2025-01-04 11:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172500', 'tblTempUsageDetail_20' ) start [2025-01-04 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172500', 'tblTempUsageDetail_20' ) end [2025-01-04 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172500', 'tblTempVendorCDR_20' ) start [2025-01-04 11:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172500', 'tblTempVendorCDR_20' ) end [2025-01-04 11:12:19] Production.INFO: ProcessCDR(1,14172500,1,1,2) [2025-01-04 11:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172500,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172500,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172500', 'tblTempUsageDetail_20' ) start [2025-01-04 11:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172500', 'tblTempUsageDetail_20' ) end [2025-01-04 11:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:12:22] Production.INFO: ==9109== Releasing lock... [2025-01-04 11:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:12:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:13:06 [end_date_ymd] => 2025-01-04 11:13:06 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:13:06' and `end` < '2025-01-04 11: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-04 11:13:21] Production.INFO: count ==1024 [2025-01-04 11:13:21] Production.ERROR: pbx CDR StartTime 2025-01-04 08:13:06 - End Time 2025-01-04 11:13:06 [2025-01-04 11:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172505', 'tblTempUsageDetail_20' ) start [2025-01-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172505', 'tblTempUsageDetail_20' ) end [2025-01-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172505', 'tblTempVendorCDR_20' ) start [2025-01-04 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172505', 'tblTempVendorCDR_20' ) end [2025-01-04 11:13:21] Production.INFO: ProcessCDR(1,14172505,1,1,2) [2025-01-04 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172505', 'tblTempUsageDetail_20' ) start [2025-01-04 11:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172505', 'tblTempUsageDetail_20' ) end [2025-01-04 11:13:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:13:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:13:25] Production.INFO: ==9183== Releasing lock... [2025-01-04 11:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:13:25] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:14:05 [end_date_ymd] => 2025-01-04 11:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:14:05' and `end` < '2025-01-04 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-04 11:14:19] Production.INFO: count ==1023 [2025-01-04 11:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:14:05 - End Time 2025-01-04 11:14:05 [2025-01-04 11:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172510', 'tblTempUsageDetail_20' ) start [2025-01-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172510', 'tblTempUsageDetail_20' ) end [2025-01-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172510', 'tblTempVendorCDR_20' ) start [2025-01-04 11:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172510', 'tblTempVendorCDR_20' ) end [2025-01-04 11:14:19] Production.INFO: ProcessCDR(1,14172510,1,1,2) [2025-01-04 11:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172510', 'tblTempUsageDetail_20' ) start [2025-01-04 11:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172510', 'tblTempUsageDetail_20' ) end [2025-01-04 11:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:14:22] Production.INFO: ==9254== Releasing lock... [2025-01-04 11:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:14:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:15:04 [end_date_ymd] => 2025-01-04 11:15:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:15:04' and `end` < '2025-01-04 11: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-04 11:15:17] Production.INFO: count ==1028 [2025-01-04 11:15:17] Production.ERROR: pbx CDR StartTime 2025-01-04 08:15:04 - End Time 2025-01-04 11:15:04 [2025-01-04 11:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172515', 'tblTempUsageDetail_20' ) start [2025-01-04 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172515', 'tblTempUsageDetail_20' ) end [2025-01-04 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172515', 'tblTempVendorCDR_20' ) start [2025-01-04 11:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172515', 'tblTempVendorCDR_20' ) end [2025-01-04 11:15:17] Production.INFO: ProcessCDR(1,14172515,1,1,2) [2025-01-04 11:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172515', 'tblTempUsageDetail_20' ) start [2025-01-04 11:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172515', 'tblTempUsageDetail_20' ) end [2025-01-04 11:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:15:22] Production.INFO: ==9403== Releasing lock... [2025-01-04 11:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:15:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:16:04 [end_date_ymd] => 2025-01-04 11:16:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:16:04' and `end` < '2025-01-04 11: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-04 11:16:17] Production.INFO: count ==1035 [2025-01-04 11:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:16:04 - End Time 2025-01-04 11:16:04 [2025-01-04 11:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172520', 'tblTempUsageDetail_20' ) start [2025-01-04 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172520', 'tblTempUsageDetail_20' ) end [2025-01-04 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172520', 'tblTempVendorCDR_20' ) start [2025-01-04 11:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172520', 'tblTempVendorCDR_20' ) end [2025-01-04 11:16:18] Production.INFO: ProcessCDR(1,14172520,1,1,2) [2025-01-04 11:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172520', 'tblTempUsageDetail_20' ) start [2025-01-04 11:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172520', 'tblTempUsageDetail_20' ) end [2025-01-04 11:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:16:21] Production.INFO: ==9474== Releasing lock... [2025-01-04 11:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:16:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 11:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:17:04 [end_date_ymd] => 2025-01-04 11:17:04 [RateCDR] => 1 ) [2025-01-04 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-04 08:17:04' and `end` < '2025-01-04 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-04 11:17:17] Production.INFO: count ==1037 [2025-01-04 11:17:17] Production.ERROR: pbx CDR StartTime 2025-01-04 08:17:04 - End Time 2025-01-04 11:17:04 [2025-01-04 11:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172525', 'tblTempUsageDetail_20' ) start [2025-01-04 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172525', 'tblTempUsageDetail_20' ) end [2025-01-04 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172525', 'tblTempVendorCDR_20' ) start [2025-01-04 11:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172525', 'tblTempVendorCDR_20' ) end [2025-01-04 11:17:17] Production.INFO: ProcessCDR(1,14172525,1,1,2) [2025-01-04 11:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172525', 'tblTempUsageDetail_20' ) start [2025-01-04 11:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172525', 'tblTempUsageDetail_20' ) end [2025-01-04 11:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:17:22] Production.INFO: ==9543== Releasing lock... [2025-01-04 11:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:17:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:18:05 [end_date_ymd] => 2025-01-04 11:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:18:05' and `end` < '2025-01-04 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-04 11:18:18] Production.INFO: count ==1036 [2025-01-04 11:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:18:05 - End Time 2025-01-04 11:18:05 [2025-01-04 11:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172530', 'tblTempUsageDetail_20' ) start [2025-01-04 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172530', 'tblTempUsageDetail_20' ) end [2025-01-04 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172530', 'tblTempVendorCDR_20' ) start [2025-01-04 11:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172530', 'tblTempVendorCDR_20' ) end [2025-01-04 11:18:19] Production.INFO: ProcessCDR(1,14172530,1,1,2) [2025-01-04 11:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172530', 'tblTempUsageDetail_20' ) start [2025-01-04 11:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172530', 'tblTempUsageDetail_20' ) end [2025-01-04 11:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:18:23] Production.INFO: ==9617== Releasing lock... [2025-01-04 11:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:18:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 11:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:19:05 [end_date_ymd] => 2025-01-04 11:19:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:19:05' and `end` < '2025-01-04 11: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-04 11:19:20] Production.INFO: count ==1039 [2025-01-04 11:19:20] Production.ERROR: pbx CDR StartTime 2025-01-04 08:19:05 - End Time 2025-01-04 11:19:05 [2025-01-04 11:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172535', 'tblTempUsageDetail_20' ) start [2025-01-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172535', 'tblTempUsageDetail_20' ) end [2025-01-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172535', 'tblTempVendorCDR_20' ) start [2025-01-04 11:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172535', 'tblTempVendorCDR_20' ) end [2025-01-04 11:19:20] Production.INFO: ProcessCDR(1,14172535,1,1,2) [2025-01-04 11:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172535', 'tblTempUsageDetail_20' ) start [2025-01-04 11:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172535', 'tblTempUsageDetail_20' ) end [2025-01-04 11:19:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:19:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:19:25] Production.INFO: ==9689== Releasing lock... [2025-01-04 11:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:19:25] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 11:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:20:06 [end_date_ymd] => 2025-01-04 11:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 08:20:06' and `end` < '2025-01-04 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-04 11:20:19] Production.INFO: count ==1047 [2025-01-04 11:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:20:06 - End Time 2025-01-04 11:20:06 [2025-01-04 11:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172541', 'tblTempUsageDetail_20' ) start [2025-01-04 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172541', 'tblTempUsageDetail_20' ) end [2025-01-04 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172541', 'tblTempVendorCDR_20' ) start [2025-01-04 11:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172541', 'tblTempVendorCDR_20' ) end [2025-01-04 11:20:19] Production.INFO: ProcessCDR(1,14172541,1,1,2) [2025-01-04 11:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172541,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172541,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172541', 'tblTempUsageDetail_20' ) start [2025-01-04 11:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172541', 'tblTempUsageDetail_20' ) end [2025-01-04 11:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:20:24] Production.INFO: ==9765== Releasing lock... [2025-01-04 11:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:20:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:21:05 [end_date_ymd] => 2025-01-04 11:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:21:05' and `end` < '2025-01-04 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-04 11:21:19] Production.INFO: count ==1093 [2025-01-04 11:21:20] Production.ERROR: pbx CDR StartTime 2025-01-04 08:21:05 - End Time 2025-01-04 11:21:05 [2025-01-04 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172546', 'tblTempUsageDetail_20' ) start [2025-01-04 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172546', 'tblTempUsageDetail_20' ) end [2025-01-04 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172546', 'tblTempVendorCDR_20' ) start [2025-01-04 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172546', 'tblTempVendorCDR_20' ) end [2025-01-04 11:21:20] Production.INFO: ProcessCDR(1,14172546,1,1,2) [2025-01-04 11:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172546,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172546,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172546', 'tblTempUsageDetail_20' ) start [2025-01-04 11:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172546', 'tblTempUsageDetail_20' ) end [2025-01-04 11:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:21:24] Production.INFO: ==9880== Releasing lock... [2025-01-04 11:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:21:24] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:22:05 [end_date_ymd] => 2025-01-04 11:22:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:22:05' and `end` < '2025-01-04 11: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-04 11:22:19] Production.INFO: count ==1097 [2025-01-04 11:22:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:22:05 - End Time 2025-01-04 11:22:05 [2025-01-04 11:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172551', 'tblTempUsageDetail_20' ) start [2025-01-04 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172551', 'tblTempUsageDetail_20' ) end [2025-01-04 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172551', 'tblTempVendorCDR_20' ) start [2025-01-04 11:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172551', 'tblTempVendorCDR_20' ) end [2025-01-04 11:22:19] Production.INFO: ProcessCDR(1,14172551,1,1,2) [2025-01-04 11:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:22:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172551,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:22:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172551,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172551', 'tblTempUsageDetail_20' ) start [2025-01-04 11:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172551', 'tblTempUsageDetail_20' ) end [2025-01-04 11:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:22:23] Production.INFO: ==9950== Releasing lock... [2025-01-04 11:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:22:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:23:05 [end_date_ymd] => 2025-01-04 11:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:23:05' and `end` < '2025-01-04 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-04 11:23:18] Production.INFO: count ==1099 [2025-01-04 11:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:23:05 - End Time 2025-01-04 11:23:05 [2025-01-04 11:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172556', 'tblTempUsageDetail_20' ) start [2025-01-04 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172556', 'tblTempUsageDetail_20' ) end [2025-01-04 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172556', 'tblTempVendorCDR_20' ) start [2025-01-04 11:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172556', 'tblTempVendorCDR_20' ) end [2025-01-04 11:23:19] Production.INFO: ProcessCDR(1,14172556,1,1,2) [2025-01-04 11:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172556,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172556,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172556', 'tblTempUsageDetail_20' ) start [2025-01-04 11:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172556', 'tblTempUsageDetail_20' ) end [2025-01-04 11:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:23:23] Production.INFO: ==10020== Releasing lock... [2025-01-04 11:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:23:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:24:05 [end_date_ymd] => 2025-01-04 11:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:24:05' and `end` < '2025-01-04 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-04 11:24:18] Production.INFO: count ==1105 [2025-01-04 11:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:24:05 - End Time 2025-01-04 11:24:05 [2025-01-04 11:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172561', 'tblTempUsageDetail_20' ) start [2025-01-04 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172561', 'tblTempUsageDetail_20' ) end [2025-01-04 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172561', 'tblTempVendorCDR_20' ) start [2025-01-04 11:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172561', 'tblTempVendorCDR_20' ) end [2025-01-04 11:24:19] Production.INFO: ProcessCDR(1,14172561,1,1,2) [2025-01-04 11:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172561', 'tblTempUsageDetail_20' ) start [2025-01-04 11:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172561', 'tblTempUsageDetail_20' ) end [2025-01-04 11:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:24:22] Production.INFO: ==10091== Releasing lock... [2025-01-04 11:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:24:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 11:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:25:05 [end_date_ymd] => 2025-01-04 11:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:25:05' and `end` < '2025-01-04 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-04 11:25:17] Production.INFO: count ==1107 [2025-01-04 11:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:25:05 - End Time 2025-01-04 11:25:05 [2025-01-04 11:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172566', 'tblTempUsageDetail_20' ) start [2025-01-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172566', 'tblTempUsageDetail_20' ) end [2025-01-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172566', 'tblTempVendorCDR_20' ) start [2025-01-04 11:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172566', 'tblTempVendorCDR_20' ) end [2025-01-04 11:25:18] Production.INFO: ProcessCDR(1,14172566,1,1,2) [2025-01-04 11:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172566', 'tblTempUsageDetail_20' ) start [2025-01-04 11:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172566', 'tblTempUsageDetail_20' ) end [2025-01-04 11:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:25:23] Production.INFO: ==10161== Releasing lock... [2025-01-04 11:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:25:23] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:26:05 [end_date_ymd] => 2025-01-04 11:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:26:05' and `end` < '2025-01-04 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-04 11:26:19] Production.INFO: count ==1109 [2025-01-04 11:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:26:05 - End Time 2025-01-04 11:26:05 [2025-01-04 11:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172571', 'tblTempUsageDetail_20' ) start [2025-01-04 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172571', 'tblTempUsageDetail_20' ) end [2025-01-04 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172571', 'tblTempVendorCDR_20' ) start [2025-01-04 11:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172571', 'tblTempVendorCDR_20' ) end [2025-01-04 11:26:19] Production.INFO: ProcessCDR(1,14172571,1,1,2) [2025-01-04 11:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172571', 'tblTempUsageDetail_20' ) start [2025-01-04 11:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172571', 'tblTempUsageDetail_20' ) end [2025-01-04 11:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:26:24] Production.INFO: ==10240== Releasing lock... [2025-01-04 11:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:26:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:27:05 [end_date_ymd] => 2025-01-04 11:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:27:05' and `end` < '2025-01-04 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-04 11:27:18] Production.INFO: count ==1116 [2025-01-04 11:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:27:05 - End Time 2025-01-04 11:27:05 [2025-01-04 11:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172576', 'tblTempUsageDetail_20' ) start [2025-01-04 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172576', 'tblTempUsageDetail_20' ) end [2025-01-04 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172576', 'tblTempVendorCDR_20' ) start [2025-01-04 11:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172576', 'tblTempVendorCDR_20' ) end [2025-01-04 11:27:19] Production.INFO: ProcessCDR(1,14172576,1,1,2) [2025-01-04 11:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172576', 'tblTempUsageDetail_20' ) start [2025-01-04 11:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172576', 'tblTempUsageDetail_20' ) end [2025-01-04 11:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:27:23] Production.INFO: ==10310== Releasing lock... [2025-01-04 11:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:27:23] Production.INFO: 37 MB #Memory Used# [2025-01-04 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:28:05 [end_date_ymd] => 2025-01-04 11:28:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:28:05' and `end` < '2025-01-04 11: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-04 11:28:17] Production.INFO: count ==1121 [2025-01-04 11:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:28:05 - End Time 2025-01-04 11:28:05 [2025-01-04 11:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172581', 'tblTempUsageDetail_20' ) start [2025-01-04 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172581', 'tblTempUsageDetail_20' ) end [2025-01-04 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172581', 'tblTempVendorCDR_20' ) start [2025-01-04 11:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172581', 'tblTempVendorCDR_20' ) end [2025-01-04 11:28:18] Production.INFO: ProcessCDR(1,14172581,1,1,2) [2025-01-04 11:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172581', 'tblTempUsageDetail_20' ) start [2025-01-04 11:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172581', 'tblTempUsageDetail_20' ) end [2025-01-04 11:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:28:23] Production.INFO: ==10380== Releasing lock... [2025-01-04 11:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:28:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:29:05 [end_date_ymd] => 2025-01-04 11:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:29:05' and `end` < '2025-01-04 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-04 11:29:19] Production.INFO: count ==1124 [2025-01-04 11:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:29:05 - End Time 2025-01-04 11:29:05 [2025-01-04 11:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172586', 'tblTempUsageDetail_20' ) start [2025-01-04 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172586', 'tblTempUsageDetail_20' ) end [2025-01-04 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172586', 'tblTempVendorCDR_20' ) start [2025-01-04 11:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172586', 'tblTempVendorCDR_20' ) end [2025-01-04 11:29:19] Production.INFO: ProcessCDR(1,14172586,1,1,2) [2025-01-04 11:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172586', 'tblTempUsageDetail_20' ) start [2025-01-04 11:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172586', 'tblTempUsageDetail_20' ) end [2025-01-04 11:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:29:24] Production.INFO: ==10453== Releasing lock... [2025-01-04 11:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:29:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 11:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:30:05 [end_date_ymd] => 2025-01-04 11:30:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:30:05' and `end` < '2025-01-04 11: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-04 11:30:18] Production.INFO: count ==1128 [2025-01-04 11:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:30:05 - End Time 2025-01-04 11:30:05 [2025-01-04 11:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172592', 'tblTempUsageDetail_20' ) start [2025-01-04 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172592', 'tblTempUsageDetail_20' ) end [2025-01-04 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172592', 'tblTempVendorCDR_20' ) start [2025-01-04 11:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172592', 'tblTempVendorCDR_20' ) end [2025-01-04 11:30:19] Production.INFO: ProcessCDR(1,14172592,1,1,2) [2025-01-04 11:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172592,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172592,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172592', 'tblTempUsageDetail_20' ) start [2025-01-04 11:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172592', 'tblTempUsageDetail_20' ) end [2025-01-04 11:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:30:23] Production.INFO: ==10523== Releasing lock... [2025-01-04 11:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:30:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:31:05 [end_date_ymd] => 2025-01-04 11:31:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:31:05' and `end` < '2025-01-04 11: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-04 11:31:19] Production.INFO: count ==1167 [2025-01-04 11:31:20] Production.ERROR: pbx CDR StartTime 2025-01-04 08:31:05 - End Time 2025-01-04 11:31:05 [2025-01-04 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172597', 'tblTempUsageDetail_20' ) start [2025-01-04 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172597', 'tblTempUsageDetail_20' ) end [2025-01-04 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172597', 'tblTempVendorCDR_20' ) start [2025-01-04 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172597', 'tblTempVendorCDR_20' ) end [2025-01-04 11:31:20] Production.INFO: ProcessCDR(1,14172597,1,1,2) [2025-01-04 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172597,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172597,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172597', 'tblTempUsageDetail_20' ) start [2025-01-04 11:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172597', 'tblTempUsageDetail_20' ) end [2025-01-04 11:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:31:23] Production.INFO: ==10595== Releasing lock... [2025-01-04 11:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:31:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:32:05 [end_date_ymd] => 2025-01-04 11:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:32:05' and `end` < '2025-01-04 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-04 11:32:18] Production.INFO: count ==1166 [2025-01-04 11:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:32:05 - End Time 2025-01-04 11:32:05 [2025-01-04 11:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172602', 'tblTempUsageDetail_20' ) start [2025-01-04 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172602', 'tblTempUsageDetail_20' ) end [2025-01-04 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172602', 'tblTempVendorCDR_20' ) start [2025-01-04 11:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172602', 'tblTempVendorCDR_20' ) end [2025-01-04 11:32:18] Production.INFO: ProcessCDR(1,14172602,1,1,2) [2025-01-04 11:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172602,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172602,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172602', 'tblTempUsageDetail_20' ) start [2025-01-04 11:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172602', 'tblTempUsageDetail_20' ) end [2025-01-04 11:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:32:22] Production.INFO: ==10664== Releasing lock... [2025-01-04 11:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:32:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:33:05 [end_date_ymd] => 2025-01-04 11:33:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:33:05' and `end` < '2025-01-04 11: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-04 11:33:19] Production.INFO: count ==1174 [2025-01-04 11:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:33:05 - End Time 2025-01-04 11:33:05 [2025-01-04 11:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172607', 'tblTempUsageDetail_20' ) start [2025-01-04 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172607', 'tblTempUsageDetail_20' ) end [2025-01-04 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172607', 'tblTempVendorCDR_20' ) start [2025-01-04 11:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172607', 'tblTempVendorCDR_20' ) end [2025-01-04 11:33:19] Production.INFO: ProcessCDR(1,14172607,1,1,2) [2025-01-04 11:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172607', 'tblTempUsageDetail_20' ) start [2025-01-04 11:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172607', 'tblTempUsageDetail_20' ) end [2025-01-04 11:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:33:24] Production.INFO: ==10736== Releasing lock... [2025-01-04 11:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:33:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 11:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:34:05 [end_date_ymd] => 2025-01-04 11:34:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:34:05' and `end` < '2025-01-04 11: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-04 11:34:18] Production.INFO: count ==1177 [2025-01-04 11:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:34:05 - End Time 2025-01-04 11:34:05 [2025-01-04 11:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172612', 'tblTempUsageDetail_20' ) start [2025-01-04 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172612', 'tblTempUsageDetail_20' ) end [2025-01-04 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172612', 'tblTempVendorCDR_20' ) start [2025-01-04 11:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172612', 'tblTempVendorCDR_20' ) end [2025-01-04 11:34:19] Production.INFO: ProcessCDR(1,14172612,1,1,2) [2025-01-04 11:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172612', 'tblTempUsageDetail_20' ) start [2025-01-04 11:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172612', 'tblTempUsageDetail_20' ) end [2025-01-04 11:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:34:23] Production.INFO: ==10807== Releasing lock... [2025-01-04 11:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:34:23] Production.INFO: 37 MB #Memory Used# [2025-01-04 11:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:35:04 [end_date_ymd] => 2025-01-04 11:35:04 [RateCDR] => 1 ) [2025-01-04 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-04 08:35:04' and `end` < '2025-01-04 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-04 11:35:17] Production.INFO: count ==1188 [2025-01-04 11:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:35:04 - End Time 2025-01-04 11:35:04 [2025-01-04 11:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172617', 'tblTempUsageDetail_20' ) start [2025-01-04 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172617', 'tblTempUsageDetail_20' ) end [2025-01-04 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172617', 'tblTempVendorCDR_20' ) start [2025-01-04 11:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172617', 'tblTempVendorCDR_20' ) end [2025-01-04 11:35:18] Production.INFO: ProcessCDR(1,14172617,1,1,2) [2025-01-04 11:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172617', 'tblTempUsageDetail_20' ) start [2025-01-04 11:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172617', 'tblTempUsageDetail_20' ) end [2025-01-04 11:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:35:22] Production.INFO: ==10878== Releasing lock... [2025-01-04 11:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:35:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 11:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:36:05 [end_date_ymd] => 2025-01-04 11:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:36:05' and `end` < '2025-01-04 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-04 11:36:20] Production.INFO: count ==1191 [2025-01-04 11:36:20] Production.ERROR: pbx CDR StartTime 2025-01-04 08:36:05 - End Time 2025-01-04 11:36:05 [2025-01-04 11:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172622', 'tblTempUsageDetail_20' ) start [2025-01-04 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172622', 'tblTempUsageDetail_20' ) end [2025-01-04 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172622', 'tblTempVendorCDR_20' ) start [2025-01-04 11:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172622', 'tblTempVendorCDR_20' ) end [2025-01-04 11:36:20] Production.INFO: ProcessCDR(1,14172622,1,1,2) [2025-01-04 11:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172622', 'tblTempUsageDetail_20' ) start [2025-01-04 11:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172622', 'tblTempUsageDetail_20' ) end [2025-01-04 11:36:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:36:25] Production.INFO: ==10987== Releasing lock... [2025-01-04 11:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:36:25] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:37:05 [end_date_ymd] => 2025-01-04 11:37:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:37:05' and `end` < '2025-01-04 11: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-04 11:37:19] Production.INFO: count ==1194 [2025-01-04 11:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:37:05 - End Time 2025-01-04 11:37:05 [2025-01-04 11:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172627', 'tblTempUsageDetail_20' ) start [2025-01-04 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172627', 'tblTempUsageDetail_20' ) end [2025-01-04 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172627', 'tblTempVendorCDR_20' ) start [2025-01-04 11:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172627', 'tblTempVendorCDR_20' ) end [2025-01-04 11:37:19] Production.INFO: ProcessCDR(1,14172627,1,1,2) [2025-01-04 11:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172627', 'tblTempUsageDetail_20' ) start [2025-01-04 11:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172627', 'tblTempUsageDetail_20' ) end [2025-01-04 11:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:37:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:37:24] Production.INFO: ==11059== Releasing lock... [2025-01-04 11:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:37:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 11:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:38:05 [end_date_ymd] => 2025-01-04 11:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:38:05' and `end` < '2025-01-04 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-04 11:38:18] Production.INFO: count ==1195 [2025-01-04 11:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:38:05 - End Time 2025-01-04 11:38:05 [2025-01-04 11:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172632', 'tblTempUsageDetail_20' ) start [2025-01-04 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172632', 'tblTempUsageDetail_20' ) end [2025-01-04 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172632', 'tblTempVendorCDR_20' ) start [2025-01-04 11:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172632', 'tblTempVendorCDR_20' ) end [2025-01-04 11:38:18] Production.INFO: ProcessCDR(1,14172632,1,1,2) [2025-01-04 11:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172632', 'tblTempUsageDetail_20' ) start [2025-01-04 11:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172632', 'tblTempUsageDetail_20' ) end [2025-01-04 11:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:38:23] Production.INFO: ==11131== Releasing lock... [2025-01-04 11:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:38:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:39:04 [end_date_ymd] => 2025-01-04 11:39:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:39:04' and `end` < '2025-01-04 11: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-04 11:39:17] Production.INFO: count ==1203 [2025-01-04 11:39:17] Production.ERROR: pbx CDR StartTime 2025-01-04 08:39:04 - End Time 2025-01-04 11:39:04 [2025-01-04 11:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172637', 'tblTempUsageDetail_20' ) start [2025-01-04 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172637', 'tblTempUsageDetail_20' ) end [2025-01-04 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172637', 'tblTempVendorCDR_20' ) start [2025-01-04 11:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172637', 'tblTempVendorCDR_20' ) end [2025-01-04 11:39:17] Production.INFO: ProcessCDR(1,14172637,1,1,2) [2025-01-04 11:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172637', 'tblTempUsageDetail_20' ) start [2025-01-04 11:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172637', 'tblTempUsageDetail_20' ) end [2025-01-04 11:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:39:22] Production.INFO: ==11202== Releasing lock... [2025-01-04 11:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:39:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 11:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:40:05 [end_date_ymd] => 2025-01-04 11:40:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:40:05' and `end` < '2025-01-04 11: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-04 11:40:18] Production.INFO: count ==1220 [2025-01-04 11:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:40:05 - End Time 2025-01-04 11:40:05 [2025-01-04 11:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172643', 'tblTempUsageDetail_20' ) start [2025-01-04 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172643', 'tblTempUsageDetail_20' ) end [2025-01-04 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172643', 'tblTempVendorCDR_20' ) start [2025-01-04 11:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172643', 'tblTempVendorCDR_20' ) end [2025-01-04 11:40:19] Production.INFO: ProcessCDR(1,14172643,1,1,2) [2025-01-04 11:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172643,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172643,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172643', 'tblTempUsageDetail_20' ) start [2025-01-04 11:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172643', 'tblTempUsageDetail_20' ) end [2025-01-04 11:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:40:23] Production.INFO: ==11276== Releasing lock... [2025-01-04 11:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:40:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:41:05 [end_date_ymd] => 2025-01-04 11:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:41:05' and `end` < '2025-01-04 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-04 11:41:18] Production.INFO: count ==1249 [2025-01-04 11:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:41:05 - End Time 2025-01-04 11:41:05 [2025-01-04 11:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172648', 'tblTempUsageDetail_20' ) start [2025-01-04 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172648', 'tblTempUsageDetail_20' ) end [2025-01-04 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172648', 'tblTempVendorCDR_20' ) start [2025-01-04 11:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172648', 'tblTempVendorCDR_20' ) end [2025-01-04 11:41:18] Production.INFO: ProcessCDR(1,14172648,1,1,2) [2025-01-04 11:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172648,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172648,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172648', 'tblTempUsageDetail_20' ) start [2025-01-04 11:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172648', 'tblTempUsageDetail_20' ) end [2025-01-04 11:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:41:23] Production.INFO: ==11349== Releasing lock... [2025-01-04 11:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:41:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:42:04 [end_date_ymd] => 2025-01-04 11:42:04 [RateCDR] => 1 ) [2025-01-04 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-04 08:42:04' and `end` < '2025-01-04 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-04 11:42:17] Production.INFO: count ==1251 [2025-01-04 11:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:42:04 - End Time 2025-01-04 11:42:04 [2025-01-04 11:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172653', 'tblTempUsageDetail_20' ) start [2025-01-04 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172653', 'tblTempUsageDetail_20' ) end [2025-01-04 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172653', 'tblTempVendorCDR_20' ) start [2025-01-04 11:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172653', 'tblTempVendorCDR_20' ) end [2025-01-04 11:42:18] Production.INFO: ProcessCDR(1,14172653,1,1,2) [2025-01-04 11:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172653,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172653,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172653', 'tblTempUsageDetail_20' ) start [2025-01-04 11:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172653', 'tblTempUsageDetail_20' ) end [2025-01-04 11:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:42:22] Production.INFO: ==11417== Releasing lock... [2025-01-04 11:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:42:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:43:05 [end_date_ymd] => 2025-01-04 11:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:43:05' and `end` < '2025-01-04 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-04 11:43:19] Production.INFO: count ==1266 [2025-01-04 11:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:43:05 - End Time 2025-01-04 11:43:05 [2025-01-04 11:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172658', 'tblTempUsageDetail_20' ) start [2025-01-04 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172658', 'tblTempUsageDetail_20' ) end [2025-01-04 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172658', 'tblTempVendorCDR_20' ) start [2025-01-04 11:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172658', 'tblTempVendorCDR_20' ) end [2025-01-04 11:43:19] Production.INFO: ProcessCDR(1,14172658,1,1,2) [2025-01-04 11:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172658', 'tblTempUsageDetail_20' ) start [2025-01-04 11:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172658', 'tblTempUsageDetail_20' ) end [2025-01-04 11:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:43:24] Production.INFO: ==11488== Releasing lock... [2025-01-04 11:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:43:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 11:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:44:04 [end_date_ymd] => 2025-01-04 11:44:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:44:04' and `end` < '2025-01-04 11: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-04 11:44:18] Production.INFO: count ==1271 [2025-01-04 11:44:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:44:04 - End Time 2025-01-04 11:44:04 [2025-01-04 11:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172663', 'tblTempUsageDetail_20' ) start [2025-01-04 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172663', 'tblTempUsageDetail_20' ) end [2025-01-04 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172663', 'tblTempVendorCDR_20' ) start [2025-01-04 11:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172663', 'tblTempVendorCDR_20' ) end [2025-01-04 11:44:19] Production.INFO: ProcessCDR(1,14172663,1,1,2) [2025-01-04 11:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172663', 'tblTempUsageDetail_20' ) start [2025-01-04 11:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172663', 'tblTempUsageDetail_20' ) end [2025-01-04 11:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:44:23] Production.INFO: ==11558== Releasing lock... [2025-01-04 11:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:44:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:45:05 [end_date_ymd] => 2025-01-04 11:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:45:05' and `end` < '2025-01-04 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-04 11:45:18] Production.INFO: count ==1271 [2025-01-04 11:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:45:05 - End Time 2025-01-04 11:45:05 [2025-01-04 11:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172668', 'tblTempUsageDetail_20' ) start [2025-01-04 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172668', 'tblTempUsageDetail_20' ) end [2025-01-04 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172668', 'tblTempVendorCDR_20' ) start [2025-01-04 11:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172668', 'tblTempVendorCDR_20' ) end [2025-01-04 11:45:19] Production.INFO: ProcessCDR(1,14172668,1,1,2) [2025-01-04 11:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172668', 'tblTempUsageDetail_20' ) start [2025-01-04 11:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172668', 'tblTempUsageDetail_20' ) end [2025-01-04 11:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:45:22] Production.INFO: ==11629== Releasing lock... [2025-01-04 11:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:45:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:46:05 [end_date_ymd] => 2025-01-04 11:46:05 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:46:05' and `end` < '2025-01-04 11: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-04 11:46:19] Production.INFO: count ==1274 [2025-01-04 11:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 08:46:05 - End Time 2025-01-04 11:46:05 [2025-01-04 11:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172673', 'tblTempUsageDetail_20' ) start [2025-01-04 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172673', 'tblTempUsageDetail_20' ) end [2025-01-04 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172673', 'tblTempVendorCDR_20' ) start [2025-01-04 11:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172673', 'tblTempVendorCDR_20' ) end [2025-01-04 11:46:20] Production.INFO: ProcessCDR(1,14172673,1,1,2) [2025-01-04 11:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172673', 'tblTempUsageDetail_20' ) start [2025-01-04 11:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172673', 'tblTempUsageDetail_20' ) end [2025-01-04 11:46:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:46:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:46:24] Production.INFO: ==11701== Releasing lock... [2025-01-04 11:46:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:46:24] Production.INFO: 38 MB #Memory Used# [2025-01-04 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:47:05 [end_date_ymd] => 2025-01-04 11:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:47:05' and `end` < '2025-01-04 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-04 11:47:18] Production.INFO: count ==1277 [2025-01-04 11:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:47:05 - End Time 2025-01-04 11:47:05 [2025-01-04 11:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172678', 'tblTempUsageDetail_20' ) start [2025-01-04 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172678', 'tblTempUsageDetail_20' ) end [2025-01-04 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172678', 'tblTempVendorCDR_20' ) start [2025-01-04 11:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172678', 'tblTempVendorCDR_20' ) end [2025-01-04 11:47:19] Production.INFO: ProcessCDR(1,14172678,1,1,2) [2025-01-04 11:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172678', 'tblTempUsageDetail_20' ) start [2025-01-04 11:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172678', 'tblTempUsageDetail_20' ) end [2025-01-04 11:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:47:23] Production.INFO: ==11773== Releasing lock... [2025-01-04 11:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:47:23] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:48:05 [end_date_ymd] => 2025-01-04 11:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:48:05' and `end` < '2025-01-04 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-04 11:48:17] Production.INFO: count ==1292 [2025-01-04 11:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:48:05 - End Time 2025-01-04 11:48:05 [2025-01-04 11:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172683', 'tblTempUsageDetail_20' ) start [2025-01-04 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172683', 'tblTempUsageDetail_20' ) end [2025-01-04 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172683', 'tblTempVendorCDR_20' ) start [2025-01-04 11:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172683', 'tblTempVendorCDR_20' ) end [2025-01-04 11:48:18] Production.INFO: ProcessCDR(1,14172683,1,1,2) [2025-01-04 11:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172683', 'tblTempUsageDetail_20' ) start [2025-01-04 11:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172683', 'tblTempUsageDetail_20' ) end [2025-01-04 11:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:48:22] Production.INFO: ==11844== Releasing lock... [2025-01-04 11:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:48:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 11:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:49:04 [end_date_ymd] => 2025-01-04 11:49:04 [RateCDR] => 1 ) [2025-01-04 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-04 08:49:04' and `end` < '2025-01-04 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-04 11:49:17] Production.INFO: count ==1300 [2025-01-04 11:49:17] Production.ERROR: pbx CDR StartTime 2025-01-04 08:49:04 - End Time 2025-01-04 11:49:04 [2025-01-04 11:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172688', 'tblTempUsageDetail_20' ) start [2025-01-04 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172688', 'tblTempUsageDetail_20' ) end [2025-01-04 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172688', 'tblTempVendorCDR_20' ) start [2025-01-04 11:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172688', 'tblTempVendorCDR_20' ) end [2025-01-04 11:49:17] Production.INFO: ProcessCDR(1,14172688,1,1,2) [2025-01-04 11:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172688', 'tblTempUsageDetail_20' ) start [2025-01-04 11:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172688', 'tblTempUsageDetail_20' ) end [2025-01-04 11:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:49:21] Production.INFO: ==11913== Releasing lock... [2025-01-04 11:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:49:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 11:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:50:06 [end_date_ymd] => 2025-01-04 11:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 08:50:06' and `end` < '2025-01-04 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-04 11:50:18] Production.INFO: count ==1304 [2025-01-04 11:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:50:06 - End Time 2025-01-04 11:50:06 [2025-01-04 11:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172694', 'tblTempUsageDetail_20' ) start [2025-01-04 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172694', 'tblTempUsageDetail_20' ) end [2025-01-04 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172694', 'tblTempVendorCDR_20' ) start [2025-01-04 11:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172694', 'tblTempVendorCDR_20' ) end [2025-01-04 11:50:19] Production.INFO: ProcessCDR(1,14172694,1,1,2) [2025-01-04 11:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172694,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172694,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172694', 'tblTempUsageDetail_20' ) start [2025-01-04 11:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172694', 'tblTempUsageDetail_20' ) end [2025-01-04 11:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:50:23] Production.INFO: ==11986== Releasing lock... [2025-01-04 11:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:50:23] Production.INFO: 38 MB #Memory Used# [2025-01-04 11:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:51:04 [end_date_ymd] => 2025-01-04 11:51:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:51:04' and `end` < '2025-01-04 11: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-04 11:51:17] Production.INFO: count ==1345 [2025-01-04 11:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:51:04 - End Time 2025-01-04 11:51:04 [2025-01-04 11:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172699', 'tblTempUsageDetail_20' ) start [2025-01-04 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172699', 'tblTempUsageDetail_20' ) end [2025-01-04 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172699', 'tblTempVendorCDR_20' ) start [2025-01-04 11:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172699', 'tblTempVendorCDR_20' ) end [2025-01-04 11:51:18] Production.INFO: ProcessCDR(1,14172699,1,1,2) [2025-01-04 11:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172699,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172699,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172699', 'tblTempUsageDetail_20' ) start [2025-01-04 11:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172699', 'tblTempUsageDetail_20' ) end [2025-01-04 11:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:51:22] Production.INFO: ==12058== Releasing lock... [2025-01-04 11:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:51:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 11:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:52:05 [end_date_ymd] => 2025-01-04 11:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:52:05' and `end` < '2025-01-04 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-04 11:52:18] Production.INFO: count ==1348 [2025-01-04 11:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:52:05 - End Time 2025-01-04 11:52:05 [2025-01-04 11:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172704', 'tblTempUsageDetail_20' ) start [2025-01-04 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172704', 'tblTempUsageDetail_20' ) end [2025-01-04 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172704', 'tblTempVendorCDR_20' ) start [2025-01-04 11:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172704', 'tblTempVendorCDR_20' ) end [2025-01-04 11:52:19] Production.INFO: ProcessCDR(1,14172704,1,1,2) [2025-01-04 11:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172704,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172704,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172704', 'tblTempUsageDetail_20' ) start [2025-01-04 11:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172704', 'tblTempUsageDetail_20' ) end [2025-01-04 11:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:52:23] Production.INFO: ==12172== Releasing lock... [2025-01-04 11:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:52:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 11:53:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:53:04 [end_date_ymd] => 2025-01-04 11:53:04 [RateCDR] => 1 ) [2025-01-04 11: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-04 08:53:04' and `end` < '2025-01-04 11: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-04 11:53:17] Production.INFO: count ==1350 [2025-01-04 11:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:53:04 - End Time 2025-01-04 11:53:04 [2025-01-04 11:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172709', 'tblTempUsageDetail_20' ) start [2025-01-04 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172709', 'tblTempUsageDetail_20' ) end [2025-01-04 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172709', 'tblTempVendorCDR_20' ) start [2025-01-04 11:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172709', 'tblTempVendorCDR_20' ) end [2025-01-04 11:53:18] Production.INFO: ProcessCDR(1,14172709,1,1,2) [2025-01-04 11:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172709,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172709,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172709', 'tblTempUsageDetail_20' ) start [2025-01-04 11:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172709', 'tblTempUsageDetail_20' ) end [2025-01-04 11:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:53:22] Production.INFO: ==12242== Releasing lock... [2025-01-04 11:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 11:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:54:05 [end_date_ymd] => 2025-01-04 11:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:54:05' and `end` < '2025-01-04 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-04 11:54:18] Production.INFO: count ==1351 [2025-01-04 11:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:54:05 - End Time 2025-01-04 11:54:05 [2025-01-04 11:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172714', 'tblTempUsageDetail_20' ) start [2025-01-04 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172714', 'tblTempUsageDetail_20' ) end [2025-01-04 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172714', 'tblTempVendorCDR_20' ) start [2025-01-04 11:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172714', 'tblTempVendorCDR_20' ) end [2025-01-04 11:54:18] Production.INFO: ProcessCDR(1,14172714,1,1,2) [2025-01-04 11:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172714', 'tblTempUsageDetail_20' ) start [2025-01-04 11:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172714', 'tblTempUsageDetail_20' ) end [2025-01-04 11:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:54:23] Production.INFO: ==12313== Releasing lock... [2025-01-04 11:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:54:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:55:05 [end_date_ymd] => 2025-01-04 11:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:55:05' and `end` < '2025-01-04 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-04 11:55:18] Production.INFO: count ==1350 [2025-01-04 11:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:55:05 - End Time 2025-01-04 11:55:05 [2025-01-04 11:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172719', 'tblTempUsageDetail_20' ) start [2025-01-04 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172719', 'tblTempUsageDetail_20' ) end [2025-01-04 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172719', 'tblTempVendorCDR_20' ) start [2025-01-04 11:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172719', 'tblTempVendorCDR_20' ) end [2025-01-04 11:55:18] Production.INFO: ProcessCDR(1,14172719,1,1,2) [2025-01-04 11:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172719', 'tblTempUsageDetail_20' ) start [2025-01-04 11:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172719', 'tblTempUsageDetail_20' ) end [2025-01-04 11:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:55:21] Production.INFO: ==12383== Releasing lock... [2025-01-04 11:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:55:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 11:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:56:05 [end_date_ymd] => 2025-01-04 11:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:56:05' and `end` < '2025-01-04 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-04 11:56:18] Production.INFO: count ==1349 [2025-01-04 11:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:56:05 - End Time 2025-01-04 11:56:05 [2025-01-04 11:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172724', 'tblTempUsageDetail_20' ) start [2025-01-04 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172724', 'tblTempUsageDetail_20' ) end [2025-01-04 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172724', 'tblTempVendorCDR_20' ) start [2025-01-04 11:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172724', 'tblTempVendorCDR_20' ) end [2025-01-04 11:56:19] Production.INFO: ProcessCDR(1,14172724,1,1,2) [2025-01-04 11:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172724', 'tblTempUsageDetail_20' ) start [2025-01-04 11:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172724', 'tblTempUsageDetail_20' ) end [2025-01-04 11:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:56:22] Production.INFO: ==12454== Releasing lock... [2025-01-04 11:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:56:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:57:05 [end_date_ymd] => 2025-01-04 11:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:57:05' and `end` < '2025-01-04 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-04 11:57:18] Production.INFO: count ==1369 [2025-01-04 11:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:57:05 - End Time 2025-01-04 11:57:05 [2025-01-04 11:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172729', 'tblTempUsageDetail_20' ) start [2025-01-04 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172729', 'tblTempUsageDetail_20' ) end [2025-01-04 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172729', 'tblTempVendorCDR_20' ) start [2025-01-04 11:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172729', 'tblTempVendorCDR_20' ) end [2025-01-04 11:57:18] Production.INFO: ProcessCDR(1,14172729,1,1,2) [2025-01-04 11:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172729', 'tblTempUsageDetail_20' ) start [2025-01-04 11:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172729', 'tblTempUsageDetail_20' ) end [2025-01-04 11:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:57:22] Production.INFO: ==12529== Releasing lock... [2025-01-04 11:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:57:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 11:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:58:05 [end_date_ymd] => 2025-01-04 11:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:58:05' and `end` < '2025-01-04 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-04 11:58:18] Production.INFO: count ==1369 [2025-01-04 11:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 08:58:05 - End Time 2025-01-04 11:58:05 [2025-01-04 11:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172734', 'tblTempUsageDetail_20' ) start [2025-01-04 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172734', 'tblTempUsageDetail_20' ) end [2025-01-04 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172734', 'tblTempVendorCDR_20' ) start [2025-01-04 11:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172734', 'tblTempVendorCDR_20' ) end [2025-01-04 11:58:18] Production.INFO: ProcessCDR(1,14172734,1,1,2) [2025-01-04 11:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172734', 'tblTempUsageDetail_20' ) start [2025-01-04 11:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172734', 'tblTempUsageDetail_20' ) end [2025-01-04 11:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:58:21] Production.INFO: ==12600== Releasing lock... [2025-01-04 11:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 08:59:05 [end_date_ymd] => 2025-01-04 11:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 08:59:05' and `end` < '2025-01-04 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-04 11:59:18] Production.INFO: count ==1368 [2025-01-04 11:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 08:59:05 - End Time 2025-01-04 11:59:05 [2025-01-04 11:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172739', 'tblTempUsageDetail_20' ) start [2025-01-04 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172739', 'tblTempUsageDetail_20' ) end [2025-01-04 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172739', 'tblTempVendorCDR_20' ) start [2025-01-04 11:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172739', 'tblTempVendorCDR_20' ) end [2025-01-04 11:59:19] Production.INFO: ProcessCDR(1,14172739,1,1,2) [2025-01-04 11:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 11:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172739', 'tblTempUsageDetail_20' ) start [2025-01-04 11:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172739', 'tblTempUsageDetail_20' ) end [2025-01-04 11:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 11:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 11:59:22] Production.INFO: ==12676== Releasing lock... [2025-01-04 11:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 11:59:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 12:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:00:05 [end_date_ymd] => 2025-01-04 12:00:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:00:05' and `end` < '2025-01-04 12: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-04 12:00:18] Production.INFO: count ==1374 [2025-01-04 12:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:00:05 - End Time 2025-01-04 12:00:05 [2025-01-04 12:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172745', 'tblTempUsageDetail_20' ) start [2025-01-04 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172745', 'tblTempUsageDetail_20' ) end [2025-01-04 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172745', 'tblTempVendorCDR_20' ) start [2025-01-04 12:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172745', 'tblTempVendorCDR_20' ) end [2025-01-04 12:00:19] Production.INFO: ProcessCDR(1,14172745,1,1,2) [2025-01-04 12:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172745,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172745,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172745', 'tblTempUsageDetail_20' ) start [2025-01-04 12:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172745', 'tblTempUsageDetail_20' ) end [2025-01-04 12:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:00:22] Production.INFO: ==12750== Releasing lock... [2025-01-04 12:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:00:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:01:05 [end_date_ymd] => 2025-01-04 12:01:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:01:05' and `end` < '2025-01-04 12: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-04 12:01:19] Production.INFO: count ==1428 [2025-01-04 12:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:01:05 - End Time 2025-01-04 12:01:05 [2025-01-04 12:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172750', 'tblTempUsageDetail_20' ) start [2025-01-04 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172750', 'tblTempUsageDetail_20' ) end [2025-01-04 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172750', 'tblTempVendorCDR_20' ) start [2025-01-04 12:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172750', 'tblTempVendorCDR_20' ) end [2025-01-04 12:01:19] Production.INFO: ProcessCDR(1,14172750,1,1,2) [2025-01-04 12:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172750,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172750,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172750', 'tblTempUsageDetail_20' ) start [2025-01-04 12:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172750', 'tblTempUsageDetail_20' ) end [2025-01-04 12:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:01:22] Production.INFO: ==12835== Releasing lock... [2025-01-04 12:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:01:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:02:06 [end_date_ymd] => 2025-01-04 12:02:06 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:02:06' and `end` < '2025-01-04 12: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-04 12:02:19] Production.INFO: count ==1432 [2025-01-04 12:02:20] Production.ERROR: pbx CDR StartTime 2025-01-04 09:02:06 - End Time 2025-01-04 12:02:06 [2025-01-04 12:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172755', 'tblTempUsageDetail_20' ) start [2025-01-04 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172755', 'tblTempUsageDetail_20' ) end [2025-01-04 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172755', 'tblTempVendorCDR_20' ) start [2025-01-04 12:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172755', 'tblTempVendorCDR_20' ) end [2025-01-04 12:02:20] Production.INFO: ProcessCDR(1,14172755,1,1,2) [2025-01-04 12:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172755,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172755,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172755', 'tblTempUsageDetail_20' ) start [2025-01-04 12:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172755', 'tblTempUsageDetail_20' ) end [2025-01-04 12:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:02:24] Production.INFO: ==12906== Releasing lock... [2025-01-04 12:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:02:24] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:03:05 [end_date_ymd] => 2025-01-04 12:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:03:05' and `end` < '2025-01-04 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-04 12:03:19] Production.INFO: count ==1425 [2025-01-04 12:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:03:05 - End Time 2025-01-04 12:03:05 [2025-01-04 12:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172760', 'tblTempUsageDetail_20' ) start [2025-01-04 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172760', 'tblTempUsageDetail_20' ) end [2025-01-04 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172760', 'tblTempVendorCDR_20' ) start [2025-01-04 12:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172760', 'tblTempVendorCDR_20' ) end [2025-01-04 12:03:19] Production.INFO: ProcessCDR(1,14172760,1,1,2) [2025-01-04 12:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172760', 'tblTempUsageDetail_20' ) start [2025-01-04 12:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172760', 'tblTempUsageDetail_20' ) end [2025-01-04 12:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:03:22] Production.INFO: ==12978== Releasing lock... [2025-01-04 12:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:03:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:04:05 [end_date_ymd] => 2025-01-04 12:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:04:05' and `end` < '2025-01-04 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-04 12:04:18] Production.INFO: count ==1421 [2025-01-04 12:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:04:05 - End Time 2025-01-04 12:04:05 [2025-01-04 12:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172765', 'tblTempUsageDetail_20' ) start [2025-01-04 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172765', 'tblTempUsageDetail_20' ) end [2025-01-04 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172765', 'tblTempVendorCDR_20' ) start [2025-01-04 12:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172765', 'tblTempVendorCDR_20' ) end [2025-01-04 12:04:18] Production.INFO: ProcessCDR(1,14172765,1,1,2) [2025-01-04 12:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172765', 'tblTempUsageDetail_20' ) start [2025-01-04 12:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172765', 'tblTempUsageDetail_20' ) end [2025-01-04 12:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:04:23] Production.INFO: ==13049== Releasing lock... [2025-01-04 12:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:04:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:05:04 [end_date_ymd] => 2025-01-04 12:05:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:05:04' and `end` < '2025-01-04 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-04 12:05:17] Production.INFO: count ==1416 [2025-01-04 12:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:05:04 - End Time 2025-01-04 12:05:04 [2025-01-04 12:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172770', 'tblTempUsageDetail_20' ) start [2025-01-04 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172770', 'tblTempUsageDetail_20' ) end [2025-01-04 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172770', 'tblTempVendorCDR_20' ) start [2025-01-04 12:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172770', 'tblTempVendorCDR_20' ) end [2025-01-04 12:05:18] Production.INFO: ProcessCDR(1,14172770,1,1,2) [2025-01-04 12:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172770', 'tblTempUsageDetail_20' ) start [2025-01-04 12:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172770', 'tblTempUsageDetail_20' ) end [2025-01-04 12:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:05:22] Production.INFO: ==13121== Releasing lock... [2025-01-04 12:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:05:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:06:05 [end_date_ymd] => 2025-01-04 12:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:06:05' and `end` < '2025-01-04 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-04 12:06:18] Production.INFO: count ==1415 [2025-01-04 12:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:06:05 - End Time 2025-01-04 12:06:05 [2025-01-04 12:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172775', 'tblTempUsageDetail_20' ) start [2025-01-04 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172775', 'tblTempUsageDetail_20' ) end [2025-01-04 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172775', 'tblTempVendorCDR_20' ) start [2025-01-04 12:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172775', 'tblTempVendorCDR_20' ) end [2025-01-04 12:06:18] Production.INFO: ProcessCDR(1,14172775,1,1,2) [2025-01-04 12:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172775', 'tblTempUsageDetail_20' ) start [2025-01-04 12:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172775', 'tblTempUsageDetail_20' ) end [2025-01-04 12:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:06:21] Production.INFO: ==13195== Releasing lock... [2025-01-04 12:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:06:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 12:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:07:04 [end_date_ymd] => 2025-01-04 12:07:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:07:04' and `end` < '2025-01-04 12: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-04 12:07:17] Production.INFO: count ==1415 [2025-01-04 12:07:17] Production.ERROR: pbx CDR StartTime 2025-01-04 09:07:04 - End Time 2025-01-04 12:07:04 [2025-01-04 12:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172780', 'tblTempUsageDetail_20' ) start [2025-01-04 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172780', 'tblTempUsageDetail_20' ) end [2025-01-04 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172780', 'tblTempVendorCDR_20' ) start [2025-01-04 12:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172780', 'tblTempVendorCDR_20' ) end [2025-01-04 12:07:17] Production.INFO: ProcessCDR(1,14172780,1,1,2) [2025-01-04 12:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172780', 'tblTempUsageDetail_20' ) start [2025-01-04 12:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172780', 'tblTempUsageDetail_20' ) end [2025-01-04 12:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:07:21] Production.INFO: ==13266== Releasing lock... [2025-01-04 12:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:07:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 12:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:08:05 [end_date_ymd] => 2025-01-04 12:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:08:05' and `end` < '2025-01-04 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-04 12:08:18] Production.INFO: count ==1407 [2025-01-04 12:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:08:05 - End Time 2025-01-04 12:08:05 [2025-01-04 12:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172785', 'tblTempUsageDetail_20' ) start [2025-01-04 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172785', 'tblTempUsageDetail_20' ) end [2025-01-04 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172785', 'tblTempVendorCDR_20' ) start [2025-01-04 12:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172785', 'tblTempVendorCDR_20' ) end [2025-01-04 12:08:18] Production.INFO: ProcessCDR(1,14172785,1,1,2) [2025-01-04 12:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172785', 'tblTempUsageDetail_20' ) start [2025-01-04 12:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172785', 'tblTempUsageDetail_20' ) end [2025-01-04 12:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:08:21] Production.INFO: ==13377== Releasing lock... [2025-01-04 12:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 12:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:09:05 [end_date_ymd] => 2025-01-04 12:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:09:05' and `end` < '2025-01-04 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-04 12:09:18] Production.INFO: count ==1417 [2025-01-04 12:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:09:05 - End Time 2025-01-04 12:09:05 [2025-01-04 12:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172790', 'tblTempUsageDetail_20' ) start [2025-01-04 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172790', 'tblTempUsageDetail_20' ) end [2025-01-04 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172790', 'tblTempVendorCDR_20' ) start [2025-01-04 12:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172790', 'tblTempVendorCDR_20' ) end [2025-01-04 12:09:19] Production.INFO: ProcessCDR(1,14172790,1,1,2) [2025-01-04 12:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172790', 'tblTempUsageDetail_20' ) start [2025-01-04 12:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172790', 'tblTempUsageDetail_20' ) end [2025-01-04 12:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:09:23] Production.INFO: ==13446== Releasing lock... [2025-01-04 12:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:09:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:10:05 [end_date_ymd] => 2025-01-04 12:10:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:10:05' and `end` < '2025-01-04 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-04 12:10:18] Production.INFO: count ==1426 [2025-01-04 12:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:10:05 - End Time 2025-01-04 12:10:05 [2025-01-04 12:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172796', 'tblTempUsageDetail_20' ) start [2025-01-04 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172796', 'tblTempUsageDetail_20' ) end [2025-01-04 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172796', 'tblTempVendorCDR_20' ) start [2025-01-04 12:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172796', 'tblTempVendorCDR_20' ) end [2025-01-04 12:10:19] Production.INFO: ProcessCDR(1,14172796,1,1,2) [2025-01-04 12:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172796,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172796,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172796', 'tblTempUsageDetail_20' ) start [2025-01-04 12:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172796', 'tblTempUsageDetail_20' ) end [2025-01-04 12:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:10:23] Production.INFO: ==13519== Releasing lock... [2025-01-04 12:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:10:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:11:05 [end_date_ymd] => 2025-01-04 12:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:11:05' and `end` < '2025-01-04 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-04 12:11:18] Production.INFO: count ==1460 [2025-01-04 12:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:11:05 - End Time 2025-01-04 12:11:05 [2025-01-04 12:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172801', 'tblTempUsageDetail_20' ) start [2025-01-04 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172801', 'tblTempUsageDetail_20' ) end [2025-01-04 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172801', 'tblTempVendorCDR_20' ) start [2025-01-04 12:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172801', 'tblTempVendorCDR_20' ) end [2025-01-04 12:11:19] Production.INFO: ProcessCDR(1,14172801,1,1,2) [2025-01-04 12:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172801,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172801,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172801', 'tblTempUsageDetail_20' ) start [2025-01-04 12:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172801', 'tblTempUsageDetail_20' ) end [2025-01-04 12:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:11:23] Production.INFO: ==13594== Releasing lock... [2025-01-04 12:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:11:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:12:05 [end_date_ymd] => 2025-01-04 12:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:12:05' and `end` < '2025-01-04 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-04 12:12:18] Production.INFO: count ==1464 [2025-01-04 12:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:12:05 - End Time 2025-01-04 12:12:05 [2025-01-04 12:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172806', 'tblTempUsageDetail_20' ) start [2025-01-04 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172806', 'tblTempUsageDetail_20' ) end [2025-01-04 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172806', 'tblTempVendorCDR_20' ) start [2025-01-04 12:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172806', 'tblTempVendorCDR_20' ) end [2025-01-04 12:12:18] Production.INFO: ProcessCDR(1,14172806,1,1,2) [2025-01-04 12:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172806,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172806,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172806', 'tblTempUsageDetail_20' ) start [2025-01-04 12:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172806', 'tblTempUsageDetail_20' ) end [2025-01-04 12:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:12:23] Production.INFO: ==13671== Releasing lock... [2025-01-04 12:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:12:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:13:05 [end_date_ymd] => 2025-01-04 12:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:13:05' and `end` < '2025-01-04 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-04 12:13:18] Production.INFO: count ==1471 [2025-01-04 12:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:13:05 - End Time 2025-01-04 12:13:05 [2025-01-04 12:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172811', 'tblTempUsageDetail_20' ) start [2025-01-04 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172811', 'tblTempUsageDetail_20' ) end [2025-01-04 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172811', 'tblTempVendorCDR_20' ) start [2025-01-04 12:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172811', 'tblTempVendorCDR_20' ) end [2025-01-04 12:13:18] Production.INFO: ProcessCDR(1,14172811,1,1,2) [2025-01-04 12:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172811', 'tblTempUsageDetail_20' ) start [2025-01-04 12:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172811', 'tblTempUsageDetail_20' ) end [2025-01-04 12:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:13:23] Production.INFO: ==13742== Releasing lock... [2025-01-04 12:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:13:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:14:06 [end_date_ymd] => 2025-01-04 12:14:06 [RateCDR] => 1 ) [2025-01-04 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-04 09:14:06' and `end` < '2025-01-04 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-04 12:14:19] Production.INFO: count ==1475 [2025-01-04 12:14:20] Production.ERROR: pbx CDR StartTime 2025-01-04 09:14:06 - End Time 2025-01-04 12:14:06 [2025-01-04 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172816', 'tblTempUsageDetail_20' ) start [2025-01-04 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172816', 'tblTempUsageDetail_20' ) end [2025-01-04 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172816', 'tblTempVendorCDR_20' ) start [2025-01-04 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172816', 'tblTempVendorCDR_20' ) end [2025-01-04 12:14:20] Production.INFO: ProcessCDR(1,14172816,1,1,2) [2025-01-04 12:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172816', 'tblTempUsageDetail_20' ) start [2025-01-04 12:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172816', 'tblTempUsageDetail_20' ) end [2025-01-04 12:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:14:24] Production.INFO: ==13832== Releasing lock... [2025-01-04 12:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:14:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:15:05 [end_date_ymd] => 2025-01-04 12:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:15:05' and `end` < '2025-01-04 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-04 12:15:18] Production.INFO: count ==1470 [2025-01-04 12:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:15:05 - End Time 2025-01-04 12:15:05 [2025-01-04 12:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172821', 'tblTempUsageDetail_20' ) start [2025-01-04 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172821', 'tblTempUsageDetail_20' ) end [2025-01-04 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172821', 'tblTempVendorCDR_20' ) start [2025-01-04 12:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172821', 'tblTempVendorCDR_20' ) end [2025-01-04 12:15:18] Production.INFO: ProcessCDR(1,14172821,1,1,2) [2025-01-04 12:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172821', 'tblTempUsageDetail_20' ) start [2025-01-04 12:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172821', 'tblTempUsageDetail_20' ) end [2025-01-04 12:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:15:23] Production.INFO: ==13930== Releasing lock... [2025-01-04 12:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:15:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:16:05 [end_date_ymd] => 2025-01-04 12:16:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:16:05' and `end` < '2025-01-04 12: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-04 12:16:18] Production.INFO: count ==1472 [2025-01-04 12:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:16:05 - End Time 2025-01-04 12:16:05 [2025-01-04 12:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172826', 'tblTempUsageDetail_20' ) start [2025-01-04 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172826', 'tblTempUsageDetail_20' ) end [2025-01-04 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172826', 'tblTempVendorCDR_20' ) start [2025-01-04 12:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172826', 'tblTempVendorCDR_20' ) end [2025-01-04 12:16:19] Production.INFO: ProcessCDR(1,14172826,1,1,2) [2025-01-04 12:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172826', 'tblTempUsageDetail_20' ) start [2025-01-04 12:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172826', 'tblTempUsageDetail_20' ) end [2025-01-04 12:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:16:24] Production.INFO: ==14030== Releasing lock... [2025-01-04 12:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:16:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:17:05 [end_date_ymd] => 2025-01-04 12:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:17:05' and `end` < '2025-01-04 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-04 12:17:17] Production.INFO: count ==1476 [2025-01-04 12:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:17:05 - End Time 2025-01-04 12:17:05 [2025-01-04 12:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172831', 'tblTempUsageDetail_20' ) start [2025-01-04 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172831', 'tblTempUsageDetail_20' ) end [2025-01-04 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172831', 'tblTempVendorCDR_20' ) start [2025-01-04 12:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172831', 'tblTempVendorCDR_20' ) end [2025-01-04 12:17:18] Production.INFO: ProcessCDR(1,14172831,1,1,2) [2025-01-04 12:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172831', 'tblTempUsageDetail_20' ) start [2025-01-04 12:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172831', 'tblTempUsageDetail_20' ) end [2025-01-04 12:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:17:22] Production.INFO: ==14126== Releasing lock... [2025-01-04 12:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:17:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:18:05 [end_date_ymd] => 2025-01-04 12:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:18:05' and `end` < '2025-01-04 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-04 12:18:18] Production.INFO: count ==1477 [2025-01-04 12:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:18:05 - End Time 2025-01-04 12:18:05 [2025-01-04 12:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172836', 'tblTempUsageDetail_20' ) start [2025-01-04 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172836', 'tblTempUsageDetail_20' ) end [2025-01-04 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172836', 'tblTempVendorCDR_20' ) start [2025-01-04 12:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172836', 'tblTempVendorCDR_20' ) end [2025-01-04 12:18:18] Production.INFO: ProcessCDR(1,14172836,1,1,2) [2025-01-04 12:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172836', 'tblTempUsageDetail_20' ) start [2025-01-04 12:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172836', 'tblTempUsageDetail_20' ) end [2025-01-04 12:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:18:23] Production.INFO: ==14238== Releasing lock... [2025-01-04 12:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:18:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:19:05 [end_date_ymd] => 2025-01-04 12:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:19:05' and `end` < '2025-01-04 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-04 12:19:18] Production.INFO: count ==1482 [2025-01-04 12:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:19:05 - End Time 2025-01-04 12:19:05 [2025-01-04 12:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172841', 'tblTempUsageDetail_20' ) start [2025-01-04 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172841', 'tblTempUsageDetail_20' ) end [2025-01-04 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172841', 'tblTempVendorCDR_20' ) start [2025-01-04 12:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172841', 'tblTempVendorCDR_20' ) end [2025-01-04 12:19:18] Production.INFO: ProcessCDR(1,14172841,1,1,2) [2025-01-04 12:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172841', 'tblTempUsageDetail_20' ) start [2025-01-04 12:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172841', 'tblTempUsageDetail_20' ) end [2025-01-04 12:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:19:23] Production.INFO: ==14336== Releasing lock... [2025-01-04 12:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:19:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:20:06 [end_date_ymd] => 2025-01-04 12:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 09:20:06' and `end` < '2025-01-04 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-04 12:20:19] Production.INFO: count ==1461 [2025-01-04 12:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:20:06 - End Time 2025-01-04 12:20:06 [2025-01-04 12:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172847', 'tblTempUsageDetail_20' ) start [2025-01-04 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172847', 'tblTempUsageDetail_20' ) end [2025-01-04 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172847', 'tblTempVendorCDR_20' ) start [2025-01-04 12:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172847', 'tblTempVendorCDR_20' ) end [2025-01-04 12:20:19] Production.INFO: ProcessCDR(1,14172847,1,1,2) [2025-01-04 12:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172847,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172847,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172847', 'tblTempUsageDetail_20' ) start [2025-01-04 12:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172847', 'tblTempUsageDetail_20' ) end [2025-01-04 12:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:20:23] Production.INFO: ==14437== Releasing lock... [2025-01-04 12:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:20:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 12:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:21:06 [end_date_ymd] => 2025-01-04 12:21:06 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:21:06' and `end` < '2025-01-04 12: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-04 12:21:19] Production.INFO: count ==1485 [2025-01-04 12:21:20] Production.ERROR: pbx CDR StartTime 2025-01-04 09:21:06 - End Time 2025-01-04 12:21:06 [2025-01-04 12:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172852', 'tblTempUsageDetail_20' ) start [2025-01-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172852', 'tblTempUsageDetail_20' ) end [2025-01-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172852', 'tblTempVendorCDR_20' ) start [2025-01-04 12:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172852', 'tblTempVendorCDR_20' ) end [2025-01-04 12:21:20] Production.INFO: ProcessCDR(1,14172852,1,1,2) [2025-01-04 12:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172852,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172852,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172852', 'tblTempUsageDetail_20' ) start [2025-01-04 12:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172852', 'tblTempUsageDetail_20' ) end [2025-01-04 12:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:21:24] Production.INFO: ==14537== Releasing lock... [2025-01-04 12:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:21:24] Production.INFO: 39 MB #Memory Used# [2025-01-04 12:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:22:05 [end_date_ymd] => 2025-01-04 12:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:22:05' and `end` < '2025-01-04 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-04 12:22:18] Production.INFO: count ==1502 [2025-01-04 12:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:22:05 - End Time 2025-01-04 12:22:05 [2025-01-04 12:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172857', 'tblTempUsageDetail_20' ) start [2025-01-04 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172857', 'tblTempUsageDetail_20' ) end [2025-01-04 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172857', 'tblTempVendorCDR_20' ) start [2025-01-04 12:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172857', 'tblTempVendorCDR_20' ) end [2025-01-04 12:22:18] Production.INFO: ProcessCDR(1,14172857,1,1,2) [2025-01-04 12:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172857,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172857,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172857', 'tblTempUsageDetail_20' ) start [2025-01-04 12:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172857', 'tblTempUsageDetail_20' ) end [2025-01-04 12:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:22:22] Production.INFO: ==14635== Releasing lock... [2025-01-04 12:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:22:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:23:05 [end_date_ymd] => 2025-01-04 12:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:23:05' and `end` < '2025-01-04 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-04 12:23:18] Production.INFO: count ==1492 [2025-01-04 12:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:23:05 - End Time 2025-01-04 12:23:05 [2025-01-04 12:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172862', 'tblTempUsageDetail_20' ) start [2025-01-04 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172862', 'tblTempUsageDetail_20' ) end [2025-01-04 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172862', 'tblTempVendorCDR_20' ) start [2025-01-04 12:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172862', 'tblTempVendorCDR_20' ) end [2025-01-04 12:23:18] Production.INFO: ProcessCDR(1,14172862,1,1,2) [2025-01-04 12:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172862', 'tblTempUsageDetail_20' ) start [2025-01-04 12:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172862', 'tblTempUsageDetail_20' ) end [2025-01-04 12:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:23:21] Production.INFO: ==14771== Releasing lock... [2025-01-04 12:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:23:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:24:05 [end_date_ymd] => 2025-01-04 12:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:24:05' and `end` < '2025-01-04 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-04 12:24:18] Production.INFO: count ==1491 [2025-01-04 12:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:24:05 - End Time 2025-01-04 12:24:05 [2025-01-04 12:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172867', 'tblTempUsageDetail_20' ) start [2025-01-04 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172867', 'tblTempUsageDetail_20' ) end [2025-01-04 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172867', 'tblTempVendorCDR_20' ) start [2025-01-04 12:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172867', 'tblTempVendorCDR_20' ) end [2025-01-04 12:24:19] Production.INFO: ProcessCDR(1,14172867,1,1,2) [2025-01-04 12:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172867', 'tblTempUsageDetail_20' ) start [2025-01-04 12:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172867', 'tblTempUsageDetail_20' ) end [2025-01-04 12:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:24:23] Production.INFO: ==14870== Releasing lock... [2025-01-04 12:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:24:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:25:05 [end_date_ymd] => 2025-01-04 12:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:25:05' and `end` < '2025-01-04 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-04 12:25:18] Production.INFO: count ==1492 [2025-01-04 12:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:25:05 - End Time 2025-01-04 12:25:05 [2025-01-04 12:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172872', 'tblTempUsageDetail_20' ) start [2025-01-04 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172872', 'tblTempUsageDetail_20' ) end [2025-01-04 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172872', 'tblTempVendorCDR_20' ) start [2025-01-04 12:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172872', 'tblTempVendorCDR_20' ) end [2025-01-04 12:25:18] Production.INFO: ProcessCDR(1,14172872,1,1,2) [2025-01-04 12:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172872', 'tblTempUsageDetail_20' ) start [2025-01-04 12:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172872', 'tblTempUsageDetail_20' ) end [2025-01-04 12:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:25:23] Production.INFO: ==14969== Releasing lock... [2025-01-04 12:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:25:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:26:06 [end_date_ymd] => 2025-01-04 12:26:06 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:26:06' and `end` < '2025-01-04 12: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-04 12:26:19] Production.INFO: count ==1495 [2025-01-04 12:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:26:06 - End Time 2025-01-04 12:26:06 [2025-01-04 12:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172877', 'tblTempUsageDetail_20' ) start [2025-01-04 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172877', 'tblTempUsageDetail_20' ) end [2025-01-04 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172877', 'tblTempVendorCDR_20' ) start [2025-01-04 12:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172877', 'tblTempVendorCDR_20' ) end [2025-01-04 12:26:19] Production.INFO: ProcessCDR(1,14172877,1,1,2) [2025-01-04 12:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:26:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:26:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172877', 'tblTempUsageDetail_20' ) start [2025-01-04 12:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172877', 'tblTempUsageDetail_20' ) end [2025-01-04 12:26:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:26:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:26:24] Production.INFO: ==15068== Releasing lock... [2025-01-04 12:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:26:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:27:05 [end_date_ymd] => 2025-01-04 12:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:27:05' and `end` < '2025-01-04 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-04 12:27:18] Production.INFO: count ==1510 [2025-01-04 12:27:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:27:05 - End Time 2025-01-04 12:27:05 [2025-01-04 12:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172882', 'tblTempUsageDetail_20' ) start [2025-01-04 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172882', 'tblTempUsageDetail_20' ) end [2025-01-04 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172882', 'tblTempVendorCDR_20' ) start [2025-01-04 12:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172882', 'tblTempVendorCDR_20' ) end [2025-01-04 12:27:19] Production.INFO: ProcessCDR(1,14172882,1,1,2) [2025-01-04 12:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172882', 'tblTempUsageDetail_20' ) start [2025-01-04 12:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172882', 'tblTempUsageDetail_20' ) end [2025-01-04 12:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:27:23] Production.INFO: ==15167== Releasing lock... [2025-01-04 12:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:27:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:28:05 [end_date_ymd] => 2025-01-04 12:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:28:05' and `end` < '2025-01-04 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-04 12:28:18] Production.INFO: count ==1528 [2025-01-04 12:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:28:05 - End Time 2025-01-04 12:28:05 [2025-01-04 12:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172887', 'tblTempUsageDetail_20' ) start [2025-01-04 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172887', 'tblTempUsageDetail_20' ) end [2025-01-04 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172887', 'tblTempVendorCDR_20' ) start [2025-01-04 12:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172887', 'tblTempVendorCDR_20' ) end [2025-01-04 12:28:19] Production.INFO: ProcessCDR(1,14172887,1,1,2) [2025-01-04 12:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172887', 'tblTempUsageDetail_20' ) start [2025-01-04 12:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172887', 'tblTempUsageDetail_20' ) end [2025-01-04 12:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:28:23] Production.INFO: ==15271== Releasing lock... [2025-01-04 12:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:28:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 12:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:29:05 [end_date_ymd] => 2025-01-04 12:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:29:05' and `end` < '2025-01-04 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-04 12:29:18] Production.INFO: count ==1517 [2025-01-04 12:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:29:05 - End Time 2025-01-04 12:29:05 [2025-01-04 12:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172892', 'tblTempUsageDetail_20' ) start [2025-01-04 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172892', 'tblTempUsageDetail_20' ) end [2025-01-04 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172892', 'tblTempVendorCDR_20' ) start [2025-01-04 12:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172892', 'tblTempVendorCDR_20' ) end [2025-01-04 12:29:19] Production.INFO: ProcessCDR(1,14172892,1,1,2) [2025-01-04 12:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172892', 'tblTempUsageDetail_20' ) start [2025-01-04 12:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172892', 'tblTempUsageDetail_20' ) end [2025-01-04 12:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:29:23] Production.INFO: ==15369== Releasing lock... [2025-01-04 12:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:29:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:30:06 [end_date_ymd] => 2025-01-04 12:30:06 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:30:06' and `end` < '2025-01-04 12: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-04 12:30:19] Production.INFO: count ==1524 [2025-01-04 12:30:20] Production.ERROR: pbx CDR StartTime 2025-01-04 09:30:06 - End Time 2025-01-04 12:30:06 [2025-01-04 12:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172897', 'tblTempUsageDetail_20' ) start [2025-01-04 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172897', 'tblTempUsageDetail_20' ) end [2025-01-04 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172897', 'tblTempVendorCDR_20' ) start [2025-01-04 12:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172897', 'tblTempVendorCDR_20' ) end [2025-01-04 12:30:20] Production.INFO: ProcessCDR(1,14172897,1,1,2) [2025-01-04 12:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172897', 'tblTempUsageDetail_20' ) start [2025-01-04 12:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172897', 'tblTempUsageDetail_20' ) end [2025-01-04 12:30:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:30:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:30:24] Production.INFO: ==15470== Releasing lock... [2025-01-04 12:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:30:24] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:31:05 [end_date_ymd] => 2025-01-04 12:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:31:05' and `end` < '2025-01-04 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-04 12:31:18] Production.INFO: count ==1545 [2025-01-04 12:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:31:05 - End Time 2025-01-04 12:31:05 [2025-01-04 12:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172903', 'tblTempUsageDetail_20' ) start [2025-01-04 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172903', 'tblTempUsageDetail_20' ) end [2025-01-04 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172903', 'tblTempVendorCDR_20' ) start [2025-01-04 12:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172903', 'tblTempVendorCDR_20' ) end [2025-01-04 12:31:18] Production.INFO: ProcessCDR(1,14172903,1,1,2) [2025-01-04 12:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172903,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172903,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172903', 'tblTempUsageDetail_20' ) start [2025-01-04 12:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172903', 'tblTempUsageDetail_20' ) end [2025-01-04 12:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:31:21] Production.INFO: ==15569== Releasing lock... [2025-01-04 12:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:31:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:32:05 [end_date_ymd] => 2025-01-04 12:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:32:05' and `end` < '2025-01-04 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-04 12:32:18] Production.INFO: count ==1534 [2025-01-04 12:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:32:05 - End Time 2025-01-04 12:32:05 [2025-01-04 12:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172908', 'tblTempUsageDetail_20' ) start [2025-01-04 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172908', 'tblTempUsageDetail_20' ) end [2025-01-04 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172908', 'tblTempVendorCDR_20' ) start [2025-01-04 12:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172908', 'tblTempVendorCDR_20' ) end [2025-01-04 12:32:19] Production.INFO: ProcessCDR(1,14172908,1,1,2) [2025-01-04 12:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172908,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172908,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172908', 'tblTempUsageDetail_20' ) start [2025-01-04 12:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172908', 'tblTempUsageDetail_20' ) end [2025-01-04 12:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:32:23] Production.INFO: ==15652== Releasing lock... [2025-01-04 12:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:32:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 12:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:33:04 [end_date_ymd] => 2025-01-04 12:33:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:33:04' and `end` < '2025-01-04 12: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-04 12:33:17] Production.INFO: count ==1566 [2025-01-04 12:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:33:04 - End Time 2025-01-04 12:33:04 [2025-01-04 12:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172913', 'tblTempUsageDetail_20' ) start [2025-01-04 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172913', 'tblTempUsageDetail_20' ) end [2025-01-04 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172913', 'tblTempVendorCDR_20' ) start [2025-01-04 12:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172913', 'tblTempVendorCDR_20' ) end [2025-01-04 12:33:18] Production.INFO: ProcessCDR(1,14172913,1,1,2) [2025-01-04 12:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172913', 'tblTempUsageDetail_20' ) start [2025-01-04 12:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172913', 'tblTempUsageDetail_20' ) end [2025-01-04 12:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:33:22] Production.INFO: ==15732== Releasing lock... [2025-01-04 12:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:33:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 12:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:34:05 [end_date_ymd] => 2025-01-04 12:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:34:05' and `end` < '2025-01-04 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-04 12:34:18] Production.INFO: count ==1581 [2025-01-04 12:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:34:05 - End Time 2025-01-04 12:34:05 [2025-01-04 12:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172918', 'tblTempUsageDetail_20' ) start [2025-01-04 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172918', 'tblTempUsageDetail_20' ) end [2025-01-04 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172918', 'tblTempVendorCDR_20' ) start [2025-01-04 12:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172918', 'tblTempVendorCDR_20' ) end [2025-01-04 12:34:19] Production.INFO: ProcessCDR(1,14172918,1,1,2) [2025-01-04 12:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172918', 'tblTempUsageDetail_20' ) start [2025-01-04 12:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172918', 'tblTempUsageDetail_20' ) end [2025-01-04 12:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:34:23] Production.INFO: ==15804== Releasing lock... [2025-01-04 12:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:34:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:35:04 [end_date_ymd] => 2025-01-04 12:35:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:35:04' and `end` < '2025-01-04 12: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-04 12:35:17] Production.INFO: count ==1594 [2025-01-04 12:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:35:04 - End Time 2025-01-04 12:35:04 [2025-01-04 12:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172923', 'tblTempUsageDetail_20' ) start [2025-01-04 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172923', 'tblTempUsageDetail_20' ) end [2025-01-04 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172923', 'tblTempVendorCDR_20' ) start [2025-01-04 12:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172923', 'tblTempVendorCDR_20' ) end [2025-01-04 12:35:18] Production.INFO: ProcessCDR(1,14172923,1,1,2) [2025-01-04 12:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172923', 'tblTempUsageDetail_20' ) start [2025-01-04 12:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172923', 'tblTempUsageDetail_20' ) end [2025-01-04 12:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:35:22] Production.INFO: ==15882== Releasing lock... [2025-01-04 12:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:35:22] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:36:04 [end_date_ymd] => 2025-01-04 12:36:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:36:04' and `end` < '2025-01-04 12: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-04 12:36:17] Production.INFO: count ==1598 [2025-01-04 12:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:36:04 - End Time 2025-01-04 12:36:04 [2025-01-04 12:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172928', 'tblTempUsageDetail_20' ) start [2025-01-04 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172928', 'tblTempUsageDetail_20' ) end [2025-01-04 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172928', 'tblTempVendorCDR_20' ) start [2025-01-04 12:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172928', 'tblTempVendorCDR_20' ) end [2025-01-04 12:36:18] Production.INFO: ProcessCDR(1,14172928,1,1,2) [2025-01-04 12:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172928', 'tblTempUsageDetail_20' ) start [2025-01-04 12:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172928', 'tblTempUsageDetail_20' ) end [2025-01-04 12:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:36:22] Production.INFO: ==15961== Releasing lock... [2025-01-04 12:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:36:22] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:37:05 [end_date_ymd] => 2025-01-04 12:37:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:37:05' and `end` < '2025-01-04 12: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-04 12:37:18] Production.INFO: count ==1584 [2025-01-04 12:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:37:05 - End Time 2025-01-04 12:37:05 [2025-01-04 12:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172933', 'tblTempUsageDetail_20' ) start [2025-01-04 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172933', 'tblTempUsageDetail_20' ) end [2025-01-04 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172933', 'tblTempVendorCDR_20' ) start [2025-01-04 12:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172933', 'tblTempVendorCDR_20' ) end [2025-01-04 12:37:19] Production.INFO: ProcessCDR(1,14172933,1,1,2) [2025-01-04 12:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172933', 'tblTempUsageDetail_20' ) start [2025-01-04 12:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172933', 'tblTempUsageDetail_20' ) end [2025-01-04 12:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:37:23] Production.INFO: ==16038== Releasing lock... [2025-01-04 12:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:37:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:38:05 [end_date_ymd] => 2025-01-04 12:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:38:05' and `end` < '2025-01-04 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-04 12:38:18] Production.INFO: count ==1583 [2025-01-04 12:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:38:05 - End Time 2025-01-04 12:38:05 [2025-01-04 12:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172938', 'tblTempUsageDetail_20' ) start [2025-01-04 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172938', 'tblTempUsageDetail_20' ) end [2025-01-04 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172938', 'tblTempVendorCDR_20' ) start [2025-01-04 12:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172938', 'tblTempVendorCDR_20' ) end [2025-01-04 12:38:18] Production.INFO: ProcessCDR(1,14172938,1,1,2) [2025-01-04 12:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172938', 'tblTempUsageDetail_20' ) start [2025-01-04 12:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172938', 'tblTempUsageDetail_20' ) end [2025-01-04 12:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:38:23] Production.INFO: ==16112== Releasing lock... [2025-01-04 12:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:38:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:39:05 [end_date_ymd] => 2025-01-04 12:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:39:05' and `end` < '2025-01-04 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-04 12:39:17] Production.INFO: count ==1586 [2025-01-04 12:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:39:05 - End Time 2025-01-04 12:39:05 [2025-01-04 12:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172943', 'tblTempUsageDetail_20' ) start [2025-01-04 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172943', 'tblTempUsageDetail_20' ) end [2025-01-04 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172943', 'tblTempVendorCDR_20' ) start [2025-01-04 12:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172943', 'tblTempVendorCDR_20' ) end [2025-01-04 12:39:18] Production.INFO: ProcessCDR(1,14172943,1,1,2) [2025-01-04 12:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172943', 'tblTempUsageDetail_20' ) start [2025-01-04 12:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172943', 'tblTempUsageDetail_20' ) end [2025-01-04 12:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:39:23] Production.INFO: ==16231== Releasing lock... [2025-01-04 12:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:39:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:40:05 [end_date_ymd] => 2025-01-04 12:40:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:40:05' and `end` < '2025-01-04 12: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-04 12:40:18] Production.INFO: count ==1586 [2025-01-04 12:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:40:05 - End Time 2025-01-04 12:40:05 [2025-01-04 12:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172948', 'tblTempUsageDetail_20' ) start [2025-01-04 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172948', 'tblTempUsageDetail_20' ) end [2025-01-04 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172948', 'tblTempVendorCDR_20' ) start [2025-01-04 12:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172948', 'tblTempVendorCDR_20' ) end [2025-01-04 12:40:18] Production.INFO: ProcessCDR(1,14172948,1,1,2) [2025-01-04 12:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172948', 'tblTempUsageDetail_20' ) start [2025-01-04 12:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172948', 'tblTempUsageDetail_20' ) end [2025-01-04 12:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:40:23] Production.INFO: ==16310== Releasing lock... [2025-01-04 12:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:40:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:41:05 [end_date_ymd] => 2025-01-04 12:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:41:05' and `end` < '2025-01-04 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-04 12:41:18] Production.INFO: count ==1625 [2025-01-04 12:41:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:41:05 - End Time 2025-01-04 12:41:05 [2025-01-04 12:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172954', 'tblTempUsageDetail_20' ) start [2025-01-04 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172954', 'tblTempUsageDetail_20' ) end [2025-01-04 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172954', 'tblTempVendorCDR_20' ) start [2025-01-04 12:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172954', 'tblTempVendorCDR_20' ) end [2025-01-04 12:41:19] Production.INFO: ProcessCDR(1,14172954,1,1,2) [2025-01-04 12:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172954,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172954,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172954', 'tblTempUsageDetail_20' ) start [2025-01-04 12:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172954', 'tblTempUsageDetail_20' ) end [2025-01-04 12:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:41:22] Production.INFO: ==16388== Releasing lock... [2025-01-04 12:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:41:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:42:04 [end_date_ymd] => 2025-01-04 12:42:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:42:04' and `end` < '2025-01-04 12: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-04 12:42:17] Production.INFO: count ==1626 [2025-01-04 12:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:42:04 - End Time 2025-01-04 12:42:04 [2025-01-04 12:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172959', 'tblTempUsageDetail_20' ) start [2025-01-04 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172959', 'tblTempUsageDetail_20' ) end [2025-01-04 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172959', 'tblTempVendorCDR_20' ) start [2025-01-04 12:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172959', 'tblTempVendorCDR_20' ) end [2025-01-04 12:42:18] Production.INFO: ProcessCDR(1,14172959,1,1,2) [2025-01-04 12:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172959,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172959,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172959', 'tblTempUsageDetail_20' ) start [2025-01-04 12:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172959', 'tblTempUsageDetail_20' ) end [2025-01-04 12:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:42:21] Production.INFO: ==16469== Releasing lock... [2025-01-04 12:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:42:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 12:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:43:05 [end_date_ymd] => 2025-01-04 12:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:43:05' and `end` < '2025-01-04 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-04 12:43:18] Production.INFO: count ==1628 [2025-01-04 12:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:43:05 - End Time 2025-01-04 12:43:05 [2025-01-04 12:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172964', 'tblTempUsageDetail_20' ) start [2025-01-04 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172964', 'tblTempUsageDetail_20' ) end [2025-01-04 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172964', 'tblTempVendorCDR_20' ) start [2025-01-04 12:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172964', 'tblTempVendorCDR_20' ) end [2025-01-04 12:43:18] Production.INFO: ProcessCDR(1,14172964,1,1,2) [2025-01-04 12:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172964', 'tblTempUsageDetail_20' ) start [2025-01-04 12:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172964', 'tblTempUsageDetail_20' ) end [2025-01-04 12:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:43:23] Production.INFO: ==16549== Releasing lock... [2025-01-04 12:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:43:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:44:05 [end_date_ymd] => 2025-01-04 12:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:44:05' and `end` < '2025-01-04 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-04 12:44:18] Production.INFO: count ==1629 [2025-01-04 12:44:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:44:05 - End Time 2025-01-04 12:44:05 [2025-01-04 12:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172969', 'tblTempUsageDetail_20' ) start [2025-01-04 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172969', 'tblTempUsageDetail_20' ) end [2025-01-04 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172969', 'tblTempVendorCDR_20' ) start [2025-01-04 12:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172969', 'tblTempVendorCDR_20' ) end [2025-01-04 12:44:19] Production.INFO: ProcessCDR(1,14172969,1,1,2) [2025-01-04 12:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172969', 'tblTempUsageDetail_20' ) start [2025-01-04 12:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172969', 'tblTempUsageDetail_20' ) end [2025-01-04 12:44:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:44:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:44:23] Production.INFO: ==16623== Releasing lock... [2025-01-04 12:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:44:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:45:04 [end_date_ymd] => 2025-01-04 12:45:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:45:04' and `end` < '2025-01-04 12: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-04 12:45:17] Production.INFO: count ==1634 [2025-01-04 12:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:45:04 - End Time 2025-01-04 12:45:04 [2025-01-04 12:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172974', 'tblTempUsageDetail_20' ) start [2025-01-04 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172974', 'tblTempUsageDetail_20' ) end [2025-01-04 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172974', 'tblTempVendorCDR_20' ) start [2025-01-04 12:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172974', 'tblTempVendorCDR_20' ) end [2025-01-04 12:45:18] Production.INFO: ProcessCDR(1,14172974,1,1,2) [2025-01-04 12:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172974', 'tblTempUsageDetail_20' ) start [2025-01-04 12:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172974', 'tblTempUsageDetail_20' ) end [2025-01-04 12:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:45:23] Production.INFO: ==16702== Releasing lock... [2025-01-04 12:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:45:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:46:05 [end_date_ymd] => 2025-01-04 12:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:46:05' and `end` < '2025-01-04 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-04 12:46:19] Production.INFO: count ==1635 [2025-01-04 12:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 09:46:05 - End Time 2025-01-04 12:46:05 [2025-01-04 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172979', 'tblTempUsageDetail_20' ) start [2025-01-04 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172979', 'tblTempUsageDetail_20' ) end [2025-01-04 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172979', 'tblTempVendorCDR_20' ) start [2025-01-04 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172979', 'tblTempVendorCDR_20' ) end [2025-01-04 12:46:20] Production.INFO: ProcessCDR(1,14172979,1,1,2) [2025-01-04 12:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172979', 'tblTempUsageDetail_20' ) start [2025-01-04 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172979', 'tblTempUsageDetail_20' ) end [2025-01-04 12:46:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:46:25] Production.INFO: ==16774== Releasing lock... [2025-01-04 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:46:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:47:05 [end_date_ymd] => 2025-01-04 12:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:47:05' and `end` < '2025-01-04 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-04 12:47:18] Production.INFO: count ==1628 [2025-01-04 12:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:47:05 - End Time 2025-01-04 12:47:05 [2025-01-04 12:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172984', 'tblTempUsageDetail_20' ) start [2025-01-04 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172984', 'tblTempUsageDetail_20' ) end [2025-01-04 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172984', 'tblTempVendorCDR_20' ) start [2025-01-04 12:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172984', 'tblTempVendorCDR_20' ) end [2025-01-04 12:47:19] Production.INFO: ProcessCDR(1,14172984,1,1,2) [2025-01-04 12:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172984', 'tblTempUsageDetail_20' ) start [2025-01-04 12:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172984', 'tblTempUsageDetail_20' ) end [2025-01-04 12:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:47:22] Production.INFO: ==16852== Releasing lock... [2025-01-04 12:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:47:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 12:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:48:05 [end_date_ymd] => 2025-01-04 12:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:48:05' and `end` < '2025-01-04 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-04 12:48:19] Production.INFO: count ==1624 [2025-01-04 12:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:48:05 - End Time 2025-01-04 12:48:05 [2025-01-04 12:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172989', 'tblTempUsageDetail_20' ) start [2025-01-04 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172989', 'tblTempUsageDetail_20' ) end [2025-01-04 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172989', 'tblTempVendorCDR_20' ) start [2025-01-04 12:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172989', 'tblTempVendorCDR_20' ) end [2025-01-04 12:48:19] Production.INFO: ProcessCDR(1,14172989,1,1,2) [2025-01-04 12:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172989', 'tblTempUsageDetail_20' ) start [2025-01-04 12:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172989', 'tblTempUsageDetail_20' ) end [2025-01-04 12:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:48:24] Production.INFO: ==16936== Releasing lock... [2025-01-04 12:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:48:24] Production.INFO: 40 MB #Memory Used# [2025-01-04 12:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:49:05 [end_date_ymd] => 2025-01-04 12:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:49:05' and `end` < '2025-01-04 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-04 12:49:18] Production.INFO: count ==1621 [2025-01-04 12:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:49:05 - End Time 2025-01-04 12:49:05 [2025-01-04 12:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172994', 'tblTempUsageDetail_20' ) start [2025-01-04 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14172994', 'tblTempUsageDetail_20' ) end [2025-01-04 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172994', 'tblTempVendorCDR_20' ) start [2025-01-04 12:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14172994', 'tblTempVendorCDR_20' ) end [2025-01-04 12:49:18] Production.INFO: ProcessCDR(1,14172994,1,1,2) [2025-01-04 12:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14172994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14172994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14172994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14172994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172994', 'tblTempUsageDetail_20' ) start [2025-01-04 12:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14172994', 'tblTempUsageDetail_20' ) end [2025-01-04 12:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:49:22] Production.INFO: ==17012== Releasing lock... [2025-01-04 12:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:49:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:50:06 [end_date_ymd] => 2025-01-04 12:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 09:50:06' and `end` < '2025-01-04 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-04 12:50:19] Production.INFO: count ==1606 [2025-01-04 12:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:50:06 - End Time 2025-01-04 12:50:06 [2025-01-04 12:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173000', 'tblTempUsageDetail_20' ) start [2025-01-04 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173000', 'tblTempUsageDetail_20' ) end [2025-01-04 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173000', 'tblTempVendorCDR_20' ) start [2025-01-04 12:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173000', 'tblTempVendorCDR_20' ) end [2025-01-04 12:50:19] Production.INFO: ProcessCDR(1,14173000,1,1,2) [2025-01-04 12:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:50:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173000,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:50:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:50:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173000,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173000', 'tblTempUsageDetail_20' ) start [2025-01-04 12:50:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173000', 'tblTempUsageDetail_20' ) end [2025-01-04 12:50:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:50:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:50:24] Production.INFO: ==17086== Releasing lock... [2025-01-04 12:50:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:50:24] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 12:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:51:05 [end_date_ymd] => 2025-01-04 12:51:05 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:51:05' and `end` < '2025-01-04 12: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-04 12:51:19] Production.INFO: count ==1676 [2025-01-04 12:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:51:05 - End Time 2025-01-04 12:51:05 [2025-01-04 12:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173005', 'tblTempUsageDetail_20' ) start [2025-01-04 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173005', 'tblTempUsageDetail_20' ) end [2025-01-04 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173005', 'tblTempVendorCDR_20' ) start [2025-01-04 12:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173005', 'tblTempVendorCDR_20' ) end [2025-01-04 12:51:19] Production.INFO: ProcessCDR(1,14173005,1,1,2) [2025-01-04 12:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173005,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173005,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173005', 'tblTempUsageDetail_20' ) start [2025-01-04 12:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173005', 'tblTempUsageDetail_20' ) end [2025-01-04 12:51:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:51:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:51:24] Production.INFO: ==17164== Releasing lock... [2025-01-04 12:51:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:51:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 12:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:52:06 [end_date_ymd] => 2025-01-04 12:52:06 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:52:06' and `end` < '2025-01-04 12: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-04 12:52:18] Production.INFO: count ==1691 [2025-01-04 12:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:52:06 - End Time 2025-01-04 12:52:06 [2025-01-04 12:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173010', 'tblTempUsageDetail_20' ) start [2025-01-04 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173010', 'tblTempUsageDetail_20' ) end [2025-01-04 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173010', 'tblTempVendorCDR_20' ) start [2025-01-04 12:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173010', 'tblTempVendorCDR_20' ) end [2025-01-04 12:52:19] Production.INFO: ProcessCDR(1,14173010,1,1,2) [2025-01-04 12:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173010,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173010,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173010', 'tblTempUsageDetail_20' ) start [2025-01-04 12:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173010', 'tblTempUsageDetail_20' ) end [2025-01-04 12:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:52:23] Production.INFO: ==17242== Releasing lock... [2025-01-04 12:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:52:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 12:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:53:05 [end_date_ymd] => 2025-01-04 12:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:53:05' and `end` < '2025-01-04 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-04 12:53:18] Production.INFO: count ==1681 [2025-01-04 12:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:53:05 - End Time 2025-01-04 12:53:05 [2025-01-04 12:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173015', 'tblTempUsageDetail_20' ) start [2025-01-04 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173015', 'tblTempUsageDetail_20' ) end [2025-01-04 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173015', 'tblTempVendorCDR_20' ) start [2025-01-04 12:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173015', 'tblTempVendorCDR_20' ) end [2025-01-04 12:53:18] Production.INFO: ProcessCDR(1,14173015,1,1,2) [2025-01-04 12:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173015', 'tblTempUsageDetail_20' ) start [2025-01-04 12:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173015', 'tblTempUsageDetail_20' ) end [2025-01-04 12:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:53:21] Production.INFO: ==17318== Releasing lock... [2025-01-04 12:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:53:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:54:05 [end_date_ymd] => 2025-01-04 12:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:54:05' and `end` < '2025-01-04 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-04 12:54:18] Production.INFO: count ==1698 [2025-01-04 12:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:54:05 - End Time 2025-01-04 12:54:05 [2025-01-04 12:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173020', 'tblTempUsageDetail_20' ) start [2025-01-04 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173020', 'tblTempUsageDetail_20' ) end [2025-01-04 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173020', 'tblTempVendorCDR_20' ) start [2025-01-04 12:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173020', 'tblTempVendorCDR_20' ) end [2025-01-04 12:54:18] Production.INFO: ProcessCDR(1,14173020,1,1,2) [2025-01-04 12:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173020', 'tblTempUsageDetail_20' ) start [2025-01-04 12:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173020', 'tblTempUsageDetail_20' ) end [2025-01-04 12:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:54:23] Production.INFO: ==17437== Releasing lock... [2025-01-04 12:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:54:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 12:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:55:04 [end_date_ymd] => 2025-01-04 12:55:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:55:04' and `end` < '2025-01-04 12: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-04 12:55:17] Production.INFO: count ==1690 [2025-01-04 12:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:55:04 - End Time 2025-01-04 12:55:04 [2025-01-04 12:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173025', 'tblTempUsageDetail_20' ) start [2025-01-04 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173025', 'tblTempUsageDetail_20' ) end [2025-01-04 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173025', 'tblTempVendorCDR_20' ) start [2025-01-04 12:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173025', 'tblTempVendorCDR_20' ) end [2025-01-04 12:55:18] Production.INFO: ProcessCDR(1,14173025,1,1,2) [2025-01-04 12:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173025', 'tblTempUsageDetail_20' ) start [2025-01-04 12:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173025', 'tblTempUsageDetail_20' ) end [2025-01-04 12:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:55:21] Production.INFO: ==17516== Releasing lock... [2025-01-04 12:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:55:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 12:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:56:04 [end_date_ymd] => 2025-01-04 12:56:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:56:04' and `end` < '2025-01-04 12: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-04 12:56:17] Production.INFO: count ==1675 [2025-01-04 12:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:56:04 - End Time 2025-01-04 12:56:04 [2025-01-04 12:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173030', 'tblTempUsageDetail_20' ) start [2025-01-04 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173030', 'tblTempUsageDetail_20' ) end [2025-01-04 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173030', 'tblTempVendorCDR_20' ) start [2025-01-04 12:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173030', 'tblTempVendorCDR_20' ) end [2025-01-04 12:56:18] Production.INFO: ProcessCDR(1,14173030,1,1,2) [2025-01-04 12:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173030', 'tblTempUsageDetail_20' ) start [2025-01-04 12:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173030', 'tblTempUsageDetail_20' ) end [2025-01-04 12:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:56:22] Production.INFO: ==17590== Releasing lock... [2025-01-04 12:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:56:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 12:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:57:04 [end_date_ymd] => 2025-01-04 12:57:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:57:04' and `end` < '2025-01-04 12: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-04 12:57:17] Production.INFO: count ==1669 [2025-01-04 12:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:57:04 - End Time 2025-01-04 12:57:04 [2025-01-04 12:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173035', 'tblTempUsageDetail_20' ) start [2025-01-04 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173035', 'tblTempUsageDetail_20' ) end [2025-01-04 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173035', 'tblTempVendorCDR_20' ) start [2025-01-04 12:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173035', 'tblTempVendorCDR_20' ) end [2025-01-04 12:57:18] Production.INFO: ProcessCDR(1,14173035,1,1,2) [2025-01-04 12:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173035', 'tblTempUsageDetail_20' ) start [2025-01-04 12:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173035', 'tblTempUsageDetail_20' ) end [2025-01-04 12:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:57:21] Production.INFO: ==17677== Releasing lock... [2025-01-04 12:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:57:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 12:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:58:04 [end_date_ymd] => 2025-01-04 12:58:04 [RateCDR] => 1 ) [2025-01-04 12: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-04 09:58:04' and `end` < '2025-01-04 12: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-04 12:58:19] Production.INFO: count ==1677 [2025-01-04 12:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 09:58:04 - End Time 2025-01-04 12:58:04 [2025-01-04 12:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173040', 'tblTempUsageDetail_20' ) start [2025-01-04 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173040', 'tblTempUsageDetail_20' ) end [2025-01-04 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173040', 'tblTempVendorCDR_20' ) start [2025-01-04 12:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173040', 'tblTempVendorCDR_20' ) end [2025-01-04 12:58:19] Production.INFO: ProcessCDR(1,14173040,1,1,2) [2025-01-04 12:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173040', 'tblTempUsageDetail_20' ) start [2025-01-04 12:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173040', 'tblTempUsageDetail_20' ) end [2025-01-04 12:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:58:22] Production.INFO: ==17758== Releasing lock... [2025-01-04 12:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:58:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 09:59:05 [end_date_ymd] => 2025-01-04 12:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 09:59:05' and `end` < '2025-01-04 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-04 12:59:18] Production.INFO: count ==1679 [2025-01-04 12:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 09:59:05 - End Time 2025-01-04 12:59:05 [2025-01-04 12:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173045', 'tblTempUsageDetail_20' ) start [2025-01-04 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173045', 'tblTempUsageDetail_20' ) end [2025-01-04 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173045', 'tblTempVendorCDR_20' ) start [2025-01-04 12:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173045', 'tblTempVendorCDR_20' ) end [2025-01-04 12:59:18] Production.INFO: ProcessCDR(1,14173045,1,1,2) [2025-01-04 12:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 12:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173045', 'tblTempUsageDetail_20' ) start [2025-01-04 12:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173045', 'tblTempUsageDetail_20' ) end [2025-01-04 12:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 12:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 12:59:23] Production.INFO: ==17834== Releasing lock... [2025-01-04 12:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 12:59:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:00:05 [end_date_ymd] => 2025-01-04 13:00:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:00:05' and `end` < '2025-01-04 13: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-04 13:00:18] Production.INFO: count ==1678 [2025-01-04 13:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:00:05 - End Time 2025-01-04 13:00:05 [2025-01-04 13:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173051', 'tblTempUsageDetail_20' ) start [2025-01-04 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173051', 'tblTempUsageDetail_20' ) end [2025-01-04 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173051', 'tblTempVendorCDR_20' ) start [2025-01-04 13:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173051', 'tblTempVendorCDR_20' ) end [2025-01-04 13:00:19] Production.INFO: ProcessCDR(1,14173051,1,1,2) [2025-01-04 13:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173051,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173051,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173051', 'tblTempUsageDetail_20' ) start [2025-01-04 13:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173051', 'tblTempUsageDetail_20' ) end [2025-01-04 13:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:00:22] Production.INFO: ==17912== Releasing lock... [2025-01-04 13:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:00:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:01:05 [end_date_ymd] => 2025-01-04 13:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:01:05' and `end` < '2025-01-04 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-04 13:01:19] Production.INFO: count ==1710 [2025-01-04 13:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:01:05 - End Time 2025-01-04 13:01:05 [2025-01-04 13:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173056', 'tblTempUsageDetail_20' ) start [2025-01-04 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173056', 'tblTempUsageDetail_20' ) end [2025-01-04 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173056', 'tblTempVendorCDR_20' ) start [2025-01-04 13:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173056', 'tblTempVendorCDR_20' ) end [2025-01-04 13:01:19] Production.INFO: ProcessCDR(1,14173056,1,1,2) [2025-01-04 13:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173056,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173056,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173056', 'tblTempUsageDetail_20' ) start [2025-01-04 13:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173056', 'tblTempUsageDetail_20' ) end [2025-01-04 13:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:01:24] Production.INFO: ==18006== Releasing lock... [2025-01-04 13:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:01:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:02:04 [end_date_ymd] => 2025-01-04 13:02:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:02:04' and `end` < '2025-01-04 13: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-04 13:02:17] Production.INFO: count ==1708 [2025-01-04 13:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:02:04 - End Time 2025-01-04 13:02:04 [2025-01-04 13:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173061', 'tblTempUsageDetail_20' ) start [2025-01-04 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173061', 'tblTempUsageDetail_20' ) end [2025-01-04 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173061', 'tblTempVendorCDR_20' ) start [2025-01-04 13:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173061', 'tblTempVendorCDR_20' ) end [2025-01-04 13:02:18] Production.INFO: ProcessCDR(1,14173061,1,1,2) [2025-01-04 13:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173061,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173061,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173061', 'tblTempUsageDetail_20' ) start [2025-01-04 13:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173061', 'tblTempUsageDetail_20' ) end [2025-01-04 13:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:02:21] Production.INFO: ==18085== Releasing lock... [2025-01-04 13:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:02:21] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:03:05 [end_date_ymd] => 2025-01-04 13:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:03:05' and `end` < '2025-01-04 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-04 13:03:19] Production.INFO: count ==1718 [2025-01-04 13:03:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:03:05 - End Time 2025-01-04 13:03:05 [2025-01-04 13:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173066', 'tblTempUsageDetail_20' ) start [2025-01-04 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173066', 'tblTempUsageDetail_20' ) end [2025-01-04 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173066', 'tblTempVendorCDR_20' ) start [2025-01-04 13:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173066', 'tblTempVendorCDR_20' ) end [2025-01-04 13:03:20] Production.INFO: ProcessCDR(1,14173066,1,1,2) [2025-01-04 13:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173066', 'tblTempUsageDetail_20' ) start [2025-01-04 13:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173066', 'tblTempUsageDetail_20' ) end [2025-01-04 13:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:03:23] Production.INFO: ==18160== Releasing lock... [2025-01-04 13:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:03:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:04:04 [end_date_ymd] => 2025-01-04 13:04:04 [RateCDR] => 1 ) [2025-01-04 13:04: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-04 10:04:04' and `end` < '2025-01-04 13:04: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-04 13:04:18] Production.INFO: count ==1712 [2025-01-04 13:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:04:04 - End Time 2025-01-04 13:04:04 [2025-01-04 13:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173071', 'tblTempUsageDetail_20' ) start [2025-01-04 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173071', 'tblTempUsageDetail_20' ) end [2025-01-04 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173071', 'tblTempVendorCDR_20' ) start [2025-01-04 13:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173071', 'tblTempVendorCDR_20' ) end [2025-01-04 13:04:18] Production.INFO: ProcessCDR(1,14173071,1,1,2) [2025-01-04 13:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173071', 'tblTempUsageDetail_20' ) start [2025-01-04 13:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173071', 'tblTempUsageDetail_20' ) end [2025-01-04 13:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:04:22] Production.INFO: ==18239== Releasing lock... [2025-01-04 13:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:04:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:05:05 [end_date_ymd] => 2025-01-04 13:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:05:05' and `end` < '2025-01-04 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-04 13:05:18] Production.INFO: count ==1708 [2025-01-04 13:05:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:05:05 - End Time 2025-01-04 13:05:05 [2025-01-04 13:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173076', 'tblTempUsageDetail_20' ) start [2025-01-04 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173076', 'tblTempUsageDetail_20' ) end [2025-01-04 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173076', 'tblTempVendorCDR_20' ) start [2025-01-04 13:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173076', 'tblTempVendorCDR_20' ) end [2025-01-04 13:05:19] Production.INFO: ProcessCDR(1,14173076,1,1,2) [2025-01-04 13:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173076', 'tblTempUsageDetail_20' ) start [2025-01-04 13:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173076', 'tblTempUsageDetail_20' ) end [2025-01-04 13:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:05:22] Production.INFO: ==18316== Releasing lock... [2025-01-04 13:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:05:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:06:05 [end_date_ymd] => 2025-01-04 13:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:06:05' and `end` < '2025-01-04 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-04 13:06:18] Production.INFO: count ==1712 [2025-01-04 13:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:06:05 - End Time 2025-01-04 13:06:05 [2025-01-04 13:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173081', 'tblTempUsageDetail_20' ) start [2025-01-04 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173081', 'tblTempUsageDetail_20' ) end [2025-01-04 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173081', 'tblTempVendorCDR_20' ) start [2025-01-04 13:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173081', 'tblTempVendorCDR_20' ) end [2025-01-04 13:06:19] Production.INFO: ProcessCDR(1,14173081,1,1,2) [2025-01-04 13:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173081', 'tblTempUsageDetail_20' ) start [2025-01-04 13:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173081', 'tblTempUsageDetail_20' ) end [2025-01-04 13:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:06:23] Production.INFO: ==18396== Releasing lock... [2025-01-04 13:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:06:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:07:05 [end_date_ymd] => 2025-01-04 13:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:07:05' and `end` < '2025-01-04 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-04 13:07:19] Production.INFO: count ==1714 [2025-01-04 13:07:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:07:05 - End Time 2025-01-04 13:07:05 [2025-01-04 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173086', 'tblTempUsageDetail_20' ) start [2025-01-04 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173086', 'tblTempUsageDetail_20' ) end [2025-01-04 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173086', 'tblTempVendorCDR_20' ) start [2025-01-04 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173086', 'tblTempVendorCDR_20' ) end [2025-01-04 13:07:20] Production.INFO: ProcessCDR(1,14173086,1,1,2) [2025-01-04 13:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173086', 'tblTempUsageDetail_20' ) start [2025-01-04 13:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173086', 'tblTempUsageDetail_20' ) end [2025-01-04 13:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:07:23] Production.INFO: ==18475== Releasing lock... [2025-01-04 13:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:07:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:08:05 [end_date_ymd] => 2025-01-04 13:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:08:05' and `end` < '2025-01-04 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-04 13:08:18] Production.INFO: count ==1711 [2025-01-04 13:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:08:05 - End Time 2025-01-04 13:08:05 [2025-01-04 13:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173091', 'tblTempUsageDetail_20' ) start [2025-01-04 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173091', 'tblTempUsageDetail_20' ) end [2025-01-04 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173091', 'tblTempVendorCDR_20' ) start [2025-01-04 13:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173091', 'tblTempVendorCDR_20' ) end [2025-01-04 13:08:19] Production.INFO: ProcessCDR(1,14173091,1,1,2) [2025-01-04 13:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173091', 'tblTempUsageDetail_20' ) start [2025-01-04 13:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173091', 'tblTempUsageDetail_20' ) end [2025-01-04 13:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:08:22] Production.INFO: ==18552== Releasing lock... [2025-01-04 13:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:09:05 [end_date_ymd] => 2025-01-04 13:09:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:09:05' and `end` < '2025-01-04 13: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-04 13:09:18] Production.INFO: count ==1711 [2025-01-04 13:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:09:05 - End Time 2025-01-04 13:09:05 [2025-01-04 13:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173096', 'tblTempUsageDetail_20' ) start [2025-01-04 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173096', 'tblTempUsageDetail_20' ) end [2025-01-04 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173096', 'tblTempVendorCDR_20' ) start [2025-01-04 13:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173096', 'tblTempVendorCDR_20' ) end [2025-01-04 13:09:18] Production.INFO: ProcessCDR(1,14173096,1,1,2) [2025-01-04 13:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173096', 'tblTempUsageDetail_20' ) start [2025-01-04 13:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173096', 'tblTempUsageDetail_20' ) end [2025-01-04 13:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:09:21] Production.INFO: ==18627== Releasing lock... [2025-01-04 13:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:09:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:10:05 [end_date_ymd] => 2025-01-04 13:10:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:10:05' and `end` < '2025-01-04 13: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-04 13:10:18] Production.INFO: count ==1712 [2025-01-04 13:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:10:05 - End Time 2025-01-04 13:10:05 [2025-01-04 13:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173101', 'tblTempUsageDetail_20' ) start [2025-01-04 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173101', 'tblTempUsageDetail_20' ) end [2025-01-04 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173101', 'tblTempVendorCDR_20' ) start [2025-01-04 13:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173101', 'tblTempVendorCDR_20' ) end [2025-01-04 13:10:19] Production.INFO: ProcessCDR(1,14173101,1,1,2) [2025-01-04 13:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173101', 'tblTempUsageDetail_20' ) start [2025-01-04 13:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173101', 'tblTempUsageDetail_20' ) end [2025-01-04 13:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:10:23] Production.INFO: ==18745== Releasing lock... [2025-01-04 13:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:10:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:11:05 [end_date_ymd] => 2025-01-04 13:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:11:05' and `end` < '2025-01-04 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-04 13:11:18] Production.INFO: count ==1713 [2025-01-04 13:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:11:05 - End Time 2025-01-04 13:11:05 [2025-01-04 13:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173107', 'tblTempUsageDetail_20' ) start [2025-01-04 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173107', 'tblTempUsageDetail_20' ) end [2025-01-04 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173107', 'tblTempVendorCDR_20' ) start [2025-01-04 13:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173107', 'tblTempVendorCDR_20' ) end [2025-01-04 13:11:19] Production.INFO: ProcessCDR(1,14173107,1,1,2) [2025-01-04 13:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173107,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173107,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173107', 'tblTempUsageDetail_20' ) start [2025-01-04 13:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173107', 'tblTempUsageDetail_20' ) end [2025-01-04 13:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:11:22] Production.INFO: ==18821== Releasing lock... [2025-01-04 13:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:11:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:12:05 [end_date_ymd] => 2025-01-04 13:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:12:05' and `end` < '2025-01-04 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-04 13:12:18] Production.INFO: count ==1710 [2025-01-04 13:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:12:05 - End Time 2025-01-04 13:12:05 [2025-01-04 13:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173112', 'tblTempUsageDetail_20' ) start [2025-01-04 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173112', 'tblTempUsageDetail_20' ) end [2025-01-04 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173112', 'tblTempVendorCDR_20' ) start [2025-01-04 13:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173112', 'tblTempVendorCDR_20' ) end [2025-01-04 13:12:19] Production.INFO: ProcessCDR(1,14173112,1,1,2) [2025-01-04 13:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173112,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173112,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173112', 'tblTempUsageDetail_20' ) start [2025-01-04 13:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173112', 'tblTempUsageDetail_20' ) end [2025-01-04 13:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:12:23] Production.INFO: ==18900== Releasing lock... [2025-01-04 13:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:12:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:13:05 [end_date_ymd] => 2025-01-04 13:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:13:05' and `end` < '2025-01-04 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-04 13:13:18] Production.INFO: count ==1714 [2025-01-04 13:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:13:05 - End Time 2025-01-04 13:13:05 [2025-01-04 13:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173117', 'tblTempUsageDetail_20' ) start [2025-01-04 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173117', 'tblTempUsageDetail_20' ) end [2025-01-04 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173117', 'tblTempVendorCDR_20' ) start [2025-01-04 13:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173117', 'tblTempVendorCDR_20' ) end [2025-01-04 13:13:18] Production.INFO: ProcessCDR(1,14173117,1,1,2) [2025-01-04 13:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173117,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173117,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173117', 'tblTempUsageDetail_20' ) start [2025-01-04 13:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173117', 'tblTempUsageDetail_20' ) end [2025-01-04 13:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:13:23] Production.INFO: ==18977== Releasing lock... [2025-01-04 13:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:14:05 [end_date_ymd] => 2025-01-04 13:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:14:05' and `end` < '2025-01-04 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-04 13:14:19] Production.INFO: count ==1712 [2025-01-04 13:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:14:05 - End Time 2025-01-04 13:14:05 [2025-01-04 13:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173122', 'tblTempUsageDetail_20' ) start [2025-01-04 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173122', 'tblTempUsageDetail_20' ) end [2025-01-04 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173122', 'tblTempVendorCDR_20' ) start [2025-01-04 13:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173122', 'tblTempVendorCDR_20' ) end [2025-01-04 13:14:19] Production.INFO: ProcessCDR(1,14173122,1,1,2) [2025-01-04 13:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173122', 'tblTempUsageDetail_20' ) start [2025-01-04 13:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173122', 'tblTempUsageDetail_20' ) end [2025-01-04 13:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:14:23] Production.INFO: ==19050== Releasing lock... [2025-01-04 13:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:14:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:15:06 [end_date_ymd] => 2025-01-04 13:15:06 [RateCDR] => 1 ) [2025-01-04 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-04 10:15:06' and `end` < '2025-01-04 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-04 13:15:19] Production.INFO: count ==1716 [2025-01-04 13:15:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:15:06 - End Time 2025-01-04 13:15:06 [2025-01-04 13:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173127', 'tblTempUsageDetail_20' ) start [2025-01-04 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173127', 'tblTempUsageDetail_20' ) end [2025-01-04 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173127', 'tblTempVendorCDR_20' ) start [2025-01-04 13:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173127', 'tblTempVendorCDR_20' ) end [2025-01-04 13:15:19] Production.INFO: ProcessCDR(1,14173127,1,1,2) [2025-01-04 13:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173127', 'tblTempUsageDetail_20' ) start [2025-01-04 13:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173127', 'tblTempUsageDetail_20' ) end [2025-01-04 13:15:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:15:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:15:24] Production.INFO: ==19122== Releasing lock... [2025-01-04 13:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:15:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:16:05 [end_date_ymd] => 2025-01-04 13:16:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:16:05' and `end` < '2025-01-04 13: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-04 13:16:20] Production.INFO: count ==1715 [2025-01-04 13:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:16:05 - End Time 2025-01-04 13:16:05 [2025-01-04 13:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173132', 'tblTempUsageDetail_20' ) start [2025-01-04 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173132', 'tblTempUsageDetail_20' ) end [2025-01-04 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173132', 'tblTempVendorCDR_20' ) start [2025-01-04 13:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173132', 'tblTempVendorCDR_20' ) end [2025-01-04 13:16:20] Production.INFO: ProcessCDR(1,14173132,1,1,2) [2025-01-04 13:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173132', 'tblTempUsageDetail_20' ) start [2025-01-04 13:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173132', 'tblTempUsageDetail_20' ) end [2025-01-04 13:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:16:23] Production.INFO: ==19192== Releasing lock... [2025-01-04 13:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:16:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:17:05 [end_date_ymd] => 2025-01-04 13:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:17:05' and `end` < '2025-01-04 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-04 13:17:19] Production.INFO: count ==1716 [2025-01-04 13:17:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:17:05 - End Time 2025-01-04 13:17:05 [2025-01-04 13:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173137', 'tblTempUsageDetail_20' ) start [2025-01-04 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173137', 'tblTempUsageDetail_20' ) end [2025-01-04 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173137', 'tblTempVendorCDR_20' ) start [2025-01-04 13:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173137', 'tblTempVendorCDR_20' ) end [2025-01-04 13:17:20] Production.INFO: ProcessCDR(1,14173137,1,1,2) [2025-01-04 13:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173137', 'tblTempUsageDetail_20' ) start [2025-01-04 13:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173137', 'tblTempUsageDetail_20' ) end [2025-01-04 13:17:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:17:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:17:25] Production.INFO: ==19262== Releasing lock... [2025-01-04 13:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:17:25] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:18:05 [end_date_ymd] => 2025-01-04 13:18:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:18:05' and `end` < '2025-01-04 13: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-04 13:18:19] Production.INFO: count ==1720 [2025-01-04 13:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:18:05 - End Time 2025-01-04 13:18:05 [2025-01-04 13:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173142', 'tblTempUsageDetail_20' ) start [2025-01-04 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173142', 'tblTempUsageDetail_20' ) end [2025-01-04 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173142', 'tblTempVendorCDR_20' ) start [2025-01-04 13:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173142', 'tblTempVendorCDR_20' ) end [2025-01-04 13:18:19] Production.INFO: ProcessCDR(1,14173142,1,1,2) [2025-01-04 13:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173142', 'tblTempUsageDetail_20' ) start [2025-01-04 13:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173142', 'tblTempUsageDetail_20' ) end [2025-01-04 13:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:18:22] Production.INFO: ==19334== Releasing lock... [2025-01-04 13:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:18:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:19:05 [end_date_ymd] => 2025-01-04 13:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:19:05' and `end` < '2025-01-04 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-04 13:19:18] Production.INFO: count ==1718 [2025-01-04 13:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:19:05 - End Time 2025-01-04 13:19:05 [2025-01-04 13:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173147', 'tblTempUsageDetail_20' ) start [2025-01-04 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173147', 'tblTempUsageDetail_20' ) end [2025-01-04 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173147', 'tblTempVendorCDR_20' ) start [2025-01-04 13:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173147', 'tblTempVendorCDR_20' ) end [2025-01-04 13:19:19] Production.INFO: ProcessCDR(1,14173147,1,1,2) [2025-01-04 13:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173147', 'tblTempUsageDetail_20' ) start [2025-01-04 13:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173147', 'tblTempUsageDetail_20' ) end [2025-01-04 13:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:19:24] Production.INFO: ==19404== Releasing lock... [2025-01-04 13:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:19:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:20:05 [end_date_ymd] => 2025-01-04 13:20:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:20:05' and `end` < '2025-01-04 13: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-04 13:20:19] Production.INFO: count ==1721 [2025-01-04 13:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:20:05 - End Time 2025-01-04 13:20:05 [2025-01-04 13:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173152', 'tblTempUsageDetail_20' ) start [2025-01-04 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173152', 'tblTempUsageDetail_20' ) end [2025-01-04 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173152', 'tblTempVendorCDR_20' ) start [2025-01-04 13:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173152', 'tblTempVendorCDR_20' ) end [2025-01-04 13:20:19] Production.INFO: ProcessCDR(1,14173152,1,1,2) [2025-01-04 13:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173152', 'tblTempUsageDetail_20' ) start [2025-01-04 13:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173152', 'tblTempUsageDetail_20' ) end [2025-01-04 13:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:20:24] Production.INFO: ==19479== Releasing lock... [2025-01-04 13:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:20:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:21:05 [end_date_ymd] => 2025-01-04 13:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:21:05' and `end` < '2025-01-04 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-04 13:21:18] Production.INFO: count ==1752 [2025-01-04 13:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:21:05 - End Time 2025-01-04 13:21:05 [2025-01-04 13:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173158', 'tblTempUsageDetail_20' ) start [2025-01-04 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173158', 'tblTempUsageDetail_20' ) end [2025-01-04 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173158', 'tblTempVendorCDR_20' ) start [2025-01-04 13:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173158', 'tblTempVendorCDR_20' ) end [2025-01-04 13:21:19] Production.INFO: ProcessCDR(1,14173158,1,1,2) [2025-01-04 13:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173158,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173158,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173158', 'tblTempUsageDetail_20' ) start [2025-01-04 13:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173158', 'tblTempUsageDetail_20' ) end [2025-01-04 13:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:21:23] Production.INFO: ==19557== Releasing lock... [2025-01-04 13:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:21:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-04 13:22:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:22:04 [end_date_ymd] => 2025-01-04 13:22:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:22:04' and `end` < '2025-01-04 13: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-04 13:22:17] Production.INFO: count ==1742 [2025-01-04 13:22:17] Production.ERROR: pbx CDR StartTime 2025-01-04 10:22:04 - End Time 2025-01-04 13:22:04 [2025-01-04 13:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173163', 'tblTempUsageDetail_20' ) start [2025-01-04 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173163', 'tblTempUsageDetail_20' ) end [2025-01-04 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173163', 'tblTempVendorCDR_20' ) start [2025-01-04 13:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173163', 'tblTempVendorCDR_20' ) end [2025-01-04 13:22:17] Production.INFO: ProcessCDR(1,14173163,1,1,2) [2025-01-04 13:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173163,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173163,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173163', 'tblTempUsageDetail_20' ) start [2025-01-04 13:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173163', 'tblTempUsageDetail_20' ) end [2025-01-04 13:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:22:22] Production.INFO: ==19629== Releasing lock... [2025-01-04 13:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:22:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:23:04 [end_date_ymd] => 2025-01-04 13:23:04 [RateCDR] => 1 ) [2025-01-04 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-04 10:23:04' and `end` < '2025-01-04 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-04 13:23:17] Production.INFO: count ==1743 [2025-01-04 13:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:23:04 - End Time 2025-01-04 13:23:04 [2025-01-04 13:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173168', 'tblTempUsageDetail_20' ) start [2025-01-04 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173168', 'tblTempUsageDetail_20' ) end [2025-01-04 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173168', 'tblTempVendorCDR_20' ) start [2025-01-04 13:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173168', 'tblTempVendorCDR_20' ) end [2025-01-04 13:23:18] Production.INFO: ProcessCDR(1,14173168,1,1,2) [2025-01-04 13:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173168', 'tblTempUsageDetail_20' ) start [2025-01-04 13:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173168', 'tblTempUsageDetail_20' ) end [2025-01-04 13:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:23:21] Production.INFO: ==19699== Releasing lock... [2025-01-04 13:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:23:21] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:24:05 [end_date_ymd] => 2025-01-04 13:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:24:05' and `end` < '2025-01-04 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-04 13:24:19] Production.INFO: count ==1748 [2025-01-04 13:24:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:24:05 - End Time 2025-01-04 13:24:05 [2025-01-04 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173173', 'tblTempUsageDetail_20' ) start [2025-01-04 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173173', 'tblTempUsageDetail_20' ) end [2025-01-04 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173173', 'tblTempVendorCDR_20' ) start [2025-01-04 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173173', 'tblTempVendorCDR_20' ) end [2025-01-04 13:24:20] Production.INFO: ProcessCDR(1,14173173,1,1,2) [2025-01-04 13:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173173', 'tblTempUsageDetail_20' ) start [2025-01-04 13:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173173', 'tblTempUsageDetail_20' ) end [2025-01-04 13:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:24:24] Production.INFO: ==19772== Releasing lock... [2025-01-04 13:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:24:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:25:04 [end_date_ymd] => 2025-01-04 13:25:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:25:04' and `end` < '2025-01-04 13: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-04 13:25:17] Production.INFO: count ==1727 [2025-01-04 13:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:25:04 - End Time 2025-01-04 13:25:04 [2025-01-04 13:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173178', 'tblTempUsageDetail_20' ) start [2025-01-04 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173178', 'tblTempUsageDetail_20' ) end [2025-01-04 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173178', 'tblTempVendorCDR_20' ) start [2025-01-04 13:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173178', 'tblTempVendorCDR_20' ) end [2025-01-04 13:25:18] Production.INFO: ProcessCDR(1,14173178,1,1,2) [2025-01-04 13:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173178', 'tblTempUsageDetail_20' ) start [2025-01-04 13:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173178', 'tblTempUsageDetail_20' ) end [2025-01-04 13:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:25:21] Production.INFO: ==19843== Releasing lock... [2025-01-04 13:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:25:21] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:26:05 [end_date_ymd] => 2025-01-04 13:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:26:05' and `end` < '2025-01-04 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-04 13:26:18] Production.INFO: count ==1728 [2025-01-04 13:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:26:05 - End Time 2025-01-04 13:26:05 [2025-01-04 13:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173183', 'tblTempUsageDetail_20' ) start [2025-01-04 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173183', 'tblTempUsageDetail_20' ) end [2025-01-04 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173183', 'tblTempVendorCDR_20' ) start [2025-01-04 13:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173183', 'tblTempVendorCDR_20' ) end [2025-01-04 13:26:19] Production.INFO: ProcessCDR(1,14173183,1,1,2) [2025-01-04 13:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173183', 'tblTempUsageDetail_20' ) start [2025-01-04 13:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173183', 'tblTempUsageDetail_20' ) end [2025-01-04 13:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:26:23] Production.INFO: ==19955== Releasing lock... [2025-01-04 13:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:26:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:27:05 [end_date_ymd] => 2025-01-04 13:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:27:05' and `end` < '2025-01-04 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-04 13:27:18] Production.INFO: count ==1733 [2025-01-04 13:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:27:05 - End Time 2025-01-04 13:27:05 [2025-01-04 13:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173188', 'tblTempUsageDetail_20' ) start [2025-01-04 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173188', 'tblTempUsageDetail_20' ) end [2025-01-04 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173188', 'tblTempVendorCDR_20' ) start [2025-01-04 13:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173188', 'tblTempVendorCDR_20' ) end [2025-01-04 13:27:18] Production.INFO: ProcessCDR(1,14173188,1,1,2) [2025-01-04 13:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173188', 'tblTempUsageDetail_20' ) start [2025-01-04 13:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173188', 'tblTempUsageDetail_20' ) end [2025-01-04 13:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:27:23] Production.INFO: ==20025== Releasing lock... [2025-01-04 13:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:27:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:28:05 [end_date_ymd] => 2025-01-04 13:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:28:05' and `end` < '2025-01-04 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-04 13:28:19] Production.INFO: count ==1728 [2025-01-04 13:28:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:28:05 - End Time 2025-01-04 13:28:05 [2025-01-04 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173193', 'tblTempUsageDetail_20' ) start [2025-01-04 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173193', 'tblTempUsageDetail_20' ) end [2025-01-04 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173193', 'tblTempVendorCDR_20' ) start [2025-01-04 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173193', 'tblTempVendorCDR_20' ) end [2025-01-04 13:28:20] Production.INFO: ProcessCDR(1,14173193,1,1,2) [2025-01-04 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173193', 'tblTempUsageDetail_20' ) start [2025-01-04 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173193', 'tblTempUsageDetail_20' ) end [2025-01-04 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:28:25] Production.INFO: ==20097== Releasing lock... [2025-01-04 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:28:25] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:29:05 [end_date_ymd] => 2025-01-04 13:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:29:05' and `end` < '2025-01-04 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-04 13:29:18] Production.INFO: count ==1739 [2025-01-04 13:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:29:05 - End Time 2025-01-04 13:29:05 [2025-01-04 13:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173198', 'tblTempUsageDetail_20' ) start [2025-01-04 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173198', 'tblTempUsageDetail_20' ) end [2025-01-04 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173198', 'tblTempVendorCDR_20' ) start [2025-01-04 13:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173198', 'tblTempVendorCDR_20' ) end [2025-01-04 13:29:19] Production.INFO: ProcessCDR(1,14173198,1,1,2) [2025-01-04 13:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173198', 'tblTempUsageDetail_20' ) start [2025-01-04 13:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173198', 'tblTempUsageDetail_20' ) end [2025-01-04 13:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:29:23] Production.INFO: ==20167== Releasing lock... [2025-01-04 13:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:29:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:30:05 [end_date_ymd] => 2025-01-04 13:30:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:30:05' and `end` < '2025-01-04 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-04 13:30:18] Production.INFO: count ==1737 [2025-01-04 13:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:30:05 - End Time 2025-01-04 13:30:05 [2025-01-04 13:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173204', 'tblTempUsageDetail_20' ) start [2025-01-04 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173204', 'tblTempUsageDetail_20' ) end [2025-01-04 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173204', 'tblTempVendorCDR_20' ) start [2025-01-04 13:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173204', 'tblTempVendorCDR_20' ) end [2025-01-04 13:30:18] Production.INFO: ProcessCDR(1,14173204,1,1,2) [2025-01-04 13:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173204,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173204,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173204', 'tblTempUsageDetail_20' ) start [2025-01-04 13:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173204', 'tblTempUsageDetail_20' ) end [2025-01-04 13:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:30:23] Production.INFO: ==20241== Releasing lock... [2025-01-04 13:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:30:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:31:05 [end_date_ymd] => 2025-01-04 13:31:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:31:05' and `end` < '2025-01-04 13: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-04 13:31:20] Production.INFO: count ==1750 [2025-01-04 13:31:21] Production.ERROR: pbx CDR StartTime 2025-01-04 10:31:05 - End Time 2025-01-04 13:31:05 [2025-01-04 13:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173209', 'tblTempUsageDetail_20' ) start [2025-01-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173209', 'tblTempUsageDetail_20' ) end [2025-01-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173209', 'tblTempVendorCDR_20' ) start [2025-01-04 13:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173209', 'tblTempVendorCDR_20' ) end [2025-01-04 13:31:21] Production.INFO: ProcessCDR(1,14173209,1,1,2) [2025-01-04 13:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173209,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173209,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173209', 'tblTempUsageDetail_20' ) start [2025-01-04 13:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173209', 'tblTempUsageDetail_20' ) end [2025-01-04 13:31:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:31:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:31:24] Production.INFO: ==20313== Releasing lock... [2025-01-04 13:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:31:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:32:05 [end_date_ymd] => 2025-01-04 13:32:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:32:05' and `end` < '2025-01-04 13: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-04 13:32:18] Production.INFO: count ==1734 [2025-01-04 13:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:32:05 - End Time 2025-01-04 13:32:05 [2025-01-04 13:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173214', 'tblTempUsageDetail_20' ) start [2025-01-04 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173214', 'tblTempUsageDetail_20' ) end [2025-01-04 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173214', 'tblTempVendorCDR_20' ) start [2025-01-04 13:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173214', 'tblTempVendorCDR_20' ) end [2025-01-04 13:32:18] Production.INFO: ProcessCDR(1,14173214,1,1,2) [2025-01-04 13:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173214,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173214,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173214', 'tblTempUsageDetail_20' ) start [2025-01-04 13:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173214', 'tblTempUsageDetail_20' ) end [2025-01-04 13:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:32:23] Production.INFO: ==20386== Releasing lock... [2025-01-04 13:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:32:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:33:05 [end_date_ymd] => 2025-01-04 13:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:33:05' and `end` < '2025-01-04 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-04 13:33:19] Production.INFO: count ==1728 [2025-01-04 13:33:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:33:05 - End Time 2025-01-04 13:33:05 [2025-01-04 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173219', 'tblTempUsageDetail_20' ) start [2025-01-04 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173219', 'tblTempUsageDetail_20' ) end [2025-01-04 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173219', 'tblTempVendorCDR_20' ) start [2025-01-04 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173219', 'tblTempVendorCDR_20' ) end [2025-01-04 13:33:20] Production.INFO: ProcessCDR(1,14173219,1,1,2) [2025-01-04 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173219', 'tblTempUsageDetail_20' ) start [2025-01-04 13:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173219', 'tblTempUsageDetail_20' ) end [2025-01-04 13:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:33:24] Production.INFO: ==20458== Releasing lock... [2025-01-04 13:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:33:24] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:34:05 [end_date_ymd] => 2025-01-04 13:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:34:05' and `end` < '2025-01-04 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-04 13:34:19] Production.INFO: count ==1720 [2025-01-04 13:34:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:34:05 - End Time 2025-01-04 13:34:05 [2025-01-04 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173224', 'tblTempUsageDetail_20' ) start [2025-01-04 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173224', 'tblTempUsageDetail_20' ) end [2025-01-04 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173224', 'tblTempVendorCDR_20' ) start [2025-01-04 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173224', 'tblTempVendorCDR_20' ) end [2025-01-04 13:34:20] Production.INFO: ProcessCDR(1,14173224,1,1,2) [2025-01-04 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173224', 'tblTempUsageDetail_20' ) start [2025-01-04 13:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173224', 'tblTempUsageDetail_20' ) end [2025-01-04 13:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:34:23] Production.INFO: ==20531== Releasing lock... [2025-01-04 13:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:34:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:35:05 [end_date_ymd] => 2025-01-04 13:35:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:35:05' and `end` < '2025-01-04 13: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-04 13:35:18] Production.INFO: count ==1731 [2025-01-04 13:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:35:05 - End Time 2025-01-04 13:35:05 [2025-01-04 13:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173229', 'tblTempUsageDetail_20' ) start [2025-01-04 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173229', 'tblTempUsageDetail_20' ) end [2025-01-04 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173229', 'tblTempVendorCDR_20' ) start [2025-01-04 13:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173229', 'tblTempVendorCDR_20' ) end [2025-01-04 13:35:18] Production.INFO: ProcessCDR(1,14173229,1,1,2) [2025-01-04 13:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173229', 'tblTempUsageDetail_20' ) start [2025-01-04 13:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173229', 'tblTempUsageDetail_20' ) end [2025-01-04 13:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:35:22] Production.INFO: ==20600== Releasing lock... [2025-01-04 13:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:35:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:36:05 [end_date_ymd] => 2025-01-04 13:36:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:36:05' and `end` < '2025-01-04 13: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-04 13:36:18] Production.INFO: count ==1725 [2025-01-04 13:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:36:05 - End Time 2025-01-04 13:36:05 [2025-01-04 13:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173234', 'tblTempUsageDetail_20' ) start [2025-01-04 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173234', 'tblTempUsageDetail_20' ) end [2025-01-04 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173234', 'tblTempVendorCDR_20' ) start [2025-01-04 13:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173234', 'tblTempVendorCDR_20' ) end [2025-01-04 13:36:18] Production.INFO: ProcessCDR(1,14173234,1,1,2) [2025-01-04 13:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173234', 'tblTempUsageDetail_20' ) start [2025-01-04 13:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173234', 'tblTempUsageDetail_20' ) end [2025-01-04 13:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:36:23] Production.INFO: ==20674== Releasing lock... [2025-01-04 13:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:36:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:37:05 [end_date_ymd] => 2025-01-04 13:37:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:37:05' and `end` < '2025-01-04 13: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-04 13:37:18] Production.INFO: count ==1717 [2025-01-04 13:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:37:05 - End Time 2025-01-04 13:37:05 [2025-01-04 13:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173239', 'tblTempUsageDetail_20' ) start [2025-01-04 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173239', 'tblTempUsageDetail_20' ) end [2025-01-04 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173239', 'tblTempVendorCDR_20' ) start [2025-01-04 13:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173239', 'tblTempVendorCDR_20' ) end [2025-01-04 13:37:18] Production.INFO: ProcessCDR(1,14173239,1,1,2) [2025-01-04 13:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:37:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173239', 'tblTempUsageDetail_20' ) start [2025-01-04 13:37:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173239', 'tblTempUsageDetail_20' ) end [2025-01-04 13:37:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:37:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:37:23] Production.INFO: ==20746== Releasing lock... [2025-01-04 13:37:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:37:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:38:06 [end_date_ymd] => 2025-01-04 13:38:06 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:38:06' and `end` < '2025-01-04 13: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-04 13:38:19] Production.INFO: count ==1711 [2025-01-04 13:38:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:38:06 - End Time 2025-01-04 13:38:06 [2025-01-04 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173244', 'tblTempUsageDetail_20' ) start [2025-01-04 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173244', 'tblTempUsageDetail_20' ) end [2025-01-04 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173244', 'tblTempVendorCDR_20' ) start [2025-01-04 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173244', 'tblTempVendorCDR_20' ) end [2025-01-04 13:38:20] Production.INFO: ProcessCDR(1,14173244,1,1,2) [2025-01-04 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173244', 'tblTempUsageDetail_20' ) start [2025-01-04 13:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173244', 'tblTempUsageDetail_20' ) end [2025-01-04 13:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:38:23] Production.INFO: ==20819== Releasing lock... [2025-01-04 13:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:38:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:39:05 [end_date_ymd] => 2025-01-04 13:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:39:05' and `end` < '2025-01-04 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-04 13:39:19] Production.INFO: count ==1706 [2025-01-04 13:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:39:05 - End Time 2025-01-04 13:39:05 [2025-01-04 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173249', 'tblTempUsageDetail_20' ) start [2025-01-04 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173249', 'tblTempUsageDetail_20' ) end [2025-01-04 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173249', 'tblTempVendorCDR_20' ) start [2025-01-04 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173249', 'tblTempVendorCDR_20' ) end [2025-01-04 13:39:19] Production.INFO: ProcessCDR(1,14173249,1,1,2) [2025-01-04 13:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173249', 'tblTempUsageDetail_20' ) start [2025-01-04 13:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173249', 'tblTempUsageDetail_20' ) end [2025-01-04 13:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:39:22] Production.INFO: ==20890== Releasing lock... [2025-01-04 13:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:39:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:40:06 [end_date_ymd] => 2025-01-04 13:40:06 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:40:06' and `end` < '2025-01-04 13: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-04 13:40:19] Production.INFO: count ==1702 [2025-01-04 13:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:40:06 - End Time 2025-01-04 13:40:06 [2025-01-04 13:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173255', 'tblTempUsageDetail_20' ) start [2025-01-04 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173255', 'tblTempUsageDetail_20' ) end [2025-01-04 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173255', 'tblTempVendorCDR_20' ) start [2025-01-04 13:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173255', 'tblTempVendorCDR_20' ) end [2025-01-04 13:40:19] Production.INFO: ProcessCDR(1,14173255,1,1,2) [2025-01-04 13:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173255,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173255,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173255', 'tblTempUsageDetail_20' ) start [2025-01-04 13:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173255', 'tblTempUsageDetail_20' ) end [2025-01-04 13:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:40:23] Production.INFO: ==20963== Releasing lock... [2025-01-04 13:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:40:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:41:04 [end_date_ymd] => 2025-01-04 13:41:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:41:04' and `end` < '2025-01-04 13: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-04 13:41:17] Production.INFO: count ==1712 [2025-01-04 13:41:17] Production.ERROR: pbx CDR StartTime 2025-01-04 10:41:04 - End Time 2025-01-04 13:41:04 [2025-01-04 13:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173260', 'tblTempUsageDetail_20' ) start [2025-01-04 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173260', 'tblTempUsageDetail_20' ) end [2025-01-04 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173260', 'tblTempVendorCDR_20' ) start [2025-01-04 13:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173260', 'tblTempVendorCDR_20' ) end [2025-01-04 13:41:18] Production.INFO: ProcessCDR(1,14173260,1,1,2) [2025-01-04 13:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173260,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173260,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173260', 'tblTempUsageDetail_20' ) start [2025-01-04 13:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173260', 'tblTempUsageDetail_20' ) end [2025-01-04 13:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:41:21] Production.INFO: ==21074== Releasing lock... [2025-01-04 13:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:41:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:42:05 [end_date_ymd] => 2025-01-04 13:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:42:05' and `end` < '2025-01-04 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-04 13:42:20] Production.INFO: count ==1717 [2025-01-04 13:42:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:42:05 - End Time 2025-01-04 13:42:05 [2025-01-04 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173265', 'tblTempUsageDetail_20' ) start [2025-01-04 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173265', 'tblTempUsageDetail_20' ) end [2025-01-04 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173265', 'tblTempVendorCDR_20' ) start [2025-01-04 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173265', 'tblTempVendorCDR_20' ) end [2025-01-04 13:42:20] Production.INFO: ProcessCDR(1,14173265,1,1,2) [2025-01-04 13:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173265,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173265,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173265', 'tblTempUsageDetail_20' ) start [2025-01-04 13:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173265', 'tblTempUsageDetail_20' ) end [2025-01-04 13:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:42:23] Production.INFO: ==21145== Releasing lock... [2025-01-04 13:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:42:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:43:05 [end_date_ymd] => 2025-01-04 13:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:43:05' and `end` < '2025-01-04 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-04 13:43:19] Production.INFO: count ==1711 [2025-01-04 13:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:43:05 - End Time 2025-01-04 13:43:05 [2025-01-04 13:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173268', 'tblTempUsageDetail_20' ) start [2025-01-04 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173268', 'tblTempUsageDetail_20' ) end [2025-01-04 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173268', 'tblTempVendorCDR_20' ) start [2025-01-04 13:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173268', 'tblTempVendorCDR_20' ) end [2025-01-04 13:43:19] Production.INFO: ProcessCDR(1,14173268,1,1,2) [2025-01-04 13:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173268', 'tblTempUsageDetail_20' ) start [2025-01-04 13:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173268', 'tblTempUsageDetail_20' ) end [2025-01-04 13:43:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:43:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:43:24] Production.INFO: ==21220== Releasing lock... [2025-01-04 13:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:43:24] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:44:05 [end_date_ymd] => 2025-01-04 13:44:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:44:05' and `end` < '2025-01-04 13: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-04 13:44:18] Production.INFO: count ==1711 [2025-01-04 13:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:44:05 - End Time 2025-01-04 13:44:05 [2025-01-04 13:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173275', 'tblTempUsageDetail_20' ) start [2025-01-04 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173275', 'tblTempUsageDetail_20' ) end [2025-01-04 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173275', 'tblTempVendorCDR_20' ) start [2025-01-04 13:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173275', 'tblTempVendorCDR_20' ) end [2025-01-04 13:44:18] Production.INFO: ProcessCDR(1,14173275,1,1,2) [2025-01-04 13:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173275', 'tblTempUsageDetail_20' ) start [2025-01-04 13:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173275', 'tblTempUsageDetail_20' ) end [2025-01-04 13:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:44:21] Production.INFO: ==21295== Releasing lock... [2025-01-04 13:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:44:21] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:45:05 [end_date_ymd] => 2025-01-04 13:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:45:05' and `end` < '2025-01-04 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-04 13:45:18] Production.INFO: count ==1700 [2025-01-04 13:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:45:05 - End Time 2025-01-04 13:45:05 [2025-01-04 13:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173280', 'tblTempUsageDetail_20' ) start [2025-01-04 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173280', 'tblTempUsageDetail_20' ) end [2025-01-04 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173280', 'tblTempVendorCDR_20' ) start [2025-01-04 13:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173280', 'tblTempVendorCDR_20' ) end [2025-01-04 13:45:19] Production.INFO: ProcessCDR(1,14173280,1,1,2) [2025-01-04 13:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173280', 'tblTempUsageDetail_20' ) start [2025-01-04 13:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173280', 'tblTempUsageDetail_20' ) end [2025-01-04 13:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:45:22] Production.INFO: ==21385== Releasing lock... [2025-01-04 13:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:45:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:46:04 [end_date_ymd] => 2025-01-04 13:46:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:46:04' and `end` < '2025-01-04 13: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-04 13:46:18] Production.INFO: count ==1703 [2025-01-04 13:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:46:04 - End Time 2025-01-04 13:46:04 [2025-01-04 13:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173285', 'tblTempUsageDetail_20' ) start [2025-01-04 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173285', 'tblTempUsageDetail_20' ) end [2025-01-04 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173285', 'tblTempVendorCDR_20' ) start [2025-01-04 13:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173285', 'tblTempVendorCDR_20' ) end [2025-01-04 13:46:18] Production.INFO: ProcessCDR(1,14173285,1,1,2) [2025-01-04 13:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173285', 'tblTempUsageDetail_20' ) start [2025-01-04 13:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173285', 'tblTempUsageDetail_20' ) end [2025-01-04 13:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:46:23] Production.INFO: ==21479== Releasing lock... [2025-01-04 13:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:46:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:47:05 [end_date_ymd] => 2025-01-04 13:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:47:05' and `end` < '2025-01-04 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-04 13:47:19] Production.INFO: count ==1704 [2025-01-04 13:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:47:05 - End Time 2025-01-04 13:47:05 [2025-01-04 13:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173290', 'tblTempUsageDetail_20' ) start [2025-01-04 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173290', 'tblTempUsageDetail_20' ) end [2025-01-04 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173290', 'tblTempVendorCDR_20' ) start [2025-01-04 13:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173290', 'tblTempVendorCDR_20' ) end [2025-01-04 13:47:19] Production.INFO: ProcessCDR(1,14173290,1,1,2) [2025-01-04 13:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173290', 'tblTempUsageDetail_20' ) start [2025-01-04 13:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173290', 'tblTempUsageDetail_20' ) end [2025-01-04 13:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:47:23] Production.INFO: ==21580== Releasing lock... [2025-01-04 13:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:47:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:48:04 [end_date_ymd] => 2025-01-04 13:48:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:48:04' and `end` < '2025-01-04 13: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-04 13:48:17] Production.INFO: count ==1704 [2025-01-04 13:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:48:04 - End Time 2025-01-04 13:48:04 [2025-01-04 13:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173295', 'tblTempUsageDetail_20' ) start [2025-01-04 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173295', 'tblTempUsageDetail_20' ) end [2025-01-04 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173295', 'tblTempVendorCDR_20' ) start [2025-01-04 13:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173295', 'tblTempVendorCDR_20' ) end [2025-01-04 13:48:18] Production.INFO: ProcessCDR(1,14173295,1,1,2) [2025-01-04 13:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173295', 'tblTempUsageDetail_20' ) start [2025-01-04 13:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173295', 'tblTempUsageDetail_20' ) end [2025-01-04 13:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:48:23] Production.INFO: ==21676== Releasing lock... [2025-01-04 13:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:48:23] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:49:06 [end_date_ymd] => 2025-01-04 13:49:06 [RateCDR] => 1 ) [2025-01-04 13:49: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-04 10:49:06' and `end` < '2025-01-04 13:49: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-04 13:49:19] Production.INFO: count ==1704 [2025-01-04 13:49:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:49:06 - End Time 2025-01-04 13:49:06 [2025-01-04 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173300', 'tblTempUsageDetail_20' ) start [2025-01-04 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173300', 'tblTempUsageDetail_20' ) end [2025-01-04 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173300', 'tblTempVendorCDR_20' ) start [2025-01-04 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173300', 'tblTempVendorCDR_20' ) end [2025-01-04 13:49:20] Production.INFO: ProcessCDR(1,14173300,1,1,2) [2025-01-04 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173300', 'tblTempUsageDetail_20' ) start [2025-01-04 13:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173300', 'tblTempUsageDetail_20' ) end [2025-01-04 13:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:49:23] Production.INFO: ==21772== Releasing lock... [2025-01-04 13:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:49:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:50:06 [end_date_ymd] => 2025-01-04 13:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 10:50:06' and `end` < '2025-01-04 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-04 13:50:19] Production.INFO: count ==1702 [2025-01-04 13:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:50:06 - End Time 2025-01-04 13:50:06 [2025-01-04 13:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173306', 'tblTempUsageDetail_20' ) start [2025-01-04 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173306', 'tblTempUsageDetail_20' ) end [2025-01-04 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173306', 'tblTempVendorCDR_20' ) start [2025-01-04 13:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173306', 'tblTempVendorCDR_20' ) end [2025-01-04 13:50:19] Production.INFO: ProcessCDR(1,14173306,1,1,2) [2025-01-04 13:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173306,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173306,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173306', 'tblTempUsageDetail_20' ) start [2025-01-04 13:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173306', 'tblTempUsageDetail_20' ) end [2025-01-04 13:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:50:22] Production.INFO: ==21870== Releasing lock... [2025-01-04 13:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:50:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:51:05 [end_date_ymd] => 2025-01-04 13:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:51:05' and `end` < '2025-01-04 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-04 13:51:18] Production.INFO: count ==1724 [2025-01-04 13:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:51:05 - End Time 2025-01-04 13:51:05 [2025-01-04 13:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173311', 'tblTempUsageDetail_20' ) start [2025-01-04 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173311', 'tblTempUsageDetail_20' ) end [2025-01-04 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173311', 'tblTempVendorCDR_20' ) start [2025-01-04 13:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173311', 'tblTempVendorCDR_20' ) end [2025-01-04 13:51:19] Production.INFO: ProcessCDR(1,14173311,1,1,2) [2025-01-04 13:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173311,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173311,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173311', 'tblTempUsageDetail_20' ) start [2025-01-04 13:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173311', 'tblTempUsageDetail_20' ) end [2025-01-04 13:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:51:23] Production.INFO: ==21980== Releasing lock... [2025-01-04 13:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:51:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:52:05 [end_date_ymd] => 2025-01-04 13:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:52:05' and `end` < '2025-01-04 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-04 13:52:19] Production.INFO: count ==1735 [2025-01-04 13:52:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:52:05 - End Time 2025-01-04 13:52:05 [2025-01-04 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173316', 'tblTempUsageDetail_20' ) start [2025-01-04 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173316', 'tblTempUsageDetail_20' ) end [2025-01-04 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173316', 'tblTempVendorCDR_20' ) start [2025-01-04 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173316', 'tblTempVendorCDR_20' ) end [2025-01-04 13:52:20] Production.INFO: ProcessCDR(1,14173316,1,1,2) [2025-01-04 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173316,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173316,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173316', 'tblTempUsageDetail_20' ) start [2025-01-04 13:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173316', 'tblTempUsageDetail_20' ) end [2025-01-04 13:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:52:23] Production.INFO: ==22078== Releasing lock... [2025-01-04 13:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:52:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:53:05 [end_date_ymd] => 2025-01-04 13:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:53:05' and `end` < '2025-01-04 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-04 13:53:19] Production.INFO: count ==1737 [2025-01-04 13:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:53:05 - End Time 2025-01-04 13:53:05 [2025-01-04 13:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173321', 'tblTempUsageDetail_20' ) start [2025-01-04 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173321', 'tblTempUsageDetail_20' ) end [2025-01-04 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173321', 'tblTempVendorCDR_20' ) start [2025-01-04 13:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173321', 'tblTempVendorCDR_20' ) end [2025-01-04 13:53:19] Production.INFO: ProcessCDR(1,14173321,1,1,2) [2025-01-04 13:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173321,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173321,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173321', 'tblTempUsageDetail_20' ) start [2025-01-04 13:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173321', 'tblTempUsageDetail_20' ) end [2025-01-04 13:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:53:23] Production.INFO: ==22173== Releasing lock... [2025-01-04 13:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:53:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:54:05 [end_date_ymd] => 2025-01-04 13:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:54:05' and `end` < '2025-01-04 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-04 13:54:18] Production.INFO: count ==1743 [2025-01-04 13:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:54:05 - End Time 2025-01-04 13:54:05 [2025-01-04 13:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173326', 'tblTempUsageDetail_20' ) start [2025-01-04 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173326', 'tblTempUsageDetail_20' ) end [2025-01-04 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173326', 'tblTempVendorCDR_20' ) start [2025-01-04 13:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173326', 'tblTempVendorCDR_20' ) end [2025-01-04 13:54:18] Production.INFO: ProcessCDR(1,14173326,1,1,2) [2025-01-04 13:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173326', 'tblTempUsageDetail_20' ) start [2025-01-04 13:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173326', 'tblTempUsageDetail_20' ) end [2025-01-04 13:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:54:22] Production.INFO: ==22270== Releasing lock... [2025-01-04 13:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:54:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:55:05 [end_date_ymd] => 2025-01-04 13:55:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:55:05' and `end` < '2025-01-04 13: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-04 13:55:18] Production.INFO: count ==1743 [2025-01-04 13:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:55:05 - End Time 2025-01-04 13:55:05 [2025-01-04 13:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173331', 'tblTempUsageDetail_20' ) start [2025-01-04 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173331', 'tblTempUsageDetail_20' ) end [2025-01-04 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173331', 'tblTempVendorCDR_20' ) start [2025-01-04 13:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173331', 'tblTempVendorCDR_20' ) end [2025-01-04 13:55:19] Production.INFO: ProcessCDR(1,14173331,1,1,2) [2025-01-04 13:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173331', 'tblTempUsageDetail_20' ) start [2025-01-04 13:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173331', 'tblTempUsageDetail_20' ) end [2025-01-04 13:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:55:22] Production.INFO: ==22364== Releasing lock... [2025-01-04 13:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:55:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:56:05 [end_date_ymd] => 2025-01-04 13:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:56:05' and `end` < '2025-01-04 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-04 13:56:18] Production.INFO: count ==1741 [2025-01-04 13:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 10:56:05 - End Time 2025-01-04 13:56:05 [2025-01-04 13:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173336', 'tblTempUsageDetail_20' ) start [2025-01-04 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173336', 'tblTempUsageDetail_20' ) end [2025-01-04 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173336', 'tblTempVendorCDR_20' ) start [2025-01-04 13:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173336', 'tblTempVendorCDR_20' ) end [2025-01-04 13:56:19] Production.INFO: ProcessCDR(1,14173336,1,1,2) [2025-01-04 13:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173336', 'tblTempUsageDetail_20' ) start [2025-01-04 13:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173336', 'tblTempUsageDetail_20' ) end [2025-01-04 13:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:56:22] Production.INFO: ==22466== Releasing lock... [2025-01-04 13:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:56:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 13:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:57:04 [end_date_ymd] => 2025-01-04 13:57:04 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:57:04' and `end` < '2025-01-04 13: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-04 13:57:17] Production.INFO: count ==1756 [2025-01-04 13:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:57:04 - End Time 2025-01-04 13:57:04 [2025-01-04 13:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173341', 'tblTempUsageDetail_20' ) start [2025-01-04 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173341', 'tblTempUsageDetail_20' ) end [2025-01-04 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173341', 'tblTempVendorCDR_20' ) start [2025-01-04 13:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173341', 'tblTempVendorCDR_20' ) end [2025-01-04 13:57:18] Production.INFO: ProcessCDR(1,14173341,1,1,2) [2025-01-04 13:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173341', 'tblTempUsageDetail_20' ) start [2025-01-04 13:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173341', 'tblTempUsageDetail_20' ) end [2025-01-04 13:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:57:21] Production.INFO: ==22603== Releasing lock... [2025-01-04 13:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:57:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:58:05 [end_date_ymd] => 2025-01-04 13:58:05 [RateCDR] => 1 ) [2025-01-04 13: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-04 10:58:05' and `end` < '2025-01-04 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-04 13:58:20] Production.INFO: count ==1755 [2025-01-04 13:58:20] Production.ERROR: pbx CDR StartTime 2025-01-04 10:58:05 - End Time 2025-01-04 13:58:05 [2025-01-04 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173346', 'tblTempUsageDetail_20' ) start [2025-01-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173346', 'tblTempUsageDetail_20' ) end [2025-01-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173346', 'tblTempVendorCDR_20' ) start [2025-01-04 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173346', 'tblTempVendorCDR_20' ) end [2025-01-04 13:58:20] Production.INFO: ProcessCDR(1,14173346,1,1,2) [2025-01-04 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173346', 'tblTempUsageDetail_20' ) start [2025-01-04 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173346', 'tblTempUsageDetail_20' ) end [2025-01-04 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:58:25] Production.INFO: ==22700== Releasing lock... [2025-01-04 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:58:25] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 10:59:05 [end_date_ymd] => 2025-01-04 13:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 10:59:05' and `end` < '2025-01-04 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-04 13:59:18] Production.INFO: count ==1759 [2025-01-04 13:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 10:59:05 - End Time 2025-01-04 13:59:05 [2025-01-04 13:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173351', 'tblTempUsageDetail_20' ) start [2025-01-04 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173351', 'tblTempUsageDetail_20' ) end [2025-01-04 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173351', 'tblTempVendorCDR_20' ) start [2025-01-04 13:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173351', 'tblTempVendorCDR_20' ) end [2025-01-04 13:59:18] Production.INFO: ProcessCDR(1,14173351,1,1,2) [2025-01-04 13:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 13:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173351', 'tblTempUsageDetail_20' ) start [2025-01-04 13:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173351', 'tblTempUsageDetail_20' ) end [2025-01-04 13:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 13:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 13:59:22] Production.INFO: ==22795== Releasing lock... [2025-01-04 13:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 13:59:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:00:06 [end_date_ymd] => 2025-01-04 14:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 11:00:06' and `end` < '2025-01-04 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-04 14:00:19] Production.INFO: count ==1761 [2025-01-04 14:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:00:06 - End Time 2025-01-04 14:00:06 [2025-01-04 14:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173357', 'tblTempUsageDetail_20' ) start [2025-01-04 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173357', 'tblTempUsageDetail_20' ) end [2025-01-04 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173357', 'tblTempVendorCDR_20' ) start [2025-01-04 14:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173357', 'tblTempVendorCDR_20' ) end [2025-01-04 14:00:19] Production.INFO: ProcessCDR(1,14173357,1,1,2) [2025-01-04 14:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173357,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173357,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173357', 'tblTempUsageDetail_20' ) start [2025-01-04 14:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173357', 'tblTempUsageDetail_20' ) end [2025-01-04 14:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:00:22] Production.INFO: ==22894== Releasing lock... [2025-01-04 14:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:00:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:01:05 [end_date_ymd] => 2025-01-04 14:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:01:05' and `end` < '2025-01-04 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-04 14:01:18] Production.INFO: count ==1782 [2025-01-04 14:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:01:05 - End Time 2025-01-04 14:01:05 [2025-01-04 14:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173362', 'tblTempUsageDetail_20' ) start [2025-01-04 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173362', 'tblTempUsageDetail_20' ) end [2025-01-04 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173362', 'tblTempVendorCDR_20' ) start [2025-01-04 14:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173362', 'tblTempVendorCDR_20' ) end [2025-01-04 14:01:19] Production.INFO: ProcessCDR(1,14173362,1,1,2) [2025-01-04 14:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173362,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173362,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173362', 'tblTempUsageDetail_20' ) start [2025-01-04 14:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173362', 'tblTempUsageDetail_20' ) end [2025-01-04 14:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:01:22] Production.INFO: ==23005== Releasing lock... [2025-01-04 14:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:01:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-04 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:02:05 [end_date_ymd] => 2025-01-04 14:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:02:05' and `end` < '2025-01-04 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-04 14:02:19] Production.INFO: count ==1781 [2025-01-04 14:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:02:05 - End Time 2025-01-04 14:02:05 [2025-01-04 14:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173367', 'tblTempUsageDetail_20' ) start [2025-01-04 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173367', 'tblTempUsageDetail_20' ) end [2025-01-04 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173367', 'tblTempVendorCDR_20' ) start [2025-01-04 14:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173367', 'tblTempVendorCDR_20' ) end [2025-01-04 14:02:19] Production.INFO: ProcessCDR(1,14173367,1,1,2) [2025-01-04 14:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173367,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173367,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173367', 'tblTempUsageDetail_20' ) start [2025-01-04 14:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173367', 'tblTempUsageDetail_20' ) end [2025-01-04 14:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:02:22] Production.INFO: ==23102== Releasing lock... [2025-01-04 14:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:02:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-04 14:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:03:04 [end_date_ymd] => 2025-01-04 14:03:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:03:04' and `end` < '2025-01-04 14: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-04 14:03:19] Production.INFO: count ==1790 [2025-01-04 14:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:03:04 - End Time 2025-01-04 14:03:04 [2025-01-04 14:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173372', 'tblTempUsageDetail_20' ) start [2025-01-04 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173372', 'tblTempUsageDetail_20' ) end [2025-01-04 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173372', 'tblTempVendorCDR_20' ) start [2025-01-04 14:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173372', 'tblTempVendorCDR_20' ) end [2025-01-04 14:03:19] Production.INFO: ProcessCDR(1,14173372,1,1,2) [2025-01-04 14:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173372', 'tblTempUsageDetail_20' ) start [2025-01-04 14:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173372', 'tblTempUsageDetail_20' ) end [2025-01-04 14:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:03:24] Production.INFO: ==23199== Releasing lock... [2025-01-04 14:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:03:24] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 14:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:04:05 [end_date_ymd] => 2025-01-04 14:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:04:05' and `end` < '2025-01-04 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-04 14:04:19] Production.INFO: count ==1779 [2025-01-04 14:04:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:04:05 - End Time 2025-01-04 14:04:05 [2025-01-04 14:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173377', 'tblTempUsageDetail_20' ) start [2025-01-04 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173377', 'tblTempUsageDetail_20' ) end [2025-01-04 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173377', 'tblTempVendorCDR_20' ) start [2025-01-04 14:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173377', 'tblTempVendorCDR_20' ) end [2025-01-04 14:04:20] Production.INFO: ProcessCDR(1,14173377,1,1,2) [2025-01-04 14:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173377', 'tblTempUsageDetail_20' ) start [2025-01-04 14:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173377', 'tblTempUsageDetail_20' ) end [2025-01-04 14:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:04:23] Production.INFO: ==23297== Releasing lock... [2025-01-04 14:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:04:23] Production.INFO: 41.75 MB #Memory Used# [2025-01-04 14:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:05:04 [end_date_ymd] => 2025-01-04 14:05:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:05:04' and `end` < '2025-01-04 14: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-04 14:05:18] Production.INFO: count ==1766 [2025-01-04 14:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:05:04 - End Time 2025-01-04 14:05:04 [2025-01-04 14:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173382', 'tblTempUsageDetail_20' ) start [2025-01-04 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173382', 'tblTempUsageDetail_20' ) end [2025-01-04 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173382', 'tblTempVendorCDR_20' ) start [2025-01-04 14:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173382', 'tblTempVendorCDR_20' ) end [2025-01-04 14:05:18] Production.INFO: ProcessCDR(1,14173382,1,1,2) [2025-01-04 14:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173382', 'tblTempUsageDetail_20' ) start [2025-01-04 14:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173382', 'tblTempUsageDetail_20' ) end [2025-01-04 14:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:05:21] Production.INFO: ==23393== Releasing lock... [2025-01-04 14:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:05:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:06:05 [end_date_ymd] => 2025-01-04 14:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:06:05' and `end` < '2025-01-04 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-04 14:06:18] Production.INFO: count ==1760 [2025-01-04 14:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:06:05 - End Time 2025-01-04 14:06:05 [2025-01-04 14:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173387', 'tblTempUsageDetail_20' ) start [2025-01-04 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173387', 'tblTempUsageDetail_20' ) end [2025-01-04 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173387', 'tblTempVendorCDR_20' ) start [2025-01-04 14:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173387', 'tblTempVendorCDR_20' ) end [2025-01-04 14:06:18] Production.INFO: ProcessCDR(1,14173387,1,1,2) [2025-01-04 14:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173387', 'tblTempUsageDetail_20' ) start [2025-01-04 14:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173387', 'tblTempUsageDetail_20' ) end [2025-01-04 14:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:06:21] Production.INFO: ==23493== Releasing lock... [2025-01-04 14:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:06:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:07:05 [end_date_ymd] => 2025-01-04 14:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:07:05' and `end` < '2025-01-04 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-04 14:07:18] Production.INFO: count ==1752 [2025-01-04 14:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:07:05 - End Time 2025-01-04 14:07:05 [2025-01-04 14:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173392', 'tblTempUsageDetail_20' ) start [2025-01-04 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173392', 'tblTempUsageDetail_20' ) end [2025-01-04 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173392', 'tblTempVendorCDR_20' ) start [2025-01-04 14:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173392', 'tblTempVendorCDR_20' ) end [2025-01-04 14:07:19] Production.INFO: ProcessCDR(1,14173392,1,1,2) [2025-01-04 14:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173392', 'tblTempUsageDetail_20' ) start [2025-01-04 14:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173392', 'tblTempUsageDetail_20' ) end [2025-01-04 14:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:07:22] Production.INFO: ==23590== Releasing lock... [2025-01-04 14:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:07:22] Production.INFO: 41.75 MB #Memory Used# [2025-01-04 14:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:08:04 [end_date_ymd] => 2025-01-04 14:08:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:08:04' and `end` < '2025-01-04 14: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-04 14:08:17] Production.INFO: count ==1743 [2025-01-04 14:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:08:04 - End Time 2025-01-04 14:08:04 [2025-01-04 14:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173397', 'tblTempUsageDetail_20' ) start [2025-01-04 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173397', 'tblTempUsageDetail_20' ) end [2025-01-04 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173397', 'tblTempVendorCDR_20' ) start [2025-01-04 14:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173397', 'tblTempVendorCDR_20' ) end [2025-01-04 14:08:18] Production.INFO: ProcessCDR(1,14173397,1,1,2) [2025-01-04 14:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173397', 'tblTempUsageDetail_20' ) start [2025-01-04 14:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173397', 'tblTempUsageDetail_20' ) end [2025-01-04 14:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:08:21] Production.INFO: ==23688== Releasing lock... [2025-01-04 14:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:08:21] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:09:05 [end_date_ymd] => 2025-01-04 14:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:09:05' and `end` < '2025-01-04 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-04 14:09:19] Production.INFO: count ==1742 [2025-01-04 14:09:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:09:05 - End Time 2025-01-04 14:09:05 [2025-01-04 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173402', 'tblTempUsageDetail_20' ) start [2025-01-04 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173402', 'tblTempUsageDetail_20' ) end [2025-01-04 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173402', 'tblTempVendorCDR_20' ) start [2025-01-04 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173402', 'tblTempVendorCDR_20' ) end [2025-01-04 14:09:20] Production.INFO: ProcessCDR(1,14173402,1,1,2) [2025-01-04 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173402', 'tblTempUsageDetail_20' ) start [2025-01-04 14:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173402', 'tblTempUsageDetail_20' ) end [2025-01-04 14:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:09:23] Production.INFO: ==23786== Releasing lock... [2025-01-04 14:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:09:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:10:05 [end_date_ymd] => 2025-01-04 14:10:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:10:05' and `end` < '2025-01-04 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-04 14:10:19] Production.INFO: count ==1736 [2025-01-04 14:10:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:10:05 - End Time 2025-01-04 14:10:05 [2025-01-04 14:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173407', 'tblTempUsageDetail_20' ) start [2025-01-04 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173407', 'tblTempUsageDetail_20' ) end [2025-01-04 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173407', 'tblTempVendorCDR_20' ) start [2025-01-04 14:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173407', 'tblTempVendorCDR_20' ) end [2025-01-04 14:10:20] Production.INFO: ProcessCDR(1,14173407,1,1,2) [2025-01-04 14:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:10:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173407', 'tblTempUsageDetail_20' ) start [2025-01-04 14:10:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173407', 'tblTempUsageDetail_20' ) end [2025-01-04 14:10:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:10:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:10:25] Production.INFO: ==23887== Releasing lock... [2025-01-04 14:10:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:10:25] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:11:05 [end_date_ymd] => 2025-01-04 14:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:11:05' and `end` < '2025-01-04 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-04 14:11:18] Production.INFO: count ==1722 [2025-01-04 14:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:11:05 - End Time 2025-01-04 14:11:05 [2025-01-04 14:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173413', 'tblTempUsageDetail_20' ) start [2025-01-04 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173413', 'tblTempUsageDetail_20' ) end [2025-01-04 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173413', 'tblTempVendorCDR_20' ) start [2025-01-04 14:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173413', 'tblTempVendorCDR_20' ) end [2025-01-04 14:11:18] Production.INFO: ProcessCDR(1,14173413,1,1,2) [2025-01-04 14:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173413', 'tblTempUsageDetail_20' ) start [2025-01-04 14:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173413', 'tblTempUsageDetail_20' ) end [2025-01-04 14:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:11:21] Production.INFO: ==23991== Releasing lock... [2025-01-04 14:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:11:21] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:12:06 [end_date_ymd] => 2025-01-04 14:12:06 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:12:06' and `end` < '2025-01-04 14: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-04 14:12:19] Production.INFO: count ==1722 [2025-01-04 14:12:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:12:06 - End Time 2025-01-04 14:12:06 [2025-01-04 14:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173418', 'tblTempUsageDetail_20' ) start [2025-01-04 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173418', 'tblTempUsageDetail_20' ) end [2025-01-04 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173418', 'tblTempVendorCDR_20' ) start [2025-01-04 14:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173418', 'tblTempVendorCDR_20' ) end [2025-01-04 14:12:20] Production.INFO: ProcessCDR(1,14173418,1,1,2) [2025-01-04 14:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173418', 'tblTempUsageDetail_20' ) start [2025-01-04 14:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173418', 'tblTempUsageDetail_20' ) end [2025-01-04 14:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:12:23] Production.INFO: ==24088== Releasing lock... [2025-01-04 14:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:12:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:13:05 [end_date_ymd] => 2025-01-04 14:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:13:05' and `end` < '2025-01-04 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-04 14:13:20] Production.INFO: count ==1721 [2025-01-04 14:13:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:13:05 - End Time 2025-01-04 14:13:05 [2025-01-04 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173423', 'tblTempUsageDetail_20' ) start [2025-01-04 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173423', 'tblTempUsageDetail_20' ) end [2025-01-04 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173423', 'tblTempVendorCDR_20' ) start [2025-01-04 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173423', 'tblTempVendorCDR_20' ) end [2025-01-04 14:13:20] Production.INFO: ProcessCDR(1,14173423,1,1,2) [2025-01-04 14:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173423', 'tblTempUsageDetail_20' ) start [2025-01-04 14:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173423', 'tblTempUsageDetail_20' ) end [2025-01-04 14:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:13:23] Production.INFO: ==24223== Releasing lock... [2025-01-04 14:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:13:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:14:05 [end_date_ymd] => 2025-01-04 14:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:14:05' and `end` < '2025-01-04 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-04 14:14:18] Production.INFO: count ==1721 [2025-01-04 14:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:14:05 - End Time 2025-01-04 14:14:05 [2025-01-04 14:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173428', 'tblTempUsageDetail_20' ) start [2025-01-04 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173428', 'tblTempUsageDetail_20' ) end [2025-01-04 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173428', 'tblTempVendorCDR_20' ) start [2025-01-04 14:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173428', 'tblTempVendorCDR_20' ) end [2025-01-04 14:14:18] Production.INFO: ProcessCDR(1,14173428,1,1,2) [2025-01-04 14:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173428', 'tblTempUsageDetail_20' ) start [2025-01-04 14:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173428', 'tblTempUsageDetail_20' ) end [2025-01-04 14:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:14:21] Production.INFO: ==24319== Releasing lock... [2025-01-04 14:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:14:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:15:05 [end_date_ymd] => 2025-01-04 14:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:15:05' and `end` < '2025-01-04 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-04 14:15:18] Production.INFO: count ==1711 [2025-01-04 14:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:15:05 - End Time 2025-01-04 14:15:05 [2025-01-04 14:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173433', 'tblTempUsageDetail_20' ) start [2025-01-04 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173433', 'tblTempUsageDetail_20' ) end [2025-01-04 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173433', 'tblTempVendorCDR_20' ) start [2025-01-04 14:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173433', 'tblTempVendorCDR_20' ) end [2025-01-04 14:15:18] Production.INFO: ProcessCDR(1,14173433,1,1,2) [2025-01-04 14:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173433', 'tblTempUsageDetail_20' ) start [2025-01-04 14:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173433', 'tblTempUsageDetail_20' ) end [2025-01-04 14:15:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:15:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:15:23] Production.INFO: ==24415== Releasing lock... [2025-01-04 14:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:15:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:16:05 [end_date_ymd] => 2025-01-04 14:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:16:05' and `end` < '2025-01-04 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-04 14:16:19] Production.INFO: count ==1731 [2025-01-04 14:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:16:05 - End Time 2025-01-04 14:16:05 [2025-01-04 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173438', 'tblTempUsageDetail_20' ) start [2025-01-04 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173438', 'tblTempUsageDetail_20' ) end [2025-01-04 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173438', 'tblTempVendorCDR_20' ) start [2025-01-04 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173438', 'tblTempVendorCDR_20' ) end [2025-01-04 14:16:20] Production.INFO: ProcessCDR(1,14173438,1,1,2) [2025-01-04 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173438', 'tblTempUsageDetail_20' ) start [2025-01-04 14:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173438', 'tblTempUsageDetail_20' ) end [2025-01-04 14:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:16:23] Production.INFO: ==24512== Releasing lock... [2025-01-04 14:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:16:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:17:05 [end_date_ymd] => 2025-01-04 14:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:17:05' and `end` < '2025-01-04 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-04 14:17:18] Production.INFO: count ==1725 [2025-01-04 14:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:17:05 - End Time 2025-01-04 14:17:05 [2025-01-04 14:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173443', 'tblTempUsageDetail_20' ) start [2025-01-04 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173443', 'tblTempUsageDetail_20' ) end [2025-01-04 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173443', 'tblTempVendorCDR_20' ) start [2025-01-04 14:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173443', 'tblTempVendorCDR_20' ) end [2025-01-04 14:17:19] Production.INFO: ProcessCDR(1,14173443,1,1,2) [2025-01-04 14:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173443', 'tblTempUsageDetail_20' ) start [2025-01-04 14:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173443', 'tblTempUsageDetail_20' ) end [2025-01-04 14:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:17:23] Production.INFO: ==24609== Releasing lock... [2025-01-04 14:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:17:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:18:05 [end_date_ymd] => 2025-01-04 14:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:18:05' and `end` < '2025-01-04 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-04 14:18:18] Production.INFO: count ==1728 [2025-01-04 14:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:18:05 - End Time 2025-01-04 14:18:05 [2025-01-04 14:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173448', 'tblTempUsageDetail_20' ) start [2025-01-04 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173448', 'tblTempUsageDetail_20' ) end [2025-01-04 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173448', 'tblTempVendorCDR_20' ) start [2025-01-04 14:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173448', 'tblTempVendorCDR_20' ) end [2025-01-04 14:18:19] Production.INFO: ProcessCDR(1,14173448,1,1,2) [2025-01-04 14:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173448', 'tblTempUsageDetail_20' ) start [2025-01-04 14:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173448', 'tblTempUsageDetail_20' ) end [2025-01-04 14:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:18:22] Production.INFO: ==24707== Releasing lock... [2025-01-04 14:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:18:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:19:05 [end_date_ymd] => 2025-01-04 14:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:19:05' and `end` < '2025-01-04 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-04 14:19:19] Production.INFO: count ==1723 [2025-01-04 14:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:19:05 - End Time 2025-01-04 14:19:05 [2025-01-04 14:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173453', 'tblTempUsageDetail_20' ) start [2025-01-04 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173453', 'tblTempUsageDetail_20' ) end [2025-01-04 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173453', 'tblTempVendorCDR_20' ) start [2025-01-04 14:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173453', 'tblTempVendorCDR_20' ) end [2025-01-04 14:19:19] Production.INFO: ProcessCDR(1,14173453,1,1,2) [2025-01-04 14:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173453', 'tblTempUsageDetail_20' ) start [2025-01-04 14:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173453', 'tblTempUsageDetail_20' ) end [2025-01-04 14:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:19:22] Production.INFO: ==24802== Releasing lock... [2025-01-04 14:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:19:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:20:05 [end_date_ymd] => 2025-01-04 14:20:05 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:20:05' and `end` < '2025-01-04 14: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-04 14:20:18] Production.INFO: count ==1712 [2025-01-04 14:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:20:05 - End Time 2025-01-04 14:20:05 [2025-01-04 14:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173458', 'tblTempUsageDetail_20' ) start [2025-01-04 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173458', 'tblTempUsageDetail_20' ) end [2025-01-04 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173458', 'tblTempVendorCDR_20' ) start [2025-01-04 14:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173458', 'tblTempVendorCDR_20' ) end [2025-01-04 14:20:19] Production.INFO: ProcessCDR(1,14173458,1,1,2) [2025-01-04 14:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173458', 'tblTempUsageDetail_20' ) start [2025-01-04 14:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173458', 'tblTempUsageDetail_20' ) end [2025-01-04 14:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:20:22] Production.INFO: ==24899== Releasing lock... [2025-01-04 14:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:20:22] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:21:05 [end_date_ymd] => 2025-01-04 14:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:21:05' and `end` < '2025-01-04 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-04 14:21:18] Production.INFO: count ==1673 [2025-01-04 14:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:21:05 - End Time 2025-01-04 14:21:05 [2025-01-04 14:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173464', 'tblTempUsageDetail_20' ) start [2025-01-04 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173464', 'tblTempUsageDetail_20' ) end [2025-01-04 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173464', 'tblTempVendorCDR_20' ) start [2025-01-04 14:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173464', 'tblTempVendorCDR_20' ) end [2025-01-04 14:21:19] Production.INFO: ProcessCDR(1,14173464,1,1,2) [2025-01-04 14:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173464', 'tblTempUsageDetail_20' ) start [2025-01-04 14:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173464', 'tblTempUsageDetail_20' ) end [2025-01-04 14:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:21:23] Production.INFO: ==25006== Releasing lock... [2025-01-04 14:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:21:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:22:05 [end_date_ymd] => 2025-01-04 14:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:22:05' and `end` < '2025-01-04 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-04 14:22:18] Production.INFO: count ==1671 [2025-01-04 14:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:22:05 - End Time 2025-01-04 14:22:05 [2025-01-04 14:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173469', 'tblTempUsageDetail_20' ) start [2025-01-04 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173469', 'tblTempUsageDetail_20' ) end [2025-01-04 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173469', 'tblTempVendorCDR_20' ) start [2025-01-04 14:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173469', 'tblTempVendorCDR_20' ) end [2025-01-04 14:22:18] Production.INFO: ProcessCDR(1,14173469,1,1,2) [2025-01-04 14:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173469', 'tblTempUsageDetail_20' ) start [2025-01-04 14:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173469', 'tblTempUsageDetail_20' ) end [2025-01-04 14:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:22:21] Production.INFO: ==25105== Releasing lock... [2025-01-04 14:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:22:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:23:05 [end_date_ymd] => 2025-01-04 14:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:23:05' and `end` < '2025-01-04 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-04 14:23:19] Production.INFO: count ==1670 [2025-01-04 14:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:23:05 - End Time 2025-01-04 14:23:05 [2025-01-04 14:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173474', 'tblTempUsageDetail_20' ) start [2025-01-04 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173474', 'tblTempUsageDetail_20' ) end [2025-01-04 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173474', 'tblTempVendorCDR_20' ) start [2025-01-04 14:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173474', 'tblTempVendorCDR_20' ) end [2025-01-04 14:23:19] Production.INFO: ProcessCDR(1,14173474,1,1,2) [2025-01-04 14:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173474', 'tblTempUsageDetail_20' ) start [2025-01-04 14:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173474', 'tblTempUsageDetail_20' ) end [2025-01-04 14:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:23:22] Production.INFO: ==25204== Releasing lock... [2025-01-04 14:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:23:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:24:04 [end_date_ymd] => 2025-01-04 14:24:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:24:04' and `end` < '2025-01-04 14: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-04 14:24:17] Production.INFO: count ==1677 [2025-01-04 14:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:24:04 - End Time 2025-01-04 14:24:04 [2025-01-04 14:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173479', 'tblTempUsageDetail_20' ) start [2025-01-04 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173479', 'tblTempUsageDetail_20' ) end [2025-01-04 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173479', 'tblTempVendorCDR_20' ) start [2025-01-04 14:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173479', 'tblTempVendorCDR_20' ) end [2025-01-04 14:24:18] Production.INFO: ProcessCDR(1,14173479,1,1,2) [2025-01-04 14:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173479', 'tblTempUsageDetail_20' ) start [2025-01-04 14:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173479', 'tblTempUsageDetail_20' ) end [2025-01-04 14:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:24:21] Production.INFO: ==25302== Releasing lock... [2025-01-04 14:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:24:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:25:05 [end_date_ymd] => 2025-01-04 14:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:25:05' and `end` < '2025-01-04 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-04 14:25:18] Production.INFO: count ==1670 [2025-01-04 14:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:25:05 - End Time 2025-01-04 14:25:05 [2025-01-04 14:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173484', 'tblTempUsageDetail_20' ) start [2025-01-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173484', 'tblTempUsageDetail_20' ) end [2025-01-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173484', 'tblTempVendorCDR_20' ) start [2025-01-04 14:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173484', 'tblTempVendorCDR_20' ) end [2025-01-04 14:25:18] Production.INFO: ProcessCDR(1,14173484,1,1,2) [2025-01-04 14:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173484', 'tblTempUsageDetail_20' ) start [2025-01-04 14:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173484', 'tblTempUsageDetail_20' ) end [2025-01-04 14:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:25:22] Production.INFO: ==25396== Releasing lock... [2025-01-04 14:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:25:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:26:05 [end_date_ymd] => 2025-01-04 14:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:26:05' and `end` < '2025-01-04 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-04 14:26:18] Production.INFO: count ==1668 [2025-01-04 14:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:26:05 - End Time 2025-01-04 14:26:05 [2025-01-04 14:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173489', 'tblTempUsageDetail_20' ) start [2025-01-04 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173489', 'tblTempUsageDetail_20' ) end [2025-01-04 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173489', 'tblTempVendorCDR_20' ) start [2025-01-04 14:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173489', 'tblTempVendorCDR_20' ) end [2025-01-04 14:26:18] Production.INFO: ProcessCDR(1,14173489,1,1,2) [2025-01-04 14:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173489', 'tblTempUsageDetail_20' ) start [2025-01-04 14:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173489', 'tblTempUsageDetail_20' ) end [2025-01-04 14:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:26:23] Production.INFO: ==25494== Releasing lock... [2025-01-04 14:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:26:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:27:05 [end_date_ymd] => 2025-01-04 14:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:27:05' and `end` < '2025-01-04 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-04 14:27:19] Production.INFO: count ==1672 [2025-01-04 14:27:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:27:05 - End Time 2025-01-04 14:27:05 [2025-01-04 14:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173494', 'tblTempUsageDetail_20' ) start [2025-01-04 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173494', 'tblTempUsageDetail_20' ) end [2025-01-04 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173494', 'tblTempVendorCDR_20' ) start [2025-01-04 14:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173494', 'tblTempVendorCDR_20' ) end [2025-01-04 14:27:19] Production.INFO: ProcessCDR(1,14173494,1,1,2) [2025-01-04 14:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173494', 'tblTempUsageDetail_20' ) start [2025-01-04 14:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173494', 'tblTempUsageDetail_20' ) end [2025-01-04 14:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:27:22] Production.INFO: ==25587== Releasing lock... [2025-01-04 14:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:27:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:28:05 [end_date_ymd] => 2025-01-04 14:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:28:05' and `end` < '2025-01-04 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-04 14:28:18] Production.INFO: count ==1671 [2025-01-04 14:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:28:05 - End Time 2025-01-04 14:28:05 [2025-01-04 14:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173499', 'tblTempUsageDetail_20' ) start [2025-01-04 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173499', 'tblTempUsageDetail_20' ) end [2025-01-04 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173499', 'tblTempVendorCDR_20' ) start [2025-01-04 14:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173499', 'tblTempVendorCDR_20' ) end [2025-01-04 14:28:18] Production.INFO: ProcessCDR(1,14173499,1,1,2) [2025-01-04 14:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173499', 'tblTempUsageDetail_20' ) start [2025-01-04 14:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173499', 'tblTempUsageDetail_20' ) end [2025-01-04 14:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:28:21] Production.INFO: ==25724== Releasing lock... [2025-01-04 14:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:28:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:29:04 [end_date_ymd] => 2025-01-04 14:29:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:29:04' and `end` < '2025-01-04 14: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-04 14:29:18] Production.INFO: count ==1676 [2025-01-04 14:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:29:04 - End Time 2025-01-04 14:29:04 [2025-01-04 14:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173504', 'tblTempUsageDetail_20' ) start [2025-01-04 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173504', 'tblTempUsageDetail_20' ) end [2025-01-04 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173504', 'tblTempVendorCDR_20' ) start [2025-01-04 14:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173504', 'tblTempVendorCDR_20' ) end [2025-01-04 14:29:19] Production.INFO: ProcessCDR(1,14173504,1,1,2) [2025-01-04 14:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173504', 'tblTempUsageDetail_20' ) start [2025-01-04 14:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173504', 'tblTempUsageDetail_20' ) end [2025-01-04 14:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:29:23] Production.INFO: ==25818== Releasing lock... [2025-01-04 14:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:29:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:30:05 [end_date_ymd] => 2025-01-04 14:30:05 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:30:05' and `end` < '2025-01-04 14: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-04 14:30:18] Production.INFO: count ==1679 [2025-01-04 14:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:30:05 - End Time 2025-01-04 14:30:05 [2025-01-04 14:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173509', 'tblTempUsageDetail_20' ) start [2025-01-04 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173509', 'tblTempUsageDetail_20' ) end [2025-01-04 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173509', 'tblTempVendorCDR_20' ) start [2025-01-04 14:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173509', 'tblTempVendorCDR_20' ) end [2025-01-04 14:30:19] Production.INFO: ProcessCDR(1,14173509,1,1,2) [2025-01-04 14:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173509', 'tblTempUsageDetail_20' ) start [2025-01-04 14:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173509', 'tblTempUsageDetail_20' ) end [2025-01-04 14:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:30:22] Production.INFO: ==25920== Releasing lock... [2025-01-04 14:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:30:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:31:05 [end_date_ymd] => 2025-01-04 14:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:31:05' and `end` < '2025-01-04 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-04 14:31:19] Production.INFO: count ==1661 [2025-01-04 14:31:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:31:05 - End Time 2025-01-04 14:31:05 [2025-01-04 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173515', 'tblTempUsageDetail_20' ) start [2025-01-04 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173515', 'tblTempUsageDetail_20' ) end [2025-01-04 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173515', 'tblTempVendorCDR_20' ) start [2025-01-04 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173515', 'tblTempVendorCDR_20' ) end [2025-01-04 14:31:20] Production.INFO: ProcessCDR(1,14173515,1,1,2) [2025-01-04 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173515', 'tblTempUsageDetail_20' ) start [2025-01-04 14:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173515', 'tblTempUsageDetail_20' ) end [2025-01-04 14:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:31:23] Production.INFO: ==26021== Releasing lock... [2025-01-04 14:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:31:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:32:04 [end_date_ymd] => 2025-01-04 14:32:04 [RateCDR] => 1 ) [2025-01-04 14:32: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-04 11:32:04' and `end` < '2025-01-04 14:32: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-04 14:32:17] Production.INFO: count ==1662 [2025-01-04 14:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:32:04 - End Time 2025-01-04 14:32:04 [2025-01-04 14:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173520', 'tblTempUsageDetail_20' ) start [2025-01-04 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173520', 'tblTempUsageDetail_20' ) end [2025-01-04 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173520', 'tblTempVendorCDR_20' ) start [2025-01-04 14:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173520', 'tblTempVendorCDR_20' ) end [2025-01-04 14:32:18] Production.INFO: ProcessCDR(1,14173520,1,1,2) [2025-01-04 14:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173520', 'tblTempUsageDetail_20' ) start [2025-01-04 14:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173520', 'tblTempUsageDetail_20' ) end [2025-01-04 14:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:32:23] Production.INFO: ==26091== Releasing lock... [2025-01-04 14:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:32:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:33:05 [end_date_ymd] => 2025-01-04 14:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:33:05' and `end` < '2025-01-04 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-04 14:33:18] Production.INFO: count ==1654 [2025-01-04 14:33:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:33:05 - End Time 2025-01-04 14:33:05 [2025-01-04 14:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173525', 'tblTempUsageDetail_20' ) start [2025-01-04 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173525', 'tblTempUsageDetail_20' ) end [2025-01-04 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173525', 'tblTempVendorCDR_20' ) start [2025-01-04 14:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173525', 'tblTempVendorCDR_20' ) end [2025-01-04 14:33:19] Production.INFO: ProcessCDR(1,14173525,1,1,2) [2025-01-04 14:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173525', 'tblTempUsageDetail_20' ) start [2025-01-04 14:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173525', 'tblTempUsageDetail_20' ) end [2025-01-04 14:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:33:22] Production.INFO: ==26162== Releasing lock... [2025-01-04 14:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:33:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:34:04 [end_date_ymd] => 2025-01-04 14:34:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:34:04' and `end` < '2025-01-04 14: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-04 14:34:20] Production.INFO: count ==1643 [2025-01-04 14:34:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:34:04 - End Time 2025-01-04 14:34:04 [2025-01-04 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173530', 'tblTempUsageDetail_20' ) start [2025-01-04 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173530', 'tblTempUsageDetail_20' ) end [2025-01-04 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173530', 'tblTempVendorCDR_20' ) start [2025-01-04 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173530', 'tblTempVendorCDR_20' ) end [2025-01-04 14:34:20] Production.INFO: ProcessCDR(1,14173530,1,1,2) [2025-01-04 14:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173530', 'tblTempUsageDetail_20' ) start [2025-01-04 14:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173530', 'tblTempUsageDetail_20' ) end [2025-01-04 14:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:34:23] Production.INFO: ==26238== Releasing lock... [2025-01-04 14:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:34:23] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:35:05 [end_date_ymd] => 2025-01-04 14:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:35:05' and `end` < '2025-01-04 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-04 14:35:18] Production.INFO: count ==1641 [2025-01-04 14:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:35:05 - End Time 2025-01-04 14:35:05 [2025-01-04 14:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173535', 'tblTempUsageDetail_20' ) start [2025-01-04 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173535', 'tblTempUsageDetail_20' ) end [2025-01-04 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173535', 'tblTempVendorCDR_20' ) start [2025-01-04 14:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173535', 'tblTempVendorCDR_20' ) end [2025-01-04 14:35:19] Production.INFO: ProcessCDR(1,14173535,1,1,2) [2025-01-04 14:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173535', 'tblTempUsageDetail_20' ) start [2025-01-04 14:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173535', 'tblTempUsageDetail_20' ) end [2025-01-04 14:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:35:22] Production.INFO: ==26329== Releasing lock... [2025-01-04 14:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:35:22] Production.INFO: 40 MB #Memory Used# [2025-01-04 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:36:05 [end_date_ymd] => 2025-01-04 14:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:36:05' and `end` < '2025-01-04 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-04 14:36:20] Production.INFO: count ==1637 [2025-01-04 14:36:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:36:05 - End Time 2025-01-04 14:36:05 [2025-01-04 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173540', 'tblTempUsageDetail_20' ) start [2025-01-04 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173540', 'tblTempUsageDetail_20' ) end [2025-01-04 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173540', 'tblTempVendorCDR_20' ) start [2025-01-04 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173540', 'tblTempVendorCDR_20' ) end [2025-01-04 14:36:20] Production.INFO: ProcessCDR(1,14173540,1,1,2) [2025-01-04 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173540', 'tblTempUsageDetail_20' ) start [2025-01-04 14:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173540', 'tblTempUsageDetail_20' ) end [2025-01-04 14:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:36:23] Production.INFO: ==26423== Releasing lock... [2025-01-04 14:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:36:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:37:04 [end_date_ymd] => 2025-01-04 14:37:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:37:04' and `end` < '2025-01-04 14: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-04 14:37:19] Production.INFO: count ==1638 [2025-01-04 14:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:37:04 - End Time 2025-01-04 14:37:04 [2025-01-04 14:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173545', 'tblTempUsageDetail_20' ) start [2025-01-04 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173545', 'tblTempUsageDetail_20' ) end [2025-01-04 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173545', 'tblTempVendorCDR_20' ) start [2025-01-04 14:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173545', 'tblTempVendorCDR_20' ) end [2025-01-04 14:37:19] Production.INFO: ProcessCDR(1,14173545,1,1,2) [2025-01-04 14:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173545', 'tblTempUsageDetail_20' ) start [2025-01-04 14:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173545', 'tblTempUsageDetail_20' ) end [2025-01-04 14:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:37:22] Production.INFO: ==26509== Releasing lock... [2025-01-04 14:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:37:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:38:05 [end_date_ymd] => 2025-01-04 14:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:38:05' and `end` < '2025-01-04 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-04 14:38:20] Production.INFO: count ==1637 [2025-01-04 14:38:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:38:05 - End Time 2025-01-04 14:38:05 [2025-01-04 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173550', 'tblTempUsageDetail_20' ) start [2025-01-04 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173550', 'tblTempUsageDetail_20' ) end [2025-01-04 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173550', 'tblTempVendorCDR_20' ) start [2025-01-04 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173550', 'tblTempVendorCDR_20' ) end [2025-01-04 14:38:20] Production.INFO: ProcessCDR(1,14173550,1,1,2) [2025-01-04 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173550', 'tblTempUsageDetail_20' ) start [2025-01-04 14:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173550', 'tblTempUsageDetail_20' ) end [2025-01-04 14:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:38:23] Production.INFO: ==26590== Releasing lock... [2025-01-04 14:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:38:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 14:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:39:04 [end_date_ymd] => 2025-01-04 14:39:04 [RateCDR] => 1 ) [2025-01-04 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-04 11:39:04' and `end` < '2025-01-04 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-04 14:39:17] Production.INFO: count ==1621 [2025-01-04 14:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:39:04 - End Time 2025-01-04 14:39:04 [2025-01-04 14:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173555', 'tblTempUsageDetail_20' ) start [2025-01-04 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173555', 'tblTempUsageDetail_20' ) end [2025-01-04 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173555', 'tblTempVendorCDR_20' ) start [2025-01-04 14:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173555', 'tblTempVendorCDR_20' ) end [2025-01-04 14:39:18] Production.INFO: ProcessCDR(1,14173555,1,1,2) [2025-01-04 14:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173555', 'tblTempUsageDetail_20' ) start [2025-01-04 14:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173555', 'tblTempUsageDetail_20' ) end [2025-01-04 14:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:39:21] Production.INFO: ==26667== Releasing lock... [2025-01-04 14:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:39:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:40:05 [end_date_ymd] => 2025-01-04 14:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:40:05' and `end` < '2025-01-04 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-04 14:40:18] Production.INFO: count ==1616 [2025-01-04 14:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:40:05 - End Time 2025-01-04 14:40:05 [2025-01-04 14:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173561', 'tblTempUsageDetail_20' ) start [2025-01-04 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173561', 'tblTempUsageDetail_20' ) end [2025-01-04 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173561', 'tblTempVendorCDR_20' ) start [2025-01-04 14:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173561', 'tblTempVendorCDR_20' ) end [2025-01-04 14:40:19] Production.INFO: ProcessCDR(1,14173561,1,1,2) [2025-01-04 14:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173561', 'tblTempUsageDetail_20' ) start [2025-01-04 14:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173561', 'tblTempUsageDetail_20' ) end [2025-01-04 14:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:40:22] Production.INFO: ==26749== Releasing lock... [2025-01-04 14:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:40:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:41:04 [end_date_ymd] => 2025-01-04 14:41:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:41:04' and `end` < '2025-01-04 14: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-04 14:41:17] Production.INFO: count ==1630 [2025-01-04 14:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:41:04 - End Time 2025-01-04 14:41:04 [2025-01-04 14:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173566', 'tblTempUsageDetail_20' ) start [2025-01-04 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173566', 'tblTempUsageDetail_20' ) end [2025-01-04 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173566', 'tblTempVendorCDR_20' ) start [2025-01-04 14:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173566', 'tblTempVendorCDR_20' ) end [2025-01-04 14:41:18] Production.INFO: ProcessCDR(1,14173566,1,1,2) [2025-01-04 14:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173566', 'tblTempUsageDetail_20' ) start [2025-01-04 14:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173566', 'tblTempUsageDetail_20' ) end [2025-01-04 14:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:41:21] Production.INFO: ==26836== Releasing lock... [2025-01-04 14:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:41:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:42:05 [end_date_ymd] => 2025-01-04 14:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:42:05' and `end` < '2025-01-04 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-04 14:42:18] Production.INFO: count ==1649 [2025-01-04 14:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:42:05 - End Time 2025-01-04 14:42:05 [2025-01-04 14:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173571', 'tblTempUsageDetail_20' ) start [2025-01-04 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173571', 'tblTempUsageDetail_20' ) end [2025-01-04 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173571', 'tblTempVendorCDR_20' ) start [2025-01-04 14:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173571', 'tblTempVendorCDR_20' ) end [2025-01-04 14:42:18] Production.INFO: ProcessCDR(1,14173571,1,1,2) [2025-01-04 14:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173571', 'tblTempUsageDetail_20' ) start [2025-01-04 14:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173571', 'tblTempUsageDetail_20' ) end [2025-01-04 14:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:42:21] Production.INFO: ==26913== Releasing lock... [2025-01-04 14:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:42:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:43:05 [end_date_ymd] => 2025-01-04 14:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:43:05' and `end` < '2025-01-04 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-04 14:43:18] Production.INFO: count ==1630 [2025-01-04 14:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:43:05 - End Time 2025-01-04 14:43:05 [2025-01-04 14:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173576', 'tblTempUsageDetail_20' ) start [2025-01-04 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173576', 'tblTempUsageDetail_20' ) end [2025-01-04 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173576', 'tblTempVendorCDR_20' ) start [2025-01-04 14:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173576', 'tblTempVendorCDR_20' ) end [2025-01-04 14:43:19] Production.INFO: ProcessCDR(1,14173576,1,1,2) [2025-01-04 14:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173576', 'tblTempUsageDetail_20' ) start [2025-01-04 14:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173576', 'tblTempUsageDetail_20' ) end [2025-01-04 14:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:43:22] Production.INFO: ==26995== Releasing lock... [2025-01-04 14:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:43:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:44:04 [end_date_ymd] => 2025-01-04 14:44:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:44:04' and `end` < '2025-01-04 14: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-04 14:44:17] Production.INFO: count ==1638 [2025-01-04 14:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:44:04 - End Time 2025-01-04 14:44:04 [2025-01-04 14:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173581', 'tblTempUsageDetail_20' ) start [2025-01-04 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173581', 'tblTempUsageDetail_20' ) end [2025-01-04 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173581', 'tblTempVendorCDR_20' ) start [2025-01-04 14:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173581', 'tblTempVendorCDR_20' ) end [2025-01-04 14:44:18] Production.INFO: ProcessCDR(1,14173581,1,1,2) [2025-01-04 14:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173581', 'tblTempUsageDetail_20' ) start [2025-01-04 14:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173581', 'tblTempUsageDetail_20' ) end [2025-01-04 14:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:44:21] Production.INFO: ==27114== Releasing lock... [2025-01-04 14:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:44:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:45:05 [end_date_ymd] => 2025-01-04 14:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:45:05' and `end` < '2025-01-04 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-04 14:45:18] Production.INFO: count ==1638 [2025-01-04 14:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:45:05 - End Time 2025-01-04 14:45:05 [2025-01-04 14:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173586', 'tblTempUsageDetail_20' ) start [2025-01-04 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173586', 'tblTempUsageDetail_20' ) end [2025-01-04 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173586', 'tblTempVendorCDR_20' ) start [2025-01-04 14:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173586', 'tblTempVendorCDR_20' ) end [2025-01-04 14:45:19] Production.INFO: ProcessCDR(1,14173586,1,1,2) [2025-01-04 14:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173586', 'tblTempUsageDetail_20' ) start [2025-01-04 14:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173586', 'tblTempUsageDetail_20' ) end [2025-01-04 14:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:45:22] Production.INFO: ==27193== Releasing lock... [2025-01-04 14:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:45:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:46:05 [end_date_ymd] => 2025-01-04 14:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:46:05' and `end` < '2025-01-04 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-04 14:46:18] Production.INFO: count ==1634 [2025-01-04 14:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:46:05 - End Time 2025-01-04 14:46:05 [2025-01-04 14:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173591', 'tblTempUsageDetail_20' ) start [2025-01-04 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173591', 'tblTempUsageDetail_20' ) end [2025-01-04 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173591', 'tblTempVendorCDR_20' ) start [2025-01-04 14:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173591', 'tblTempVendorCDR_20' ) end [2025-01-04 14:46:18] Production.INFO: ProcessCDR(1,14173591,1,1,2) [2025-01-04 14:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173591', 'tblTempUsageDetail_20' ) start [2025-01-04 14:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173591', 'tblTempUsageDetail_20' ) end [2025-01-04 14:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:46:21] Production.INFO: ==27270== Releasing lock... [2025-01-04 14:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:46:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:47:05 [end_date_ymd] => 2025-01-04 14:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:47:05' and `end` < '2025-01-04 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-04 14:47:18] Production.INFO: count ==1630 [2025-01-04 14:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:47:05 - End Time 2025-01-04 14:47:05 [2025-01-04 14:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173596', 'tblTempUsageDetail_20' ) start [2025-01-04 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173596', 'tblTempUsageDetail_20' ) end [2025-01-04 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173596', 'tblTempVendorCDR_20' ) start [2025-01-04 14:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173596', 'tblTempVendorCDR_20' ) end [2025-01-04 14:47:19] Production.INFO: ProcessCDR(1,14173596,1,1,2) [2025-01-04 14:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173596', 'tblTempUsageDetail_20' ) start [2025-01-04 14:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173596', 'tblTempUsageDetail_20' ) end [2025-01-04 14:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:47:22] Production.INFO: ==27345== Releasing lock... [2025-01-04 14:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:47:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:48:05 [end_date_ymd] => 2025-01-04 14:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:48:05' and `end` < '2025-01-04 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-04 14:48:18] Production.INFO: count ==1633 [2025-01-04 14:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:48:05 - End Time 2025-01-04 14:48:05 [2025-01-04 14:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173601', 'tblTempUsageDetail_20' ) start [2025-01-04 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173601', 'tblTempUsageDetail_20' ) end [2025-01-04 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173601', 'tblTempVendorCDR_20' ) start [2025-01-04 14:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173601', 'tblTempVendorCDR_20' ) end [2025-01-04 14:48:19] Production.INFO: ProcessCDR(1,14173601,1,1,2) [2025-01-04 14:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173601', 'tblTempUsageDetail_20' ) start [2025-01-04 14:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173601', 'tblTempUsageDetail_20' ) end [2025-01-04 14:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:48:22] Production.INFO: ==27417== Releasing lock... [2025-01-04 14:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:48:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:49:04 [end_date_ymd] => 2025-01-04 14:49:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:49:04' and `end` < '2025-01-04 14: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-04 14:49:18] Production.INFO: count ==1625 [2025-01-04 14:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:49:04 - End Time 2025-01-04 14:49:04 [2025-01-04 14:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173606', 'tblTempUsageDetail_20' ) start [2025-01-04 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173606', 'tblTempUsageDetail_20' ) end [2025-01-04 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173606', 'tblTempVendorCDR_20' ) start [2025-01-04 14:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173606', 'tblTempVendorCDR_20' ) end [2025-01-04 14:49:19] Production.INFO: ProcessCDR(1,14173606,1,1,2) [2025-01-04 14:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173606', 'tblTempUsageDetail_20' ) start [2025-01-04 14:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173606', 'tblTempUsageDetail_20' ) end [2025-01-04 14:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:49:22] Production.INFO: ==27486== Releasing lock... [2025-01-04 14:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:49:22] Production.INFO: 41 MB #Memory Used# [2025-01-04 14:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:50:05 [end_date_ymd] => 2025-01-04 14:50:05 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:50:05' and `end` < '2025-01-04 14: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-04 14:50:18] Production.INFO: count ==1633 [2025-01-04 14:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:50:05 - End Time 2025-01-04 14:50:05 [2025-01-04 14:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173611', 'tblTempUsageDetail_20' ) start [2025-01-04 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173611', 'tblTempUsageDetail_20' ) end [2025-01-04 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173611', 'tblTempVendorCDR_20' ) start [2025-01-04 14:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173611', 'tblTempVendorCDR_20' ) end [2025-01-04 14:50:19] Production.INFO: ProcessCDR(1,14173611,1,1,2) [2025-01-04 14:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173611', 'tblTempUsageDetail_20' ) start [2025-01-04 14:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173611', 'tblTempUsageDetail_20' ) end [2025-01-04 14:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:50:22] Production.INFO: ==27561== Releasing lock... [2025-01-04 14:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:50:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:51:04 [end_date_ymd] => 2025-01-04 14:51:04 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:51:04' and `end` < '2025-01-04 14: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-04 14:51:17] Production.INFO: count ==1652 [2025-01-04 14:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:51:04 - End Time 2025-01-04 14:51:04 [2025-01-04 14:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173617', 'tblTempUsageDetail_20' ) start [2025-01-04 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173617', 'tblTempUsageDetail_20' ) end [2025-01-04 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173617', 'tblTempVendorCDR_20' ) start [2025-01-04 14:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173617', 'tblTempVendorCDR_20' ) end [2025-01-04 14:51:18] Production.INFO: ProcessCDR(1,14173617,1,1,2) [2025-01-04 14:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173617', 'tblTempUsageDetail_20' ) start [2025-01-04 14:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173617', 'tblTempUsageDetail_20' ) end [2025-01-04 14:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:51:21] Production.INFO: ==27638== Releasing lock... [2025-01-04 14:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:51:21] Production.INFO: 41.25 MB #Memory Used# [2025-01-04 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:52:05 [end_date_ymd] => 2025-01-04 14:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:52:05' and `end` < '2025-01-04 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-04 14:52:18] Production.INFO: count ==1663 [2025-01-04 14:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:52:05 - End Time 2025-01-04 14:52:05 [2025-01-04 14:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173622', 'tblTempUsageDetail_20' ) start [2025-01-04 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173622', 'tblTempUsageDetail_20' ) end [2025-01-04 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173622', 'tblTempVendorCDR_20' ) start [2025-01-04 14:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173622', 'tblTempVendorCDR_20' ) end [2025-01-04 14:52:19] Production.INFO: ProcessCDR(1,14173622,1,1,2) [2025-01-04 14:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173622', 'tblTempUsageDetail_20' ) start [2025-01-04 14:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173622', 'tblTempUsageDetail_20' ) end [2025-01-04 14:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:52:22] Production.INFO: ==27709== Releasing lock... [2025-01-04 14:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:52:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:53:05 [end_date_ymd] => 2025-01-04 14:53:05 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:53:05' and `end` < '2025-01-04 14: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-04 14:53:20] Production.INFO: count ==1658 [2025-01-04 14:53:20] Production.ERROR: pbx CDR StartTime 2025-01-04 11:53:05 - End Time 2025-01-04 14:53:05 [2025-01-04 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173627', 'tblTempUsageDetail_20' ) start [2025-01-04 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173627', 'tblTempUsageDetail_20' ) end [2025-01-04 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173627', 'tblTempVendorCDR_20' ) start [2025-01-04 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173627', 'tblTempVendorCDR_20' ) end [2025-01-04 14:53:20] Production.INFO: ProcessCDR(1,14173627,1,1,2) [2025-01-04 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173627', 'tblTempUsageDetail_20' ) start [2025-01-04 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173627', 'tblTempUsageDetail_20' ) end [2025-01-04 14:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:53:25] Production.INFO: ==27783== Releasing lock... [2025-01-04 14:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:53:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:54:05 [end_date_ymd] => 2025-01-04 14:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:54:05' and `end` < '2025-01-04 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-04 14:54:18] Production.INFO: count ==1659 [2025-01-04 14:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:54:05 - End Time 2025-01-04 14:54:05 [2025-01-04 14:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173632', 'tblTempUsageDetail_20' ) start [2025-01-04 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173632', 'tblTempUsageDetail_20' ) end [2025-01-04 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173632', 'tblTempVendorCDR_20' ) start [2025-01-04 14:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173632', 'tblTempVendorCDR_20' ) end [2025-01-04 14:54:18] Production.INFO: ProcessCDR(1,14173632,1,1,2) [2025-01-04 14:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173632', 'tblTempUsageDetail_20' ) start [2025-01-04 14:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173632', 'tblTempUsageDetail_20' ) end [2025-01-04 14:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:54:23] Production.INFO: ==27852== Releasing lock... [2025-01-04 14:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:54:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:55:05 [end_date_ymd] => 2025-01-04 14:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:55:05' and `end` < '2025-01-04 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-04 14:55:18] Production.INFO: count ==1656 [2025-01-04 14:55:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:55:05 - End Time 2025-01-04 14:55:05 [2025-01-04 14:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173637', 'tblTempUsageDetail_20' ) start [2025-01-04 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173637', 'tblTempUsageDetail_20' ) end [2025-01-04 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173637', 'tblTempVendorCDR_20' ) start [2025-01-04 14:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173637', 'tblTempVendorCDR_20' ) end [2025-01-04 14:55:19] Production.INFO: ProcessCDR(1,14173637,1,1,2) [2025-01-04 14:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173637', 'tblTempUsageDetail_20' ) start [2025-01-04 14:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173637', 'tblTempUsageDetail_20' ) end [2025-01-04 14:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:55:22] Production.INFO: ==27926== Releasing lock... [2025-01-04 14:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:55:22] Production.INFO: 41.5 MB #Memory Used# [2025-01-04 14:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:56:05 [end_date_ymd] => 2025-01-04 14:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:56:05' and `end` < '2025-01-04 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-04 14:56:18] Production.INFO: count ==1650 [2025-01-04 14:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:56:05 - End Time 2025-01-04 14:56:05 [2025-01-04 14:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173642', 'tblTempUsageDetail_20' ) start [2025-01-04 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173642', 'tblTempUsageDetail_20' ) end [2025-01-04 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173642', 'tblTempVendorCDR_20' ) start [2025-01-04 14:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173642', 'tblTempVendorCDR_20' ) end [2025-01-04 14:56:18] Production.INFO: ProcessCDR(1,14173642,1,1,2) [2025-01-04 14:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173642', 'tblTempUsageDetail_20' ) start [2025-01-04 14:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173642', 'tblTempUsageDetail_20' ) end [2025-01-04 14:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:56:23] Production.INFO: ==27996== Releasing lock... [2025-01-04 14:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:56:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:57:05 [end_date_ymd] => 2025-01-04 14:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:57:05' and `end` < '2025-01-04 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-04 14:57:18] Production.INFO: count ==1628 [2025-01-04 14:57:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:57:05 - End Time 2025-01-04 14:57:05 [2025-01-04 14:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173647', 'tblTempUsageDetail_20' ) start [2025-01-04 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173647', 'tblTempUsageDetail_20' ) end [2025-01-04 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173647', 'tblTempVendorCDR_20' ) start [2025-01-04 14:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173647', 'tblTempVendorCDR_20' ) end [2025-01-04 14:57:18] Production.INFO: ProcessCDR(1,14173647,1,1,2) [2025-01-04 14:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173647', 'tblTempUsageDetail_20' ) start [2025-01-04 14:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173647', 'tblTempUsageDetail_20' ) end [2025-01-04 14:57:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:57:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:57:21] Production.INFO: ==28068== Releasing lock... [2025-01-04 14:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:57:21] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 14:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:58:05 [end_date_ymd] => 2025-01-04 14:58:05 [RateCDR] => 1 ) [2025-01-04 14: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-04 11:58:05' and `end` < '2025-01-04 14: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-04 14:58:18] Production.INFO: count ==1630 [2025-01-04 14:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 11:58:05 - End Time 2025-01-04 14:58:05 [2025-01-04 14:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173652', 'tblTempUsageDetail_20' ) start [2025-01-04 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173652', 'tblTempUsageDetail_20' ) end [2025-01-04 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173652', 'tblTempVendorCDR_20' ) start [2025-01-04 14:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173652', 'tblTempVendorCDR_20' ) end [2025-01-04 14:58:19] Production.INFO: ProcessCDR(1,14173652,1,1,2) [2025-01-04 14:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173652', 'tblTempUsageDetail_20' ) start [2025-01-04 14:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173652', 'tblTempUsageDetail_20' ) end [2025-01-04 14:58:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:58:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:58:23] Production.INFO: ==28138== Releasing lock... [2025-01-04 14:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:58:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 11:59:05 [end_date_ymd] => 2025-01-04 14:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 11:59:05' and `end` < '2025-01-04 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-04 14:59:18] Production.INFO: count ==1631 [2025-01-04 14:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 11:59:05 - End Time 2025-01-04 14:59:05 [2025-01-04 14:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173657', 'tblTempUsageDetail_20' ) start [2025-01-04 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173657', 'tblTempUsageDetail_20' ) end [2025-01-04 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173657', 'tblTempVendorCDR_20' ) start [2025-01-04 14:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173657', 'tblTempVendorCDR_20' ) end [2025-01-04 14:59:18] Production.INFO: ProcessCDR(1,14173657,1,1,2) [2025-01-04 14:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 14:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173657', 'tblTempUsageDetail_20' ) start [2025-01-04 14:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173657', 'tblTempUsageDetail_20' ) end [2025-01-04 14:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 14:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 14:59:23] Production.INFO: ==28253== Releasing lock... [2025-01-04 14:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 14:59:23] Production.INFO: 41 MB #Memory Used# [2025-01-04 15:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:00:06 [end_date_ymd] => 2025-01-04 15:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 12:00:06' and `end` < '2025-01-04 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-04 15:00:19] Production.INFO: count ==1628 [2025-01-04 15:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:00:06 - End Time 2025-01-04 15:00:06 [2025-01-04 15:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173662', 'tblTempUsageDetail_20' ) start [2025-01-04 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173662', 'tblTempUsageDetail_20' ) end [2025-01-04 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173662', 'tblTempVendorCDR_20' ) start [2025-01-04 15:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173662', 'tblTempVendorCDR_20' ) end [2025-01-04 15:00:19] Production.INFO: ProcessCDR(1,14173662,1,1,2) [2025-01-04 15:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173662', 'tblTempUsageDetail_20' ) start [2025-01-04 15:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173662', 'tblTempUsageDetail_20' ) end [2025-01-04 15:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:00:23] Production.INFO: ==28328== Releasing lock... [2025-01-04 15:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:00:23] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 15:01:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:01:04 [end_date_ymd] => 2025-01-04 15:01:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:01:04' and `end` < '2025-01-04 15: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-04 15:01:17] Production.INFO: count ==1619 [2025-01-04 15:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:01:04 - End Time 2025-01-04 15:01:04 [2025-01-04 15:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173668', 'tblTempUsageDetail_20' ) start [2025-01-04 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173668', 'tblTempUsageDetail_20' ) end [2025-01-04 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173668', 'tblTempVendorCDR_20' ) start [2025-01-04 15:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173668', 'tblTempVendorCDR_20' ) end [2025-01-04 15:01:18] Production.INFO: ProcessCDR(1,14173668,1,1,2) [2025-01-04 15:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173668', 'tblTempUsageDetail_20' ) start [2025-01-04 15:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173668', 'tblTempUsageDetail_20' ) end [2025-01-04 15:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:01:22] Production.INFO: ==28412== Releasing lock... [2025-01-04 15:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:01:22] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 15:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:02:05 [end_date_ymd] => 2025-01-04 15:02:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:02:05' and `end` < '2025-01-04 15: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-04 15:02:19] Production.INFO: count ==1619 [2025-01-04 15:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:02:05 - End Time 2025-01-04 15:02:05 [2025-01-04 15:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173673', 'tblTempUsageDetail_20' ) start [2025-01-04 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173673', 'tblTempUsageDetail_20' ) end [2025-01-04 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173673', 'tblTempVendorCDR_20' ) start [2025-01-04 15:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173673', 'tblTempVendorCDR_20' ) end [2025-01-04 15:02:19] Production.INFO: ProcessCDR(1,14173673,1,1,2) [2025-01-04 15:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173673', 'tblTempUsageDetail_20' ) start [2025-01-04 15:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173673', 'tblTempUsageDetail_20' ) end [2025-01-04 15:02:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:02:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:02:24] Production.INFO: ==28562== Releasing lock... [2025-01-04 15:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:02:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:03:04 [end_date_ymd] => 2025-01-04 15:03:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:03:04' and `end` < '2025-01-04 15: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-04 15:03:20] Production.INFO: count ==1628 [2025-01-04 15:03:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:03:04 - End Time 2025-01-04 15:03:04 [2025-01-04 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173678', 'tblTempUsageDetail_20' ) start [2025-01-04 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173678', 'tblTempUsageDetail_20' ) end [2025-01-04 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173678', 'tblTempVendorCDR_20' ) start [2025-01-04 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173678', 'tblTempVendorCDR_20' ) end [2025-01-04 15:03:20] Production.INFO: ProcessCDR(1,14173678,1,1,2) [2025-01-04 15:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173678', 'tblTempUsageDetail_20' ) start [2025-01-04 15:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173678', 'tblTempUsageDetail_20' ) end [2025-01-04 15:03:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:03:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:03:25] Production.INFO: ==28634== Releasing lock... [2025-01-04 15:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:03:25] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:04:05 [end_date_ymd] => 2025-01-04 15:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:04:05' and `end` < '2025-01-04 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-04 15:04:18] Production.INFO: count ==1629 [2025-01-04 15:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:04:05 - End Time 2025-01-04 15:04:05 [2025-01-04 15:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173683', 'tblTempUsageDetail_20' ) start [2025-01-04 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173683', 'tblTempUsageDetail_20' ) end [2025-01-04 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173683', 'tblTempVendorCDR_20' ) start [2025-01-04 15:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173683', 'tblTempVendorCDR_20' ) end [2025-01-04 15:04:18] Production.INFO: ProcessCDR(1,14173683,1,1,2) [2025-01-04 15:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173683', 'tblTempUsageDetail_20' ) start [2025-01-04 15:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173683', 'tblTempUsageDetail_20' ) end [2025-01-04 15:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:04:23] Production.INFO: ==28706== Releasing lock... [2025-01-04 15:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:04:23] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:05:05 [end_date_ymd] => 2025-01-04 15:05:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:05:05' and `end` < '2025-01-04 15: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-04 15:05:18] Production.INFO: count ==1634 [2025-01-04 15:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:05:05 - End Time 2025-01-04 15:05:05 [2025-01-04 15:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173688', 'tblTempUsageDetail_20' ) start [2025-01-04 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173688', 'tblTempUsageDetail_20' ) end [2025-01-04 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173688', 'tblTempVendorCDR_20' ) start [2025-01-04 15:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173688', 'tblTempVendorCDR_20' ) end [2025-01-04 15:05:18] Production.INFO: ProcessCDR(1,14173688,1,1,2) [2025-01-04 15:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173688', 'tblTempUsageDetail_20' ) start [2025-01-04 15:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173688', 'tblTempUsageDetail_20' ) end [2025-01-04 15:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:05:21] Production.INFO: ==28861== Releasing lock... [2025-01-04 15:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:05:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:06:05 [end_date_ymd] => 2025-01-04 15:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:06:05' and `end` < '2025-01-04 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-04 15:06:20] Production.INFO: count ==1640 [2025-01-04 15:06:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:06:05 - End Time 2025-01-04 15:06:05 [2025-01-04 15:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173693', 'tblTempUsageDetail_20' ) start [2025-01-04 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173693', 'tblTempUsageDetail_20' ) end [2025-01-04 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173693', 'tblTempVendorCDR_20' ) start [2025-01-04 15:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173693', 'tblTempVendorCDR_20' ) end [2025-01-04 15:06:20] Production.INFO: ProcessCDR(1,14173693,1,1,2) [2025-01-04 15:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173693', 'tblTempUsageDetail_20' ) start [2025-01-04 15:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173693', 'tblTempUsageDetail_20' ) end [2025-01-04 15:06:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:06:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:06:25] Production.INFO: ==28935== Releasing lock... [2025-01-04 15:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:06:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:07:05 [end_date_ymd] => 2025-01-04 15:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:07:05' and `end` < '2025-01-04 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-04 15:07:19] Production.INFO: count ==1636 [2025-01-04 15:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:07:05 - End Time 2025-01-04 15:07:05 [2025-01-04 15:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173698', 'tblTempUsageDetail_20' ) start [2025-01-04 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173698', 'tblTempUsageDetail_20' ) end [2025-01-04 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173698', 'tblTempVendorCDR_20' ) start [2025-01-04 15:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173698', 'tblTempVendorCDR_20' ) end [2025-01-04 15:07:19] Production.INFO: ProcessCDR(1,14173698,1,1,2) [2025-01-04 15:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173698', 'tblTempUsageDetail_20' ) start [2025-01-04 15:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173698', 'tblTempUsageDetail_20' ) end [2025-01-04 15:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:07:24] Production.INFO: ==29006== Releasing lock... [2025-01-04 15:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:07:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:08:05 [end_date_ymd] => 2025-01-04 15:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:08:05' and `end` < '2025-01-04 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-04 15:08:18] Production.INFO: count ==1654 [2025-01-04 15:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:08:05 - End Time 2025-01-04 15:08:05 [2025-01-04 15:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173703', 'tblTempUsageDetail_20' ) start [2025-01-04 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173703', 'tblTempUsageDetail_20' ) end [2025-01-04 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173703', 'tblTempVendorCDR_20' ) start [2025-01-04 15:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173703', 'tblTempVendorCDR_20' ) end [2025-01-04 15:08:19] Production.INFO: ProcessCDR(1,14173703,1,1,2) [2025-01-04 15:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173703', 'tblTempUsageDetail_20' ) start [2025-01-04 15:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173703', 'tblTempUsageDetail_20' ) end [2025-01-04 15:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:08:22] Production.INFO: ==29115== Releasing lock... [2025-01-04 15:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:08:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:09:05 [end_date_ymd] => 2025-01-04 15:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:09:05' and `end` < '2025-01-04 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-04 15:09:18] Production.INFO: count ==1658 [2025-01-04 15:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:09:05 - End Time 2025-01-04 15:09:05 [2025-01-04 15:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173708', 'tblTempUsageDetail_20' ) start [2025-01-04 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173708', 'tblTempUsageDetail_20' ) end [2025-01-04 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173708', 'tblTempVendorCDR_20' ) start [2025-01-04 15:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173708', 'tblTempVendorCDR_20' ) end [2025-01-04 15:09:19] Production.INFO: ProcessCDR(1,14173708,1,1,2) [2025-01-04 15:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173708', 'tblTempUsageDetail_20' ) start [2025-01-04 15:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173708', 'tblTempUsageDetail_20' ) end [2025-01-04 15:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:09:23] Production.INFO: ==29227== Releasing lock... [2025-01-04 15:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:09:23] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:10:05 [end_date_ymd] => 2025-01-04 15:10:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:10:05' and `end` < '2025-01-04 15: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-04 15:10:18] Production.INFO: count ==1648 [2025-01-04 15:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:10:05 - End Time 2025-01-04 15:10:05 [2025-01-04 15:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173714', 'tblTempUsageDetail_20' ) start [2025-01-04 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173714', 'tblTempUsageDetail_20' ) end [2025-01-04 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173714', 'tblTempVendorCDR_20' ) start [2025-01-04 15:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173714', 'tblTempVendorCDR_20' ) end [2025-01-04 15:10:18] Production.INFO: ProcessCDR(1,14173714,1,1,2) [2025-01-04 15:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173714', 'tblTempUsageDetail_20' ) start [2025-01-04 15:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173714', 'tblTempUsageDetail_20' ) end [2025-01-04 15:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:10:22] Production.INFO: ==29300== Releasing lock... [2025-01-04 15:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:10:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:11:06 [end_date_ymd] => 2025-01-04 15:11:06 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:11:06' and `end` < '2025-01-04 15: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-04 15:11:19] Production.INFO: count ==1647 [2025-01-04 15:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:11:06 - End Time 2025-01-04 15:11:06 [2025-01-04 15:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173719', 'tblTempUsageDetail_20' ) start [2025-01-04 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173719', 'tblTempUsageDetail_20' ) end [2025-01-04 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173719', 'tblTempVendorCDR_20' ) start [2025-01-04 15:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173719', 'tblTempVendorCDR_20' ) end [2025-01-04 15:11:19] Production.INFO: ProcessCDR(1,14173719,1,1,2) [2025-01-04 15:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173719', 'tblTempUsageDetail_20' ) start [2025-01-04 15:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173719', 'tblTempUsageDetail_20' ) end [2025-01-04 15:11:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:11:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:11:24] Production.INFO: ==29373== Releasing lock... [2025-01-04 15:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:11:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 15:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:12:04 [end_date_ymd] => 2025-01-04 15:12:04 [RateCDR] => 1 ) [2025-01-04 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-04 12:12:04' and `end` < '2025-01-04 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-04 15:12:17] Production.INFO: count ==1645 [2025-01-04 15:12:17] Production.ERROR: pbx CDR StartTime 2025-01-04 12:12:04 - End Time 2025-01-04 15:12:04 [2025-01-04 15:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173724', 'tblTempUsageDetail_20' ) start [2025-01-04 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173724', 'tblTempUsageDetail_20' ) end [2025-01-04 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173724', 'tblTempVendorCDR_20' ) start [2025-01-04 15:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173724', 'tblTempVendorCDR_20' ) end [2025-01-04 15:12:18] Production.INFO: ProcessCDR(1,14173724,1,1,2) [2025-01-04 15:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173724', 'tblTempUsageDetail_20' ) start [2025-01-04 15:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173724', 'tblTempUsageDetail_20' ) end [2025-01-04 15:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:12:22] Production.INFO: ==29528== Releasing lock... [2025-01-04 15:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:12:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:13:04 [end_date_ymd] => 2025-01-04 15:13:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:13:04' and `end` < '2025-01-04 15: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-04 15:13:19] Production.INFO: count ==1649 [2025-01-04 15:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:13:04 - End Time 2025-01-04 15:13:04 [2025-01-04 15:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173729', 'tblTempUsageDetail_20' ) start [2025-01-04 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173729', 'tblTempUsageDetail_20' ) end [2025-01-04 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173729', 'tblTempVendorCDR_20' ) start [2025-01-04 15:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173729', 'tblTempVendorCDR_20' ) end [2025-01-04 15:13:19] Production.INFO: ProcessCDR(1,14173729,1,1,2) [2025-01-04 15:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173729', 'tblTempUsageDetail_20' ) start [2025-01-04 15:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173729', 'tblTempUsageDetail_20' ) end [2025-01-04 15:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:13:22] Production.INFO: ==29599== Releasing lock... [2025-01-04 15:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:13:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:14:05 [end_date_ymd] => 2025-01-04 15:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:14:05' and `end` < '2025-01-04 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-04 15:14:19] Production.INFO: count ==1649 [2025-01-04 15:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:14:05 - End Time 2025-01-04 15:14:05 [2025-01-04 15:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173734', 'tblTempUsageDetail_20' ) start [2025-01-04 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173734', 'tblTempUsageDetail_20' ) end [2025-01-04 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173734', 'tblTempVendorCDR_20' ) start [2025-01-04 15:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173734', 'tblTempVendorCDR_20' ) end [2025-01-04 15:14:19] Production.INFO: ProcessCDR(1,14173734,1,1,2) [2025-01-04 15:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173734', 'tblTempUsageDetail_20' ) start [2025-01-04 15:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173734', 'tblTempUsageDetail_20' ) end [2025-01-04 15:14:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:14:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:14:24] Production.INFO: ==29672== Releasing lock... [2025-01-04 15:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:14:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 15:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:15:04 [end_date_ymd] => 2025-01-04 15:15:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:15:04' and `end` < '2025-01-04 15: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-04 15:15:17] Production.INFO: count ==1651 [2025-01-04 15:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:15:04 - End Time 2025-01-04 15:15:04 [2025-01-04 15:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173739', 'tblTempUsageDetail_20' ) start [2025-01-04 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173739', 'tblTempUsageDetail_20' ) end [2025-01-04 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173739', 'tblTempVendorCDR_20' ) start [2025-01-04 15:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173739', 'tblTempVendorCDR_20' ) end [2025-01-04 15:15:18] Production.INFO: ProcessCDR(1,14173739,1,1,2) [2025-01-04 15:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173739', 'tblTempUsageDetail_20' ) start [2025-01-04 15:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173739', 'tblTempUsageDetail_20' ) end [2025-01-04 15:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:15:21] Production.INFO: ==29820== Releasing lock... [2025-01-04 15:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:15:21] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:16:05 [end_date_ymd] => 2025-01-04 15:16:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:16:05' and `end` < '2025-01-04 15: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-04 15:16:20] Production.INFO: count ==1655 [2025-01-04 15:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:16:05 - End Time 2025-01-04 15:16:05 [2025-01-04 15:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173744', 'tblTempUsageDetail_20' ) start [2025-01-04 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173744', 'tblTempUsageDetail_20' ) end [2025-01-04 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173744', 'tblTempVendorCDR_20' ) start [2025-01-04 15:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173744', 'tblTempVendorCDR_20' ) end [2025-01-04 15:16:20] Production.INFO: ProcessCDR(1,14173744,1,1,2) [2025-01-04 15:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173744', 'tblTempUsageDetail_20' ) start [2025-01-04 15:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173744', 'tblTempUsageDetail_20' ) end [2025-01-04 15:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:16:25] Production.INFO: ==29929== Releasing lock... [2025-01-04 15:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:16:25] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:17:05 [end_date_ymd] => 2025-01-04 15:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:17:05' and `end` < '2025-01-04 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-04 15:17:19] Production.INFO: count ==1652 [2025-01-04 15:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:17:05 - End Time 2025-01-04 15:17:05 [2025-01-04 15:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173749', 'tblTempUsageDetail_20' ) start [2025-01-04 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173749', 'tblTempUsageDetail_20' ) end [2025-01-04 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173749', 'tblTempVendorCDR_20' ) start [2025-01-04 15:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173749', 'tblTempVendorCDR_20' ) end [2025-01-04 15:17:19] Production.INFO: ProcessCDR(1,14173749,1,1,2) [2025-01-04 15:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173749', 'tblTempUsageDetail_20' ) start [2025-01-04 15:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173749', 'tblTempUsageDetail_20' ) end [2025-01-04 15:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:17:22] Production.INFO: ==30000== Releasing lock... [2025-01-04 15:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:17:22] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:18:05 [end_date_ymd] => 2025-01-04 15:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:18:05' and `end` < '2025-01-04 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-04 15:18:19] Production.INFO: count ==1650 [2025-01-04 15:18:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:18:05 - End Time 2025-01-04 15:18:05 [2025-01-04 15:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173754', 'tblTempUsageDetail_20' ) start [2025-01-04 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173754', 'tblTempUsageDetail_20' ) end [2025-01-04 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173754', 'tblTempVendorCDR_20' ) start [2025-01-04 15:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173754', 'tblTempVendorCDR_20' ) end [2025-01-04 15:18:20] Production.INFO: ProcessCDR(1,14173754,1,1,2) [2025-01-04 15:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173754', 'tblTempUsageDetail_20' ) start [2025-01-04 15:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173754', 'tblTempUsageDetail_20' ) end [2025-01-04 15:18:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:18:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:18:24] Production.INFO: ==30074== Releasing lock... [2025-01-04 15:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:18:24] Production.INFO: 40.5 MB #Memory Used# [2025-01-04 15:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:19:04 [end_date_ymd] => 2025-01-04 15:19:04 [RateCDR] => 1 ) [2025-01-04 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-04 12:19:04' and `end` < '2025-01-04 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-04 15:19:19] Production.INFO: count ==1646 [2025-01-04 15:19:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:19:04 - End Time 2025-01-04 15:19:04 [2025-01-04 15:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173759', 'tblTempUsageDetail_20' ) start [2025-01-04 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173759', 'tblTempUsageDetail_20' ) end [2025-01-04 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173759', 'tblTempVendorCDR_20' ) start [2025-01-04 15:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173759', 'tblTempVendorCDR_20' ) end [2025-01-04 15:19:20] Production.INFO: ProcessCDR(1,14173759,1,1,2) [2025-01-04 15:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173759', 'tblTempUsageDetail_20' ) start [2025-01-04 15:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173759', 'tblTempUsageDetail_20' ) end [2025-01-04 15:19:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:19:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:19:24] Production.INFO: ==30144== Releasing lock... [2025-01-04 15:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:19:24] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:20:06 [end_date_ymd] => 2025-01-04 15:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 12:20:06' and `end` < '2025-01-04 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-04 15:20:19] Production.INFO: count ==1644 [2025-01-04 15:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:20:06 - End Time 2025-01-04 15:20:06 [2025-01-04 15:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173765', 'tblTempUsageDetail_20' ) start [2025-01-04 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173765', 'tblTempUsageDetail_20' ) end [2025-01-04 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173765', 'tblTempVendorCDR_20' ) start [2025-01-04 15:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173765', 'tblTempVendorCDR_20' ) end [2025-01-04 15:20:19] Production.INFO: ProcessCDR(1,14173765,1,1,2) [2025-01-04 15:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:20:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173765', 'tblTempUsageDetail_20' ) start [2025-01-04 15:20:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173765', 'tblTempUsageDetail_20' ) end [2025-01-04 15:20:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:20:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:20:24] Production.INFO: ==30226== Releasing lock... [2025-01-04 15:20:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:20:24] Production.INFO: 40.75 MB #Memory Used# [2025-01-04 15:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:21:04 [end_date_ymd] => 2025-01-04 15:21:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:21:04' and `end` < '2025-01-04 15: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-04 15:21:18] Production.INFO: count ==1589 [2025-01-04 15:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:21:04 - End Time 2025-01-04 15:21:04 [2025-01-04 15:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173770', 'tblTempUsageDetail_20' ) start [2025-01-04 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173770', 'tblTempUsageDetail_20' ) end [2025-01-04 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173770', 'tblTempVendorCDR_20' ) start [2025-01-04 15:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173770', 'tblTempVendorCDR_20' ) end [2025-01-04 15:21:19] Production.INFO: ProcessCDR(1,14173770,1,1,2) [2025-01-04 15:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173770', 'tblTempUsageDetail_20' ) start [2025-01-04 15:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173770', 'tblTempUsageDetail_20' ) end [2025-01-04 15:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:21:22] Production.INFO: ==30301== Releasing lock... [2025-01-04 15:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:21:22] Production.INFO: 40 MB #Memory Used# [2025-01-04 15:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:22:05 [end_date_ymd] => 2025-01-04 15:22:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:22:05' and `end` < '2025-01-04 15: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-04 15:22:18] Production.INFO: count ==1587 [2025-01-04 15:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:22:05 - End Time 2025-01-04 15:22:05 [2025-01-04 15:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173775', 'tblTempUsageDetail_20' ) start [2025-01-04 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173775', 'tblTempUsageDetail_20' ) end [2025-01-04 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173775', 'tblTempVendorCDR_20' ) start [2025-01-04 15:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173775', 'tblTempVendorCDR_20' ) end [2025-01-04 15:22:18] Production.INFO: ProcessCDR(1,14173775,1,1,2) [2025-01-04 15:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173775,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173775,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173775', 'tblTempUsageDetail_20' ) start [2025-01-04 15:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173775', 'tblTempUsageDetail_20' ) end [2025-01-04 15:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:22:22] Production.INFO: ==30371== Releasing lock... [2025-01-04 15:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:22:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:23:04 [end_date_ymd] => 2025-01-04 15:23:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:23:04' and `end` < '2025-01-04 15: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-04 15:23:17] Production.INFO: count ==1587 [2025-01-04 15:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:23:04 - End Time 2025-01-04 15:23:04 [2025-01-04 15:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173780', 'tblTempUsageDetail_20' ) start [2025-01-04 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173780', 'tblTempUsageDetail_20' ) end [2025-01-04 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173780', 'tblTempVendorCDR_20' ) start [2025-01-04 15:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173780', 'tblTempVendorCDR_20' ) end [2025-01-04 15:23:18] Production.INFO: ProcessCDR(1,14173780,1,1,2) [2025-01-04 15:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173780', 'tblTempUsageDetail_20' ) start [2025-01-04 15:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173780', 'tblTempUsageDetail_20' ) end [2025-01-04 15:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:23:21] Production.INFO: ==30444== Releasing lock... [2025-01-04 15:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:23:21] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:24:05 [end_date_ymd] => 2025-01-04 15:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:24:05' and `end` < '2025-01-04 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-04 15:24:18] Production.INFO: count ==1579 [2025-01-04 15:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:24:05 - End Time 2025-01-04 15:24:05 [2025-01-04 15:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173785', 'tblTempUsageDetail_20' ) start [2025-01-04 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173785', 'tblTempUsageDetail_20' ) end [2025-01-04 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173785', 'tblTempVendorCDR_20' ) start [2025-01-04 15:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173785', 'tblTempVendorCDR_20' ) end [2025-01-04 15:24:19] Production.INFO: ProcessCDR(1,14173785,1,1,2) [2025-01-04 15:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173785', 'tblTempUsageDetail_20' ) start [2025-01-04 15:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173785', 'tblTempUsageDetail_20' ) end [2025-01-04 15:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:24:22] Production.INFO: ==30516== Releasing lock... [2025-01-04 15:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:24:22] Production.INFO: 40.25 MB #Memory Used# [2025-01-04 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:25:05 [end_date_ymd] => 2025-01-04 15:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:25:05' and `end` < '2025-01-04 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-04 15:25:18] Production.INFO: count ==1568 [2025-01-04 15:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:25:05 - End Time 2025-01-04 15:25:05 [2025-01-04 15:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173790', 'tblTempUsageDetail_20' ) start [2025-01-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173790', 'tblTempUsageDetail_20' ) end [2025-01-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173790', 'tblTempVendorCDR_20' ) start [2025-01-04 15:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173790', 'tblTempVendorCDR_20' ) end [2025-01-04 15:25:18] Production.INFO: ProcessCDR(1,14173790,1,1,2) [2025-01-04 15:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173790', 'tblTempUsageDetail_20' ) start [2025-01-04 15:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173790', 'tblTempUsageDetail_20' ) end [2025-01-04 15:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:25:21] Production.INFO: ==30589== Releasing lock... [2025-01-04 15:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:25:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:26:04 [end_date_ymd] => 2025-01-04 15:26:04 [RateCDR] => 1 ) [2025-01-04 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-04 12:26:04' and `end` < '2025-01-04 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-04 15:26:18] Production.INFO: count ==1549 [2025-01-04 15:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:26:04 - End Time 2025-01-04 15:26:04 [2025-01-04 15:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173795', 'tblTempUsageDetail_20' ) start [2025-01-04 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173795', 'tblTempUsageDetail_20' ) end [2025-01-04 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173795', 'tblTempVendorCDR_20' ) start [2025-01-04 15:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173795', 'tblTempVendorCDR_20' ) end [2025-01-04 15:26:19] Production.INFO: ProcessCDR(1,14173795,1,1,2) [2025-01-04 15:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173795', 'tblTempUsageDetail_20' ) start [2025-01-04 15:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173795', 'tblTempUsageDetail_20' ) end [2025-01-04 15:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:26:22] Production.INFO: ==30660== Releasing lock... [2025-01-04 15:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:26:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:27:05 [end_date_ymd] => 2025-01-04 15:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:27:05' and `end` < '2025-01-04 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-04 15:27:20] Production.INFO: count ==1545 [2025-01-04 15:27:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:27:05 - End Time 2025-01-04 15:27:05 [2025-01-04 15:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173800', 'tblTempUsageDetail_20' ) start [2025-01-04 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173800', 'tblTempUsageDetail_20' ) end [2025-01-04 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173800', 'tblTempVendorCDR_20' ) start [2025-01-04 15:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173800', 'tblTempVendorCDR_20' ) end [2025-01-04 15:27:20] Production.INFO: ProcessCDR(1,14173800,1,1,2) [2025-01-04 15:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173800', 'tblTempUsageDetail_20' ) start [2025-01-04 15:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173800', 'tblTempUsageDetail_20' ) end [2025-01-04 15:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:27:23] Production.INFO: ==30735== Releasing lock... [2025-01-04 15:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:27:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 15:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:28:05 [end_date_ymd] => 2025-01-04 15:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:28:05' and `end` < '2025-01-04 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-04 15:28:18] Production.INFO: count ==1527 [2025-01-04 15:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:28:05 - End Time 2025-01-04 15:28:05 [2025-01-04 15:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173805', 'tblTempUsageDetail_20' ) start [2025-01-04 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173805', 'tblTempUsageDetail_20' ) end [2025-01-04 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173805', 'tblTempVendorCDR_20' ) start [2025-01-04 15:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173805', 'tblTempVendorCDR_20' ) end [2025-01-04 15:28:18] Production.INFO: ProcessCDR(1,14173805,1,1,2) [2025-01-04 15:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173805', 'tblTempUsageDetail_20' ) start [2025-01-04 15:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173805', 'tblTempUsageDetail_20' ) end [2025-01-04 15:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:28:21] Production.INFO: ==30805== Releasing lock... [2025-01-04 15:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:28:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:29:05 [end_date_ymd] => 2025-01-04 15:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:29:05' and `end` < '2025-01-04 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-04 15:29:18] Production.INFO: count ==1528 [2025-01-04 15:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:29:05 - End Time 2025-01-04 15:29:05 [2025-01-04 15:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173810', 'tblTempUsageDetail_20' ) start [2025-01-04 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173810', 'tblTempUsageDetail_20' ) end [2025-01-04 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173810', 'tblTempVendorCDR_20' ) start [2025-01-04 15:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173810', 'tblTempVendorCDR_20' ) end [2025-01-04 15:29:19] Production.INFO: ProcessCDR(1,14173810,1,1,2) [2025-01-04 15:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173810', 'tblTempUsageDetail_20' ) start [2025-01-04 15:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173810', 'tblTempUsageDetail_20' ) end [2025-01-04 15:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:29:22] Production.INFO: ==30875== Releasing lock... [2025-01-04 15:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:29:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:30:05 [end_date_ymd] => 2025-01-04 15:30:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:30:05' and `end` < '2025-01-04 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-04 15:30:18] Production.INFO: count ==1519 [2025-01-04 15:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:30:05 - End Time 2025-01-04 15:30:05 [2025-01-04 15:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173815', 'tblTempUsageDetail_20' ) start [2025-01-04 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173815', 'tblTempUsageDetail_20' ) end [2025-01-04 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173815', 'tblTempVendorCDR_20' ) start [2025-01-04 15:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173815', 'tblTempVendorCDR_20' ) end [2025-01-04 15:30:19] Production.INFO: ProcessCDR(1,14173815,1,1,2) [2025-01-04 15:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173815', 'tblTempUsageDetail_20' ) start [2025-01-04 15:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173815', 'tblTempUsageDetail_20' ) end [2025-01-04 15:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:30:23] Production.INFO: ==30950== Releasing lock... [2025-01-04 15:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:30:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:31:05 [end_date_ymd] => 2025-01-04 15:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:31:05' and `end` < '2025-01-04 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-04 15:31:18] Production.INFO: count ==1554 [2025-01-04 15:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:31:05 - End Time 2025-01-04 15:31:05 [2025-01-04 15:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173821', 'tblTempUsageDetail_20' ) start [2025-01-04 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173821', 'tblTempUsageDetail_20' ) end [2025-01-04 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173821', 'tblTempVendorCDR_20' ) start [2025-01-04 15:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173821', 'tblTempVendorCDR_20' ) end [2025-01-04 15:31:18] Production.INFO: ProcessCDR(1,14173821,1,1,2) [2025-01-04 15:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173821', 'tblTempUsageDetail_20' ) start [2025-01-04 15:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173821', 'tblTempUsageDetail_20' ) end [2025-01-04 15:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:31:21] Production.INFO: ==31066== Releasing lock... [2025-01-04 15:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:31:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:32:05 [end_date_ymd] => 2025-01-04 15:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:32:05' and `end` < '2025-01-04 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-04 15:32:18] Production.INFO: count ==1557 [2025-01-04 15:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:32:05 - End Time 2025-01-04 15:32:05 [2025-01-04 15:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173826', 'tblTempUsageDetail_20' ) start [2025-01-04 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173826', 'tblTempUsageDetail_20' ) end [2025-01-04 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173826', 'tblTempVendorCDR_20' ) start [2025-01-04 15:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173826', 'tblTempVendorCDR_20' ) end [2025-01-04 15:32:18] Production.INFO: ProcessCDR(1,14173826,1,1,2) [2025-01-04 15:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173826', 'tblTempUsageDetail_20' ) start [2025-01-04 15:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173826', 'tblTempUsageDetail_20' ) end [2025-01-04 15:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:32:21] Production.INFO: ==31135== Releasing lock... [2025-01-04 15:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:32:21] Production.INFO: 40 MB #Memory Used# [2025-01-04 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:33:05 [end_date_ymd] => 2025-01-04 15:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:33:05' and `end` < '2025-01-04 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-04 15:33:18] Production.INFO: count ==1535 [2025-01-04 15:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:33:05 - End Time 2025-01-04 15:33:05 [2025-01-04 15:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173831', 'tblTempUsageDetail_20' ) start [2025-01-04 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173831', 'tblTempUsageDetail_20' ) end [2025-01-04 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173831', 'tblTempVendorCDR_20' ) start [2025-01-04 15:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173831', 'tblTempVendorCDR_20' ) end [2025-01-04 15:33:18] Production.INFO: ProcessCDR(1,14173831,1,1,2) [2025-01-04 15:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173831', 'tblTempUsageDetail_20' ) start [2025-01-04 15:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173831', 'tblTempUsageDetail_20' ) end [2025-01-04 15:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:33:21] Production.INFO: ==31208== Releasing lock... [2025-01-04 15:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:33:21] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:34:05 [end_date_ymd] => 2025-01-04 15:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:34:05' and `end` < '2025-01-04 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-04 15:34:19] Production.INFO: count ==1528 [2025-01-04 15:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:34:05 - End Time 2025-01-04 15:34:05 [2025-01-04 15:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173836', 'tblTempUsageDetail_20' ) start [2025-01-04 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173836', 'tblTempUsageDetail_20' ) end [2025-01-04 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173836', 'tblTempVendorCDR_20' ) start [2025-01-04 15:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173836', 'tblTempVendorCDR_20' ) end [2025-01-04 15:34:19] Production.INFO: ProcessCDR(1,14173836,1,1,2) [2025-01-04 15:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173836', 'tblTempUsageDetail_20' ) start [2025-01-04 15:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173836', 'tblTempUsageDetail_20' ) end [2025-01-04 15:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:34:23] Production.INFO: ==31279== Releasing lock... [2025-01-04 15:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:34:23] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:35:05 [end_date_ymd] => 2025-01-04 15:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:35:05' and `end` < '2025-01-04 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-04 15:35:18] Production.INFO: count ==1518 [2025-01-04 15:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:35:05 - End Time 2025-01-04 15:35:05 [2025-01-04 15:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173841', 'tblTempUsageDetail_20' ) start [2025-01-04 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173841', 'tblTempUsageDetail_20' ) end [2025-01-04 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173841', 'tblTempVendorCDR_20' ) start [2025-01-04 15:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173841', 'tblTempVendorCDR_20' ) end [2025-01-04 15:35:18] Production.INFO: ProcessCDR(1,14173841,1,1,2) [2025-01-04 15:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173841', 'tblTempUsageDetail_20' ) start [2025-01-04 15:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173841', 'tblTempUsageDetail_20' ) end [2025-01-04 15:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:35:21] Production.INFO: ==31351== Releasing lock... [2025-01-04 15:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:35:21] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:36:05 [end_date_ymd] => 2025-01-04 15:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:36:05' and `end` < '2025-01-04 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-04 15:36:19] Production.INFO: count ==1515 [2025-01-04 15:36:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:36:05 - End Time 2025-01-04 15:36:05 [2025-01-04 15:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173846', 'tblTempUsageDetail_20' ) start [2025-01-04 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173846', 'tblTempUsageDetail_20' ) end [2025-01-04 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173846', 'tblTempVendorCDR_20' ) start [2025-01-04 15:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173846', 'tblTempVendorCDR_20' ) end [2025-01-04 15:36:20] Production.INFO: ProcessCDR(1,14173846,1,1,2) [2025-01-04 15:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173846', 'tblTempUsageDetail_20' ) start [2025-01-04 15:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173846', 'tblTempUsageDetail_20' ) end [2025-01-04 15:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:36:23] Production.INFO: ==31423== Releasing lock... [2025-01-04 15:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:36:23] Production.INFO: 40 MB #Memory Used# [2025-01-04 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:37:05 [end_date_ymd] => 2025-01-04 15:37:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:37:05' and `end` < '2025-01-04 15: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-04 15:37:19] Production.INFO: count ==1513 [2025-01-04 15:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:37:05 - End Time 2025-01-04 15:37:05 [2025-01-04 15:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173851', 'tblTempUsageDetail_20' ) start [2025-01-04 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173851', 'tblTempUsageDetail_20' ) end [2025-01-04 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173851', 'tblTempVendorCDR_20' ) start [2025-01-04 15:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173851', 'tblTempVendorCDR_20' ) end [2025-01-04 15:37:19] Production.INFO: ProcessCDR(1,14173851,1,1,2) [2025-01-04 15:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173851', 'tblTempUsageDetail_20' ) start [2025-01-04 15:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173851', 'tblTempUsageDetail_20' ) end [2025-01-04 15:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:37:22] Production.INFO: ==31494== Releasing lock... [2025-01-04 15:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:37:22] Production.INFO: 39.75 MB #Memory Used# [2025-01-04 15:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:38:05 [end_date_ymd] => 2025-01-04 15:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:38:05' and `end` < '2025-01-04 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-04 15:38:18] Production.INFO: count ==1510 [2025-01-04 15:38:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:38:05 - End Time 2025-01-04 15:38:05 [2025-01-04 15:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173856', 'tblTempUsageDetail_20' ) start [2025-01-04 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173856', 'tblTempUsageDetail_20' ) end [2025-01-04 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173856', 'tblTempVendorCDR_20' ) start [2025-01-04 15:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173856', 'tblTempVendorCDR_20' ) end [2025-01-04 15:38:19] Production.INFO: ProcessCDR(1,14173856,1,1,2) [2025-01-04 15:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173856', 'tblTempUsageDetail_20' ) start [2025-01-04 15:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173856', 'tblTempUsageDetail_20' ) end [2025-01-04 15:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:38:22] Production.INFO: ==31567== Releasing lock... [2025-01-04 15:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:38:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:39:05 [end_date_ymd] => 2025-01-04 15:39:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:39:05' and `end` < '2025-01-04 15: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-04 15:39:18] Production.INFO: count ==1505 [2025-01-04 15:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:39:05 - End Time 2025-01-04 15:39:05 [2025-01-04 15:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173861', 'tblTempUsageDetail_20' ) start [2025-01-04 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173861', 'tblTempUsageDetail_20' ) end [2025-01-04 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173861', 'tblTempVendorCDR_20' ) start [2025-01-04 15:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173861', 'tblTempVendorCDR_20' ) end [2025-01-04 15:39:19] Production.INFO: ProcessCDR(1,14173861,1,1,2) [2025-01-04 15:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173861', 'tblTempUsageDetail_20' ) start [2025-01-04 15:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173861', 'tblTempUsageDetail_20' ) end [2025-01-04 15:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:39:22] Production.INFO: ==31637== Releasing lock... [2025-01-04 15:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:39:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:40:06 [end_date_ymd] => 2025-01-04 15:40:06 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:40:06' and `end` < '2025-01-04 15: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-04 15:40:19] Production.INFO: count ==1505 [2025-01-04 15:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:40:06 - End Time 2025-01-04 15:40:06 [2025-01-04 15:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173866', 'tblTempUsageDetail_20' ) start [2025-01-04 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173866', 'tblTempUsageDetail_20' ) end [2025-01-04 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173866', 'tblTempVendorCDR_20' ) start [2025-01-04 15:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173866', 'tblTempVendorCDR_20' ) end [2025-01-04 15:40:19] Production.INFO: ProcessCDR(1,14173866,1,1,2) [2025-01-04 15:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173866', 'tblTempUsageDetail_20' ) start [2025-01-04 15:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173866', 'tblTempUsageDetail_20' ) end [2025-01-04 15:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:40:22] Production.INFO: ==31713== Releasing lock... [2025-01-04 15:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:40:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:41:05 [end_date_ymd] => 2025-01-04 15:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:41:05' and `end` < '2025-01-04 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-04 15:41:18] Production.INFO: count ==1505 [2025-01-04 15:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:41:05 - End Time 2025-01-04 15:41:05 [2025-01-04 15:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173872', 'tblTempUsageDetail_20' ) start [2025-01-04 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173872', 'tblTempUsageDetail_20' ) end [2025-01-04 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173872', 'tblTempVendorCDR_20' ) start [2025-01-04 15:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173872', 'tblTempVendorCDR_20' ) end [2025-01-04 15:41:18] Production.INFO: ProcessCDR(1,14173872,1,1,2) [2025-01-04 15:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173872', 'tblTempUsageDetail_20' ) start [2025-01-04 15:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173872', 'tblTempUsageDetail_20' ) end [2025-01-04 15:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:41:23] Production.INFO: ==31786== Releasing lock... [2025-01-04 15:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:41:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:42:06 [end_date_ymd] => 2025-01-04 15:42:06 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:42:06' and `end` < '2025-01-04 15: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-04 15:42:20] Production.INFO: count ==1505 [2025-01-04 15:42:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:42:06 - End Time 2025-01-04 15:42:06 [2025-01-04 15:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173877', 'tblTempUsageDetail_20' ) start [2025-01-04 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173877', 'tblTempUsageDetail_20' ) end [2025-01-04 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173877', 'tblTempVendorCDR_20' ) start [2025-01-04 15:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173877', 'tblTempVendorCDR_20' ) end [2025-01-04 15:42:20] Production.INFO: ProcessCDR(1,14173877,1,1,2) [2025-01-04 15:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173877', 'tblTempUsageDetail_20' ) start [2025-01-04 15:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173877', 'tblTempUsageDetail_20' ) end [2025-01-04 15:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:42:23] Production.INFO: ==31859== Releasing lock... [2025-01-04 15:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:42:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:43:04 [end_date_ymd] => 2025-01-04 15:43:04 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:43:04' and `end` < '2025-01-04 15: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-04 15:43:18] Production.INFO: count ==1506 [2025-01-04 15:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:43:04 - End Time 2025-01-04 15:43:04 [2025-01-04 15:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173882', 'tblTempUsageDetail_20' ) start [2025-01-04 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173882', 'tblTempUsageDetail_20' ) end [2025-01-04 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173882', 'tblTempVendorCDR_20' ) start [2025-01-04 15:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173882', 'tblTempVendorCDR_20' ) end [2025-01-04 15:43:18] Production.INFO: ProcessCDR(1,14173882,1,1,2) [2025-01-04 15:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173882', 'tblTempUsageDetail_20' ) start [2025-01-04 15:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173882', 'tblTempUsageDetail_20' ) end [2025-01-04 15:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:43:23] Production.INFO: ==31934== Releasing lock... [2025-01-04 15:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:43:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:44:05 [end_date_ymd] => 2025-01-04 15:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:44:05' and `end` < '2025-01-04 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-04 15:44:18] Production.INFO: count ==1505 [2025-01-04 15:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:44:05 - End Time 2025-01-04 15:44:05 [2025-01-04 15:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173887', 'tblTempUsageDetail_20' ) start [2025-01-04 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173887', 'tblTempUsageDetail_20' ) end [2025-01-04 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173887', 'tblTempVendorCDR_20' ) start [2025-01-04 15:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173887', 'tblTempVendorCDR_20' ) end [2025-01-04 15:44:18] Production.INFO: ProcessCDR(1,14173887,1,1,2) [2025-01-04 15:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173887', 'tblTempUsageDetail_20' ) start [2025-01-04 15:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173887', 'tblTempUsageDetail_20' ) end [2025-01-04 15:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:44:22] Production.INFO: ==32005== Releasing lock... [2025-01-04 15:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:44:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:45:05 [end_date_ymd] => 2025-01-04 15:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:45:05' and `end` < '2025-01-04 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-04 15:45:18] Production.INFO: count ==1488 [2025-01-04 15:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:45:05 - End Time 2025-01-04 15:45:05 [2025-01-04 15:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173892', 'tblTempUsageDetail_20' ) start [2025-01-04 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173892', 'tblTempUsageDetail_20' ) end [2025-01-04 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173892', 'tblTempVendorCDR_20' ) start [2025-01-04 15:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173892', 'tblTempVendorCDR_20' ) end [2025-01-04 15:45:18] Production.INFO: ProcessCDR(1,14173892,1,1,2) [2025-01-04 15:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173892', 'tblTempUsageDetail_20' ) start [2025-01-04 15:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173892', 'tblTempUsageDetail_20' ) end [2025-01-04 15:45:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:45:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:45:23] Production.INFO: ==32076== Releasing lock... [2025-01-04 15:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:45:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:46:05 [end_date_ymd] => 2025-01-04 15:46:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:46:05' and `end` < '2025-01-04 15: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-04 15:46:18] Production.INFO: count ==1493 [2025-01-04 15:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:46:05 - End Time 2025-01-04 15:46:05 [2025-01-04 15:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173897', 'tblTempUsageDetail_20' ) start [2025-01-04 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173897', 'tblTempUsageDetail_20' ) end [2025-01-04 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173897', 'tblTempVendorCDR_20' ) start [2025-01-04 15:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173897', 'tblTempVendorCDR_20' ) end [2025-01-04 15:46:19] Production.INFO: ProcessCDR(1,14173897,1,1,2) [2025-01-04 15:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173897', 'tblTempUsageDetail_20' ) start [2025-01-04 15:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173897', 'tblTempUsageDetail_20' ) end [2025-01-04 15:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:46:22] Production.INFO: ==32188== Releasing lock... [2025-01-04 15:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:46:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:47:05 [end_date_ymd] => 2025-01-04 15:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:47:05' and `end` < '2025-01-04 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-04 15:47:19] Production.INFO: count ==1476 [2025-01-04 15:47:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:47:05 - End Time 2025-01-04 15:47:05 [2025-01-04 15:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173902', 'tblTempUsageDetail_20' ) start [2025-01-04 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173902', 'tblTempUsageDetail_20' ) end [2025-01-04 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173902', 'tblTempVendorCDR_20' ) start [2025-01-04 15:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173902', 'tblTempVendorCDR_20' ) end [2025-01-04 15:47:20] Production.INFO: ProcessCDR(1,14173902,1,1,2) [2025-01-04 15:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173902', 'tblTempUsageDetail_20' ) start [2025-01-04 15:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173902', 'tblTempUsageDetail_20' ) end [2025-01-04 15:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:47:23] Production.INFO: ==32258== Releasing lock... [2025-01-04 15:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:47:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:48:06 [end_date_ymd] => 2025-01-04 15:48:06 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:48:06' and `end` < '2025-01-04 15: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-04 15:48:20] Production.INFO: count ==1478 [2025-01-04 15:48:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:48:06 - End Time 2025-01-04 15:48:06 [2025-01-04 15:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173907', 'tblTempUsageDetail_20' ) start [2025-01-04 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173907', 'tblTempUsageDetail_20' ) end [2025-01-04 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173907', 'tblTempVendorCDR_20' ) start [2025-01-04 15:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173907', 'tblTempVendorCDR_20' ) end [2025-01-04 15:48:20] Production.INFO: ProcessCDR(1,14173907,1,1,2) [2025-01-04 15:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173907', 'tblTempUsageDetail_20' ) start [2025-01-04 15:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173907', 'tblTempUsageDetail_20' ) end [2025-01-04 15:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:48:24] Production.INFO: ==32330== Releasing lock... [2025-01-04 15:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:48:24] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:49:05 [end_date_ymd] => 2025-01-04 15:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:49:05' and `end` < '2025-01-04 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-04 15:49:19] Production.INFO: count ==1485 [2025-01-04 15:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:49:05 - End Time 2025-01-04 15:49:05 [2025-01-04 15:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173912', 'tblTempUsageDetail_20' ) start [2025-01-04 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173912', 'tblTempUsageDetail_20' ) end [2025-01-04 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173912', 'tblTempVendorCDR_20' ) start [2025-01-04 15:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173912', 'tblTempVendorCDR_20' ) end [2025-01-04 15:49:19] Production.INFO: ProcessCDR(1,14173912,1,1,2) [2025-01-04 15:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173912', 'tblTempUsageDetail_20' ) start [2025-01-04 15:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173912', 'tblTempUsageDetail_20' ) end [2025-01-04 15:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:49:23] Production.INFO: ==32401== Releasing lock... [2025-01-04 15:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:49:23] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 15:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:50:06 [end_date_ymd] => 2025-01-04 15:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 12:50:06' and `end` < '2025-01-04 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-04 15:50:19] Production.INFO: count ==1467 [2025-01-04 15:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:50:06 - End Time 2025-01-04 15:50:06 [2025-01-04 15:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173918', 'tblTempUsageDetail_20' ) start [2025-01-04 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173918', 'tblTempUsageDetail_20' ) end [2025-01-04 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173918', 'tblTempVendorCDR_20' ) start [2025-01-04 15:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173918', 'tblTempVendorCDR_20' ) end [2025-01-04 15:50:19] Production.INFO: ProcessCDR(1,14173918,1,1,2) [2025-01-04 15:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173918', 'tblTempUsageDetail_20' ) start [2025-01-04 15:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173918', 'tblTempUsageDetail_20' ) end [2025-01-04 15:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:50:23] Production.INFO: ==32478== Releasing lock... [2025-01-04 15:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:50:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 15:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:51:05 [end_date_ymd] => 2025-01-04 15:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:51:05' and `end` < '2025-01-04 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-04 15:51:19] Production.INFO: count ==1408 [2025-01-04 15:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:51:05 - End Time 2025-01-04 15:51:05 [2025-01-04 15:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173923', 'tblTempUsageDetail_20' ) start [2025-01-04 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173923', 'tblTempUsageDetail_20' ) end [2025-01-04 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173923', 'tblTempVendorCDR_20' ) start [2025-01-04 15:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173923', 'tblTempVendorCDR_20' ) end [2025-01-04 15:51:19] Production.INFO: ProcessCDR(1,14173923,1,1,2) [2025-01-04 15:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173923', 'tblTempUsageDetail_20' ) start [2025-01-04 15:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173923', 'tblTempUsageDetail_20' ) end [2025-01-04 15:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:51:22] Production.INFO: ==32553== Releasing lock... [2025-01-04 15:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:51:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 15:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:52:05 [end_date_ymd] => 2025-01-04 15:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:52:05' and `end` < '2025-01-04 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-04 15:52:19] Production.INFO: count ==1406 [2025-01-04 15:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:52:05 - End Time 2025-01-04 15:52:05 [2025-01-04 15:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173928', 'tblTempUsageDetail_20' ) start [2025-01-04 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173928', 'tblTempUsageDetail_20' ) end [2025-01-04 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173928', 'tblTempVendorCDR_20' ) start [2025-01-04 15:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173928', 'tblTempVendorCDR_20' ) end [2025-01-04 15:52:19] Production.INFO: ProcessCDR(1,14173928,1,1,2) [2025-01-04 15:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173928', 'tblTempUsageDetail_20' ) start [2025-01-04 15:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173928', 'tblTempUsageDetail_20' ) end [2025-01-04 15:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:52:22] Production.INFO: ==32625== Releasing lock... [2025-01-04 15:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:53:05 [end_date_ymd] => 2025-01-04 15:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:53:05' and `end` < '2025-01-04 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-04 15:53:19] Production.INFO: count ==1393 [2025-01-04 15:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:53:05 - End Time 2025-01-04 15:53:05 [2025-01-04 15:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173933', 'tblTempUsageDetail_20' ) start [2025-01-04 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173933', 'tblTempUsageDetail_20' ) end [2025-01-04 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173933', 'tblTempVendorCDR_20' ) start [2025-01-04 15:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173933', 'tblTempVendorCDR_20' ) end [2025-01-04 15:53:19] Production.INFO: ProcessCDR(1,14173933,1,1,2) [2025-01-04 15:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173933', 'tblTempUsageDetail_20' ) start [2025-01-04 15:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173933', 'tblTempUsageDetail_20' ) end [2025-01-04 15:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:53:22] Production.INFO: ==32695== Releasing lock... [2025-01-04 15:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:53:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 15:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:54:05 [end_date_ymd] => 2025-01-04 15:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:54:05' and `end` < '2025-01-04 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-04 15:54:20] Production.INFO: count ==1387 [2025-01-04 15:54:21] Production.ERROR: pbx CDR StartTime 2025-01-04 12:54:05 - End Time 2025-01-04 15:54:05 [2025-01-04 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173938', 'tblTempUsageDetail_20' ) start [2025-01-04 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173938', 'tblTempUsageDetail_20' ) end [2025-01-04 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173938', 'tblTempVendorCDR_20' ) start [2025-01-04 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173938', 'tblTempVendorCDR_20' ) end [2025-01-04 15:54:21] Production.INFO: ProcessCDR(1,14173938,1,1,2) [2025-01-04 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173938', 'tblTempUsageDetail_20' ) start [2025-01-04 15:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173938', 'tblTempUsageDetail_20' ) end [2025-01-04 15:54:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:54:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:54:25] Production.INFO: ==32767== Releasing lock... [2025-01-04 15:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:54:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 15:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:55:05 [end_date_ymd] => 2025-01-04 15:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:55:05' and `end` < '2025-01-04 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-04 15:55:18] Production.INFO: count ==1389 [2025-01-04 15:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:55:05 - End Time 2025-01-04 15:55:05 [2025-01-04 15:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173943', 'tblTempUsageDetail_20' ) start [2025-01-04 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173943', 'tblTempUsageDetail_20' ) end [2025-01-04 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173943', 'tblTempVendorCDR_20' ) start [2025-01-04 15:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173943', 'tblTempVendorCDR_20' ) end [2025-01-04 15:55:18] Production.INFO: ProcessCDR(1,14173943,1,1,2) [2025-01-04 15:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173943', 'tblTempUsageDetail_20' ) start [2025-01-04 15:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173943', 'tblTempUsageDetail_20' ) end [2025-01-04 15:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:55:21] Production.INFO: ==388== Releasing lock... [2025-01-04 15:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:55:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:56:05 [end_date_ymd] => 2025-01-04 15:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:56:05' and `end` < '2025-01-04 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-04 15:56:18] Production.INFO: count ==1387 [2025-01-04 15:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 12:56:05 - End Time 2025-01-04 15:56:05 [2025-01-04 15:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173948', 'tblTempUsageDetail_20' ) start [2025-01-04 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173948', 'tblTempUsageDetail_20' ) end [2025-01-04 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173948', 'tblTempVendorCDR_20' ) start [2025-01-04 15:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173948', 'tblTempVendorCDR_20' ) end [2025-01-04 15:56:19] Production.INFO: ProcessCDR(1,14173948,1,1,2) [2025-01-04 15:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173948', 'tblTempUsageDetail_20' ) start [2025-01-04 15:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173948', 'tblTempUsageDetail_20' ) end [2025-01-04 15:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:56:22] Production.INFO: ==459== Releasing lock... [2025-01-04 15:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:56:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:57:05 [end_date_ymd] => 2025-01-04 15:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:57:05' and `end` < '2025-01-04 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-04 15:57:19] Production.INFO: count ==1383 [2025-01-04 15:57:20] Production.ERROR: pbx CDR StartTime 2025-01-04 12:57:05 - End Time 2025-01-04 15:57:05 [2025-01-04 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173953', 'tblTempUsageDetail_20' ) start [2025-01-04 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173953', 'tblTempUsageDetail_20' ) end [2025-01-04 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173953', 'tblTempVendorCDR_20' ) start [2025-01-04 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173953', 'tblTempVendorCDR_20' ) end [2025-01-04 15:57:20] Production.INFO: ProcessCDR(1,14173953,1,1,2) [2025-01-04 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173953', 'tblTempUsageDetail_20' ) start [2025-01-04 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173953', 'tblTempUsageDetail_20' ) end [2025-01-04 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:57:24] Production.INFO: ==539== Releasing lock... [2025-01-04 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:57:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:58:05 [end_date_ymd] => 2025-01-04 15:58:05 [RateCDR] => 1 ) [2025-01-04 15: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-04 12:58:05' and `end` < '2025-01-04 15: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-04 15:58:18] Production.INFO: count ==1362 [2025-01-04 15:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:58:05 - End Time 2025-01-04 15:58:05 [2025-01-04 15:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173958', 'tblTempUsageDetail_20' ) start [2025-01-04 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173958', 'tblTempUsageDetail_20' ) end [2025-01-04 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173958', 'tblTempVendorCDR_20' ) start [2025-01-04 15:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173958', 'tblTempVendorCDR_20' ) end [2025-01-04 15:58:19] Production.INFO: ProcessCDR(1,14173958,1,1,2) [2025-01-04 15:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173958', 'tblTempUsageDetail_20' ) start [2025-01-04 15:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173958', 'tblTempUsageDetail_20' ) end [2025-01-04 15:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:58:22] Production.INFO: ==617== Releasing lock... [2025-01-04 15:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:58:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 12:59:05 [end_date_ymd] => 2025-01-04 15:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 12:59:05' and `end` < '2025-01-04 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-04 15:59:18] Production.INFO: count ==1355 [2025-01-04 15:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 12:59:05 - End Time 2025-01-04 15:59:05 [2025-01-04 15:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173963', 'tblTempUsageDetail_20' ) start [2025-01-04 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173963', 'tblTempUsageDetail_20' ) end [2025-01-04 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173963', 'tblTempVendorCDR_20' ) start [2025-01-04 15:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173963', 'tblTempVendorCDR_20' ) end [2025-01-04 15:59:18] Production.INFO: ProcessCDR(1,14173963,1,1,2) [2025-01-04 15:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 15:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173963', 'tblTempUsageDetail_20' ) start [2025-01-04 15:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173963', 'tblTempUsageDetail_20' ) end [2025-01-04 15:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 15:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 15:59:21] Production.INFO: ==714== Releasing lock... [2025-01-04 15:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 15:59:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:00:06 [end_date_ymd] => 2025-01-04 16:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 13:00:06' and `end` < '2025-01-04 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-04 16:00:19] Production.INFO: count ==1358 [2025-01-04 16:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:00:06 - End Time 2025-01-04 16:00:06 [2025-01-04 16:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173969', 'tblTempUsageDetail_20' ) start [2025-01-04 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173969', 'tblTempUsageDetail_20' ) end [2025-01-04 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173969', 'tblTempVendorCDR_20' ) start [2025-01-04 16:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173969', 'tblTempVendorCDR_20' ) end [2025-01-04 16:00:20] Production.INFO: ProcessCDR(1,14173969,1,1,2) [2025-01-04 16:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173969', 'tblTempUsageDetail_20' ) start [2025-01-04 16:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173969', 'tblTempUsageDetail_20' ) end [2025-01-04 16:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:00:23] Production.INFO: ==791== Releasing lock... [2025-01-04 16:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:00:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:01:05 [end_date_ymd] => 2025-01-04 16:01:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:01:05' and `end` < '2025-01-04 16: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-04 16:01:18] Production.INFO: count ==1369 [2025-01-04 16:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:01:05 - End Time 2025-01-04 16:01:05 [2025-01-04 16:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173974', 'tblTempUsageDetail_20' ) start [2025-01-04 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173974', 'tblTempUsageDetail_20' ) end [2025-01-04 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173974', 'tblTempVendorCDR_20' ) start [2025-01-04 16:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173974', 'tblTempVendorCDR_20' ) end [2025-01-04 16:01:18] Production.INFO: ProcessCDR(1,14173974,1,1,2) [2025-01-04 16:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173974', 'tblTempUsageDetail_20' ) start [2025-01-04 16:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173974', 'tblTempUsageDetail_20' ) end [2025-01-04 16:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:01:22] Production.INFO: ==877== Releasing lock... [2025-01-04 16:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:01:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:02:05 [end_date_ymd] => 2025-01-04 16:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:02:05' and `end` < '2025-01-04 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-04 16:02:18] Production.INFO: count ==1346 [2025-01-04 16:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:02:05 - End Time 2025-01-04 16:02:05 [2025-01-04 16:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173979', 'tblTempUsageDetail_20' ) start [2025-01-04 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173979', 'tblTempUsageDetail_20' ) end [2025-01-04 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173979', 'tblTempVendorCDR_20' ) start [2025-01-04 16:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173979', 'tblTempVendorCDR_20' ) end [2025-01-04 16:02:19] Production.INFO: ProcessCDR(1,14173979,1,1,2) [2025-01-04 16:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173979', 'tblTempUsageDetail_20' ) start [2025-01-04 16:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173979', 'tblTempUsageDetail_20' ) end [2025-01-04 16:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:02:22] Production.INFO: ==993== Releasing lock... [2025-01-04 16:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:02:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:03:05 [end_date_ymd] => 2025-01-04 16:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:03:05' and `end` < '2025-01-04 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-04 16:03:20] Production.INFO: count ==1348 [2025-01-04 16:03:20] Production.ERROR: pbx CDR StartTime 2025-01-04 13:03:05 - End Time 2025-01-04 16:03:05 [2025-01-04 16:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173984', 'tblTempUsageDetail_20' ) start [2025-01-04 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173984', 'tblTempUsageDetail_20' ) end [2025-01-04 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173984', 'tblTempVendorCDR_20' ) start [2025-01-04 16:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173984', 'tblTempVendorCDR_20' ) end [2025-01-04 16:03:20] Production.INFO: ProcessCDR(1,14173984,1,1,2) [2025-01-04 16:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173984', 'tblTempUsageDetail_20' ) start [2025-01-04 16:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173984', 'tblTempUsageDetail_20' ) end [2025-01-04 16:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:03:23] Production.INFO: ==1064== Releasing lock... [2025-01-04 16:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:04:05 [end_date_ymd] => 2025-01-04 16:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:04:05' and `end` < '2025-01-04 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-04 16:04:19] Production.INFO: count ==1349 [2025-01-04 16:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:04:05 - End Time 2025-01-04 16:04:05 [2025-01-04 16:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173989', 'tblTempUsageDetail_20' ) start [2025-01-04 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173989', 'tblTempUsageDetail_20' ) end [2025-01-04 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173989', 'tblTempVendorCDR_20' ) start [2025-01-04 16:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173989', 'tblTempVendorCDR_20' ) end [2025-01-04 16:04:19] Production.INFO: ProcessCDR(1,14173989,1,1,2) [2025-01-04 16:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173989', 'tblTempUsageDetail_20' ) start [2025-01-04 16:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173989', 'tblTempUsageDetail_20' ) end [2025-01-04 16:04:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:04:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:04:24] Production.INFO: ==1135== Releasing lock... [2025-01-04 16:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:04:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:05:05 [end_date_ymd] => 2025-01-04 16:05:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:05:05' and `end` < '2025-01-04 16: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-04 16:05:18] Production.INFO: count ==1350 [2025-01-04 16:05:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:05:05 - End Time 2025-01-04 16:05:05 [2025-01-04 16:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173994', 'tblTempUsageDetail_20' ) start [2025-01-04 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173994', 'tblTempUsageDetail_20' ) end [2025-01-04 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173994', 'tblTempVendorCDR_20' ) start [2025-01-04 16:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173994', 'tblTempVendorCDR_20' ) end [2025-01-04 16:05:19] Production.INFO: ProcessCDR(1,14173994,1,1,2) [2025-01-04 16:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173994', 'tblTempUsageDetail_20' ) start [2025-01-04 16:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173994', 'tblTempUsageDetail_20' ) end [2025-01-04 16:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:05:23] Production.INFO: ==1216== Releasing lock... [2025-01-04 16:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:06:06 [end_date_ymd] => 2025-01-04 16:06:06 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:06:06' and `end` < '2025-01-04 16: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-04 16:06:18] Production.INFO: count ==1349 [2025-01-04 16:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:06:06 - End Time 2025-01-04 16:06:06 [2025-01-04 16:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173999', 'tblTempUsageDetail_20' ) start [2025-01-04 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14173999', 'tblTempUsageDetail_20' ) end [2025-01-04 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173999', 'tblTempVendorCDR_20' ) start [2025-01-04 16:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14173999', 'tblTempVendorCDR_20' ) end [2025-01-04 16:06:19] Production.INFO: ProcessCDR(1,14173999,1,1,2) [2025-01-04 16:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14173999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14173999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14173999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14173999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173999', 'tblTempUsageDetail_20' ) start [2025-01-04 16:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14173999', 'tblTempUsageDetail_20' ) end [2025-01-04 16:06:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:06:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:06:22] Production.INFO: ==1302== Releasing lock... [2025-01-04 16:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:06:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:07:05 [end_date_ymd] => 2025-01-04 16:07:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:07:05' and `end` < '2025-01-04 16: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-04 16:07:19] Production.INFO: count ==1348 [2025-01-04 16:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:07:05 - End Time 2025-01-04 16:07:05 [2025-01-04 16:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174004', 'tblTempUsageDetail_20' ) start [2025-01-04 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174004', 'tblTempUsageDetail_20' ) end [2025-01-04 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174004', 'tblTempVendorCDR_20' ) start [2025-01-04 16:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174004', 'tblTempVendorCDR_20' ) end [2025-01-04 16:07:19] Production.INFO: ProcessCDR(1,14174004,1,1,2) [2025-01-04 16:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174004', 'tblTempUsageDetail_20' ) start [2025-01-04 16:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174004', 'tblTempUsageDetail_20' ) end [2025-01-04 16:07:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:07:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:07:24] Production.INFO: ==1374== Releasing lock... [2025-01-04 16:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:07:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:08:05 [end_date_ymd] => 2025-01-04 16:08:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:08:05' and `end` < '2025-01-04 16: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-04 16:08:19] Production.INFO: count ==1354 [2025-01-04 16:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:08:05 - End Time 2025-01-04 16:08:05 [2025-01-04 16:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174009', 'tblTempUsageDetail_20' ) start [2025-01-04 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174009', 'tblTempUsageDetail_20' ) end [2025-01-04 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174009', 'tblTempVendorCDR_20' ) start [2025-01-04 16:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174009', 'tblTempVendorCDR_20' ) end [2025-01-04 16:08:19] Production.INFO: ProcessCDR(1,14174009,1,1,2) [2025-01-04 16:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174009', 'tblTempUsageDetail_20' ) start [2025-01-04 16:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174009', 'tblTempUsageDetail_20' ) end [2025-01-04 16:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:08:22] Production.INFO: ==1444== Releasing lock... [2025-01-04 16:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:08:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:09:05 [end_date_ymd] => 2025-01-04 16:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:09:05' and `end` < '2025-01-04 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-04 16:09:18] Production.INFO: count ==1354 [2025-01-04 16:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:09:05 - End Time 2025-01-04 16:09:05 [2025-01-04 16:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174014', 'tblTempUsageDetail_20' ) start [2025-01-04 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174014', 'tblTempUsageDetail_20' ) end [2025-01-04 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174014', 'tblTempVendorCDR_20' ) start [2025-01-04 16:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174014', 'tblTempVendorCDR_20' ) end [2025-01-04 16:09:18] Production.INFO: ProcessCDR(1,14174014,1,1,2) [2025-01-04 16:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174014', 'tblTempUsageDetail_20' ) start [2025-01-04 16:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174014', 'tblTempUsageDetail_20' ) end [2025-01-04 16:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:09:21] Production.INFO: ==1546== Releasing lock... [2025-01-04 16:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:09:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:10:06 [end_date_ymd] => 2025-01-04 16:10:06 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:10:06' and `end` < '2025-01-04 16: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-04 16:10:19] Production.INFO: count ==1353 [2025-01-04 16:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:10:06 - End Time 2025-01-04 16:10:06 [2025-01-04 16:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174019', 'tblTempUsageDetail_20' ) start [2025-01-04 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174019', 'tblTempUsageDetail_20' ) end [2025-01-04 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174019', 'tblTempVendorCDR_20' ) start [2025-01-04 16:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174019', 'tblTempVendorCDR_20' ) end [2025-01-04 16:10:19] Production.INFO: ProcessCDR(1,14174019,1,1,2) [2025-01-04 16:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174019', 'tblTempUsageDetail_20' ) start [2025-01-04 16:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174019', 'tblTempUsageDetail_20' ) end [2025-01-04 16:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:10:22] Production.INFO: ==1630== Releasing lock... [2025-01-04 16:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:10:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:11:05 [end_date_ymd] => 2025-01-04 16:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:11:05' and `end` < '2025-01-04 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-04 16:11:18] Production.INFO: count ==1381 [2025-01-04 16:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:11:05 - End Time 2025-01-04 16:11:05 [2025-01-04 16:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174025', 'tblTempUsageDetail_20' ) start [2025-01-04 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174025', 'tblTempUsageDetail_20' ) end [2025-01-04 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174025', 'tblTempVendorCDR_20' ) start [2025-01-04 16:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174025', 'tblTempVendorCDR_20' ) end [2025-01-04 16:11:18] Production.INFO: ProcessCDR(1,14174025,1,1,2) [2025-01-04 16:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174025', 'tblTempUsageDetail_20' ) start [2025-01-04 16:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174025', 'tblTempUsageDetail_20' ) end [2025-01-04 16:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:11:22] Production.INFO: ==1702== Releasing lock... [2025-01-04 16:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:11:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:12:05 [end_date_ymd] => 2025-01-04 16:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:12:05' and `end` < '2025-01-04 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-04 16:12:21] Production.INFO: count ==1377 [2025-01-04 16:12:21] Production.ERROR: pbx CDR StartTime 2025-01-04 13:12:05 - End Time 2025-01-04 16:12:05 [2025-01-04 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174030', 'tblTempUsageDetail_20' ) start [2025-01-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174030', 'tblTempUsageDetail_20' ) end [2025-01-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174030', 'tblTempVendorCDR_20' ) start [2025-01-04 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174030', 'tblTempVendorCDR_20' ) end [2025-01-04 16:12:21] Production.INFO: ProcessCDR(1,14174030,1,1,2) [2025-01-04 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174030', 'tblTempUsageDetail_20' ) start [2025-01-04 16:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174030', 'tblTempUsageDetail_20' ) end [2025-01-04 16:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:12:24] Production.INFO: ==1774== Releasing lock... [2025-01-04 16:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:12:24] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:13:04 [end_date_ymd] => 2025-01-04 16:13:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:13:04' and `end` < '2025-01-04 16: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-04 16:13:17] Production.INFO: count ==1380 [2025-01-04 16:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:13:04 - End Time 2025-01-04 16:13:04 [2025-01-04 16:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174035', 'tblTempUsageDetail_20' ) start [2025-01-04 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174035', 'tblTempUsageDetail_20' ) end [2025-01-04 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174035', 'tblTempVendorCDR_20' ) start [2025-01-04 16:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174035', 'tblTempVendorCDR_20' ) end [2025-01-04 16:13:18] Production.INFO: ProcessCDR(1,14174035,1,1,2) [2025-01-04 16:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174035', 'tblTempUsageDetail_20' ) start [2025-01-04 16:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174035', 'tblTempUsageDetail_20' ) end [2025-01-04 16:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:13:21] Production.INFO: ==1848== Releasing lock... [2025-01-04 16:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:13:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:14:06 [end_date_ymd] => 2025-01-04 16:14:06 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:14:06' and `end` < '2025-01-04 16: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-04 16:14:20] Production.INFO: count ==1381 [2025-01-04 16:14:20] Production.ERROR: pbx CDR StartTime 2025-01-04 13:14:06 - End Time 2025-01-04 16:14:06 [2025-01-04 16:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174040', 'tblTempUsageDetail_20' ) start [2025-01-04 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174040', 'tblTempUsageDetail_20' ) end [2025-01-04 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174040', 'tblTempVendorCDR_20' ) start [2025-01-04 16:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174040', 'tblTempVendorCDR_20' ) end [2025-01-04 16:14:20] Production.INFO: ProcessCDR(1,14174040,1,1,2) [2025-01-04 16:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174040', 'tblTempUsageDetail_20' ) start [2025-01-04 16:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174040', 'tblTempUsageDetail_20' ) end [2025-01-04 16:14:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:14:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:14:25] Production.INFO: ==1920== Releasing lock... [2025-01-04 16:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:14:25] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:15:05 [end_date_ymd] => 2025-01-04 16:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:15:05' and `end` < '2025-01-04 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-04 16:15:20] Production.INFO: count ==1370 [2025-01-04 16:15:21] Production.ERROR: pbx CDR StartTime 2025-01-04 13:15:05 - End Time 2025-01-04 16:15:05 [2025-01-04 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174045', 'tblTempUsageDetail_20' ) start [2025-01-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174045', 'tblTempUsageDetail_20' ) end [2025-01-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174045', 'tblTempVendorCDR_20' ) start [2025-01-04 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174045', 'tblTempVendorCDR_20' ) end [2025-01-04 16:15:21] Production.INFO: ProcessCDR(1,14174045,1,1,2) [2025-01-04 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174045', 'tblTempUsageDetail_20' ) start [2025-01-04 16:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174045', 'tblTempUsageDetail_20' ) end [2025-01-04 16:15:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:15:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:15:25] Production.INFO: ==1992== Releasing lock... [2025-01-04 16:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:15:25] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:16:05 [end_date_ymd] => 2025-01-04 16:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:16:05' and `end` < '2025-01-04 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-04 16:16:18] Production.INFO: count ==1376 [2025-01-04 16:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:16:05 - End Time 2025-01-04 16:16:05 [2025-01-04 16:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174050', 'tblTempUsageDetail_20' ) start [2025-01-04 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174050', 'tblTempUsageDetail_20' ) end [2025-01-04 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174050', 'tblTempVendorCDR_20' ) start [2025-01-04 16:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174050', 'tblTempVendorCDR_20' ) end [2025-01-04 16:16:18] Production.INFO: ProcessCDR(1,14174050,1,1,2) [2025-01-04 16:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174050', 'tblTempUsageDetail_20' ) start [2025-01-04 16:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174050', 'tblTempUsageDetail_20' ) end [2025-01-04 16:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:16:22] Production.INFO: ==2066== Releasing lock... [2025-01-04 16:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:17:05 [end_date_ymd] => 2025-01-04 16:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:17:05' and `end` < '2025-01-04 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-04 16:17:18] Production.INFO: count ==1377 [2025-01-04 16:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:17:05 - End Time 2025-01-04 16:17:05 [2025-01-04 16:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174055', 'tblTempUsageDetail_20' ) start [2025-01-04 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174055', 'tblTempUsageDetail_20' ) end [2025-01-04 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174055', 'tblTempVendorCDR_20' ) start [2025-01-04 16:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174055', 'tblTempVendorCDR_20' ) end [2025-01-04 16:17:18] Production.INFO: ProcessCDR(1,14174055,1,1,2) [2025-01-04 16:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174055', 'tblTempUsageDetail_20' ) start [2025-01-04 16:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174055', 'tblTempUsageDetail_20' ) end [2025-01-04 16:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:17:21] Production.INFO: ==2140== Releasing lock... [2025-01-04 16:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:17:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:18:05 [end_date_ymd] => 2025-01-04 16:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:18:05' and `end` < '2025-01-04 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-04 16:18:19] Production.INFO: count ==1376 [2025-01-04 16:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:18:05 - End Time 2025-01-04 16:18:05 [2025-01-04 16:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174060', 'tblTempUsageDetail_20' ) start [2025-01-04 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174060', 'tblTempUsageDetail_20' ) end [2025-01-04 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174060', 'tblTempVendorCDR_20' ) start [2025-01-04 16:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174060', 'tblTempVendorCDR_20' ) end [2025-01-04 16:18:19] Production.INFO: ProcessCDR(1,14174060,1,1,2) [2025-01-04 16:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174060', 'tblTempUsageDetail_20' ) start [2025-01-04 16:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174060', 'tblTempUsageDetail_20' ) end [2025-01-04 16:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:18:23] Production.INFO: ==2261== Releasing lock... [2025-01-04 16:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:18:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:19:05 [end_date_ymd] => 2025-01-04 16:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:19:05' and `end` < '2025-01-04 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-04 16:19:18] Production.INFO: count ==1376 [2025-01-04 16:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:19:05 - End Time 2025-01-04 16:19:05 [2025-01-04 16:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174065', 'tblTempUsageDetail_20' ) start [2025-01-04 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174065', 'tblTempUsageDetail_20' ) end [2025-01-04 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174065', 'tblTempVendorCDR_20' ) start [2025-01-04 16:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174065', 'tblTempVendorCDR_20' ) end [2025-01-04 16:19:19] Production.INFO: ProcessCDR(1,14174065,1,1,2) [2025-01-04 16:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174065', 'tblTempUsageDetail_20' ) start [2025-01-04 16:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174065', 'tblTempUsageDetail_20' ) end [2025-01-04 16:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:19:22] Production.INFO: ==2335== Releasing lock... [2025-01-04 16:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:20:05 [end_date_ymd] => 2025-01-04 16:20:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:20:05' and `end` < '2025-01-04 16: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-04 16:20:17] Production.INFO: count ==1369 [2025-01-04 16:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:20:05 - End Time 2025-01-04 16:20:05 [2025-01-04 16:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174070', 'tblTempUsageDetail_20' ) start [2025-01-04 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174070', 'tblTempUsageDetail_20' ) end [2025-01-04 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174070', 'tblTempVendorCDR_20' ) start [2025-01-04 16:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174070', 'tblTempVendorCDR_20' ) end [2025-01-04 16:20:18] Production.INFO: ProcessCDR(1,14174070,1,1,2) [2025-01-04 16:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174070', 'tblTempUsageDetail_20' ) start [2025-01-04 16:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174070', 'tblTempUsageDetail_20' ) end [2025-01-04 16:20:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:20:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:20:21] Production.INFO: ==2411== Releasing lock... [2025-01-04 16:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:20:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:21:05 [end_date_ymd] => 2025-01-04 16:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:21:05' and `end` < '2025-01-04 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-04 16:21:18] Production.INFO: count ==1366 [2025-01-04 16:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:21:05 - End Time 2025-01-04 16:21:05 [2025-01-04 16:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174076', 'tblTempUsageDetail_20' ) start [2025-01-04 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174076', 'tblTempUsageDetail_20' ) end [2025-01-04 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174076', 'tblTempVendorCDR_20' ) start [2025-01-04 16:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174076', 'tblTempVendorCDR_20' ) end [2025-01-04 16:21:18] Production.INFO: ProcessCDR(1,14174076,1,1,2) [2025-01-04 16:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174076', 'tblTempUsageDetail_20' ) start [2025-01-04 16:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174076', 'tblTempUsageDetail_20' ) end [2025-01-04 16:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:21:23] Production.INFO: ==2494== Releasing lock... [2025-01-04 16:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:21:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:22:05 [end_date_ymd] => 2025-01-04 16:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:22:05' and `end` < '2025-01-04 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-04 16:22:18] Production.INFO: count ==1370 [2025-01-04 16:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:22:05 - End Time 2025-01-04 16:22:05 [2025-01-04 16:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174081', 'tblTempUsageDetail_20' ) start [2025-01-04 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174081', 'tblTempUsageDetail_20' ) end [2025-01-04 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174081', 'tblTempVendorCDR_20' ) start [2025-01-04 16:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174081', 'tblTempVendorCDR_20' ) end [2025-01-04 16:22:18] Production.INFO: ProcessCDR(1,14174081,1,1,2) [2025-01-04 16:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174081', 'tblTempUsageDetail_20' ) start [2025-01-04 16:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174081', 'tblTempUsageDetail_20' ) end [2025-01-04 16:22:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:22:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:22:23] Production.INFO: ==2568== Releasing lock... [2025-01-04 16:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:22:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:23:05 [end_date_ymd] => 2025-01-04 16:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:23:05' and `end` < '2025-01-04 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-04 16:23:18] Production.INFO: count ==1359 [2025-01-04 16:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:23:05 - End Time 2025-01-04 16:23:05 [2025-01-04 16:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174086', 'tblTempUsageDetail_20' ) start [2025-01-04 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174086', 'tblTempUsageDetail_20' ) end [2025-01-04 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174086', 'tblTempVendorCDR_20' ) start [2025-01-04 16:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174086', 'tblTempVendorCDR_20' ) end [2025-01-04 16:23:18] Production.INFO: ProcessCDR(1,14174086,1,1,2) [2025-01-04 16:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174086', 'tblTempUsageDetail_20' ) start [2025-01-04 16:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174086', 'tblTempUsageDetail_20' ) end [2025-01-04 16:23:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:23:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:23:23] Production.INFO: ==2644== Releasing lock... [2025-01-04 16:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:23:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:24:05 [end_date_ymd] => 2025-01-04 16:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:24:05' and `end` < '2025-01-04 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-04 16:24:20] Production.INFO: count ==1353 [2025-01-04 16:24:21] Production.ERROR: pbx CDR StartTime 2025-01-04 13:24:05 - End Time 2025-01-04 16:24:05 [2025-01-04 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174091', 'tblTempUsageDetail_20' ) start [2025-01-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174091', 'tblTempUsageDetail_20' ) end [2025-01-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174091', 'tblTempVendorCDR_20' ) start [2025-01-04 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174091', 'tblTempVendorCDR_20' ) end [2025-01-04 16:24:21] Production.INFO: ProcessCDR(1,14174091,1,1,2) [2025-01-04 16:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174091', 'tblTempUsageDetail_20' ) start [2025-01-04 16:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174091', 'tblTempUsageDetail_20' ) end [2025-01-04 16:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:24:24] Production.INFO: ==2715== Releasing lock... [2025-01-04 16:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:24:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:25:05 [end_date_ymd] => 2025-01-04 16:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:25:05' and `end` < '2025-01-04 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-04 16:25:18] Production.INFO: count ==1378 [2025-01-04 16:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:25:05 - End Time 2025-01-04 16:25:05 [2025-01-04 16:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174096', 'tblTempUsageDetail_20' ) start [2025-01-04 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174096', 'tblTempUsageDetail_20' ) end [2025-01-04 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174096', 'tblTempVendorCDR_20' ) start [2025-01-04 16:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174096', 'tblTempVendorCDR_20' ) end [2025-01-04 16:25:18] Production.INFO: ProcessCDR(1,14174096,1,1,2) [2025-01-04 16:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174096', 'tblTempUsageDetail_20' ) start [2025-01-04 16:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174096', 'tblTempUsageDetail_20' ) end [2025-01-04 16:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:25:22] Production.INFO: ==2787== Releasing lock... [2025-01-04 16:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:25:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:26:05 [end_date_ymd] => 2025-01-04 16:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:26:05' and `end` < '2025-01-04 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-04 16:26:20] Production.INFO: count ==1379 [2025-01-04 16:26:20] Production.ERROR: pbx CDR StartTime 2025-01-04 13:26:05 - End Time 2025-01-04 16:26:05 [2025-01-04 16:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174101', 'tblTempUsageDetail_20' ) start [2025-01-04 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174101', 'tblTempUsageDetail_20' ) end [2025-01-04 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174101', 'tblTempVendorCDR_20' ) start [2025-01-04 16:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174101', 'tblTempVendorCDR_20' ) end [2025-01-04 16:26:20] Production.INFO: ProcessCDR(1,14174101,1,1,2) [2025-01-04 16:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174101', 'tblTempUsageDetail_20' ) start [2025-01-04 16:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174101', 'tblTempUsageDetail_20' ) end [2025-01-04 16:26:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:26:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:26:25] Production.INFO: ==2858== Releasing lock... [2025-01-04 16:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:26:25] Production.INFO: 39 MB #Memory Used# [2025-01-04 16:27:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:27:04 [end_date_ymd] => 2025-01-04 16:27:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:27:04' and `end` < '2025-01-04 16: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-04 16:27:19] Production.INFO: count ==1378 [2025-01-04 16:27:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:27:04 - End Time 2025-01-04 16:27:04 [2025-01-04 16:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174106', 'tblTempUsageDetail_20' ) start [2025-01-04 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174106', 'tblTempUsageDetail_20' ) end [2025-01-04 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174106', 'tblTempVendorCDR_20' ) start [2025-01-04 16:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174106', 'tblTempVendorCDR_20' ) end [2025-01-04 16:27:19] Production.INFO: ProcessCDR(1,14174106,1,1,2) [2025-01-04 16:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174106', 'tblTempUsageDetail_20' ) start [2025-01-04 16:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174106', 'tblTempUsageDetail_20' ) end [2025-01-04 16:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:27:24] Production.INFO: ==2929== Releasing lock... [2025-01-04 16:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:27:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:28:05 [end_date_ymd] => 2025-01-04 16:28:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:28:05' and `end` < '2025-01-04 16: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-04 16:28:18] Production.INFO: count ==1369 [2025-01-04 16:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:28:05 - End Time 2025-01-04 16:28:05 [2025-01-04 16:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174111', 'tblTempUsageDetail_20' ) start [2025-01-04 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174111', 'tblTempUsageDetail_20' ) end [2025-01-04 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174111', 'tblTempVendorCDR_20' ) start [2025-01-04 16:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174111', 'tblTempVendorCDR_20' ) end [2025-01-04 16:28:18] Production.INFO: ProcessCDR(1,14174111,1,1,2) [2025-01-04 16:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174111', 'tblTempUsageDetail_20' ) start [2025-01-04 16:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174111', 'tblTempUsageDetail_20' ) end [2025-01-04 16:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:28:22] Production.INFO: ==3004== Releasing lock... [2025-01-04 16:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:29:04 [end_date_ymd] => 2025-01-04 16:29:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:29:04' and `end` < '2025-01-04 16: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-04 16:29:17] Production.INFO: count ==1366 [2025-01-04 16:29:17] Production.ERROR: pbx CDR StartTime 2025-01-04 13:29:04 - End Time 2025-01-04 16:29:04 [2025-01-04 16:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174116', 'tblTempUsageDetail_20' ) start [2025-01-04 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174116', 'tblTempUsageDetail_20' ) end [2025-01-04 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174116', 'tblTempVendorCDR_20' ) start [2025-01-04 16:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174116', 'tblTempVendorCDR_20' ) end [2025-01-04 16:29:17] Production.INFO: ProcessCDR(1,14174116,1,1,2) [2025-01-04 16:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174116', 'tblTempUsageDetail_20' ) start [2025-01-04 16:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174116', 'tblTempUsageDetail_20' ) end [2025-01-04 16:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:29:22] Production.INFO: ==3081== Releasing lock... [2025-01-04 16:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:29:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:30:05 [end_date_ymd] => 2025-01-04 16:30:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:30:05' and `end` < '2025-01-04 16: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-04 16:30:18] Production.INFO: count ==1352 [2025-01-04 16:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:30:05 - End Time 2025-01-04 16:30:05 [2025-01-04 16:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174122', 'tblTempUsageDetail_20' ) start [2025-01-04 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174122', 'tblTempUsageDetail_20' ) end [2025-01-04 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174122', 'tblTempVendorCDR_20' ) start [2025-01-04 16:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174122', 'tblTempVendorCDR_20' ) end [2025-01-04 16:30:18] Production.INFO: ProcessCDR(1,14174122,1,1,2) [2025-01-04 16:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174122', 'tblTempUsageDetail_20' ) start [2025-01-04 16:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174122', 'tblTempUsageDetail_20' ) end [2025-01-04 16:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:30:23] Production.INFO: ==3158== Releasing lock... [2025-01-04 16:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:30:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:31:05 [end_date_ymd] => 2025-01-04 16:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:31:05' and `end` < '2025-01-04 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-04 16:31:18] Production.INFO: count ==1363 [2025-01-04 16:31:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:31:05 - End Time 2025-01-04 16:31:05 [2025-01-04 16:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174127', 'tblTempUsageDetail_20' ) start [2025-01-04 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174127', 'tblTempUsageDetail_20' ) end [2025-01-04 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174127', 'tblTempVendorCDR_20' ) start [2025-01-04 16:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174127', 'tblTempVendorCDR_20' ) end [2025-01-04 16:31:19] Production.INFO: ProcessCDR(1,14174127,1,1,2) [2025-01-04 16:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174127', 'tblTempUsageDetail_20' ) start [2025-01-04 16:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174127', 'tblTempUsageDetail_20' ) end [2025-01-04 16:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:31:23] Production.INFO: ==3233== Releasing lock... [2025-01-04 16:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:32:04 [end_date_ymd] => 2025-01-04 16:32:04 [RateCDR] => 1 ) [2025-01-04 16:32: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-04 13:32:04' and `end` < '2025-01-04 16:32: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-04 16:32:18] Production.INFO: count ==1357 [2025-01-04 16:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:32:04 - End Time 2025-01-04 16:32:04 [2025-01-04 16:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174132', 'tblTempUsageDetail_20' ) start [2025-01-04 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174132', 'tblTempUsageDetail_20' ) end [2025-01-04 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174132', 'tblTempVendorCDR_20' ) start [2025-01-04 16:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174132', 'tblTempVendorCDR_20' ) end [2025-01-04 16:32:18] Production.INFO: ProcessCDR(1,14174132,1,1,2) [2025-01-04 16:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174132', 'tblTempUsageDetail_20' ) start [2025-01-04 16:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174132', 'tblTempUsageDetail_20' ) end [2025-01-04 16:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:32:22] Production.INFO: ==3308== Releasing lock... [2025-01-04 16:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:32:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:33:05 [end_date_ymd] => 2025-01-04 16:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:33:05' and `end` < '2025-01-04 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-04 16:33:18] Production.INFO: count ==1355 [2025-01-04 16:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:33:05 - End Time 2025-01-04 16:33:05 [2025-01-04 16:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174137', 'tblTempUsageDetail_20' ) start [2025-01-04 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174137', 'tblTempUsageDetail_20' ) end [2025-01-04 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174137', 'tblTempVendorCDR_20' ) start [2025-01-04 16:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174137', 'tblTempVendorCDR_20' ) end [2025-01-04 16:33:18] Production.INFO: ProcessCDR(1,14174137,1,1,2) [2025-01-04 16:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174137', 'tblTempUsageDetail_20' ) start [2025-01-04 16:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174137', 'tblTempUsageDetail_20' ) end [2025-01-04 16:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:33:22] Production.INFO: ==3424== Releasing lock... [2025-01-04 16:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:33:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:34:04 [end_date_ymd] => 2025-01-04 16:34:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:34:04' and `end` < '2025-01-04 16: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-04 16:34:17] Production.INFO: count ==1350 [2025-01-04 16:34:17] Production.ERROR: pbx CDR StartTime 2025-01-04 13:34:04 - End Time 2025-01-04 16:34:04 [2025-01-04 16:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174141', 'tblTempUsageDetail_20' ) start [2025-01-04 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174141', 'tblTempUsageDetail_20' ) end [2025-01-04 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174141', 'tblTempVendorCDR_20' ) start [2025-01-04 16:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174141', 'tblTempVendorCDR_20' ) end [2025-01-04 16:34:17] Production.INFO: ProcessCDR(1,14174141,1,1,2) [2025-01-04 16:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174141', 'tblTempUsageDetail_20' ) start [2025-01-04 16:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174141', 'tblTempUsageDetail_20' ) end [2025-01-04 16:34:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:34:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:34:20] Production.INFO: ==3498== Releasing lock... [2025-01-04 16:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:34:20] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:35:05 [end_date_ymd] => 2025-01-04 16:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:35:05' and `end` < '2025-01-04 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-04 16:35:18] Production.INFO: count ==1353 [2025-01-04 16:35:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:35:05 - End Time 2025-01-04 16:35:05 [2025-01-04 16:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174147', 'tblTempUsageDetail_20' ) start [2025-01-04 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174147', 'tblTempUsageDetail_20' ) end [2025-01-04 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174147', 'tblTempVendorCDR_20' ) start [2025-01-04 16:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174147', 'tblTempVendorCDR_20' ) end [2025-01-04 16:35:19] Production.INFO: ProcessCDR(1,14174147,1,1,2) [2025-01-04 16:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174147', 'tblTempUsageDetail_20' ) start [2025-01-04 16:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174147', 'tblTempUsageDetail_20' ) end [2025-01-04 16:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:35:22] Production.INFO: ==3574== Releasing lock... [2025-01-04 16:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:35:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:36:05 [end_date_ymd] => 2025-01-04 16:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:36:05' and `end` < '2025-01-04 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-04 16:36:19] Production.INFO: count ==1346 [2025-01-04 16:36:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:36:05 - End Time 2025-01-04 16:36:05 [2025-01-04 16:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174152', 'tblTempUsageDetail_20' ) start [2025-01-04 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174152', 'tblTempUsageDetail_20' ) end [2025-01-04 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174152', 'tblTempVendorCDR_20' ) start [2025-01-04 16:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174152', 'tblTempVendorCDR_20' ) end [2025-01-04 16:36:19] Production.INFO: ProcessCDR(1,14174152,1,1,2) [2025-01-04 16:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174152', 'tblTempUsageDetail_20' ) start [2025-01-04 16:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174152', 'tblTempUsageDetail_20' ) end [2025-01-04 16:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:36:22] Production.INFO: ==3648== Releasing lock... [2025-01-04 16:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:36:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:37:04 [end_date_ymd] => 2025-01-04 16:37:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:37:04' and `end` < '2025-01-04 16: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-04 16:37:17] Production.INFO: count ==1343 [2025-01-04 16:37:17] Production.ERROR: pbx CDR StartTime 2025-01-04 13:37:04 - End Time 2025-01-04 16:37:04 [2025-01-04 16:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174157', 'tblTempUsageDetail_20' ) start [2025-01-04 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174157', 'tblTempUsageDetail_20' ) end [2025-01-04 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174157', 'tblTempVendorCDR_20' ) start [2025-01-04 16:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174157', 'tblTempVendorCDR_20' ) end [2025-01-04 16:37:17] Production.INFO: ProcessCDR(1,14174157,1,1,2) [2025-01-04 16:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174157', 'tblTempUsageDetail_20' ) start [2025-01-04 16:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174157', 'tblTempUsageDetail_20' ) end [2025-01-04 16:37:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:37:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:37:20] Production.INFO: ==3722== Releasing lock... [2025-01-04 16:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:37:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:38:05 [end_date_ymd] => 2025-01-04 16:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:38:05' and `end` < '2025-01-04 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-04 16:38:18] Production.INFO: count ==1343 [2025-01-04 16:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:38:05 - End Time 2025-01-04 16:38:05 [2025-01-04 16:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174162', 'tblTempUsageDetail_20' ) start [2025-01-04 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174162', 'tblTempUsageDetail_20' ) end [2025-01-04 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174162', 'tblTempVendorCDR_20' ) start [2025-01-04 16:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174162', 'tblTempVendorCDR_20' ) end [2025-01-04 16:38:18] Production.INFO: ProcessCDR(1,14174162,1,1,2) [2025-01-04 16:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174162', 'tblTempUsageDetail_20' ) start [2025-01-04 16:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174162', 'tblTempUsageDetail_20' ) end [2025-01-04 16:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:38:21] Production.INFO: ==3796== Releasing lock... [2025-01-04 16:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:38:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:39:05 [end_date_ymd] => 2025-01-04 16:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:39:05' and `end` < '2025-01-04 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-04 16:39:19] Production.INFO: count ==1343 [2025-01-04 16:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:39:05 - End Time 2025-01-04 16:39:05 [2025-01-04 16:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174167', 'tblTempUsageDetail_20' ) start [2025-01-04 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174167', 'tblTempUsageDetail_20' ) end [2025-01-04 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174167', 'tblTempVendorCDR_20' ) start [2025-01-04 16:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174167', 'tblTempVendorCDR_20' ) end [2025-01-04 16:39:19] Production.INFO: ProcessCDR(1,14174167,1,1,2) [2025-01-04 16:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174167', 'tblTempUsageDetail_20' ) start [2025-01-04 16:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174167', 'tblTempUsageDetail_20' ) end [2025-01-04 16:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:39:22] Production.INFO: ==3868== Releasing lock... [2025-01-04 16:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:39:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:40:06 [end_date_ymd] => 2025-01-04 16:40:06 [RateCDR] => 1 ) [2025-01-04 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-04 13:40:06' and `end` < '2025-01-04 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-04 16:40:19] Production.INFO: count ==1346 [2025-01-04 16:40:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:40:06 - End Time 2025-01-04 16:40:06 [2025-01-04 16:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174173', 'tblTempUsageDetail_20' ) start [2025-01-04 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174173', 'tblTempUsageDetail_20' ) end [2025-01-04 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174173', 'tblTempVendorCDR_20' ) start [2025-01-04 16:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174173', 'tblTempVendorCDR_20' ) end [2025-01-04 16:40:19] Production.INFO: ProcessCDR(1,14174173,1,1,2) [2025-01-04 16:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174173', 'tblTempUsageDetail_20' ) start [2025-01-04 16:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174173', 'tblTempUsageDetail_20' ) end [2025-01-04 16:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:40:22] Production.INFO: ==3945== Releasing lock... [2025-01-04 16:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:40:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:41:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:41:04 [end_date_ymd] => 2025-01-04 16:41:04 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:41:04' and `end` < '2025-01-04 16: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-04 16:41:17] Production.INFO: count ==1372 [2025-01-04 16:41:17] Production.ERROR: pbx CDR StartTime 2025-01-04 13:41:04 - End Time 2025-01-04 16:41:04 [2025-01-04 16:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174178', 'tblTempUsageDetail_20' ) start [2025-01-04 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174178', 'tblTempUsageDetail_20' ) end [2025-01-04 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174178', 'tblTempVendorCDR_20' ) start [2025-01-04 16:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174178', 'tblTempVendorCDR_20' ) end [2025-01-04 16:41:17] Production.INFO: ProcessCDR(1,14174178,1,1,2) [2025-01-04 16:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174178', 'tblTempUsageDetail_20' ) start [2025-01-04 16:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174178', 'tblTempUsageDetail_20' ) end [2025-01-04 16:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:41:22] Production.INFO: ==4016== Releasing lock... [2025-01-04 16:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:41:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:42:05 [end_date_ymd] => 2025-01-04 16:42:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:42:05' and `end` < '2025-01-04 16: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-04 16:42:20] Production.INFO: count ==1378 [2025-01-04 16:42:20] Production.ERROR: pbx CDR StartTime 2025-01-04 13:42:05 - End Time 2025-01-04 16:42:05 [2025-01-04 16:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174183', 'tblTempUsageDetail_20' ) start [2025-01-04 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174183', 'tblTempUsageDetail_20' ) end [2025-01-04 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174183', 'tblTempVendorCDR_20' ) start [2025-01-04 16:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174183', 'tblTempVendorCDR_20' ) end [2025-01-04 16:42:20] Production.INFO: ProcessCDR(1,14174183,1,1,2) [2025-01-04 16:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174183', 'tblTempUsageDetail_20' ) start [2025-01-04 16:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174183', 'tblTempUsageDetail_20' ) end [2025-01-04 16:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:42:25] Production.INFO: ==4094== Releasing lock... [2025-01-04 16:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:42:25] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:43:05 [end_date_ymd] => 2025-01-04 16:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:43:05' and `end` < '2025-01-04 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-04 16:43:19] Production.INFO: count ==1376 [2025-01-04 16:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:43:05 - End Time 2025-01-04 16:43:05 [2025-01-04 16:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174188', 'tblTempUsageDetail_20' ) start [2025-01-04 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174188', 'tblTempUsageDetail_20' ) end [2025-01-04 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174188', 'tblTempVendorCDR_20' ) start [2025-01-04 16:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174188', 'tblTempVendorCDR_20' ) end [2025-01-04 16:43:19] Production.INFO: ProcessCDR(1,14174188,1,1,2) [2025-01-04 16:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174188', 'tblTempUsageDetail_20' ) start [2025-01-04 16:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174188', 'tblTempUsageDetail_20' ) end [2025-01-04 16:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:43:23] Production.INFO: ==4169== Releasing lock... [2025-01-04 16:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:43:23] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:44:05 [end_date_ymd] => 2025-01-04 16:44:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:44:05' and `end` < '2025-01-04 16: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-04 16:44:18] Production.INFO: count ==1378 [2025-01-04 16:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:44:05 - End Time 2025-01-04 16:44:05 [2025-01-04 16:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174193', 'tblTempUsageDetail_20' ) start [2025-01-04 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174193', 'tblTempUsageDetail_20' ) end [2025-01-04 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174193', 'tblTempVendorCDR_20' ) start [2025-01-04 16:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174193', 'tblTempVendorCDR_20' ) end [2025-01-04 16:44:18] Production.INFO: ProcessCDR(1,14174193,1,1,2) [2025-01-04 16:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174193', 'tblTempUsageDetail_20' ) start [2025-01-04 16:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174193', 'tblTempUsageDetail_20' ) end [2025-01-04 16:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:44:21] Production.INFO: ==4241== Releasing lock... [2025-01-04 16:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:44:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:45:05 [end_date_ymd] => 2025-01-04 16:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:45:05' and `end` < '2025-01-04 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-04 16:45:18] Production.INFO: count ==1377 [2025-01-04 16:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:45:05 - End Time 2025-01-04 16:45:05 [2025-01-04 16:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174198', 'tblTempUsageDetail_20' ) start [2025-01-04 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174198', 'tblTempUsageDetail_20' ) end [2025-01-04 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174198', 'tblTempVendorCDR_20' ) start [2025-01-04 16:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174198', 'tblTempVendorCDR_20' ) end [2025-01-04 16:45:18] Production.INFO: ProcessCDR(1,14174198,1,1,2) [2025-01-04 16:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174198', 'tblTempUsageDetail_20' ) start [2025-01-04 16:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174198', 'tblTempUsageDetail_20' ) end [2025-01-04 16:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:45:21] Production.INFO: ==4317== Releasing lock... [2025-01-04 16:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:46:05 [end_date_ymd] => 2025-01-04 16:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:46:05' and `end` < '2025-01-04 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-04 16:46:18] Production.INFO: count ==1383 [2025-01-04 16:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:46:05 - End Time 2025-01-04 16:46:05 [2025-01-04 16:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174203', 'tblTempUsageDetail_20' ) start [2025-01-04 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174203', 'tblTempUsageDetail_20' ) end [2025-01-04 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174203', 'tblTempVendorCDR_20' ) start [2025-01-04 16:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174203', 'tblTempVendorCDR_20' ) end [2025-01-04 16:46:18] Production.INFO: ProcessCDR(1,14174203,1,1,2) [2025-01-04 16:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174203', 'tblTempUsageDetail_20' ) start [2025-01-04 16:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174203', 'tblTempUsageDetail_20' ) end [2025-01-04 16:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:46:23] Production.INFO: ==4390== Releasing lock... [2025-01-04 16:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:46:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:47:05 [end_date_ymd] => 2025-01-04 16:47:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:47:05' and `end` < '2025-01-04 16: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-04 16:47:18] Production.INFO: count ==1381 [2025-01-04 16:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:47:05 - End Time 2025-01-04 16:47:05 [2025-01-04 16:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174208', 'tblTempUsageDetail_20' ) start [2025-01-04 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174208', 'tblTempUsageDetail_20' ) end [2025-01-04 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174208', 'tblTempVendorCDR_20' ) start [2025-01-04 16:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174208', 'tblTempVendorCDR_20' ) end [2025-01-04 16:47:18] Production.INFO: ProcessCDR(1,14174208,1,1,2) [2025-01-04 16:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174208', 'tblTempUsageDetail_20' ) start [2025-01-04 16:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174208', 'tblTempUsageDetail_20' ) end [2025-01-04 16:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:47:21] Production.INFO: ==4461== Releasing lock... [2025-01-04 16:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:48:05 [end_date_ymd] => 2025-01-04 16:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:48:05' and `end` < '2025-01-04 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-04 16:48:18] Production.INFO: count ==1381 [2025-01-04 16:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:48:05 - End Time 2025-01-04 16:48:05 [2025-01-04 16:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174213', 'tblTempUsageDetail_20' ) start [2025-01-04 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174213', 'tblTempUsageDetail_20' ) end [2025-01-04 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174213', 'tblTempVendorCDR_20' ) start [2025-01-04 16:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174213', 'tblTempVendorCDR_20' ) end [2025-01-04 16:48:19] Production.INFO: ProcessCDR(1,14174213,1,1,2) [2025-01-04 16:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174213', 'tblTempUsageDetail_20' ) start [2025-01-04 16:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174213', 'tblTempUsageDetail_20' ) end [2025-01-04 16:48:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:48:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:48:23] Production.INFO: ==4535== Releasing lock... [2025-01-04 16:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:48:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 16:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:49:05 [end_date_ymd] => 2025-01-04 16:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:49:05' and `end` < '2025-01-04 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-04 16:49:18] Production.INFO: count ==1378 [2025-01-04 16:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:49:05 - End Time 2025-01-04 16:49:05 [2025-01-04 16:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174218', 'tblTempUsageDetail_20' ) start [2025-01-04 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174218', 'tblTempUsageDetail_20' ) end [2025-01-04 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174218', 'tblTempVendorCDR_20' ) start [2025-01-04 16:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174218', 'tblTempVendorCDR_20' ) end [2025-01-04 16:49:18] Production.INFO: ProcessCDR(1,14174218,1,1,2) [2025-01-04 16:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174218', 'tblTempUsageDetail_20' ) start [2025-01-04 16:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174218', 'tblTempUsageDetail_20' ) end [2025-01-04 16:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:49:22] Production.INFO: ==4658== Releasing lock... [2025-01-04 16:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:50:06 [end_date_ymd] => 2025-01-04 16:50:06 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:50:06' and `end` < '2025-01-04 16: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-04 16:50:18] Production.INFO: count ==1372 [2025-01-04 16:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:50:06 - End Time 2025-01-04 16:50:06 [2025-01-04 16:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174224', 'tblTempUsageDetail_20' ) start [2025-01-04 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174224', 'tblTempUsageDetail_20' ) end [2025-01-04 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174224', 'tblTempVendorCDR_20' ) start [2025-01-04 16:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174224', 'tblTempVendorCDR_20' ) end [2025-01-04 16:50:19] Production.INFO: ProcessCDR(1,14174224,1,1,2) [2025-01-04 16:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174224', 'tblTempUsageDetail_20' ) start [2025-01-04 16:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174224', 'tblTempUsageDetail_20' ) end [2025-01-04 16:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:50:22] Production.INFO: ==4731== Releasing lock... [2025-01-04 16:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:50:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:51:05 [end_date_ymd] => 2025-01-04 16:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:51:05' and `end` < '2025-01-04 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-04 16:51:18] Production.INFO: count ==1376 [2025-01-04 16:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:51:05 - End Time 2025-01-04 16:51:05 [2025-01-04 16:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174229', 'tblTempUsageDetail_20' ) start [2025-01-04 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174229', 'tblTempUsageDetail_20' ) end [2025-01-04 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174229', 'tblTempVendorCDR_20' ) start [2025-01-04 16:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174229', 'tblTempVendorCDR_20' ) end [2025-01-04 16:51:18] Production.INFO: ProcessCDR(1,14174229,1,1,2) [2025-01-04 16:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174229', 'tblTempUsageDetail_20' ) start [2025-01-04 16:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174229', 'tblTempUsageDetail_20' ) end [2025-01-04 16:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:51:21] Production.INFO: ==4804== Releasing lock... [2025-01-04 16:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:51:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:52:05 [end_date_ymd] => 2025-01-04 16:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:52:05' and `end` < '2025-01-04 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-04 16:52:19] Production.INFO: count ==1369 [2025-01-04 16:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:52:05 - End Time 2025-01-04 16:52:05 [2025-01-04 16:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174234', 'tblTempUsageDetail_20' ) start [2025-01-04 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174234', 'tblTempUsageDetail_20' ) end [2025-01-04 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174234', 'tblTempVendorCDR_20' ) start [2025-01-04 16:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174234', 'tblTempVendorCDR_20' ) end [2025-01-04 16:52:19] Production.INFO: ProcessCDR(1,14174234,1,1,2) [2025-01-04 16:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174234', 'tblTempUsageDetail_20' ) start [2025-01-04 16:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174234', 'tblTempUsageDetail_20' ) end [2025-01-04 16:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:52:22] Production.INFO: ==4876== Releasing lock... [2025-01-04 16:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:52:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:53:05 [end_date_ymd] => 2025-01-04 16:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:53:05' and `end` < '2025-01-04 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-04 16:53:17] Production.INFO: count ==1386 [2025-01-04 16:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:53:05 - End Time 2025-01-04 16:53:05 [2025-01-04 16:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174239', 'tblTempUsageDetail_20' ) start [2025-01-04 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174239', 'tblTempUsageDetail_20' ) end [2025-01-04 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174239', 'tblTempVendorCDR_20' ) start [2025-01-04 16:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174239', 'tblTempVendorCDR_20' ) end [2025-01-04 16:53:18] Production.INFO: ProcessCDR(1,14174239,1,1,2) [2025-01-04 16:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174239', 'tblTempUsageDetail_20' ) start [2025-01-04 16:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174239', 'tblTempUsageDetail_20' ) end [2025-01-04 16:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:53:21] Production.INFO: ==4948== Releasing lock... [2025-01-04 16:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:53:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:54:05 [end_date_ymd] => 2025-01-04 16:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:54:05' and `end` < '2025-01-04 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-04 16:54:18] Production.INFO: count ==1383 [2025-01-04 16:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:54:05 - End Time 2025-01-04 16:54:05 [2025-01-04 16:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174244', 'tblTempUsageDetail_20' ) start [2025-01-04 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174244', 'tblTempUsageDetail_20' ) end [2025-01-04 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174244', 'tblTempVendorCDR_20' ) start [2025-01-04 16:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174244', 'tblTempVendorCDR_20' ) end [2025-01-04 16:54:18] Production.INFO: ProcessCDR(1,14174244,1,1,2) [2025-01-04 16:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174244', 'tblTempUsageDetail_20' ) start [2025-01-04 16:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174244', 'tblTempUsageDetail_20' ) end [2025-01-04 16:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:54:22] Production.INFO: ==5027== Releasing lock... [2025-01-04 16:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:55:05 [end_date_ymd] => 2025-01-04 16:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:55:05' and `end` < '2025-01-04 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-04 16:55:18] Production.INFO: count ==1389 [2025-01-04 16:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:55:05 - End Time 2025-01-04 16:55:05 [2025-01-04 16:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174249', 'tblTempUsageDetail_20' ) start [2025-01-04 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174249', 'tblTempUsageDetail_20' ) end [2025-01-04 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174249', 'tblTempVendorCDR_20' ) start [2025-01-04 16:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174249', 'tblTempVendorCDR_20' ) end [2025-01-04 16:55:18] Production.INFO: ProcessCDR(1,14174249,1,1,2) [2025-01-04 16:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174249', 'tblTempUsageDetail_20' ) start [2025-01-04 16:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174249', 'tblTempUsageDetail_20' ) end [2025-01-04 16:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:55:22] Production.INFO: ==5104== Releasing lock... [2025-01-04 16:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:55:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:56:05 [end_date_ymd] => 2025-01-04 16:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 13:56:05' and `end` < '2025-01-04 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-04 16:56:18] Production.INFO: count ==1385 [2025-01-04 16:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:56:05 - End Time 2025-01-04 16:56:05 [2025-01-04 16:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174254', 'tblTempUsageDetail_20' ) start [2025-01-04 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174254', 'tblTempUsageDetail_20' ) end [2025-01-04 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174254', 'tblTempVendorCDR_20' ) start [2025-01-04 16:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174254', 'tblTempVendorCDR_20' ) end [2025-01-04 16:56:18] Production.INFO: ProcessCDR(1,14174254,1,1,2) [2025-01-04 16:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174254', 'tblTempUsageDetail_20' ) start [2025-01-04 16:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174254', 'tblTempUsageDetail_20' ) end [2025-01-04 16:56:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:56:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:56:23] Production.INFO: ==5178== Releasing lock... [2025-01-04 16:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:56:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:57:06 [end_date_ymd] => 2025-01-04 16:57:06 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:57:06' and `end` < '2025-01-04 16: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-04 16:57:19] Production.INFO: count ==1388 [2025-01-04 16:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 13:57:06 - End Time 2025-01-04 16:57:06 [2025-01-04 16:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174259', 'tblTempUsageDetail_20' ) start [2025-01-04 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174259', 'tblTempUsageDetail_20' ) end [2025-01-04 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174259', 'tblTempVendorCDR_20' ) start [2025-01-04 16:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174259', 'tblTempVendorCDR_20' ) end [2025-01-04 16:57:19] Production.INFO: ProcessCDR(1,14174259,1,1,2) [2025-01-04 16:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174259', 'tblTempUsageDetail_20' ) start [2025-01-04 16:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174259', 'tblTempUsageDetail_20' ) end [2025-01-04 16:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:57:23] Production.INFO: ==5262== Releasing lock... [2025-01-04 16:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:57:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:58:05 [end_date_ymd] => 2025-01-04 16:58:05 [RateCDR] => 1 ) [2025-01-04 16: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-04 13:58:05' and `end` < '2025-01-04 16: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-04 16:58:18] Production.INFO: count ==1389 [2025-01-04 16:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 13:58:05 - End Time 2025-01-04 16:58:05 [2025-01-04 16:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174264', 'tblTempUsageDetail_20' ) start [2025-01-04 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174264', 'tblTempUsageDetail_20' ) end [2025-01-04 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174264', 'tblTempVendorCDR_20' ) start [2025-01-04 16:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174264', 'tblTempVendorCDR_20' ) end [2025-01-04 16:58:18] Production.INFO: ProcessCDR(1,14174264,1,1,2) [2025-01-04 16:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174264', 'tblTempUsageDetail_20' ) start [2025-01-04 16:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174264', 'tblTempUsageDetail_20' ) end [2025-01-04 16:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:58:22] Production.INFO: ==5349== Releasing lock... [2025-01-04 16:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:58:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 16:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 13:59:06 [end_date_ymd] => 2025-01-04 16:59:06 [RateCDR] => 1 ) [2025-01-04 16:59: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-04 13:59:06' and `end` < '2025-01-04 16:59: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-04 16:59:19] Production.INFO: count ==1385 [2025-01-04 16:59:20] Production.ERROR: pbx CDR StartTime 2025-01-04 13:59:06 - End Time 2025-01-04 16:59:06 [2025-01-04 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174269', 'tblTempUsageDetail_20' ) start [2025-01-04 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174269', 'tblTempUsageDetail_20' ) end [2025-01-04 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174269', 'tblTempVendorCDR_20' ) start [2025-01-04 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174269', 'tblTempVendorCDR_20' ) end [2025-01-04 16:59:20] Production.INFO: ProcessCDR(1,14174269,1,1,2) [2025-01-04 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 16:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174269', 'tblTempUsageDetail_20' ) start [2025-01-04 16:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174269', 'tblTempUsageDetail_20' ) end [2025-01-04 16:59:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 16:59:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 16:59:23] Production.INFO: ==5434== Releasing lock... [2025-01-04 16:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 16:59:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 17:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:00:05 [end_date_ymd] => 2025-01-04 17:00:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:00:05' and `end` < '2025-01-04 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-04 17:00:18] Production.INFO: count ==1387 [2025-01-04 17:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:00:05 - End Time 2025-01-04 17:00:05 [2025-01-04 17:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174275', 'tblTempUsageDetail_20' ) start [2025-01-04 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174275', 'tblTempUsageDetail_20' ) end [2025-01-04 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174275', 'tblTempVendorCDR_20' ) start [2025-01-04 17:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174275', 'tblTempVendorCDR_20' ) end [2025-01-04 17:00:19] Production.INFO: ProcessCDR(1,14174275,1,1,2) [2025-01-04 17:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174275', 'tblTempUsageDetail_20' ) start [2025-01-04 17:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174275', 'tblTempUsageDetail_20' ) end [2025-01-04 17:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:00:22] Production.INFO: ==5520== Releasing lock... [2025-01-04 17:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:00:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:01:05 [end_date_ymd] => 2025-01-04 17:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:01:05' and `end` < '2025-01-04 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-04 17:01:18] Production.INFO: count ==1415 [2025-01-04 17:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:01:05 - End Time 2025-01-04 17:01:05 [2025-01-04 17:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174280', 'tblTempUsageDetail_20' ) start [2025-01-04 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174280', 'tblTempUsageDetail_20' ) end [2025-01-04 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174280', 'tblTempVendorCDR_20' ) start [2025-01-04 17:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174280', 'tblTempVendorCDR_20' ) end [2025-01-04 17:01:19] Production.INFO: ProcessCDR(1,14174280,1,1,2) [2025-01-04 17:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174280,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174280,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174280', 'tblTempUsageDetail_20' ) start [2025-01-04 17:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174280', 'tblTempUsageDetail_20' ) end [2025-01-04 17:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:01:22] Production.INFO: ==5621== Releasing lock... [2025-01-04 17:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:01:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:02:05 [end_date_ymd] => 2025-01-04 17:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:02:05' and `end` < '2025-01-04 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-04 17:02:18] Production.INFO: count ==1418 [2025-01-04 17:02:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:02:05 - End Time 2025-01-04 17:02:05 [2025-01-04 17:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174285', 'tblTempUsageDetail_20' ) start [2025-01-04 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174285', 'tblTempUsageDetail_20' ) end [2025-01-04 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174285', 'tblTempVendorCDR_20' ) start [2025-01-04 17:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174285', 'tblTempVendorCDR_20' ) end [2025-01-04 17:02:19] Production.INFO: ProcessCDR(1,14174285,1,1,2) [2025-01-04 17:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174285', 'tblTempUsageDetail_20' ) start [2025-01-04 17:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174285', 'tblTempUsageDetail_20' ) end [2025-01-04 17:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:02:22] Production.INFO: ==5710== Releasing lock... [2025-01-04 17:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:02:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:03:05 [end_date_ymd] => 2025-01-04 17:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:03:05' and `end` < '2025-01-04 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-04 17:03:19] Production.INFO: count ==1406 [2025-01-04 17:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:03:05 - End Time 2025-01-04 17:03:05 [2025-01-04 17:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174290', 'tblTempUsageDetail_20' ) start [2025-01-04 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174290', 'tblTempUsageDetail_20' ) end [2025-01-04 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174290', 'tblTempVendorCDR_20' ) start [2025-01-04 17:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174290', 'tblTempVendorCDR_20' ) end [2025-01-04 17:03:19] Production.INFO: ProcessCDR(1,14174290,1,1,2) [2025-01-04 17:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174290', 'tblTempUsageDetail_20' ) start [2025-01-04 17:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174290', 'tblTempUsageDetail_20' ) end [2025-01-04 17:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:03:23] Production.INFO: ==5792== Releasing lock... [2025-01-04 17:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 17:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:04:05 [end_date_ymd] => 2025-01-04 17:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:04:05' and `end` < '2025-01-04 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-04 17:04:18] Production.INFO: count ==1408 [2025-01-04 17:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:04:05 - End Time 2025-01-04 17:04:05 [2025-01-04 17:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174295', 'tblTempUsageDetail_20' ) start [2025-01-04 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174295', 'tblTempUsageDetail_20' ) end [2025-01-04 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174295', 'tblTempVendorCDR_20' ) start [2025-01-04 17:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174295', 'tblTempVendorCDR_20' ) end [2025-01-04 17:04:18] Production.INFO: ProcessCDR(1,14174295,1,1,2) [2025-01-04 17:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174295', 'tblTempUsageDetail_20' ) start [2025-01-04 17:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174295', 'tblTempUsageDetail_20' ) end [2025-01-04 17:04:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:04:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:04:23] Production.INFO: ==5919== Releasing lock... [2025-01-04 17:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:04:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 17:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:05:05 [end_date_ymd] => 2025-01-04 17:05:05 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:05:05' and `end` < '2025-01-04 17: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-04 17:05:18] Production.INFO: count ==1410 [2025-01-04 17:05:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:05:05 - End Time 2025-01-04 17:05:05 [2025-01-04 17:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174300', 'tblTempUsageDetail_20' ) start [2025-01-04 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174300', 'tblTempUsageDetail_20' ) end [2025-01-04 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174300', 'tblTempVendorCDR_20' ) start [2025-01-04 17:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174300', 'tblTempVendorCDR_20' ) end [2025-01-04 17:05:19] Production.INFO: ProcessCDR(1,14174300,1,1,2) [2025-01-04 17:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174300', 'tblTempUsageDetail_20' ) start [2025-01-04 17:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174300', 'tblTempUsageDetail_20' ) end [2025-01-04 17:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:05:23] Production.INFO: ==6004== Releasing lock... [2025-01-04 17:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:05:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 17:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:06:04 [end_date_ymd] => 2025-01-04 17:06:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:06:04' and `end` < '2025-01-04 17: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-04 17:06:17] Production.INFO: count ==1402 [2025-01-04 17:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:06:04 - End Time 2025-01-04 17:06:04 [2025-01-04 17:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174305', 'tblTempUsageDetail_20' ) start [2025-01-04 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174305', 'tblTempUsageDetail_20' ) end [2025-01-04 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174305', 'tblTempVendorCDR_20' ) start [2025-01-04 17:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174305', 'tblTempVendorCDR_20' ) end [2025-01-04 17:06:18] Production.INFO: ProcessCDR(1,14174305,1,1,2) [2025-01-04 17:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174305', 'tblTempUsageDetail_20' ) start [2025-01-04 17:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174305', 'tblTempUsageDetail_20' ) end [2025-01-04 17:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:06:21] Production.INFO: ==6087== Releasing lock... [2025-01-04 17:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:06:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:07:05 [end_date_ymd] => 2025-01-04 17:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:07:05' and `end` < '2025-01-04 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-04 17:07:18] Production.INFO: count ==1410 [2025-01-04 17:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:07:05 - End Time 2025-01-04 17:07:05 [2025-01-04 17:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174310', 'tblTempUsageDetail_20' ) start [2025-01-04 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174310', 'tblTempUsageDetail_20' ) end [2025-01-04 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174310', 'tblTempVendorCDR_20' ) start [2025-01-04 17:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174310', 'tblTempVendorCDR_20' ) end [2025-01-04 17:07:18] Production.INFO: ProcessCDR(1,14174310,1,1,2) [2025-01-04 17:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174310', 'tblTempUsageDetail_20' ) start [2025-01-04 17:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174310', 'tblTempUsageDetail_20' ) end [2025-01-04 17:07:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:07:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:07:23] Production.INFO: ==6169== Releasing lock... [2025-01-04 17:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:07:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 17:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:08:04 [end_date_ymd] => 2025-01-04 17:08:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:08:04' and `end` < '2025-01-04 17: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-04 17:08:17] Production.INFO: count ==1414 [2025-01-04 17:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:08:04 - End Time 2025-01-04 17:08:04 [2025-01-04 17:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174315', 'tblTempUsageDetail_20' ) start [2025-01-04 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174315', 'tblTempUsageDetail_20' ) end [2025-01-04 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174315', 'tblTempVendorCDR_20' ) start [2025-01-04 17:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174315', 'tblTempVendorCDR_20' ) end [2025-01-04 17:08:18] Production.INFO: ProcessCDR(1,14174315,1,1,2) [2025-01-04 17:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174315', 'tblTempUsageDetail_20' ) start [2025-01-04 17:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174315', 'tblTempUsageDetail_20' ) end [2025-01-04 17:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:08:22] Production.INFO: ==6253== Releasing lock... [2025-01-04 17:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:08:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:09:05 [end_date_ymd] => 2025-01-04 17:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:09:05' and `end` < '2025-01-04 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-04 17:09:18] Production.INFO: count ==1421 [2025-01-04 17:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:09:05 - End Time 2025-01-04 17:09:05 [2025-01-04 17:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174320', 'tblTempUsageDetail_20' ) start [2025-01-04 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174320', 'tblTempUsageDetail_20' ) end [2025-01-04 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174320', 'tblTempVendorCDR_20' ) start [2025-01-04 17:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174320', 'tblTempVendorCDR_20' ) end [2025-01-04 17:09:18] Production.INFO: ProcessCDR(1,14174320,1,1,2) [2025-01-04 17:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174320', 'tblTempUsageDetail_20' ) start [2025-01-04 17:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174320', 'tblTempUsageDetail_20' ) end [2025-01-04 17:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:09:23] Production.INFO: ==6342== Releasing lock... [2025-01-04 17:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:09:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:10:06 [end_date_ymd] => 2025-01-04 17:10:06 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:10:06' and `end` < '2025-01-04 17: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-04 17:10:19] Production.INFO: count ==1422 [2025-01-04 17:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:10:06 - End Time 2025-01-04 17:10:06 [2025-01-04 17:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174326', 'tblTempUsageDetail_20' ) start [2025-01-04 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174326', 'tblTempUsageDetail_20' ) end [2025-01-04 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174326', 'tblTempVendorCDR_20' ) start [2025-01-04 17:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174326', 'tblTempVendorCDR_20' ) end [2025-01-04 17:10:20] Production.INFO: ProcessCDR(1,14174326,1,1,2) [2025-01-04 17:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:10:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:10:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174326', 'tblTempUsageDetail_20' ) start [2025-01-04 17:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174326', 'tblTempUsageDetail_20' ) end [2025-01-04 17:10:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:10:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:10:24] Production.INFO: ==6432== Releasing lock... [2025-01-04 17:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:10:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:11:05 [end_date_ymd] => 2025-01-04 17:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:11:05' and `end` < '2025-01-04 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-04 17:11:18] Production.INFO: count ==1451 [2025-01-04 17:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:11:05 - End Time 2025-01-04 17:11:05 [2025-01-04 17:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174331', 'tblTempUsageDetail_20' ) start [2025-01-04 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174331', 'tblTempUsageDetail_20' ) end [2025-01-04 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174331', 'tblTempVendorCDR_20' ) start [2025-01-04 17:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174331', 'tblTempVendorCDR_20' ) end [2025-01-04 17:11:18] Production.INFO: ProcessCDR(1,14174331,1,1,2) [2025-01-04 17:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174331', 'tblTempUsageDetail_20' ) start [2025-01-04 17:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174331', 'tblTempUsageDetail_20' ) end [2025-01-04 17:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:11:23] Production.INFO: ==6515== Releasing lock... [2025-01-04 17:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:11:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:12:06 [end_date_ymd] => 2025-01-04 17:12:06 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:12:06' and `end` < '2025-01-04 17: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-04 17:12:19] Production.INFO: count ==1452 [2025-01-04 17:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:12:06 - End Time 2025-01-04 17:12:06 [2025-01-04 17:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174336', 'tblTempUsageDetail_20' ) start [2025-01-04 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174336', 'tblTempUsageDetail_20' ) end [2025-01-04 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174336', 'tblTempVendorCDR_20' ) start [2025-01-04 17:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174336', 'tblTempVendorCDR_20' ) end [2025-01-04 17:12:19] Production.INFO: ProcessCDR(1,14174336,1,1,2) [2025-01-04 17:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174336', 'tblTempUsageDetail_20' ) start [2025-01-04 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174336', 'tblTempUsageDetail_20' ) end [2025-01-04 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:12:24] Production.INFO: ==6599== Releasing lock... [2025-01-04 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:12:24] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:13:05 [end_date_ymd] => 2025-01-04 17:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:13:05' and `end` < '2025-01-04 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-04 17:13:18] Production.INFO: count ==1453 [2025-01-04 17:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:13:05 - End Time 2025-01-04 17:13:05 [2025-01-04 17:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174341', 'tblTempUsageDetail_20' ) start [2025-01-04 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174341', 'tblTempUsageDetail_20' ) end [2025-01-04 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174341', 'tblTempVendorCDR_20' ) start [2025-01-04 17:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174341', 'tblTempVendorCDR_20' ) end [2025-01-04 17:13:18] Production.INFO: ProcessCDR(1,14174341,1,1,2) [2025-01-04 17:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174341', 'tblTempUsageDetail_20' ) start [2025-01-04 17:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174341', 'tblTempUsageDetail_20' ) end [2025-01-04 17:13:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:13:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:13:23] Production.INFO: ==6682== Releasing lock... [2025-01-04 17:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:13:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:14:05 [end_date_ymd] => 2025-01-04 17:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:14:05' and `end` < '2025-01-04 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-04 17:14:18] Production.INFO: count ==1457 [2025-01-04 17:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:14:05 - End Time 2025-01-04 17:14:05 [2025-01-04 17:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174346', 'tblTempUsageDetail_20' ) start [2025-01-04 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174346', 'tblTempUsageDetail_20' ) end [2025-01-04 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174346', 'tblTempVendorCDR_20' ) start [2025-01-04 17:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174346', 'tblTempVendorCDR_20' ) end [2025-01-04 17:14:19] Production.INFO: ProcessCDR(1,14174346,1,1,2) [2025-01-04 17:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174346', 'tblTempUsageDetail_20' ) start [2025-01-04 17:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174346', 'tblTempUsageDetail_20' ) end [2025-01-04 17:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:14:23] Production.INFO: ==6767== Releasing lock... [2025-01-04 17:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:14:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:15:04 [end_date_ymd] => 2025-01-04 17:15:04 [RateCDR] => 1 ) [2025-01-04 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-04 14:15:04' and `end` < '2025-01-04 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-04 17:15:17] Production.INFO: count ==1457 [2025-01-04 17:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:15:04 - End Time 2025-01-04 17:15:04 [2025-01-04 17:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174351', 'tblTempUsageDetail_20' ) start [2025-01-04 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174351', 'tblTempUsageDetail_20' ) end [2025-01-04 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174351', 'tblTempVendorCDR_20' ) start [2025-01-04 17:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174351', 'tblTempVendorCDR_20' ) end [2025-01-04 17:15:18] Production.INFO: ProcessCDR(1,14174351,1,1,2) [2025-01-04 17:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174351', 'tblTempUsageDetail_20' ) start [2025-01-04 17:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174351', 'tblTempUsageDetail_20' ) end [2025-01-04 17:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:15:22] Production.INFO: ==6850== Releasing lock... [2025-01-04 17:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:15:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:16:05 [end_date_ymd] => 2025-01-04 17:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:16:05' and `end` < '2025-01-04 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-04 17:16:19] Production.INFO: count ==1436 [2025-01-04 17:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:16:05 - End Time 2025-01-04 17:16:05 [2025-01-04 17:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174356', 'tblTempUsageDetail_20' ) start [2025-01-04 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174356', 'tblTempUsageDetail_20' ) end [2025-01-04 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174356', 'tblTempVendorCDR_20' ) start [2025-01-04 17:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174356', 'tblTempVendorCDR_20' ) end [2025-01-04 17:16:19] Production.INFO: ProcessCDR(1,14174356,1,1,2) [2025-01-04 17:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:16:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174356', 'tblTempUsageDetail_20' ) start [2025-01-04 17:16:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174356', 'tblTempUsageDetail_20' ) end [2025-01-04 17:16:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:16:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:16:24] Production.INFO: ==6933== Releasing lock... [2025-01-04 17:16:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:16:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:17:06 [end_date_ymd] => 2025-01-04 17:17:06 [RateCDR] => 1 ) [2025-01-04 17:17: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-04 14:17:06' and `end` < '2025-01-04 17:17: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-04 17:17:18] Production.INFO: count ==1439 [2025-01-04 17:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:17:06 - End Time 2025-01-04 17:17:06 [2025-01-04 17:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174361', 'tblTempUsageDetail_20' ) start [2025-01-04 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174361', 'tblTempUsageDetail_20' ) end [2025-01-04 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174361', 'tblTempVendorCDR_20' ) start [2025-01-04 17:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174361', 'tblTempVendorCDR_20' ) end [2025-01-04 17:17:19] Production.INFO: ProcessCDR(1,14174361,1,1,2) [2025-01-04 17:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174361', 'tblTempUsageDetail_20' ) start [2025-01-04 17:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174361', 'tblTempUsageDetail_20' ) end [2025-01-04 17:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:17:22] Production.INFO: ==7018== Releasing lock... [2025-01-04 17:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:17:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:18:05 [end_date_ymd] => 2025-01-04 17:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:18:05' and `end` < '2025-01-04 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-04 17:18:18] Production.INFO: count ==1435 [2025-01-04 17:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:18:05 - End Time 2025-01-04 17:18:05 [2025-01-04 17:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174366', 'tblTempUsageDetail_20' ) start [2025-01-04 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174366', 'tblTempUsageDetail_20' ) end [2025-01-04 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174366', 'tblTempVendorCDR_20' ) start [2025-01-04 17:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174366', 'tblTempVendorCDR_20' ) end [2025-01-04 17:18:18] Production.INFO: ProcessCDR(1,14174366,1,1,2) [2025-01-04 17:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174366', 'tblTempUsageDetail_20' ) start [2025-01-04 17:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174366', 'tblTempUsageDetail_20' ) end [2025-01-04 17:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:18:22] Production.INFO: ==7102== Releasing lock... [2025-01-04 17:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:19:05 [end_date_ymd] => 2025-01-04 17:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:19:05' and `end` < '2025-01-04 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-04 17:19:18] Production.INFO: count ==1438 [2025-01-04 17:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:19:05 - End Time 2025-01-04 17:19:05 [2025-01-04 17:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174371', 'tblTempUsageDetail_20' ) start [2025-01-04 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174371', 'tblTempUsageDetail_20' ) end [2025-01-04 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174371', 'tblTempVendorCDR_20' ) start [2025-01-04 17:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174371', 'tblTempVendorCDR_20' ) end [2025-01-04 17:19:18] Production.INFO: ProcessCDR(1,14174371,1,1,2) [2025-01-04 17:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174371', 'tblTempUsageDetail_20' ) start [2025-01-04 17:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174371', 'tblTempUsageDetail_20' ) end [2025-01-04 17:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:19:22] Production.INFO: ==7189== Releasing lock... [2025-01-04 17:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:19:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 17:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:20:05 [end_date_ymd] => 2025-01-04 17:20:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:20:05' and `end` < '2025-01-04 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-04 17:20:18] Production.INFO: count ==1445 [2025-01-04 17:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:20:05 - End Time 2025-01-04 17:20:05 [2025-01-04 17:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174376', 'tblTempUsageDetail_20' ) start [2025-01-04 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174376', 'tblTempUsageDetail_20' ) end [2025-01-04 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174376', 'tblTempVendorCDR_20' ) start [2025-01-04 17:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174376', 'tblTempVendorCDR_20' ) end [2025-01-04 17:20:18] Production.INFO: ProcessCDR(1,14174376,1,1,2) [2025-01-04 17:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174376', 'tblTempUsageDetail_20' ) start [2025-01-04 17:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174376', 'tblTempUsageDetail_20' ) end [2025-01-04 17:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:20:23] Production.INFO: ==7323== Releasing lock... [2025-01-04 17:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:20:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:21:05 [end_date_ymd] => 2025-01-04 17:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:21:05' and `end` < '2025-01-04 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-04 17:21:19] Production.INFO: count ==1480 [2025-01-04 17:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:21:05 - End Time 2025-01-04 17:21:05 [2025-01-04 17:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174382', 'tblTempUsageDetail_20' ) start [2025-01-04 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174382', 'tblTempUsageDetail_20' ) end [2025-01-04 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174382', 'tblTempVendorCDR_20' ) start [2025-01-04 17:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174382', 'tblTempVendorCDR_20' ) end [2025-01-04 17:21:19] Production.INFO: ProcessCDR(1,14174382,1,1,2) [2025-01-04 17:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:21:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174382', 'tblTempUsageDetail_20' ) start [2025-01-04 17:21:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174382', 'tblTempUsageDetail_20' ) end [2025-01-04 17:21:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:21:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:21:23] Production.INFO: ==7417== Releasing lock... [2025-01-04 17:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:21:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:22:05 [end_date_ymd] => 2025-01-04 17:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:22:05' and `end` < '2025-01-04 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-04 17:22:18] Production.INFO: count ==1482 [2025-01-04 17:22:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:22:05 - End Time 2025-01-04 17:22:05 [2025-01-04 17:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174387', 'tblTempUsageDetail_20' ) start [2025-01-04 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174387', 'tblTempUsageDetail_20' ) end [2025-01-04 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174387', 'tblTempVendorCDR_20' ) start [2025-01-04 17:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174387', 'tblTempVendorCDR_20' ) end [2025-01-04 17:22:19] Production.INFO: ProcessCDR(1,14174387,1,1,2) [2025-01-04 17:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174387', 'tblTempUsageDetail_20' ) start [2025-01-04 17:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174387', 'tblTempUsageDetail_20' ) end [2025-01-04 17:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:22:22] Production.INFO: ==7503== Releasing lock... [2025-01-04 17:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:22:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:23:05 [end_date_ymd] => 2025-01-04 17:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:23:05' and `end` < '2025-01-04 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-04 17:23:19] Production.INFO: count ==1478 [2025-01-04 17:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:23:05 - End Time 2025-01-04 17:23:05 [2025-01-04 17:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174392', 'tblTempUsageDetail_20' ) start [2025-01-04 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174392', 'tblTempUsageDetail_20' ) end [2025-01-04 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174392', 'tblTempVendorCDR_20' ) start [2025-01-04 17:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174392', 'tblTempVendorCDR_20' ) end [2025-01-04 17:23:19] Production.INFO: ProcessCDR(1,14174392,1,1,2) [2025-01-04 17:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174392', 'tblTempUsageDetail_20' ) start [2025-01-04 17:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174392', 'tblTempUsageDetail_20' ) end [2025-01-04 17:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:23:22] Production.INFO: ==7588== Releasing lock... [2025-01-04 17:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:23:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:24:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:24:04 [end_date_ymd] => 2025-01-04 17:24:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:24:04' and `end` < '2025-01-04 17: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-04 17:24:17] Production.INFO: count ==1463 [2025-01-04 17:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:24:04 - End Time 2025-01-04 17:24:04 [2025-01-04 17:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174397', 'tblTempUsageDetail_20' ) start [2025-01-04 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174397', 'tblTempUsageDetail_20' ) end [2025-01-04 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174397', 'tblTempVendorCDR_20' ) start [2025-01-04 17:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174397', 'tblTempVendorCDR_20' ) end [2025-01-04 17:24:18] Production.INFO: ProcessCDR(1,14174397,1,1,2) [2025-01-04 17:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174397', 'tblTempUsageDetail_20' ) start [2025-01-04 17:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174397', 'tblTempUsageDetail_20' ) end [2025-01-04 17:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:24:21] Production.INFO: ==7669== Releasing lock... [2025-01-04 17:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:24:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:25:05 [end_date_ymd] => 2025-01-04 17:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:25:05' and `end` < '2025-01-04 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-04 17:25:18] Production.INFO: count ==1462 [2025-01-04 17:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:25:05 - End Time 2025-01-04 17:25:05 [2025-01-04 17:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174402', 'tblTempUsageDetail_20' ) start [2025-01-04 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174402', 'tblTempUsageDetail_20' ) end [2025-01-04 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174402', 'tblTempVendorCDR_20' ) start [2025-01-04 17:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174402', 'tblTempVendorCDR_20' ) end [2025-01-04 17:25:18] Production.INFO: ProcessCDR(1,14174402,1,1,2) [2025-01-04 17:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174402', 'tblTempUsageDetail_20' ) start [2025-01-04 17:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174402', 'tblTempUsageDetail_20' ) end [2025-01-04 17:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:25:21] Production.INFO: ==7758== Releasing lock... [2025-01-04 17:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:25:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:26:22] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:26:21 [end_date_ymd] => 2025-01-04 17:26:21 [RateCDR] => 1 ) [2025-01-04 17:26:22] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 14:26:21' and `end` < '2025-01-04 17:26:21' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 17:26:36] Production.INFO: count ==1464 [2025-01-04 17:26:41] Production.ERROR: pbx CDR StartTime 2025-01-04 14:26:21 - End Time 2025-01-04 17:26:21 [2025-01-04 17:26:41] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:26:41] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174407', 'tblTempUsageDetail_20' ) start [2025-01-04 17:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174407', 'tblTempUsageDetail_20' ) end [2025-01-04 17:26:42] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174407', 'tblTempVendorCDR_20' ) start [2025-01-04 17:26:44] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174407', 'tblTempVendorCDR_20' ) end [2025-01-04 17:26:44] Production.INFO: ProcessCDR(1,14174407,1,1,2) [2025-01-04 17:26:44] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:26:56] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:26:56] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:27:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:27:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174407', 'tblTempUsageDetail_20' ) start [2025-01-04 17:27:37] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174407', 'tblTempUsageDetail_20' ) end [2025-01-04 17:27:37] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:27:37] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:27:37] Production.INFO: ==7841== Releasing lock... [2025-01-04 17:27:37] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:27:37] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 17:28:20] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:28:20 [end_date_ymd] => 2025-01-04 17:28:20 [RateCDR] => 1 ) [2025-01-04 17:28:20] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 14:28:20' and `end` < '2025-01-04 17:28:20' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 17:28:32] Production.INFO: count ==1460 [2025-01-04 17:28:39] Production.ERROR: pbx CDR StartTime 2025-01-04 14:28:20 - End Time 2025-01-04 17:28:20 [2025-01-04 17:28:39] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174414', 'tblTempUsageDetail_20' ) start [2025-01-04 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174414', 'tblTempUsageDetail_20' ) end [2025-01-04 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174414', 'tblTempVendorCDR_20' ) start [2025-01-04 17:28:39] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174414', 'tblTempVendorCDR_20' ) end [2025-01-04 17:28:39] Production.INFO: ProcessCDR(1,14174414,1,1,2) [2025-01-04 17:28:39] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:28:45] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174414,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:28:45] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:28:59] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174414,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:28:59] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174414', 'tblTempUsageDetail_20' ) start [2025-01-04 17:29:02] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174414', 'tblTempUsageDetail_20' ) end [2025-01-04 17:29:02] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:29:02] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:29:10] Production.INFO: ==8002== Releasing lock... [2025-01-04 17:29:10] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:29:10] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:30:30] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:30:30 [end_date_ymd] => 2025-01-04 17:30:30 [RateCDR] => 1 ) [2025-01-04 17:30:30] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 14:30:30' and `end` < '2025-01-04 17:30:30' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 17:30:43] Production.INFO: count ==1485 [2025-01-04 17:30:55] Production.ERROR: pbx CDR StartTime 2025-01-04 14:30:30 - End Time 2025-01-04 17:30:30 [2025-01-04 17:30:55] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:30:55] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174423', 'tblTempUsageDetail_20' ) start [2025-01-04 17:31:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174423', 'tblTempUsageDetail_20' ) end [2025-01-04 17:31:00] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174423', 'tblTempVendorCDR_20' ) start [2025-01-04 17:31:02] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174423', 'tblTempVendorCDR_20' ) end [2025-01-04 17:31:02] Production.INFO: ProcessCDR(1,14174423,1,1,2) [2025-01-04 17:31:02] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:31:10] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:31:10] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174423', 'tblTempUsageDetail_20' ) start [2025-01-04 17:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174423', 'tblTempUsageDetail_20' ) end [2025-01-04 17:31:26] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:31:28] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:31:35] Production.INFO: ==8172== Releasing lock... [2025-01-04 17:31:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:31:35] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:32:32] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:32:32 [end_date_ymd] => 2025-01-04 17:32:32 [RateCDR] => 1 ) [2025-01-04 17:32:32] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 14:32:32' and `end` < '2025-01-04 17:32:32' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 17:32:47] Production.INFO: count ==1514 [2025-01-04 17:32:53] Production.ERROR: pbx CDR StartTime 2025-01-04 14:32:32 - End Time 2025-01-04 17:32:32 [2025-01-04 17:32:53] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:32:53] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174430', 'tblTempUsageDetail_20' ) start [2025-01-04 17:32:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174430', 'tblTempUsageDetail_20' ) end [2025-01-04 17:32:57] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174430', 'tblTempVendorCDR_20' ) start [2025-01-04 17:32:58] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174430', 'tblTempVendorCDR_20' ) end [2025-01-04 17:32:58] Production.INFO: ProcessCDR(1,14174430,1,1,2) [2025-01-04 17:32:58] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:33:09] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:33:09] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:33:45] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:33:45] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174430', 'tblTempUsageDetail_20' ) start [2025-01-04 17:33:46] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174430', 'tblTempUsageDetail_20' ) end [2025-01-04 17:33:46] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:33:46] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:33:49] Production.INFO: ==8353== Releasing lock... [2025-01-04 17:33:49] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:33:49] Production.INFO: 39.5 MB #Memory Used# [2025-01-04 17:34:23] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:34:23 [end_date_ymd] => 2025-01-04 17:34:23 [RateCDR] => 1 ) [2025-01-04 17:34:23] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 14:34:23' and `end` < '2025-01-04 17:34:23' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 17:34:36] Production.INFO: count ==1515 [2025-01-04 17:34:48] Production.ERROR: pbx CDR StartTime 2025-01-04 14:34:23 - End Time 2025-01-04 17:34:23 [2025-01-04 17:34:48] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:34:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174438', 'tblTempUsageDetail_20' ) start [2025-01-04 17:34:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174438', 'tblTempUsageDetail_20' ) end [2025-01-04 17:34:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174438', 'tblTempVendorCDR_20' ) start [2025-01-04 17:34:48] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174438', 'tblTempVendorCDR_20' ) end [2025-01-04 17:34:48] Production.INFO: ProcessCDR(1,14174438,1,1,2) [2025-01-04 17:34:48] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:34:51] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:34:51] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:34:53] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:34:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174438', 'tblTempUsageDetail_20' ) start [2025-01-04 17:34:53] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174438', 'tblTempUsageDetail_20' ) end [2025-01-04 17:34:53] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:34:53] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:34:53] Production.INFO: ==8510== Releasing lock... [2025-01-04 17:34:53] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:34:53] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:35:05 [end_date_ymd] => 2025-01-04 17:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:35:05' and `end` < '2025-01-04 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-04 17:35:18] Production.INFO: count ==1516 [2025-01-04 17:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:35:05 - End Time 2025-01-04 17:35:05 [2025-01-04 17:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174443', 'tblTempUsageDetail_20' ) start [2025-01-04 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174443', 'tblTempUsageDetail_20' ) end [2025-01-04 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174443', 'tblTempVendorCDR_20' ) start [2025-01-04 17:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174443', 'tblTempVendorCDR_20' ) end [2025-01-04 17:35:18] Production.INFO: ProcessCDR(1,14174443,1,1,2) [2025-01-04 17:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:35:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174443', 'tblTempUsageDetail_20' ) start [2025-01-04 17:35:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174443', 'tblTempUsageDetail_20' ) end [2025-01-04 17:35:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:35:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:35:23] Production.INFO: ==8601== Releasing lock... [2025-01-04 17:35:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:35:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:36:05 [end_date_ymd] => 2025-01-04 17:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:36:05' and `end` < '2025-01-04 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-04 17:36:20] Production.INFO: count ==1517 [2025-01-04 17:36:20] Production.ERROR: pbx CDR StartTime 2025-01-04 14:36:05 - End Time 2025-01-04 17:36:05 [2025-01-04 17:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174448', 'tblTempUsageDetail_20' ) start [2025-01-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174448', 'tblTempUsageDetail_20' ) end [2025-01-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174448', 'tblTempVendorCDR_20' ) start [2025-01-04 17:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174448', 'tblTempVendorCDR_20' ) end [2025-01-04 17:36:20] Production.INFO: ProcessCDR(1,14174448,1,1,2) [2025-01-04 17:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174448', 'tblTempUsageDetail_20' ) start [2025-01-04 17:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174448', 'tblTempUsageDetail_20' ) end [2025-01-04 17:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:36:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:36:25] Production.INFO: ==8728== Releasing lock... [2025-01-04 17:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:36:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:37:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:37:04 [end_date_ymd] => 2025-01-04 17:37:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:37:04' and `end` < '2025-01-04 17: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-04 17:37:19] Production.INFO: count ==1517 [2025-01-04 17:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:37:04 - End Time 2025-01-04 17:37:04 [2025-01-04 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174453', 'tblTempUsageDetail_20' ) start [2025-01-04 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174453', 'tblTempUsageDetail_20' ) end [2025-01-04 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174453', 'tblTempVendorCDR_20' ) start [2025-01-04 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174453', 'tblTempVendorCDR_20' ) end [2025-01-04 17:37:19] Production.INFO: ProcessCDR(1,14174453,1,1,2) [2025-01-04 17:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174453', 'tblTempUsageDetail_20' ) start [2025-01-04 17:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174453', 'tblTempUsageDetail_20' ) end [2025-01-04 17:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:37:22] Production.INFO: ==8814== Releasing lock... [2025-01-04 17:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:37:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:38:05 [end_date_ymd] => 2025-01-04 17:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:38:05' and `end` < '2025-01-04 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-04 17:38:18] Production.INFO: count ==1517 [2025-01-04 17:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:38:05 - End Time 2025-01-04 17:38:05 [2025-01-04 17:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174458', 'tblTempUsageDetail_20' ) start [2025-01-04 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174458', 'tblTempUsageDetail_20' ) end [2025-01-04 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174458', 'tblTempVendorCDR_20' ) start [2025-01-04 17:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174458', 'tblTempVendorCDR_20' ) end [2025-01-04 17:38:19] Production.INFO: ProcessCDR(1,14174458,1,1,2) [2025-01-04 17:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174458', 'tblTempUsageDetail_20' ) start [2025-01-04 17:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174458', 'tblTempUsageDetail_20' ) end [2025-01-04 17:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:38:22] Production.INFO: ==8904== Releasing lock... [2025-01-04 17:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:38:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:39:04 [end_date_ymd] => 2025-01-04 17:39:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:39:04' and `end` < '2025-01-04 17: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-04 17:39:17] Production.INFO: count ==1519 [2025-01-04 17:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:39:04 - End Time 2025-01-04 17:39:04 [2025-01-04 17:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174463', 'tblTempUsageDetail_20' ) start [2025-01-04 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174463', 'tblTempUsageDetail_20' ) end [2025-01-04 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174463', 'tblTempVendorCDR_20' ) start [2025-01-04 17:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174463', 'tblTempVendorCDR_20' ) end [2025-01-04 17:39:18] Production.INFO: ProcessCDR(1,14174463,1,1,2) [2025-01-04 17:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174463', 'tblTempUsageDetail_20' ) start [2025-01-04 17:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174463', 'tblTempUsageDetail_20' ) end [2025-01-04 17:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:39:21] Production.INFO: ==8988== Releasing lock... [2025-01-04 17:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:39:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:40:05 [end_date_ymd] => 2025-01-04 17:40:05 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:40:05' and `end` < '2025-01-04 17: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-04 17:40:18] Production.INFO: count ==1516 [2025-01-04 17:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:40:05 - End Time 2025-01-04 17:40:05 [2025-01-04 17:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174468', 'tblTempUsageDetail_20' ) start [2025-01-04 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174468', 'tblTempUsageDetail_20' ) end [2025-01-04 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174468', 'tblTempVendorCDR_20' ) start [2025-01-04 17:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174468', 'tblTempVendorCDR_20' ) end [2025-01-04 17:40:18] Production.INFO: ProcessCDR(1,14174468,1,1,2) [2025-01-04 17:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174468', 'tblTempUsageDetail_20' ) start [2025-01-04 17:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174468', 'tblTempUsageDetail_20' ) end [2025-01-04 17:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:40:22] Production.INFO: ==9077== Releasing lock... [2025-01-04 17:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:40:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:41:05 [end_date_ymd] => 2025-01-04 17:41:05 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:41:05' and `end` < '2025-01-04 17: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-04 17:41:18] Production.INFO: count ==1529 [2025-01-04 17:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:41:05 - End Time 2025-01-04 17:41:05 [2025-01-04 17:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174474', 'tblTempUsageDetail_20' ) start [2025-01-04 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174474', 'tblTempUsageDetail_20' ) end [2025-01-04 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174474', 'tblTempVendorCDR_20' ) start [2025-01-04 17:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174474', 'tblTempVendorCDR_20' ) end [2025-01-04 17:41:18] Production.INFO: ProcessCDR(1,14174474,1,1,2) [2025-01-04 17:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174474', 'tblTempUsageDetail_20' ) start [2025-01-04 17:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174474', 'tblTempUsageDetail_20' ) end [2025-01-04 17:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:41:22] Production.INFO: ==9170== Releasing lock... [2025-01-04 17:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:41:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:42:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:42:04 [end_date_ymd] => 2025-01-04 17:42:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:42:04' and `end` < '2025-01-04 17: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-04 17:42:20] Production.INFO: count ==1504 [2025-01-04 17:42:20] Production.ERROR: pbx CDR StartTime 2025-01-04 14:42:04 - End Time 2025-01-04 17:42:04 [2025-01-04 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174479', 'tblTempUsageDetail_20' ) start [2025-01-04 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174479', 'tblTempUsageDetail_20' ) end [2025-01-04 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174479', 'tblTempVendorCDR_20' ) start [2025-01-04 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174479', 'tblTempVendorCDR_20' ) end [2025-01-04 17:42:20] Production.INFO: ProcessCDR(1,14174479,1,1,2) [2025-01-04 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174479', 'tblTempUsageDetail_20' ) start [2025-01-04 17:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174479', 'tblTempUsageDetail_20' ) end [2025-01-04 17:42:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:42:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:42:25] Production.INFO: ==9253== Releasing lock... [2025-01-04 17:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:42:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:43:05 [end_date_ymd] => 2025-01-04 17:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:43:05' and `end` < '2025-01-04 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-04 17:43:21] Production.INFO: count ==1499 [2025-01-04 17:43:21] Production.ERROR: pbx CDR StartTime 2025-01-04 14:43:05 - End Time 2025-01-04 17:43:05 [2025-01-04 17:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174484', 'tblTempUsageDetail_20' ) start [2025-01-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174484', 'tblTempUsageDetail_20' ) end [2025-01-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174484', 'tblTempVendorCDR_20' ) start [2025-01-04 17:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174484', 'tblTempVendorCDR_20' ) end [2025-01-04 17:43:21] Production.INFO: ProcessCDR(1,14174484,1,1,2) [2025-01-04 17:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174484', 'tblTempUsageDetail_20' ) start [2025-01-04 17:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174484', 'tblTempUsageDetail_20' ) end [2025-01-04 17:43:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:43:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:43:25] Production.INFO: ==9344== Releasing lock... [2025-01-04 17:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:43:25] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:44:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:44:04 [end_date_ymd] => 2025-01-04 17:44:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:44:04' and `end` < '2025-01-04 17: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-04 17:44:17] Production.INFO: count ==1488 [2025-01-04 17:44:17] Production.ERROR: pbx CDR StartTime 2025-01-04 14:44:04 - End Time 2025-01-04 17:44:04 [2025-01-04 17:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174489', 'tblTempUsageDetail_20' ) start [2025-01-04 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174489', 'tblTempUsageDetail_20' ) end [2025-01-04 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174489', 'tblTempVendorCDR_20' ) start [2025-01-04 17:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174489', 'tblTempVendorCDR_20' ) end [2025-01-04 17:44:18] Production.INFO: ProcessCDR(1,14174489,1,1,2) [2025-01-04 17:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174489', 'tblTempUsageDetail_20' ) start [2025-01-04 17:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174489', 'tblTempUsageDetail_20' ) end [2025-01-04 17:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:44:21] Production.INFO: ==9427== Releasing lock... [2025-01-04 17:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:44:21] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:45:05 [end_date_ymd] => 2025-01-04 17:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:45:05' and `end` < '2025-01-04 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-04 17:45:18] Production.INFO: count ==1491 [2025-01-04 17:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:45:05 - End Time 2025-01-04 17:45:05 [2025-01-04 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174494', 'tblTempUsageDetail_20' ) start [2025-01-04 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174494', 'tblTempUsageDetail_20' ) end [2025-01-04 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174494', 'tblTempVendorCDR_20' ) start [2025-01-04 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174494', 'tblTempVendorCDR_20' ) end [2025-01-04 17:45:19] Production.INFO: ProcessCDR(1,14174494,1,1,2) [2025-01-04 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174494', 'tblTempUsageDetail_20' ) start [2025-01-04 17:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174494', 'tblTempUsageDetail_20' ) end [2025-01-04 17:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:45:22] Production.INFO: ==9513== Releasing lock... [2025-01-04 17:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:45:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:46:05 [end_date_ymd] => 2025-01-04 17:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:46:05' and `end` < '2025-01-04 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-04 17:46:18] Production.INFO: count ==1491 [2025-01-04 17:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:46:05 - End Time 2025-01-04 17:46:05 [2025-01-04 17:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174499', 'tblTempUsageDetail_20' ) start [2025-01-04 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174499', 'tblTempUsageDetail_20' ) end [2025-01-04 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174499', 'tblTempVendorCDR_20' ) start [2025-01-04 17:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174499', 'tblTempVendorCDR_20' ) end [2025-01-04 17:46:18] Production.INFO: ProcessCDR(1,14174499,1,1,2) [2025-01-04 17:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174499', 'tblTempUsageDetail_20' ) start [2025-01-04 17:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174499', 'tblTempUsageDetail_20' ) end [2025-01-04 17:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:46:21] Production.INFO: ==9602== Releasing lock... [2025-01-04 17:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:46:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:47:04 [end_date_ymd] => 2025-01-04 17:47:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:47:04' and `end` < '2025-01-04 17: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-04 17:47:17] Production.INFO: count ==1491 [2025-01-04 17:47:17] Production.ERROR: pbx CDR StartTime 2025-01-04 14:47:04 - End Time 2025-01-04 17:47:04 [2025-01-04 17:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174504', 'tblTempUsageDetail_20' ) start [2025-01-04 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174504', 'tblTempUsageDetail_20' ) end [2025-01-04 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174504', 'tblTempVendorCDR_20' ) start [2025-01-04 17:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174504', 'tblTempVendorCDR_20' ) end [2025-01-04 17:47:18] Production.INFO: ProcessCDR(1,14174504,1,1,2) [2025-01-04 17:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174504', 'tblTempUsageDetail_20' ) start [2025-01-04 17:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174504', 'tblTempUsageDetail_20' ) end [2025-01-04 17:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:47:21] Production.INFO: ==9686== Releasing lock... [2025-01-04 17:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:47:21] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:48:05 [end_date_ymd] => 2025-01-04 17:48:05 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:48:05' and `end` < '2025-01-04 17: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-04 17:48:21] Production.INFO: count ==1490 [2025-01-04 17:48:21] Production.ERROR: pbx CDR StartTime 2025-01-04 14:48:05 - End Time 2025-01-04 17:48:05 [2025-01-04 17:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174509', 'tblTempUsageDetail_20' ) start [2025-01-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174509', 'tblTempUsageDetail_20' ) end [2025-01-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174509', 'tblTempVendorCDR_20' ) start [2025-01-04 17:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174509', 'tblTempVendorCDR_20' ) end [2025-01-04 17:48:21] Production.INFO: ProcessCDR(1,14174509,1,1,2) [2025-01-04 17:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174509', 'tblTempUsageDetail_20' ) start [2025-01-04 17:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174509', 'tblTempUsageDetail_20' ) end [2025-01-04 17:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:48:24] Production.INFO: ==9771== Releasing lock... [2025-01-04 17:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:48:24] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:49:05 [end_date_ymd] => 2025-01-04 17:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:49:05' and `end` < '2025-01-04 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-04 17:49:17] Production.INFO: count ==1481 [2025-01-04 17:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:49:05 - End Time 2025-01-04 17:49:05 [2025-01-04 17:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174514', 'tblTempUsageDetail_20' ) start [2025-01-04 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174514', 'tblTempUsageDetail_20' ) end [2025-01-04 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174514', 'tblTempVendorCDR_20' ) start [2025-01-04 17:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174514', 'tblTempVendorCDR_20' ) end [2025-01-04 17:49:18] Production.INFO: ProcessCDR(1,14174514,1,1,2) [2025-01-04 17:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174514', 'tblTempUsageDetail_20' ) start [2025-01-04 17:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174514', 'tblTempUsageDetail_20' ) end [2025-01-04 17:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:49:22] Production.INFO: ==9860== Releasing lock... [2025-01-04 17:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:49:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:50:06 [end_date_ymd] => 2025-01-04 17:50:06 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:50:06' and `end` < '2025-01-04 17: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-04 17:50:19] Production.INFO: count ==1481 [2025-01-04 17:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:50:06 - End Time 2025-01-04 17:50:06 [2025-01-04 17:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174520', 'tblTempUsageDetail_20' ) start [2025-01-04 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174520', 'tblTempUsageDetail_20' ) end [2025-01-04 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174520', 'tblTempVendorCDR_20' ) start [2025-01-04 17:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174520', 'tblTempVendorCDR_20' ) end [2025-01-04 17:50:19] Production.INFO: ProcessCDR(1,14174520,1,1,2) [2025-01-04 17:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174520', 'tblTempUsageDetail_20' ) start [2025-01-04 17:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174520', 'tblTempUsageDetail_20' ) end [2025-01-04 17:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:50:22] Production.INFO: ==9949== Releasing lock... [2025-01-04 17:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:50:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:51:05 [end_date_ymd] => 2025-01-04 17:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:51:05' and `end` < '2025-01-04 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-04 17:51:18] Production.INFO: count ==1492 [2025-01-04 17:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:51:05 - End Time 2025-01-04 17:51:05 [2025-01-04 17:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174525', 'tblTempUsageDetail_20' ) start [2025-01-04 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174525', 'tblTempUsageDetail_20' ) end [2025-01-04 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174525', 'tblTempVendorCDR_20' ) start [2025-01-04 17:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174525', 'tblTempVendorCDR_20' ) end [2025-01-04 17:51:18] Production.INFO: ProcessCDR(1,14174525,1,1,2) [2025-01-04 17:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174525', 'tblTempUsageDetail_20' ) start [2025-01-04 17:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174525', 'tblTempUsageDetail_20' ) end [2025-01-04 17:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:51:23] Production.INFO: ==10075== Releasing lock... [2025-01-04 17:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:51:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:52:05 [end_date_ymd] => 2025-01-04 17:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:52:05' and `end` < '2025-01-04 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-04 17:52:18] Production.INFO: count ==1483 [2025-01-04 17:52:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:52:05 - End Time 2025-01-04 17:52:05 [2025-01-04 17:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174530', 'tblTempUsageDetail_20' ) start [2025-01-04 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174530', 'tblTempUsageDetail_20' ) end [2025-01-04 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174530', 'tblTempVendorCDR_20' ) start [2025-01-04 17:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174530', 'tblTempVendorCDR_20' ) end [2025-01-04 17:52:18] Production.INFO: ProcessCDR(1,14174530,1,1,2) [2025-01-04 17:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174530', 'tblTempUsageDetail_20' ) start [2025-01-04 17:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174530', 'tblTempUsageDetail_20' ) end [2025-01-04 17:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:52:21] Production.INFO: ==10158== Releasing lock... [2025-01-04 17:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:52:21] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:53:06 [end_date_ymd] => 2025-01-04 17:53:06 [RateCDR] => 1 ) [2025-01-04 17:53: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-04 14:53:06' and `end` < '2025-01-04 17:53: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-04 17:53:20] Production.INFO: count ==1483 [2025-01-04 17:53:20] Production.ERROR: pbx CDR StartTime 2025-01-04 14:53:06 - End Time 2025-01-04 17:53:06 [2025-01-04 17:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174535', 'tblTempUsageDetail_20' ) start [2025-01-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174535', 'tblTempUsageDetail_20' ) end [2025-01-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174535', 'tblTempVendorCDR_20' ) start [2025-01-04 17:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174535', 'tblTempVendorCDR_20' ) end [2025-01-04 17:53:20] Production.INFO: ProcessCDR(1,14174535,1,1,2) [2025-01-04 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174535', 'tblTempUsageDetail_20' ) start [2025-01-04 17:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174535', 'tblTempUsageDetail_20' ) end [2025-01-04 17:53:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:53:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:53:25] Production.INFO: ==10246== Releasing lock... [2025-01-04 17:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:53:25] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:54:05 [end_date_ymd] => 2025-01-04 17:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:54:05' and `end` < '2025-01-04 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-04 17:54:20] Production.INFO: count ==1482 [2025-01-04 17:54:20] Production.ERROR: pbx CDR StartTime 2025-01-04 14:54:05 - End Time 2025-01-04 17:54:05 [2025-01-04 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174540', 'tblTempUsageDetail_20' ) start [2025-01-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174540', 'tblTempUsageDetail_20' ) end [2025-01-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174540', 'tblTempVendorCDR_20' ) start [2025-01-04 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174540', 'tblTempVendorCDR_20' ) end [2025-01-04 17:54:20] Production.INFO: ProcessCDR(1,14174540,1,1,2) [2025-01-04 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174540', 'tblTempUsageDetail_20' ) start [2025-01-04 17:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174540', 'tblTempUsageDetail_20' ) end [2025-01-04 17:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:54:23] Production.INFO: ==10335== Releasing lock... [2025-01-04 17:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:54:23] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:55:05 [end_date_ymd] => 2025-01-04 17:55:05 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:55:05' and `end` < '2025-01-04 17: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-04 17:55:19] Production.INFO: count ==1482 [2025-01-04 17:55:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:55:05 - End Time 2025-01-04 17:55:05 [2025-01-04 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174545', 'tblTempUsageDetail_20' ) start [2025-01-04 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174545', 'tblTempUsageDetail_20' ) end [2025-01-04 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174545', 'tblTempVendorCDR_20' ) start [2025-01-04 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174545', 'tblTempVendorCDR_20' ) end [2025-01-04 17:55:19] Production.INFO: ProcessCDR(1,14174545,1,1,2) [2025-01-04 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174545', 'tblTempUsageDetail_20' ) start [2025-01-04 17:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174545', 'tblTempUsageDetail_20' ) end [2025-01-04 17:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:55:22] Production.INFO: ==10426== Releasing lock... [2025-01-04 17:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:55:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:56:05 [end_date_ymd] => 2025-01-04 17:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:56:05' and `end` < '2025-01-04 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-04 17:56:18] Production.INFO: count ==1480 [2025-01-04 17:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 14:56:05 - End Time 2025-01-04 17:56:05 [2025-01-04 17:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174550', 'tblTempUsageDetail_20' ) start [2025-01-04 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174550', 'tblTempUsageDetail_20' ) end [2025-01-04 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174550', 'tblTempVendorCDR_20' ) start [2025-01-04 17:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174550', 'tblTempVendorCDR_20' ) end [2025-01-04 17:56:19] Production.INFO: ProcessCDR(1,14174550,1,1,2) [2025-01-04 17:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174550', 'tblTempUsageDetail_20' ) start [2025-01-04 17:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174550', 'tblTempUsageDetail_20' ) end [2025-01-04 17:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:56:22] Production.INFO: ==10521== Releasing lock... [2025-01-04 17:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:56:22] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:57:05 [end_date_ymd] => 2025-01-04 17:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:57:05' and `end` < '2025-01-04 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-04 17:57:19] Production.INFO: count ==1480 [2025-01-04 17:57:20] Production.ERROR: pbx CDR StartTime 2025-01-04 14:57:05 - End Time 2025-01-04 17:57:05 [2025-01-04 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174555', 'tblTempUsageDetail_20' ) start [2025-01-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174555', 'tblTempUsageDetail_20' ) end [2025-01-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174555', 'tblTempVendorCDR_20' ) start [2025-01-04 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174555', 'tblTempVendorCDR_20' ) end [2025-01-04 17:57:20] Production.INFO: ProcessCDR(1,14174555,1,1,2) [2025-01-04 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174555', 'tblTempUsageDetail_20' ) start [2025-01-04 17:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174555', 'tblTempUsageDetail_20' ) end [2025-01-04 17:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:57:23] Production.INFO: ==10612== Releasing lock... [2025-01-04 17:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:57:23] Production.INFO: 39.25 MB #Memory Used# [2025-01-04 17:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:58:04 [end_date_ymd] => 2025-01-04 17:58:04 [RateCDR] => 1 ) [2025-01-04 17: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-04 14:58:04' and `end` < '2025-01-04 17: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-04 17:58:18] Production.INFO: count ==1478 [2025-01-04 17:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:58:04 - End Time 2025-01-04 17:58:04 [2025-01-04 17:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174560', 'tblTempUsageDetail_20' ) start [2025-01-04 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174560', 'tblTempUsageDetail_20' ) end [2025-01-04 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174560', 'tblTempVendorCDR_20' ) start [2025-01-04 17:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174560', 'tblTempVendorCDR_20' ) end [2025-01-04 17:58:19] Production.INFO: ProcessCDR(1,14174560,1,1,2) [2025-01-04 17:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174560', 'tblTempUsageDetail_20' ) start [2025-01-04 17:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174560', 'tblTempUsageDetail_20' ) end [2025-01-04 17:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:58:22] Production.INFO: ==10699== Releasing lock... [2025-01-04 17:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:58:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 14:59:05 [end_date_ymd] => 2025-01-04 17:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 14:59:05' and `end` < '2025-01-04 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-04 17:59:18] Production.INFO: count ==1479 [2025-01-04 17:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 14:59:05 - End Time 2025-01-04 17:59:05 [2025-01-04 17:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174565', 'tblTempUsageDetail_20' ) start [2025-01-04 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174565', 'tblTempUsageDetail_20' ) end [2025-01-04 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174565', 'tblTempVendorCDR_20' ) start [2025-01-04 17:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174565', 'tblTempVendorCDR_20' ) end [2025-01-04 17:59:18] Production.INFO: ProcessCDR(1,14174565,1,1,2) [2025-01-04 17:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 17:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174565', 'tblTempUsageDetail_20' ) start [2025-01-04 17:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174565', 'tblTempUsageDetail_20' ) end [2025-01-04 17:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 17:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 17:59:22] Production.INFO: ==10797== Releasing lock... [2025-01-04 17:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 17:59:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 18:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:00:05 [end_date_ymd] => 2025-01-04 18:00:05 [RateCDR] => 1 ) [2025-01-04 18:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 15:00:05' and `end` < '2025-01-04 18:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 18:00:18] Production.INFO: count ==1477 [2025-01-04 18:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:00:05 - End Time 2025-01-04 18:00:05 [2025-01-04 18:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174569', 'tblTempUsageDetail_20' ) start [2025-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174569', 'tblTempUsageDetail_20' ) end [2025-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174569', 'tblTempVendorCDR_20' ) start [2025-01-04 18:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174569', 'tblTempVendorCDR_20' ) end [2025-01-04 18:00:18] Production.INFO: ProcessCDR(1,14174569,1,1,2) [2025-01-04 18:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174569', 'tblTempUsageDetail_20' ) start [2025-01-04 18:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174569', 'tblTempUsageDetail_20' ) end [2025-01-04 18:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:00:21] Production.INFO: ==10892== Releasing lock... [2025-01-04 18:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:00:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 18:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:01:05 [end_date_ymd] => 2025-01-04 18:01:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:01:05' and `end` < '2025-01-04 18: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-04 18:01:19] Production.INFO: count ==1496 [2025-01-04 18:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:01:05 - End Time 2025-01-04 18:01:05 [2025-01-04 18:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174576', 'tblTempUsageDetail_20' ) start [2025-01-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174576', 'tblTempUsageDetail_20' ) end [2025-01-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174576', 'tblTempVendorCDR_20' ) start [2025-01-04 18:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174576', 'tblTempVendorCDR_20' ) end [2025-01-04 18:01:19] Production.INFO: ProcessCDR(1,14174576,1,1,2) [2025-01-04 18:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174576', 'tblTempUsageDetail_20' ) start [2025-01-04 18:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174576', 'tblTempUsageDetail_20' ) end [2025-01-04 18:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:01:22] Production.INFO: ==11001== Releasing lock... [2025-01-04 18:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:01:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 18:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:02:04 [end_date_ymd] => 2025-01-04 18:02:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:02:04' and `end` < '2025-01-04 18: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-04 18:02:18] Production.INFO: count ==1496 [2025-01-04 18:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:02:04 - End Time 2025-01-04 18:02:04 [2025-01-04 18:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174581', 'tblTempUsageDetail_20' ) start [2025-01-04 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174581', 'tblTempUsageDetail_20' ) end [2025-01-04 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174581', 'tblTempVendorCDR_20' ) start [2025-01-04 18:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174581', 'tblTempVendorCDR_20' ) end [2025-01-04 18:02:18] Production.INFO: ProcessCDR(1,14174581,1,1,2) [2025-01-04 18:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174581', 'tblTempUsageDetail_20' ) start [2025-01-04 18:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174581', 'tblTempUsageDetail_20' ) end [2025-01-04 18:02:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:02:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:02:22] Production.INFO: ==11093== Releasing lock... [2025-01-04 18:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:02:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:03:05 [end_date_ymd] => 2025-01-04 18:03:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:03:05' and `end` < '2025-01-04 18: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-04 18:03:19] Production.INFO: count ==1494 [2025-01-04 18:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:03:05 - End Time 2025-01-04 18:03:05 [2025-01-04 18:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174586', 'tblTempUsageDetail_20' ) start [2025-01-04 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174586', 'tblTempUsageDetail_20' ) end [2025-01-04 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174586', 'tblTempVendorCDR_20' ) start [2025-01-04 18:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174586', 'tblTempVendorCDR_20' ) end [2025-01-04 18:03:19] Production.INFO: ProcessCDR(1,14174586,1,1,2) [2025-01-04 18:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174586', 'tblTempUsageDetail_20' ) start [2025-01-04 18:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174586', 'tblTempUsageDetail_20' ) end [2025-01-04 18:03:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:03:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:03:24] Production.INFO: ==11186== Releasing lock... [2025-01-04 18:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:03:24] Production.INFO: 39 MB #Memory Used# [2025-01-04 18:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:04:04 [end_date_ymd] => 2025-01-04 18:04:04 [RateCDR] => 1 ) [2025-01-04 18:04: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-04 15:04:04' and `end` < '2025-01-04 18:04: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-04 18:04:17] Production.INFO: count ==1494 [2025-01-04 18:04:17] Production.ERROR: pbx CDR StartTime 2025-01-04 15:04:04 - End Time 2025-01-04 18:04:04 [2025-01-04 18:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174591', 'tblTempUsageDetail_20' ) start [2025-01-04 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174591', 'tblTempUsageDetail_20' ) end [2025-01-04 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174591', 'tblTempVendorCDR_20' ) start [2025-01-04 18:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174591', 'tblTempVendorCDR_20' ) end [2025-01-04 18:04:17] Production.INFO: ProcessCDR(1,14174591,1,1,2) [2025-01-04 18:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174591', 'tblTempUsageDetail_20' ) start [2025-01-04 18:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174591', 'tblTempUsageDetail_20' ) end [2025-01-04 18:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:04:21] Production.INFO: ==11272== Releasing lock... [2025-01-04 18:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:04:21] Production.INFO: 39 MB #Memory Used# [2025-01-04 18:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:05:05 [end_date_ymd] => 2025-01-04 18:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:05:05' and `end` < '2025-01-04 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-04 18:05:19] Production.INFO: count ==1486 [2025-01-04 18:05:20] Production.ERROR: pbx CDR StartTime 2025-01-04 15:05:05 - End Time 2025-01-04 18:05:05 [2025-01-04 18:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174596', 'tblTempUsageDetail_20' ) start [2025-01-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174596', 'tblTempUsageDetail_20' ) end [2025-01-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174596', 'tblTempVendorCDR_20' ) start [2025-01-04 18:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174596', 'tblTempVendorCDR_20' ) end [2025-01-04 18:05:20] Production.INFO: ProcessCDR(1,14174596,1,1,2) [2025-01-04 18:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174596', 'tblTempUsageDetail_20' ) start [2025-01-04 18:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174596', 'tblTempUsageDetail_20' ) end [2025-01-04 18:05:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:05:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:05:23] Production.INFO: ==11360== Releasing lock... [2025-01-04 18:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:05:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:06:05 [end_date_ymd] => 2025-01-04 18:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:06:05' and `end` < '2025-01-04 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-04 18:06:19] Production.INFO: count ==1486 [2025-01-04 18:06:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:06:05 - End Time 2025-01-04 18:06:05 [2025-01-04 18:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174601', 'tblTempUsageDetail_20' ) start [2025-01-04 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174601', 'tblTempUsageDetail_20' ) end [2025-01-04 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174601', 'tblTempVendorCDR_20' ) start [2025-01-04 18:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174601', 'tblTempVendorCDR_20' ) end [2025-01-04 18:06:19] Production.INFO: ProcessCDR(1,14174601,1,1,2) [2025-01-04 18:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174601', 'tblTempUsageDetail_20' ) start [2025-01-04 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174601', 'tblTempUsageDetail_20' ) end [2025-01-04 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:06:23] Production.INFO: ==11445== Releasing lock... [2025-01-04 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:06:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:07:05 [end_date_ymd] => 2025-01-04 18:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:07:05' and `end` < '2025-01-04 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-04 18:07:18] Production.INFO: count ==1478 [2025-01-04 18:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:07:05 - End Time 2025-01-04 18:07:05 [2025-01-04 18:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174606', 'tblTempUsageDetail_20' ) start [2025-01-04 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174606', 'tblTempUsageDetail_20' ) end [2025-01-04 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174606', 'tblTempVendorCDR_20' ) start [2025-01-04 18:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174606', 'tblTempVendorCDR_20' ) end [2025-01-04 18:07:19] Production.INFO: ProcessCDR(1,14174606,1,1,2) [2025-01-04 18:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174606', 'tblTempUsageDetail_20' ) start [2025-01-04 18:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174606', 'tblTempUsageDetail_20' ) end [2025-01-04 18:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:07:22] Production.INFO: ==11572== Releasing lock... [2025-01-04 18:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:08:05 [end_date_ymd] => 2025-01-04 18:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:08:05' and `end` < '2025-01-04 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-04 18:08:19] Production.INFO: count ==1451 [2025-01-04 18:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:08:05 - End Time 2025-01-04 18:08:05 [2025-01-04 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174611', 'tblTempUsageDetail_20' ) start [2025-01-04 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174611', 'tblTempUsageDetail_20' ) end [2025-01-04 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174611', 'tblTempVendorCDR_20' ) start [2025-01-04 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174611', 'tblTempVendorCDR_20' ) end [2025-01-04 18:08:19] Production.INFO: ProcessCDR(1,14174611,1,1,2) [2025-01-04 18:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174611', 'tblTempUsageDetail_20' ) start [2025-01-04 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174611', 'tblTempUsageDetail_20' ) end [2025-01-04 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:08:24] Production.INFO: ==11656== Releasing lock... [2025-01-04 18:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:08:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:09:05 [end_date_ymd] => 2025-01-04 18:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:09:05' and `end` < '2025-01-04 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-04 18:09:18] Production.INFO: count ==1444 [2025-01-04 18:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:09:05 - End Time 2025-01-04 18:09:05 [2025-01-04 18:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174616', 'tblTempUsageDetail_20' ) start [2025-01-04 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174616', 'tblTempUsageDetail_20' ) end [2025-01-04 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174616', 'tblTempVendorCDR_20' ) start [2025-01-04 18:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174616', 'tblTempVendorCDR_20' ) end [2025-01-04 18:09:19] Production.INFO: ProcessCDR(1,14174616,1,1,2) [2025-01-04 18:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174616', 'tblTempUsageDetail_20' ) start [2025-01-04 18:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174616', 'tblTempUsageDetail_20' ) end [2025-01-04 18:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:09:23] Production.INFO: ==11739== Releasing lock... [2025-01-04 18:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:09:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:10:06 [end_date_ymd] => 2025-01-04 18:10:06 [RateCDR] => 1 ) [2025-01-04 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-04 15:10:06' and `end` < '2025-01-04 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-04 18:10:19] Production.INFO: count ==1447 [2025-01-04 18:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:10:06 - End Time 2025-01-04 18:10:06 [2025-01-04 18:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174622', 'tblTempUsageDetail_20' ) start [2025-01-04 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174622', 'tblTempUsageDetail_20' ) end [2025-01-04 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174622', 'tblTempVendorCDR_20' ) start [2025-01-04 18:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174622', 'tblTempVendorCDR_20' ) end [2025-01-04 18:10:19] Production.INFO: ProcessCDR(1,14174622,1,1,2) [2025-01-04 18:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174622', 'tblTempUsageDetail_20' ) start [2025-01-04 18:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174622', 'tblTempUsageDetail_20' ) end [2025-01-04 18:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:10:22] Production.INFO: ==11828== Releasing lock... [2025-01-04 18:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:10:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:11:05 [end_date_ymd] => 2025-01-04 18:11:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:11:05' and `end` < '2025-01-04 18: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-04 18:11:18] Production.INFO: count ==1435 [2025-01-04 18:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:11:05 - End Time 2025-01-04 18:11:05 [2025-01-04 18:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174627', 'tblTempUsageDetail_20' ) start [2025-01-04 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174627', 'tblTempUsageDetail_20' ) end [2025-01-04 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174627', 'tblTempVendorCDR_20' ) start [2025-01-04 18:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174627', 'tblTempVendorCDR_20' ) end [2025-01-04 18:11:18] Production.INFO: ProcessCDR(1,14174627,1,1,2) [2025-01-04 18:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174627', 'tblTempUsageDetail_20' ) start [2025-01-04 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174627', 'tblTempUsageDetail_20' ) end [2025-01-04 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:11:23] Production.INFO: ==11910== Releasing lock... [2025-01-04 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:11:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:12:05 [end_date_ymd] => 2025-01-04 18:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:12:05' and `end` < '2025-01-04 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-04 18:12:18] Production.INFO: count ==1428 [2025-01-04 18:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:12:05 - End Time 2025-01-04 18:12:05 [2025-01-04 18:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174632', 'tblTempUsageDetail_20' ) start [2025-01-04 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174632', 'tblTempUsageDetail_20' ) end [2025-01-04 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174632', 'tblTempVendorCDR_20' ) start [2025-01-04 18:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174632', 'tblTempVendorCDR_20' ) end [2025-01-04 18:12:18] Production.INFO: ProcessCDR(1,14174632,1,1,2) [2025-01-04 18:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174632', 'tblTempUsageDetail_20' ) start [2025-01-04 18:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174632', 'tblTempUsageDetail_20' ) end [2025-01-04 18:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:12:23] Production.INFO: ==12000== Releasing lock... [2025-01-04 18:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:12:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:13:05 [end_date_ymd] => 2025-01-04 18:13:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:13:05' and `end` < '2025-01-04 18: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-04 18:13:18] Production.INFO: count ==1419 [2025-01-04 18:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:13:05 - End Time 2025-01-04 18:13:05 [2025-01-04 18:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174637', 'tblTempUsageDetail_20' ) start [2025-01-04 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174637', 'tblTempUsageDetail_20' ) end [2025-01-04 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174637', 'tblTempVendorCDR_20' ) start [2025-01-04 18:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174637', 'tblTempVendorCDR_20' ) end [2025-01-04 18:13:18] Production.INFO: ProcessCDR(1,14174637,1,1,2) [2025-01-04 18:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174637', 'tblTempUsageDetail_20' ) start [2025-01-04 18:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174637', 'tblTempUsageDetail_20' ) end [2025-01-04 18:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:13:22] Production.INFO: ==12082== Releasing lock... [2025-01-04 18:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:13:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:14:05 [end_date_ymd] => 2025-01-04 18:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:14:05' and `end` < '2025-01-04 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-04 18:14:18] Production.INFO: count ==1415 [2025-01-04 18:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:14:05 - End Time 2025-01-04 18:14:05 [2025-01-04 18:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174642', 'tblTempUsageDetail_20' ) start [2025-01-04 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174642', 'tblTempUsageDetail_20' ) end [2025-01-04 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174642', 'tblTempVendorCDR_20' ) start [2025-01-04 18:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174642', 'tblTempVendorCDR_20' ) end [2025-01-04 18:14:18] Production.INFO: ProcessCDR(1,14174642,1,1,2) [2025-01-04 18:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174642', 'tblTempUsageDetail_20' ) start [2025-01-04 18:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174642', 'tblTempUsageDetail_20' ) end [2025-01-04 18:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:14:21] Production.INFO: ==12168== Releasing lock... [2025-01-04 18:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:14:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:15:04 [end_date_ymd] => 2025-01-04 18:15:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:15:04' and `end` < '2025-01-04 18: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-04 18:15:17] Production.INFO: count ==1412 [2025-01-04 18:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:15:04 - End Time 2025-01-04 18:15:04 [2025-01-04 18:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174647', 'tblTempUsageDetail_20' ) start [2025-01-04 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174647', 'tblTempUsageDetail_20' ) end [2025-01-04 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174647', 'tblTempVendorCDR_20' ) start [2025-01-04 18:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174647', 'tblTempVendorCDR_20' ) end [2025-01-04 18:15:18] Production.INFO: ProcessCDR(1,14174647,1,1,2) [2025-01-04 18:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174647', 'tblTempUsageDetail_20' ) start [2025-01-04 18:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174647', 'tblTempUsageDetail_20' ) end [2025-01-04 18:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:15:22] Production.INFO: ==12254== Releasing lock... [2025-01-04 18:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:15:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:16:05 [end_date_ymd] => 2025-01-04 18:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:16:05' and `end` < '2025-01-04 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-04 18:16:18] Production.INFO: count ==1411 [2025-01-04 18:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:16:05 - End Time 2025-01-04 18:16:05 [2025-01-04 18:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174652', 'tblTempUsageDetail_20' ) start [2025-01-04 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174652', 'tblTempUsageDetail_20' ) end [2025-01-04 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174652', 'tblTempVendorCDR_20' ) start [2025-01-04 18:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174652', 'tblTempVendorCDR_20' ) end [2025-01-04 18:16:18] Production.INFO: ProcessCDR(1,14174652,1,1,2) [2025-01-04 18:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174652', 'tblTempUsageDetail_20' ) start [2025-01-04 18:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174652', 'tblTempUsageDetail_20' ) end [2025-01-04 18:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:16:22] Production.INFO: ==12337== Releasing lock... [2025-01-04 18:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:16:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:17:05 [end_date_ymd] => 2025-01-04 18:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:17:05' and `end` < '2025-01-04 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-04 18:17:19] Production.INFO: count ==1411 [2025-01-04 18:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:17:05 - End Time 2025-01-04 18:17:05 [2025-01-04 18:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174657', 'tblTempUsageDetail_20' ) start [2025-01-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174657', 'tblTempUsageDetail_20' ) end [2025-01-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174657', 'tblTempVendorCDR_20' ) start [2025-01-04 18:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174657', 'tblTempVendorCDR_20' ) end [2025-01-04 18:17:19] Production.INFO: ProcessCDR(1,14174657,1,1,2) [2025-01-04 18:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174657', 'tblTempUsageDetail_20' ) start [2025-01-04 18:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174657', 'tblTempUsageDetail_20' ) end [2025-01-04 18:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:17:22] Production.INFO: ==12420== Releasing lock... [2025-01-04 18:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:17:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:18:05 [end_date_ymd] => 2025-01-04 18:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:18:05' and `end` < '2025-01-04 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-04 18:18:18] Production.INFO: count ==1410 [2025-01-04 18:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:18:05 - End Time 2025-01-04 18:18:05 [2025-01-04 18:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174662', 'tblTempUsageDetail_20' ) start [2025-01-04 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174662', 'tblTempUsageDetail_20' ) end [2025-01-04 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174662', 'tblTempVendorCDR_20' ) start [2025-01-04 18:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174662', 'tblTempVendorCDR_20' ) end [2025-01-04 18:18:18] Production.INFO: ProcessCDR(1,14174662,1,1,2) [2025-01-04 18:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174662', 'tblTempUsageDetail_20' ) start [2025-01-04 18:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174662', 'tblTempUsageDetail_20' ) end [2025-01-04 18:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:18:21] Production.INFO: ==12506== Releasing lock... [2025-01-04 18:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:18:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:19:05 [end_date_ymd] => 2025-01-04 18:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:19:05' and `end` < '2025-01-04 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-04 18:19:18] Production.INFO: count ==1410 [2025-01-04 18:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:19:05 - End Time 2025-01-04 18:19:05 [2025-01-04 18:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174667', 'tblTempUsageDetail_20' ) start [2025-01-04 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174667', 'tblTempUsageDetail_20' ) end [2025-01-04 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174667', 'tblTempVendorCDR_20' ) start [2025-01-04 18:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174667', 'tblTempVendorCDR_20' ) end [2025-01-04 18:19:18] Production.INFO: ProcessCDR(1,14174667,1,1,2) [2025-01-04 18:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174667', 'tblTempUsageDetail_20' ) start [2025-01-04 18:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174667', 'tblTempUsageDetail_20' ) end [2025-01-04 18:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:19:21] Production.INFO: ==12594== Releasing lock... [2025-01-04 18:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:19:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:20:06 [end_date_ymd] => 2025-01-04 18:20:06 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:20:06' and `end` < '2025-01-04 18: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-04 18:20:18] Production.INFO: count ==1409 [2025-01-04 18:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:20:06 - End Time 2025-01-04 18:20:06 [2025-01-04 18:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174673', 'tblTempUsageDetail_20' ) start [2025-01-04 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174673', 'tblTempUsageDetail_20' ) end [2025-01-04 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174673', 'tblTempVendorCDR_20' ) start [2025-01-04 18:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174673', 'tblTempVendorCDR_20' ) end [2025-01-04 18:20:19] Production.INFO: ProcessCDR(1,14174673,1,1,2) [2025-01-04 18:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174673', 'tblTempUsageDetail_20' ) start [2025-01-04 18:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174673', 'tblTempUsageDetail_20' ) end [2025-01-04 18:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:20:22] Production.INFO: ==12684== Releasing lock... [2025-01-04 18:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:20:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:21:05 [end_date_ymd] => 2025-01-04 18:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:21:05' and `end` < '2025-01-04 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-04 18:21:18] Production.INFO: count ==1434 [2025-01-04 18:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:21:05 - End Time 2025-01-04 18:21:05 [2025-01-04 18:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174678', 'tblTempUsageDetail_20' ) start [2025-01-04 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174678', 'tblTempUsageDetail_20' ) end [2025-01-04 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174678', 'tblTempVendorCDR_20' ) start [2025-01-04 18:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174678', 'tblTempVendorCDR_20' ) end [2025-01-04 18:21:18] Production.INFO: ProcessCDR(1,14174678,1,1,2) [2025-01-04 18:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174678', 'tblTempUsageDetail_20' ) start [2025-01-04 18:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174678', 'tblTempUsageDetail_20' ) end [2025-01-04 18:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:21:22] Production.INFO: ==12770== Releasing lock... [2025-01-04 18:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:21:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:22:05 [end_date_ymd] => 2025-01-04 18:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:22:05' and `end` < '2025-01-04 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-04 18:22:19] Production.INFO: count ==1434 [2025-01-04 18:22:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:22:05 - End Time 2025-01-04 18:22:05 [2025-01-04 18:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174683', 'tblTempUsageDetail_20' ) start [2025-01-04 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174683', 'tblTempUsageDetail_20' ) end [2025-01-04 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174683', 'tblTempVendorCDR_20' ) start [2025-01-04 18:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174683', 'tblTempVendorCDR_20' ) end [2025-01-04 18:22:19] Production.INFO: ProcessCDR(1,14174683,1,1,2) [2025-01-04 18:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174683', 'tblTempUsageDetail_20' ) start [2025-01-04 18:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174683', 'tblTempUsageDetail_20' ) end [2025-01-04 18:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:22:22] Production.INFO: ==12899== Releasing lock... [2025-01-04 18:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:22:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:23:05 [end_date_ymd] => 2025-01-04 18:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:23:05' and `end` < '2025-01-04 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-04 18:23:18] Production.INFO: count ==1434 [2025-01-04 18:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:23:05 - End Time 2025-01-04 18:23:05 [2025-01-04 18:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174688', 'tblTempUsageDetail_20' ) start [2025-01-04 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174688', 'tblTempUsageDetail_20' ) end [2025-01-04 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174688', 'tblTempVendorCDR_20' ) start [2025-01-04 18:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174688', 'tblTempVendorCDR_20' ) end [2025-01-04 18:23:18] Production.INFO: ProcessCDR(1,14174688,1,1,2) [2025-01-04 18:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174688', 'tblTempUsageDetail_20' ) start [2025-01-04 18:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174688', 'tblTempUsageDetail_20' ) end [2025-01-04 18:23:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:23:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:23:21] Production.INFO: ==12974== Releasing lock... [2025-01-04 18:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:23:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:24:05 [end_date_ymd] => 2025-01-04 18:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:24:05' and `end` < '2025-01-04 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-04 18:24:18] Production.INFO: count ==1438 [2025-01-04 18:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:24:05 - End Time 2025-01-04 18:24:05 [2025-01-04 18:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174693', 'tblTempUsageDetail_20' ) start [2025-01-04 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174693', 'tblTempUsageDetail_20' ) end [2025-01-04 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174693', 'tblTempVendorCDR_20' ) start [2025-01-04 18:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174693', 'tblTempVendorCDR_20' ) end [2025-01-04 18:24:19] Production.INFO: ProcessCDR(1,14174693,1,1,2) [2025-01-04 18:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174693', 'tblTempUsageDetail_20' ) start [2025-01-04 18:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174693', 'tblTempUsageDetail_20' ) end [2025-01-04 18:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:24:22] Production.INFO: ==13049== Releasing lock... [2025-01-04 18:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:24:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:25:05 [end_date_ymd] => 2025-01-04 18:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:25:05' and `end` < '2025-01-04 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-04 18:25:18] Production.INFO: count ==1440 [2025-01-04 18:25:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:25:05 - End Time 2025-01-04 18:25:05 [2025-01-04 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174698', 'tblTempUsageDetail_20' ) start [2025-01-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174698', 'tblTempUsageDetail_20' ) end [2025-01-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174698', 'tblTempVendorCDR_20' ) start [2025-01-04 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174698', 'tblTempVendorCDR_20' ) end [2025-01-04 18:25:19] Production.INFO: ProcessCDR(1,14174698,1,1,2) [2025-01-04 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174698', 'tblTempUsageDetail_20' ) start [2025-01-04 18:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174698', 'tblTempUsageDetail_20' ) end [2025-01-04 18:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:25:23] Production.INFO: ==13129== Releasing lock... [2025-01-04 18:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:25:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:26:05 [end_date_ymd] => 2025-01-04 18:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:26:05' and `end` < '2025-01-04 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-04 18:26:18] Production.INFO: count ==1439 [2025-01-04 18:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:26:05 - End Time 2025-01-04 18:26:05 [2025-01-04 18:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174703', 'tblTempUsageDetail_20' ) start [2025-01-04 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174703', 'tblTempUsageDetail_20' ) end [2025-01-04 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174703', 'tblTempVendorCDR_20' ) start [2025-01-04 18:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174703', 'tblTempVendorCDR_20' ) end [2025-01-04 18:26:18] Production.INFO: ProcessCDR(1,14174703,1,1,2) [2025-01-04 18:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174703', 'tblTempUsageDetail_20' ) start [2025-01-04 18:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174703', 'tblTempUsageDetail_20' ) end [2025-01-04 18:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:26:22] Production.INFO: ==13210== Releasing lock... [2025-01-04 18:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:27:05 [end_date_ymd] => 2025-01-04 18:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:27:05' and `end` < '2025-01-04 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-04 18:27:20] Production.INFO: count ==1437 [2025-01-04 18:27:20] Production.ERROR: pbx CDR StartTime 2025-01-04 15:27:05 - End Time 2025-01-04 18:27:05 [2025-01-04 18:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174708', 'tblTempUsageDetail_20' ) start [2025-01-04 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174708', 'tblTempUsageDetail_20' ) end [2025-01-04 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174708', 'tblTempVendorCDR_20' ) start [2025-01-04 18:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174708', 'tblTempVendorCDR_20' ) end [2025-01-04 18:27:20] Production.INFO: ProcessCDR(1,14174708,1,1,2) [2025-01-04 18:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174708', 'tblTempUsageDetail_20' ) start [2025-01-04 18:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174708', 'tblTempUsageDetail_20' ) end [2025-01-04 18:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:27:23] Production.INFO: ==13289== Releasing lock... [2025-01-04 18:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:28:05 [end_date_ymd] => 2025-01-04 18:28:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:28:05' and `end` < '2025-01-04 18: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-04 18:28:18] Production.INFO: count ==1439 [2025-01-04 18:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:28:05 - End Time 2025-01-04 18:28:05 [2025-01-04 18:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174713', 'tblTempUsageDetail_20' ) start [2025-01-04 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174713', 'tblTempUsageDetail_20' ) end [2025-01-04 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174713', 'tblTempVendorCDR_20' ) start [2025-01-04 18:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174713', 'tblTempVendorCDR_20' ) end [2025-01-04 18:28:18] Production.INFO: ProcessCDR(1,14174713,1,1,2) [2025-01-04 18:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174713', 'tblTempUsageDetail_20' ) start [2025-01-04 18:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174713', 'tblTempUsageDetail_20' ) end [2025-01-04 18:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:28:23] Production.INFO: ==13373== Releasing lock... [2025-01-04 18:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:28:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:29:05 [end_date_ymd] => 2025-01-04 18:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:29:05' and `end` < '2025-01-04 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-04 18:29:18] Production.INFO: count ==1435 [2025-01-04 18:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:29:05 - End Time 2025-01-04 18:29:05 [2025-01-04 18:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174718', 'tblTempUsageDetail_20' ) start [2025-01-04 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174718', 'tblTempUsageDetail_20' ) end [2025-01-04 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174718', 'tblTempVendorCDR_20' ) start [2025-01-04 18:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174718', 'tblTempVendorCDR_20' ) end [2025-01-04 18:29:18] Production.INFO: ProcessCDR(1,14174718,1,1,2) [2025-01-04 18:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174718', 'tblTempUsageDetail_20' ) start [2025-01-04 18:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174718', 'tblTempUsageDetail_20' ) end [2025-01-04 18:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:29:21] Production.INFO: ==13455== Releasing lock... [2025-01-04 18:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:29:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:30:06 [end_date_ymd] => 2025-01-04 18:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 15:30:06' and `end` < '2025-01-04 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-04 18:30:18] Production.INFO: count ==1427 [2025-01-04 18:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:30:06 - End Time 2025-01-04 18:30:06 [2025-01-04 18:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174724', 'tblTempUsageDetail_20' ) start [2025-01-04 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174724', 'tblTempUsageDetail_20' ) end [2025-01-04 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174724', 'tblTempVendorCDR_20' ) start [2025-01-04 18:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174724', 'tblTempVendorCDR_20' ) end [2025-01-04 18:30:19] Production.INFO: ProcessCDR(1,14174724,1,1,2) [2025-01-04 18:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174724', 'tblTempUsageDetail_20' ) start [2025-01-04 18:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174724', 'tblTempUsageDetail_20' ) end [2025-01-04 18:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:30:22] Production.INFO: ==13540== Releasing lock... [2025-01-04 18:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:31:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:31:04 [end_date_ymd] => 2025-01-04 18:31:04 [RateCDR] => 1 ) [2025-01-04 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-04 15:31:04' and `end` < '2025-01-04 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-04 18:31:17] Production.INFO: count ==1409 [2025-01-04 18:31:17] Production.ERROR: pbx CDR StartTime 2025-01-04 15:31:04 - End Time 2025-01-04 18:31:04 [2025-01-04 18:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174729', 'tblTempUsageDetail_20' ) start [2025-01-04 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174729', 'tblTempUsageDetail_20' ) end [2025-01-04 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174729', 'tblTempVendorCDR_20' ) start [2025-01-04 18:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174729', 'tblTempVendorCDR_20' ) end [2025-01-04 18:31:17] Production.INFO: ProcessCDR(1,14174729,1,1,2) [2025-01-04 18:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174729', 'tblTempUsageDetail_20' ) start [2025-01-04 18:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174729', 'tblTempUsageDetail_20' ) end [2025-01-04 18:31:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:31:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:31:20] Production.INFO: ==13622== Releasing lock... [2025-01-04 18:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:31:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:32:05 [end_date_ymd] => 2025-01-04 18:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:32:05' and `end` < '2025-01-04 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-04 18:32:18] Production.INFO: count ==1400 [2025-01-04 18:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:32:05 - End Time 2025-01-04 18:32:05 [2025-01-04 18:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174734', 'tblTempUsageDetail_20' ) start [2025-01-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174734', 'tblTempUsageDetail_20' ) end [2025-01-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174734', 'tblTempVendorCDR_20' ) start [2025-01-04 18:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174734', 'tblTempVendorCDR_20' ) end [2025-01-04 18:32:19] Production.INFO: ProcessCDR(1,14174734,1,1,2) [2025-01-04 18:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174734', 'tblTempUsageDetail_20' ) start [2025-01-04 18:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174734', 'tblTempUsageDetail_20' ) end [2025-01-04 18:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:32:22] Production.INFO: ==13704== Releasing lock... [2025-01-04 18:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:32:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:33:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:33:04 [end_date_ymd] => 2025-01-04 18:33:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:33:04' and `end` < '2025-01-04 18: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-04 18:33:18] Production.INFO: count ==1399 [2025-01-04 18:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:33:04 - End Time 2025-01-04 18:33:04 [2025-01-04 18:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174739', 'tblTempUsageDetail_20' ) start [2025-01-04 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174739', 'tblTempUsageDetail_20' ) end [2025-01-04 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174739', 'tblTempVendorCDR_20' ) start [2025-01-04 18:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174739', 'tblTempVendorCDR_20' ) end [2025-01-04 18:33:18] Production.INFO: ProcessCDR(1,14174739,1,1,2) [2025-01-04 18:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174739', 'tblTempUsageDetail_20' ) start [2025-01-04 18:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174739', 'tblTempUsageDetail_20' ) end [2025-01-04 18:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:33:21] Production.INFO: ==13784== Releasing lock... [2025-01-04 18:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:33:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:34:05 [end_date_ymd] => 2025-01-04 18:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:34:05' and `end` < '2025-01-04 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-04 18:34:18] Production.INFO: count ==1402 [2025-01-04 18:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:34:05 - End Time 2025-01-04 18:34:05 [2025-01-04 18:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174744', 'tblTempUsageDetail_20' ) start [2025-01-04 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174744', 'tblTempUsageDetail_20' ) end [2025-01-04 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174744', 'tblTempVendorCDR_20' ) start [2025-01-04 18:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174744', 'tblTempVendorCDR_20' ) end [2025-01-04 18:34:18] Production.INFO: ProcessCDR(1,14174744,1,1,2) [2025-01-04 18:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174744', 'tblTempUsageDetail_20' ) start [2025-01-04 18:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174744', 'tblTempUsageDetail_20' ) end [2025-01-04 18:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:34:21] Production.INFO: ==13865== Releasing lock... [2025-01-04 18:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:34:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:35:05 [end_date_ymd] => 2025-01-04 18:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:35:05' and `end` < '2025-01-04 18: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-04 18:35:18] Production.INFO: count ==1401 [2025-01-04 18:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:35:05 - End Time 2025-01-04 18:35:05 [2025-01-04 18:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174749', 'tblTempUsageDetail_20' ) start [2025-01-04 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174749', 'tblTempUsageDetail_20' ) end [2025-01-04 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174749', 'tblTempVendorCDR_20' ) start [2025-01-04 18:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174749', 'tblTempVendorCDR_20' ) end [2025-01-04 18:35:18] Production.INFO: ProcessCDR(1,14174749,1,1,2) [2025-01-04 18:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174749', 'tblTempUsageDetail_20' ) start [2025-01-04 18:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174749', 'tblTempUsageDetail_20' ) end [2025-01-04 18:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:35:22] Production.INFO: ==13952== Releasing lock... [2025-01-04 18:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:35:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:36:05 [end_date_ymd] => 2025-01-04 18:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:36:05' and `end` < '2025-01-04 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-04 18:36:18] Production.INFO: count ==1401 [2025-01-04 18:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:36:05 - End Time 2025-01-04 18:36:05 [2025-01-04 18:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174754', 'tblTempUsageDetail_20' ) start [2025-01-04 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174754', 'tblTempUsageDetail_20' ) end [2025-01-04 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174754', 'tblTempVendorCDR_20' ) start [2025-01-04 18:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174754', 'tblTempVendorCDR_20' ) end [2025-01-04 18:36:18] Production.INFO: ProcessCDR(1,14174754,1,1,2) [2025-01-04 18:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174754', 'tblTempUsageDetail_20' ) start [2025-01-04 18:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174754', 'tblTempUsageDetail_20' ) end [2025-01-04 18:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:36:21] Production.INFO: ==14028== Releasing lock... [2025-01-04 18:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:36:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:37:05 [end_date_ymd] => 2025-01-04 18:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:37:05' and `end` < '2025-01-04 18: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-04 18:37:19] Production.INFO: count ==1404 [2025-01-04 18:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:37:05 - End Time 2025-01-04 18:37:05 [2025-01-04 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174759', 'tblTempUsageDetail_20' ) start [2025-01-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174759', 'tblTempUsageDetail_20' ) end [2025-01-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174759', 'tblTempVendorCDR_20' ) start [2025-01-04 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174759', 'tblTempVendorCDR_20' ) end [2025-01-04 18:37:19] Production.INFO: ProcessCDR(1,14174759,1,1,2) [2025-01-04 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174759', 'tblTempUsageDetail_20' ) start [2025-01-04 18:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174759', 'tblTempUsageDetail_20' ) end [2025-01-04 18:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:37:22] Production.INFO: ==14111== Releasing lock... [2025-01-04 18:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:37:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 18:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:38:04 [end_date_ymd] => 2025-01-04 18:38:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:38:04' and `end` < '2025-01-04 18: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-04 18:38:18] Production.INFO: count ==1407 [2025-01-04 18:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:38:04 - End Time 2025-01-04 18:38:04 [2025-01-04 18:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174764', 'tblTempUsageDetail_20' ) start [2025-01-04 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174764', 'tblTempUsageDetail_20' ) end [2025-01-04 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174764', 'tblTempVendorCDR_20' ) start [2025-01-04 18:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174764', 'tblTempVendorCDR_20' ) end [2025-01-04 18:38:18] Production.INFO: ProcessCDR(1,14174764,1,1,2) [2025-01-04 18:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174764', 'tblTempUsageDetail_20' ) start [2025-01-04 18:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174764', 'tblTempUsageDetail_20' ) end [2025-01-04 18:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:38:21] Production.INFO: ==14232== Releasing lock... [2025-01-04 18:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:38:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:39:05 [end_date_ymd] => 2025-01-04 18:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:39:05' and `end` < '2025-01-04 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-04 18:39:19] Production.INFO: count ==1414 [2025-01-04 18:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:39:05 - End Time 2025-01-04 18:39:05 [2025-01-04 18:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174769', 'tblTempUsageDetail_20' ) start [2025-01-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174769', 'tblTempUsageDetail_20' ) end [2025-01-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174769', 'tblTempVendorCDR_20' ) start [2025-01-04 18:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174769', 'tblTempVendorCDR_20' ) end [2025-01-04 18:39:19] Production.INFO: ProcessCDR(1,14174769,1,1,2) [2025-01-04 18:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174769', 'tblTempUsageDetail_20' ) start [2025-01-04 18:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174769', 'tblTempUsageDetail_20' ) end [2025-01-04 18:39:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:39:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:39:22] Production.INFO: ==14317== Releasing lock... [2025-01-04 18:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:39:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:40:05 [end_date_ymd] => 2025-01-04 18:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:40:05' and `end` < '2025-01-04 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-04 18:40:18] Production.INFO: count ==1413 [2025-01-04 18:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:40:05 - End Time 2025-01-04 18:40:05 [2025-01-04 18:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174774', 'tblTempUsageDetail_20' ) start [2025-01-04 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174774', 'tblTempUsageDetail_20' ) end [2025-01-04 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174774', 'tblTempVendorCDR_20' ) start [2025-01-04 18:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174774', 'tblTempVendorCDR_20' ) end [2025-01-04 18:40:18] Production.INFO: ProcessCDR(1,14174774,1,1,2) [2025-01-04 18:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174774', 'tblTempUsageDetail_20' ) start [2025-01-04 18:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174774', 'tblTempUsageDetail_20' ) end [2025-01-04 18:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:40:21] Production.INFO: ==14398== Releasing lock... [2025-01-04 18:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:40:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:41:05 [end_date_ymd] => 2025-01-04 18:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:41:05' and `end` < '2025-01-04 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-04 18:41:18] Production.INFO: count ==1430 [2025-01-04 18:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:41:05 - End Time 2025-01-04 18:41:05 [2025-01-04 18:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174780', 'tblTempUsageDetail_20' ) start [2025-01-04 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174780', 'tblTempUsageDetail_20' ) end [2025-01-04 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174780', 'tblTempVendorCDR_20' ) start [2025-01-04 18:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174780', 'tblTempVendorCDR_20' ) end [2025-01-04 18:41:18] Production.INFO: ProcessCDR(1,14174780,1,1,2) [2025-01-04 18:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174780', 'tblTempUsageDetail_20' ) start [2025-01-04 18:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174780', 'tblTempUsageDetail_20' ) end [2025-01-04 18:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:41:21] Production.INFO: ==14481== Releasing lock... [2025-01-04 18:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:42:05 [end_date_ymd] => 2025-01-04 18:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:42:05' and `end` < '2025-01-04 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-04 18:42:18] Production.INFO: count ==1433 [2025-01-04 18:42:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:42:05 - End Time 2025-01-04 18:42:05 [2025-01-04 18:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174785', 'tblTempUsageDetail_20' ) start [2025-01-04 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174785', 'tblTempUsageDetail_20' ) end [2025-01-04 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174785', 'tblTempVendorCDR_20' ) start [2025-01-04 18:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174785', 'tblTempVendorCDR_20' ) end [2025-01-04 18:42:18] Production.INFO: ProcessCDR(1,14174785,1,1,2) [2025-01-04 18:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174785', 'tblTempUsageDetail_20' ) start [2025-01-04 18:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174785', 'tblTempUsageDetail_20' ) end [2025-01-04 18:42:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:42:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:42:21] Production.INFO: ==14561== Releasing lock... [2025-01-04 18:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:43:05 [end_date_ymd] => 2025-01-04 18:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:43:05' and `end` < '2025-01-04 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-04 18:43:18] Production.INFO: count ==1440 [2025-01-04 18:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:43:05 - End Time 2025-01-04 18:43:05 [2025-01-04 18:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174790', 'tblTempUsageDetail_20' ) start [2025-01-04 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174790', 'tblTempUsageDetail_20' ) end [2025-01-04 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174790', 'tblTempVendorCDR_20' ) start [2025-01-04 18:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174790', 'tblTempVendorCDR_20' ) end [2025-01-04 18:43:18] Production.INFO: ProcessCDR(1,14174790,1,1,2) [2025-01-04 18:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174790', 'tblTempUsageDetail_20' ) start [2025-01-04 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174790', 'tblTempUsageDetail_20' ) end [2025-01-04 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:43:23] Production.INFO: ==14642== Releasing lock... [2025-01-04 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:43:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:44:05 [end_date_ymd] => 2025-01-04 18:44:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:44:05' and `end` < '2025-01-04 18: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-04 18:44:18] Production.INFO: count ==1443 [2025-01-04 18:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:44:05 - End Time 2025-01-04 18:44:05 [2025-01-04 18:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174795', 'tblTempUsageDetail_20' ) start [2025-01-04 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174795', 'tblTempUsageDetail_20' ) end [2025-01-04 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174795', 'tblTempVendorCDR_20' ) start [2025-01-04 18:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174795', 'tblTempVendorCDR_20' ) end [2025-01-04 18:44:18] Production.INFO: ProcessCDR(1,14174795,1,1,2) [2025-01-04 18:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174795', 'tblTempUsageDetail_20' ) start [2025-01-04 18:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174795', 'tblTempUsageDetail_20' ) end [2025-01-04 18:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:44:22] Production.INFO: ==14729== Releasing lock... [2025-01-04 18:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:44:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:45:05 [end_date_ymd] => 2025-01-04 18:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:45:05' and `end` < '2025-01-04 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-04 18:45:18] Production.INFO: count ==1446 [2025-01-04 18:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:45:05 - End Time 2025-01-04 18:45:05 [2025-01-04 18:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174800', 'tblTempUsageDetail_20' ) start [2025-01-04 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174800', 'tblTempUsageDetail_20' ) end [2025-01-04 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174800', 'tblTempVendorCDR_20' ) start [2025-01-04 18:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174800', 'tblTempVendorCDR_20' ) end [2025-01-04 18:45:18] Production.INFO: ProcessCDR(1,14174800,1,1,2) [2025-01-04 18:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174800', 'tblTempUsageDetail_20' ) start [2025-01-04 18:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174800', 'tblTempUsageDetail_20' ) end [2025-01-04 18:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:45:22] Production.INFO: ==14811== Releasing lock... [2025-01-04 18:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:45:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:46:05 [end_date_ymd] => 2025-01-04 18:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:46:05' and `end` < '2025-01-04 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-04 18:46:18] Production.INFO: count ==1440 [2025-01-04 18:46:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:46:05 - End Time 2025-01-04 18:46:05 [2025-01-04 18:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174805', 'tblTempUsageDetail_20' ) start [2025-01-04 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174805', 'tblTempUsageDetail_20' ) end [2025-01-04 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174805', 'tblTempVendorCDR_20' ) start [2025-01-04 18:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174805', 'tblTempVendorCDR_20' ) end [2025-01-04 18:46:18] Production.INFO: ProcessCDR(1,14174805,1,1,2) [2025-01-04 18:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174805', 'tblTempUsageDetail_20' ) start [2025-01-04 18:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174805', 'tblTempUsageDetail_20' ) end [2025-01-04 18:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:46:22] Production.INFO: ==14894== Releasing lock... [2025-01-04 18:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:46:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:47:04 [end_date_ymd] => 2025-01-04 18:47:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:47:04' and `end` < '2025-01-04 18: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-04 18:47:17] Production.INFO: count ==1443 [2025-01-04 18:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:47:04 - End Time 2025-01-04 18:47:04 [2025-01-04 18:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174810', 'tblTempUsageDetail_20' ) start [2025-01-04 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174810', 'tblTempUsageDetail_20' ) end [2025-01-04 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174810', 'tblTempVendorCDR_20' ) start [2025-01-04 18:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174810', 'tblTempVendorCDR_20' ) end [2025-01-04 18:47:18] Production.INFO: ProcessCDR(1,14174810,1,1,2) [2025-01-04 18:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174810', 'tblTempUsageDetail_20' ) start [2025-01-04 18:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174810', 'tblTempUsageDetail_20' ) end [2025-01-04 18:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:47:21] Production.INFO: ==14971== Releasing lock... [2025-01-04 18:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:47:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:48:05 [end_date_ymd] => 2025-01-04 18:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:48:05' and `end` < '2025-01-04 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-04 18:48:20] Production.INFO: count ==1442 [2025-01-04 18:48:20] Production.ERROR: pbx CDR StartTime 2025-01-04 15:48:05 - End Time 2025-01-04 18:48:05 [2025-01-04 18:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174815', 'tblTempUsageDetail_20' ) start [2025-01-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174815', 'tblTempUsageDetail_20' ) end [2025-01-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174815', 'tblTempVendorCDR_20' ) start [2025-01-04 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174815', 'tblTempVendorCDR_20' ) end [2025-01-04 18:48:20] Production.INFO: ProcessCDR(1,14174815,1,1,2) [2025-01-04 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:48:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174815', 'tblTempUsageDetail_20' ) start [2025-01-04 18:48:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174815', 'tblTempUsageDetail_20' ) end [2025-01-04 18:48:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:48:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:48:24] Production.INFO: ==15055== Releasing lock... [2025-01-04 18:48:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:48:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:49:05 [end_date_ymd] => 2025-01-04 18:49:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:49:05' and `end` < '2025-01-04 18: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-04 18:49:19] Production.INFO: count ==1443 [2025-01-04 18:49:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:49:05 - End Time 2025-01-04 18:49:05 [2025-01-04 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174820', 'tblTempUsageDetail_20' ) start [2025-01-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174820', 'tblTempUsageDetail_20' ) end [2025-01-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174820', 'tblTempVendorCDR_20' ) start [2025-01-04 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174820', 'tblTempVendorCDR_20' ) end [2025-01-04 18:49:19] Production.INFO: ProcessCDR(1,14174820,1,1,2) [2025-01-04 18:49:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174820', 'tblTempUsageDetail_20' ) start [2025-01-04 18:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174820', 'tblTempUsageDetail_20' ) end [2025-01-04 18:49:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:49:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:49:22] Production.INFO: ==15136== Releasing lock... [2025-01-04 18:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:49:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:50:06 [end_date_ymd] => 2025-01-04 18:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 15:50:06' and `end` < '2025-01-04 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-04 18:50:18] Production.INFO: count ==1441 [2025-01-04 18:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:50:06 - End Time 2025-01-04 18:50:06 [2025-01-04 18:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174825', 'tblTempUsageDetail_20' ) start [2025-01-04 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174825', 'tblTempUsageDetail_20' ) end [2025-01-04 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174825', 'tblTempVendorCDR_20' ) start [2025-01-04 18:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174825', 'tblTempVendorCDR_20' ) end [2025-01-04 18:50:19] Production.INFO: ProcessCDR(1,14174825,1,1,2) [2025-01-04 18:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174825', 'tblTempUsageDetail_20' ) start [2025-01-04 18:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174825', 'tblTempUsageDetail_20' ) end [2025-01-04 18:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:50:22] Production.INFO: ==15224== Releasing lock... [2025-01-04 18:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:50:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:51:05 [end_date_ymd] => 2025-01-04 18:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:51:05' and `end` < '2025-01-04 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-04 18:51:19] Production.INFO: count ==1463 [2025-01-04 18:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:51:05 - End Time 2025-01-04 18:51:05 [2025-01-04 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174831', 'tblTempUsageDetail_20' ) start [2025-01-04 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174831', 'tblTempUsageDetail_20' ) end [2025-01-04 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174831', 'tblTempVendorCDR_20' ) start [2025-01-04 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174831', 'tblTempVendorCDR_20' ) end [2025-01-04 18:51:19] Production.INFO: ProcessCDR(1,14174831,1,1,2) [2025-01-04 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174831', 'tblTempUsageDetail_20' ) start [2025-01-04 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174831', 'tblTempUsageDetail_20' ) end [2025-01-04 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:51:23] Production.INFO: ==15303== Releasing lock... [2025-01-04 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:51:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:52:05 [end_date_ymd] => 2025-01-04 18:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:52:05' and `end` < '2025-01-04 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-04 18:52:18] Production.INFO: count ==1463 [2025-01-04 18:52:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:52:05 - End Time 2025-01-04 18:52:05 [2025-01-04 18:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174836', 'tblTempUsageDetail_20' ) start [2025-01-04 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174836', 'tblTempUsageDetail_20' ) end [2025-01-04 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174836', 'tblTempVendorCDR_20' ) start [2025-01-04 18:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174836', 'tblTempVendorCDR_20' ) end [2025-01-04 18:52:18] Production.INFO: ProcessCDR(1,14174836,1,1,2) [2025-01-04 18:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174836', 'tblTempUsageDetail_20' ) start [2025-01-04 18:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174836', 'tblTempUsageDetail_20' ) end [2025-01-04 18:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:52:22] Production.INFO: ==15377== Releasing lock... [2025-01-04 18:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:52:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:53:05 [end_date_ymd] => 2025-01-04 18:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:53:05' and `end` < '2025-01-04 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-04 18:53:18] Production.INFO: count ==1466 [2025-01-04 18:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:53:05 - End Time 2025-01-04 18:53:05 [2025-01-04 18:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174841', 'tblTempUsageDetail_20' ) start [2025-01-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174841', 'tblTempUsageDetail_20' ) end [2025-01-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174841', 'tblTempVendorCDR_20' ) start [2025-01-04 18:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174841', 'tblTempVendorCDR_20' ) end [2025-01-04 18:53:18] Production.INFO: ProcessCDR(1,14174841,1,1,2) [2025-01-04 18:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174841', 'tblTempUsageDetail_20' ) start [2025-01-04 18:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174841', 'tblTempUsageDetail_20' ) end [2025-01-04 18:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:53:22] Production.INFO: ==15455== Releasing lock... [2025-01-04 18:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:53:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:54:05 [end_date_ymd] => 2025-01-04 18:54:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:54:05' and `end` < '2025-01-04 18: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-04 18:54:19] Production.INFO: count ==1465 [2025-01-04 18:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:54:05 - End Time 2025-01-04 18:54:05 [2025-01-04 18:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174846', 'tblTempUsageDetail_20' ) start [2025-01-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174846', 'tblTempUsageDetail_20' ) end [2025-01-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174846', 'tblTempVendorCDR_20' ) start [2025-01-04 18:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174846', 'tblTempVendorCDR_20' ) end [2025-01-04 18:54:19] Production.INFO: ProcessCDR(1,14174846,1,1,2) [2025-01-04 18:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174846', 'tblTempUsageDetail_20' ) start [2025-01-04 18:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174846', 'tblTempUsageDetail_20' ) end [2025-01-04 18:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:54:22] Production.INFO: ==15577== Releasing lock... [2025-01-04 18:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:54:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:55:05 [end_date_ymd] => 2025-01-04 18:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:55:05' and `end` < '2025-01-04 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-04 18:55:18] Production.INFO: count ==1463 [2025-01-04 18:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:55:05 - End Time 2025-01-04 18:55:05 [2025-01-04 18:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174851', 'tblTempUsageDetail_20' ) start [2025-01-04 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174851', 'tblTempUsageDetail_20' ) end [2025-01-04 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174851', 'tblTempVendorCDR_20' ) start [2025-01-04 18:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174851', 'tblTempVendorCDR_20' ) end [2025-01-04 18:55:18] Production.INFO: ProcessCDR(1,14174851,1,1,2) [2025-01-04 18:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174851', 'tblTempUsageDetail_20' ) start [2025-01-04 18:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174851', 'tblTempUsageDetail_20' ) end [2025-01-04 18:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:55:22] Production.INFO: ==15660== Releasing lock... [2025-01-04 18:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:55:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:56:04 [end_date_ymd] => 2025-01-04 18:56:04 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:56:04' and `end` < '2025-01-04 18: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-04 18:56:17] Production.INFO: count ==1468 [2025-01-04 18:56:17] Production.ERROR: pbx CDR StartTime 2025-01-04 15:56:04 - End Time 2025-01-04 18:56:04 [2025-01-04 18:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174856', 'tblTempUsageDetail_20' ) start [2025-01-04 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174856', 'tblTempUsageDetail_20' ) end [2025-01-04 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174856', 'tblTempVendorCDR_20' ) start [2025-01-04 18:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174856', 'tblTempVendorCDR_20' ) end [2025-01-04 18:56:17] Production.INFO: ProcessCDR(1,14174856,1,1,2) [2025-01-04 18:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174856', 'tblTempUsageDetail_20' ) start [2025-01-04 18:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174856', 'tblTempUsageDetail_20' ) end [2025-01-04 18:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:56:21] Production.INFO: ==15739== Releasing lock... [2025-01-04 18:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:56:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:57:05 [end_date_ymd] => 2025-01-04 18:57:05 [RateCDR] => 1 ) [2025-01-04 18: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-04 15:57:05' and `end` < '2025-01-04 18: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-04 18:57:21] Production.INFO: count ==1470 [2025-01-04 18:57:21] Production.ERROR: pbx CDR StartTime 2025-01-04 15:57:05 - End Time 2025-01-04 18:57:05 [2025-01-04 18:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174861', 'tblTempUsageDetail_20' ) start [2025-01-04 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174861', 'tblTempUsageDetail_20' ) end [2025-01-04 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174861', 'tblTempVendorCDR_20' ) start [2025-01-04 18:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174861', 'tblTempVendorCDR_20' ) end [2025-01-04 18:57:21] Production.INFO: ProcessCDR(1,14174861,1,1,2) [2025-01-04 18:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174861', 'tblTempUsageDetail_20' ) start [2025-01-04 18:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174861', 'tblTempUsageDetail_20' ) end [2025-01-04 18:57:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:57:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:57:24] Production.INFO: ==15815== Releasing lock... [2025-01-04 18:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:57:24] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 18:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:58:06 [end_date_ymd] => 2025-01-04 18:58:06 [RateCDR] => 1 ) [2025-01-04 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-04 15:58:06' and `end` < '2025-01-04 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-04 18:58:19] Production.INFO: count ==1473 [2025-01-04 18:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 15:58:06 - End Time 2025-01-04 18:58:06 [2025-01-04 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174866', 'tblTempUsageDetail_20' ) start [2025-01-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174866', 'tblTempUsageDetail_20' ) end [2025-01-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174866', 'tblTempVendorCDR_20' ) start [2025-01-04 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174866', 'tblTempVendorCDR_20' ) end [2025-01-04 18:58:19] Production.INFO: ProcessCDR(1,14174866,1,1,2) [2025-01-04 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174866', 'tblTempUsageDetail_20' ) start [2025-01-04 18:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174866', 'tblTempUsageDetail_20' ) end [2025-01-04 18:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:58:22] Production.INFO: ==15890== Releasing lock... [2025-01-04 18:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:58:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 15:59:05 [end_date_ymd] => 2025-01-04 18:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 15:59:05' and `end` < '2025-01-04 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-04 18:59:18] Production.INFO: count ==1479 [2025-01-04 18:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 15:59:05 - End Time 2025-01-04 18:59:05 [2025-01-04 18:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174871', 'tblTempUsageDetail_20' ) start [2025-01-04 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174871', 'tblTempUsageDetail_20' ) end [2025-01-04 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174871', 'tblTempVendorCDR_20' ) start [2025-01-04 18:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174871', 'tblTempVendorCDR_20' ) end [2025-01-04 18:59:18] Production.INFO: ProcessCDR(1,14174871,1,1,2) [2025-01-04 18:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 18:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174871', 'tblTempUsageDetail_20' ) start [2025-01-04 18:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174871', 'tblTempUsageDetail_20' ) end [2025-01-04 18:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 18:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 18:59:21] Production.INFO: ==15968== Releasing lock... [2025-01-04 18:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 18:59:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:00:06 [end_date_ymd] => 2025-01-04 19:00:06 [RateCDR] => 1 ) [2025-01-04 19:00:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 16:00:06' and `end` < '2025-01-04 19:00:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 19:00:19] Production.INFO: count ==1478 [2025-01-04 19:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:00:06 - End Time 2025-01-04 19:00:06 [2025-01-04 19:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174877', 'tblTempUsageDetail_20' ) start [2025-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174877', 'tblTempUsageDetail_20' ) end [2025-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174877', 'tblTempVendorCDR_20' ) start [2025-01-04 19:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174877', 'tblTempVendorCDR_20' ) end [2025-01-04 19:00:19] Production.INFO: ProcessCDR(1,14174877,1,1,2) [2025-01-04 19:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174877', 'tblTempUsageDetail_20' ) start [2025-01-04 19:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174877', 'tblTempUsageDetail_20' ) end [2025-01-04 19:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:00:22] Production.INFO: ==16046== Releasing lock... [2025-01-04 19:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:00:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:01:05 [end_date_ymd] => 2025-01-04 19:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:01:05' and `end` < '2025-01-04 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-04 19:01:18] Production.INFO: count ==1493 [2025-01-04 19:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:01:05 - End Time 2025-01-04 19:01:05 [2025-01-04 19:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174882', 'tblTempUsageDetail_20' ) start [2025-01-04 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174882', 'tblTempUsageDetail_20' ) end [2025-01-04 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174882', 'tblTempVendorCDR_20' ) start [2025-01-04 19:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174882', 'tblTempVendorCDR_20' ) end [2025-01-04 19:01:18] Production.INFO: ProcessCDR(1,14174882,1,1,2) [2025-01-04 19:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174882', 'tblTempUsageDetail_20' ) start [2025-01-04 19:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174882', 'tblTempUsageDetail_20' ) end [2025-01-04 19:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:01:21] Production.INFO: ==16212== Releasing lock... [2025-01-04 19:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:01:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:02:05 [end_date_ymd] => 2025-01-04 19:02:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:02:05' and `end` < '2025-01-04 19: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-04 19:02:18] Production.INFO: count ==1489 [2025-01-04 19:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:02:05 - End Time 2025-01-04 19:02:05 [2025-01-04 19:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174887', 'tblTempUsageDetail_20' ) start [2025-01-04 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174887', 'tblTempUsageDetail_20' ) end [2025-01-04 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174887', 'tblTempVendorCDR_20' ) start [2025-01-04 19:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174887', 'tblTempVendorCDR_20' ) end [2025-01-04 19:02:18] Production.INFO: ProcessCDR(1,14174887,1,1,2) [2025-01-04 19:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174887', 'tblTempUsageDetail_20' ) start [2025-01-04 19:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174887', 'tblTempUsageDetail_20' ) end [2025-01-04 19:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:02:21] Production.INFO: ==16286== Releasing lock... [2025-01-04 19:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:02:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:03:05 [end_date_ymd] => 2025-01-04 19:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:03:05' and `end` < '2025-01-04 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-04 19:03:19] Production.INFO: count ==1488 [2025-01-04 19:03:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:03:05 - End Time 2025-01-04 19:03:05 [2025-01-04 19:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174892', 'tblTempUsageDetail_20' ) start [2025-01-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174892', 'tblTempUsageDetail_20' ) end [2025-01-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174892', 'tblTempVendorCDR_20' ) start [2025-01-04 19:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174892', 'tblTempVendorCDR_20' ) end [2025-01-04 19:03:20] Production.INFO: ProcessCDR(1,14174892,1,1,2) [2025-01-04 19:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174892', 'tblTempUsageDetail_20' ) start [2025-01-04 19:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174892', 'tblTempUsageDetail_20' ) end [2025-01-04 19:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:03:23] Production.INFO: ==16359== Releasing lock... [2025-01-04 19:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:03:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:04:05 [end_date_ymd] => 2025-01-04 19:04:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:04:05' and `end` < '2025-01-04 19: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-04 19:04:18] Production.INFO: count ==1487 [2025-01-04 19:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:04:05 - End Time 2025-01-04 19:04:05 [2025-01-04 19:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174897', 'tblTempUsageDetail_20' ) start [2025-01-04 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174897', 'tblTempUsageDetail_20' ) end [2025-01-04 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174897', 'tblTempVendorCDR_20' ) start [2025-01-04 19:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174897', 'tblTempVendorCDR_20' ) end [2025-01-04 19:04:18] Production.INFO: ProcessCDR(1,14174897,1,1,2) [2025-01-04 19:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174897', 'tblTempUsageDetail_20' ) start [2025-01-04 19:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174897', 'tblTempUsageDetail_20' ) end [2025-01-04 19:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:04:21] Production.INFO: ==16441== Releasing lock... [2025-01-04 19:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:04:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:05:05 [end_date_ymd] => 2025-01-04 19:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:05:05' and `end` < '2025-01-04 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-04 19:05:18] Production.INFO: count ==1486 [2025-01-04 19:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:05:05 - End Time 2025-01-04 19:05:05 [2025-01-04 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174902', 'tblTempUsageDetail_20' ) start [2025-01-04 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174902', 'tblTempUsageDetail_20' ) end [2025-01-04 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174902', 'tblTempVendorCDR_20' ) start [2025-01-04 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174902', 'tblTempVendorCDR_20' ) end [2025-01-04 19:05:18] Production.INFO: ProcessCDR(1,14174902,1,1,2) [2025-01-04 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174902', 'tblTempUsageDetail_20' ) start [2025-01-04 19:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174902', 'tblTempUsageDetail_20' ) end [2025-01-04 19:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:05:21] Production.INFO: ==16597== Releasing lock... [2025-01-04 19:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:05:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:06:05 [end_date_ymd] => 2025-01-04 19:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:06:05' and `end` < '2025-01-04 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-04 19:06:20] Production.INFO: count ==1481 [2025-01-04 19:06:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:06:05 - End Time 2025-01-04 19:06:05 [2025-01-04 19:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174907', 'tblTempUsageDetail_20' ) start [2025-01-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174907', 'tblTempUsageDetail_20' ) end [2025-01-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174907', 'tblTempVendorCDR_20' ) start [2025-01-04 19:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174907', 'tblTempVendorCDR_20' ) end [2025-01-04 19:06:20] Production.INFO: ProcessCDR(1,14174907,1,1,2) [2025-01-04 19:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:06:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174907', 'tblTempUsageDetail_20' ) start [2025-01-04 19:06:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174907', 'tblTempUsageDetail_20' ) end [2025-01-04 19:06:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:06:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:06:24] Production.INFO: ==16669== Releasing lock... [2025-01-04 19:06:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:06:24] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:07:05 [end_date_ymd] => 2025-01-04 19:07:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:07:05' and `end` < '2025-01-04 19: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-04 19:07:18] Production.INFO: count ==1481 [2025-01-04 19:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:07:05 - End Time 2025-01-04 19:07:05 [2025-01-04 19:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174912', 'tblTempUsageDetail_20' ) start [2025-01-04 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174912', 'tblTempUsageDetail_20' ) end [2025-01-04 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174912', 'tblTempVendorCDR_20' ) start [2025-01-04 19:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174912', 'tblTempVendorCDR_20' ) end [2025-01-04 19:07:18] Production.INFO: ProcessCDR(1,14174912,1,1,2) [2025-01-04 19:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174912', 'tblTempUsageDetail_20' ) start [2025-01-04 19:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174912', 'tblTempUsageDetail_20' ) end [2025-01-04 19:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:07:22] Production.INFO: ==16742== Releasing lock... [2025-01-04 19:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:07:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:08:05 [end_date_ymd] => 2025-01-04 19:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:08:05' and `end` < '2025-01-04 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-04 19:08:19] Production.INFO: count ==1481 [2025-01-04 19:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:08:05 - End Time 2025-01-04 19:08:05 [2025-01-04 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174917', 'tblTempUsageDetail_20' ) start [2025-01-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174917', 'tblTempUsageDetail_20' ) end [2025-01-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174917', 'tblTempVendorCDR_20' ) start [2025-01-04 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174917', 'tblTempVendorCDR_20' ) end [2025-01-04 19:08:19] Production.INFO: ProcessCDR(1,14174917,1,1,2) [2025-01-04 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174917', 'tblTempUsageDetail_20' ) start [2025-01-04 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174917', 'tblTempUsageDetail_20' ) end [2025-01-04 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:08:23] Production.INFO: ==16892== Releasing lock... [2025-01-04 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:08:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:09:05 [end_date_ymd] => 2025-01-04 19:09:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:09:05' and `end` < '2025-01-04 19: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-04 19:09:19] Production.INFO: count ==1481 [2025-01-04 19:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:09:05 - End Time 2025-01-04 19:09:05 [2025-01-04 19:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174922', 'tblTempUsageDetail_20' ) start [2025-01-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174922', 'tblTempUsageDetail_20' ) end [2025-01-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174922', 'tblTempVendorCDR_20' ) start [2025-01-04 19:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174922', 'tblTempVendorCDR_20' ) end [2025-01-04 19:09:19] Production.INFO: ProcessCDR(1,14174922,1,1,2) [2025-01-04 19:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174922', 'tblTempUsageDetail_20' ) start [2025-01-04 19:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174922', 'tblTempUsageDetail_20' ) end [2025-01-04 19:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:09:22] Production.INFO: ==17002== Releasing lock... [2025-01-04 19:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:09:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:10:06 [end_date_ymd] => 2025-01-04 19:10:06 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:10:06' and `end` < '2025-01-04 19: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-04 19:10:19] Production.INFO: count ==1482 [2025-01-04 19:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:10:06 - End Time 2025-01-04 19:10:06 [2025-01-04 19:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174928', 'tblTempUsageDetail_20' ) start [2025-01-04 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174928', 'tblTempUsageDetail_20' ) end [2025-01-04 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174928', 'tblTempVendorCDR_20' ) start [2025-01-04 19:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174928', 'tblTempVendorCDR_20' ) end [2025-01-04 19:10:19] Production.INFO: ProcessCDR(1,14174928,1,1,2) [2025-01-04 19:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174928', 'tblTempUsageDetail_20' ) start [2025-01-04 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174928', 'tblTempUsageDetail_20' ) end [2025-01-04 19:10:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:10:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:10:23] Production.INFO: ==17076== Releasing lock... [2025-01-04 19:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:10:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:11:04 [end_date_ymd] => 2025-01-04 19:11:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:11:04' and `end` < '2025-01-04 19: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-04 19:11:17] Production.INFO: count ==1488 [2025-01-04 19:11:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:11:04 - End Time 2025-01-04 19:11:04 [2025-01-04 19:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174933', 'tblTempUsageDetail_20' ) start [2025-01-04 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174933', 'tblTempUsageDetail_20' ) end [2025-01-04 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174933', 'tblTempVendorCDR_20' ) start [2025-01-04 19:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174933', 'tblTempVendorCDR_20' ) end [2025-01-04 19:11:17] Production.INFO: ProcessCDR(1,14174933,1,1,2) [2025-01-04 19:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174933', 'tblTempUsageDetail_20' ) start [2025-01-04 19:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174933', 'tblTempUsageDetail_20' ) end [2025-01-04 19:11:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:11:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:11:20] Production.INFO: ==17148== Releasing lock... [2025-01-04 19:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:11:20] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:12:04 [end_date_ymd] => 2025-01-04 19:12:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:12:04' and `end` < '2025-01-04 19: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-04 19:12:19] Production.INFO: count ==1483 [2025-01-04 19:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:12:04 - End Time 2025-01-04 19:12:04 [2025-01-04 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174938', 'tblTempUsageDetail_20' ) start [2025-01-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174938', 'tblTempUsageDetail_20' ) end [2025-01-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174938', 'tblTempVendorCDR_20' ) start [2025-01-04 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174938', 'tblTempVendorCDR_20' ) end [2025-01-04 19:12:19] Production.INFO: ProcessCDR(1,14174938,1,1,2) [2025-01-04 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174938', 'tblTempUsageDetail_20' ) start [2025-01-04 19:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174938', 'tblTempUsageDetail_20' ) end [2025-01-04 19:12:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:12:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:12:22] Production.INFO: ==17298== Releasing lock... [2025-01-04 19:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:12:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:13:05 [end_date_ymd] => 2025-01-04 19:13:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:13:05' and `end` < '2025-01-04 19: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-04 19:13:18] Production.INFO: count ==1479 [2025-01-04 19:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:13:05 - End Time 2025-01-04 19:13:05 [2025-01-04 19:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174943', 'tblTempUsageDetail_20' ) start [2025-01-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174943', 'tblTempUsageDetail_20' ) end [2025-01-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174943', 'tblTempVendorCDR_20' ) start [2025-01-04 19:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174943', 'tblTempVendorCDR_20' ) end [2025-01-04 19:13:18] Production.INFO: ProcessCDR(1,14174943,1,1,2) [2025-01-04 19:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174943', 'tblTempUsageDetail_20' ) start [2025-01-04 19:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174943', 'tblTempUsageDetail_20' ) end [2025-01-04 19:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:13:21] Production.INFO: ==17369== Releasing lock... [2025-01-04 19:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:13:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:14:04 [end_date_ymd] => 2025-01-04 19:14:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:14:04' and `end` < '2025-01-04 19: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-04 19:14:17] Production.INFO: count ==1477 [2025-01-04 19:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:14:04 - End Time 2025-01-04 19:14:04 [2025-01-04 19:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174948', 'tblTempUsageDetail_20' ) start [2025-01-04 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174948', 'tblTempUsageDetail_20' ) end [2025-01-04 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174948', 'tblTempVendorCDR_20' ) start [2025-01-04 19:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174948', 'tblTempVendorCDR_20' ) end [2025-01-04 19:14:18] Production.INFO: ProcessCDR(1,14174948,1,1,2) [2025-01-04 19:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174948', 'tblTempUsageDetail_20' ) start [2025-01-04 19:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174948', 'tblTempUsageDetail_20' ) end [2025-01-04 19:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:14:21] Production.INFO: ==17440== Releasing lock... [2025-01-04 19:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:14:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:15:05 [end_date_ymd] => 2025-01-04 19:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:15:05' and `end` < '2025-01-04 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-04 19:15:18] Production.INFO: count ==1479 [2025-01-04 19:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:15:05 - End Time 2025-01-04 19:15:05 [2025-01-04 19:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174953', 'tblTempUsageDetail_20' ) start [2025-01-04 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174953', 'tblTempUsageDetail_20' ) end [2025-01-04 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174953', 'tblTempVendorCDR_20' ) start [2025-01-04 19:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174953', 'tblTempVendorCDR_20' ) end [2025-01-04 19:15:18] Production.INFO: ProcessCDR(1,14174953,1,1,2) [2025-01-04 19:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174953', 'tblTempUsageDetail_20' ) start [2025-01-04 19:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174953', 'tblTempUsageDetail_20' ) end [2025-01-04 19:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:15:21] Production.INFO: ==17592== Releasing lock... [2025-01-04 19:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:15:21] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:16:05 [end_date_ymd] => 2025-01-04 19:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:16:05' and `end` < '2025-01-04 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-04 19:16:19] Production.INFO: count ==1481 [2025-01-04 19:16:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:16:05 - End Time 2025-01-04 19:16:05 [2025-01-04 19:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174958', 'tblTempUsageDetail_20' ) start [2025-01-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174958', 'tblTempUsageDetail_20' ) end [2025-01-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174958', 'tblTempVendorCDR_20' ) start [2025-01-04 19:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174958', 'tblTempVendorCDR_20' ) end [2025-01-04 19:16:19] Production.INFO: ProcessCDR(1,14174958,1,1,2) [2025-01-04 19:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174958', 'tblTempUsageDetail_20' ) start [2025-01-04 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174958', 'tblTempUsageDetail_20' ) end [2025-01-04 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:16:22] Production.INFO: ==17667== Releasing lock... [2025-01-04 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:16:22] Production.INFO: 39 MB #Memory Used# [2025-01-04 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:17:05 [end_date_ymd] => 2025-01-04 19:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:17:05' and `end` < '2025-01-04 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-04 19:17:19] Production.INFO: count ==1470 [2025-01-04 19:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:17:05 - End Time 2025-01-04 19:17:05 [2025-01-04 19:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174963', 'tblTempUsageDetail_20' ) start [2025-01-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174963', 'tblTempUsageDetail_20' ) end [2025-01-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174963', 'tblTempVendorCDR_20' ) start [2025-01-04 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174963', 'tblTempVendorCDR_20' ) end [2025-01-04 19:17:19] Production.INFO: ProcessCDR(1,14174963,1,1,2) [2025-01-04 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174963', 'tblTempUsageDetail_20' ) start [2025-01-04 19:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174963', 'tblTempUsageDetail_20' ) end [2025-01-04 19:17:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:17:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:17:23] Production.INFO: ==17739== Releasing lock... [2025-01-04 19:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:17:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:18:05 [end_date_ymd] => 2025-01-04 19:18:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:18:05' and `end` < '2025-01-04 19: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-04 19:18:18] Production.INFO: count ==1469 [2025-01-04 19:18:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:18:05 - End Time 2025-01-04 19:18:05 [2025-01-04 19:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174968', 'tblTempUsageDetail_20' ) start [2025-01-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174968', 'tblTempUsageDetail_20' ) end [2025-01-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174968', 'tblTempVendorCDR_20' ) start [2025-01-04 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174968', 'tblTempVendorCDR_20' ) end [2025-01-04 19:18:19] Production.INFO: ProcessCDR(1,14174968,1,1,2) [2025-01-04 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174968', 'tblTempUsageDetail_20' ) start [2025-01-04 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174968', 'tblTempUsageDetail_20' ) end [2025-01-04 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:18:22] Production.INFO: ==17811== Releasing lock... [2025-01-04 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:18:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:19:05 [end_date_ymd] => 2025-01-04 19:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:19:05' and `end` < '2025-01-04 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-04 19:19:18] Production.INFO: count ==1469 [2025-01-04 19:19:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:19:05 - End Time 2025-01-04 19:19:05 [2025-01-04 19:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174973', 'tblTempUsageDetail_20' ) start [2025-01-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174973', 'tblTempUsageDetail_20' ) end [2025-01-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174973', 'tblTempVendorCDR_20' ) start [2025-01-04 19:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174973', 'tblTempVendorCDR_20' ) end [2025-01-04 19:19:18] Production.INFO: ProcessCDR(1,14174973,1,1,2) [2025-01-04 19:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174973', 'tblTempUsageDetail_20' ) start [2025-01-04 19:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174973', 'tblTempUsageDetail_20' ) end [2025-01-04 19:19:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:19:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:19:21] Production.INFO: ==17893== Releasing lock... [2025-01-04 19:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:19:21] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:20:07 [end_date_ymd] => 2025-01-04 19:20:07 [RateCDR] => 1 ) [2025-01-04 19:20: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-04 16:20:07' and `end` < '2025-01-04 19:20: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-04 19:20:20] Production.INFO: count ==1474 [2025-01-04 19:20:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:20:07 - End Time 2025-01-04 19:20:07 [2025-01-04 19:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174979', 'tblTempUsageDetail_20' ) start [2025-01-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174979', 'tblTempUsageDetail_20' ) end [2025-01-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174979', 'tblTempVendorCDR_20' ) start [2025-01-04 19:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174979', 'tblTempVendorCDR_20' ) end [2025-01-04 19:20:20] Production.INFO: ProcessCDR(1,14174979,1,1,2) [2025-01-04 19:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174979', 'tblTempUsageDetail_20' ) start [2025-01-04 19:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174979', 'tblTempUsageDetail_20' ) end [2025-01-04 19:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:20:23] Production.INFO: ==17977== Releasing lock... [2025-01-04 19:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:20:23] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:21:05 [end_date_ymd] => 2025-01-04 19:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:21:05' and `end` < '2025-01-04 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-04 19:21:19] Production.INFO: count ==1477 [2025-01-04 19:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:21:05 - End Time 2025-01-04 19:21:05 [2025-01-04 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174984', 'tblTempUsageDetail_20' ) start [2025-01-04 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174984', 'tblTempUsageDetail_20' ) end [2025-01-04 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174984', 'tblTempVendorCDR_20' ) start [2025-01-04 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174984', 'tblTempVendorCDR_20' ) end [2025-01-04 19:21:19] Production.INFO: ProcessCDR(1,14174984,1,1,2) [2025-01-04 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174984', 'tblTempUsageDetail_20' ) start [2025-01-04 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174984', 'tblTempUsageDetail_20' ) end [2025-01-04 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:21:22] Production.INFO: ==18056== Releasing lock... [2025-01-04 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:21:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:22:05 [end_date_ymd] => 2025-01-04 19:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:22:05' and `end` < '2025-01-04 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-04 19:22:19] Production.INFO: count ==1471 [2025-01-04 19:22:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:22:05 - End Time 2025-01-04 19:22:05 [2025-01-04 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174989', 'tblTempUsageDetail_20' ) start [2025-01-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174989', 'tblTempUsageDetail_20' ) end [2025-01-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174989', 'tblTempVendorCDR_20' ) start [2025-01-04 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174989', 'tblTempVendorCDR_20' ) end [2025-01-04 19:22:19] Production.INFO: ProcessCDR(1,14174989,1,1,2) [2025-01-04 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174989', 'tblTempUsageDetail_20' ) start [2025-01-04 19:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174989', 'tblTempUsageDetail_20' ) end [2025-01-04 19:22:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:22:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:22:22] Production.INFO: ==18133== Releasing lock... [2025-01-04 19:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:22:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:23:05 [end_date_ymd] => 2025-01-04 19:23:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:23:05' and `end` < '2025-01-04 19: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-04 19:23:19] Production.INFO: count ==1470 [2025-01-04 19:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:23:05 - End Time 2025-01-04 19:23:05 [2025-01-04 19:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174994', 'tblTempUsageDetail_20' ) start [2025-01-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174994', 'tblTempUsageDetail_20' ) end [2025-01-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174994', 'tblTempVendorCDR_20' ) start [2025-01-04 19:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174994', 'tblTempVendorCDR_20' ) end [2025-01-04 19:23:19] Production.INFO: ProcessCDR(1,14174994,1,1,2) [2025-01-04 19:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174994', 'tblTempUsageDetail_20' ) start [2025-01-04 19:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174994', 'tblTempUsageDetail_20' ) end [2025-01-04 19:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:23:22] Production.INFO: ==18211== Releasing lock... [2025-01-04 19:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:23:22] Production.INFO: 38.75 MB #Memory Used# [2025-01-04 19:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:24:05 [end_date_ymd] => 2025-01-04 19:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:24:05' and `end` < '2025-01-04 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-04 19:24:18] Production.INFO: count ==1470 [2025-01-04 19:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:24:05 - End Time 2025-01-04 19:24:05 [2025-01-04 19:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174999', 'tblTempUsageDetail_20' ) start [2025-01-04 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14174999', 'tblTempUsageDetail_20' ) end [2025-01-04 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174999', 'tblTempVendorCDR_20' ) start [2025-01-04 19:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14174999', 'tblTempVendorCDR_20' ) end [2025-01-04 19:24:18] Production.INFO: ProcessCDR(1,14174999,1,1,2) [2025-01-04 19:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14174999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14174999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14174999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14174999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174999', 'tblTempUsageDetail_20' ) start [2025-01-04 19:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14174999', 'tblTempUsageDetail_20' ) end [2025-01-04 19:24:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:24:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:24:22] Production.INFO: ==18285== Releasing lock... [2025-01-04 19:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:24:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:25:05 [end_date_ymd] => 2025-01-04 19:25:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:25:05' and `end` < '2025-01-04 19: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-04 19:25:18] Production.INFO: count ==1446 [2025-01-04 19:25:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:25:05 - End Time 2025-01-04 19:25:05 [2025-01-04 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175004', 'tblTempUsageDetail_20' ) start [2025-01-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175004', 'tblTempUsageDetail_20' ) end [2025-01-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175004', 'tblTempVendorCDR_20' ) start [2025-01-04 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175004', 'tblTempVendorCDR_20' ) end [2025-01-04 19:25:19] Production.INFO: ProcessCDR(1,14175004,1,1,2) [2025-01-04 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175004', 'tblTempUsageDetail_20' ) start [2025-01-04 19:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175004', 'tblTempUsageDetail_20' ) end [2025-01-04 19:25:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:25:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:25:23] Production.INFO: ==18403== Releasing lock... [2025-01-04 19:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:25:23] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:26:05 [end_date_ymd] => 2025-01-04 19:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:26:05' and `end` < '2025-01-04 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-04 19:26:18] Production.INFO: count ==1443 [2025-01-04 19:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:26:05 - End Time 2025-01-04 19:26:05 [2025-01-04 19:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175009', 'tblTempUsageDetail_20' ) start [2025-01-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175009', 'tblTempUsageDetail_20' ) end [2025-01-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175009', 'tblTempVendorCDR_20' ) start [2025-01-04 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175009', 'tblTempVendorCDR_20' ) end [2025-01-04 19:26:19] Production.INFO: ProcessCDR(1,14175009,1,1,2) [2025-01-04 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175009', 'tblTempUsageDetail_20' ) start [2025-01-04 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175009', 'tblTempUsageDetail_20' ) end [2025-01-04 19:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:26:22] Production.INFO: ==18479== Releasing lock... [2025-01-04 19:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:26:22] Production.INFO: 38.5 MB #Memory Used# [2025-01-04 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:27:05 [end_date_ymd] => 2025-01-04 19:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:27:05' and `end` < '2025-01-04 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-04 19:27:18] Production.INFO: count ==1441 [2025-01-04 19:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:27:05 - End Time 2025-01-04 19:27:05 [2025-01-04 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175014', 'tblTempUsageDetail_20' ) start [2025-01-04 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175014', 'tblTempUsageDetail_20' ) end [2025-01-04 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175014', 'tblTempVendorCDR_20' ) start [2025-01-04 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175014', 'tblTempVendorCDR_20' ) end [2025-01-04 19:27:18] Production.INFO: ProcessCDR(1,14175014,1,1,2) [2025-01-04 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175014', 'tblTempUsageDetail_20' ) start [2025-01-04 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175014', 'tblTempUsageDetail_20' ) end [2025-01-04 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:27:23] Production.INFO: ==18557== Releasing lock... [2025-01-04 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:27:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:28:05 [end_date_ymd] => 2025-01-04 19:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:28:05' and `end` < '2025-01-04 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-04 19:28:18] Production.INFO: count ==1439 [2025-01-04 19:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:28:05 - End Time 2025-01-04 19:28:05 [2025-01-04 19:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175019', 'tblTempUsageDetail_20' ) start [2025-01-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175019', 'tblTempUsageDetail_20' ) end [2025-01-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175019', 'tblTempVendorCDR_20' ) start [2025-01-04 19:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175019', 'tblTempVendorCDR_20' ) end [2025-01-04 19:28:18] Production.INFO: ProcessCDR(1,14175019,1,1,2) [2025-01-04 19:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175019', 'tblTempUsageDetail_20' ) start [2025-01-04 19:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175019', 'tblTempUsageDetail_20' ) end [2025-01-04 19:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:28:22] Production.INFO: ==18632== Releasing lock... [2025-01-04 19:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:28:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:29:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:29:04 [end_date_ymd] => 2025-01-04 19:29:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:29:04' and `end` < '2025-01-04 19: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-04 19:29:17] Production.INFO: count ==1438 [2025-01-04 19:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:29:04 - End Time 2025-01-04 19:29:04 [2025-01-04 19:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175024', 'tblTempUsageDetail_20' ) start [2025-01-04 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175024', 'tblTempUsageDetail_20' ) end [2025-01-04 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175024', 'tblTempVendorCDR_20' ) start [2025-01-04 19:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175024', 'tblTempVendorCDR_20' ) end [2025-01-04 19:29:18] Production.INFO: ProcessCDR(1,14175024,1,1,2) [2025-01-04 19:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175024', 'tblTempUsageDetail_20' ) start [2025-01-04 19:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175024', 'tblTempUsageDetail_20' ) end [2025-01-04 19:29:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:29:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:29:22] Production.INFO: ==18708== Releasing lock... [2025-01-04 19:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:29:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:30:05 [end_date_ymd] => 2025-01-04 19:30:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:30:05' and `end` < '2025-01-04 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-04 19:30:18] Production.INFO: count ==1435 [2025-01-04 19:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:30:05 - End Time 2025-01-04 19:30:05 [2025-01-04 19:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175029', 'tblTempUsageDetail_20' ) start [2025-01-04 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175029', 'tblTempUsageDetail_20' ) end [2025-01-04 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175029', 'tblTempVendorCDR_20' ) start [2025-01-04 19:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175029', 'tblTempVendorCDR_20' ) end [2025-01-04 19:30:18] Production.INFO: ProcessCDR(1,14175029,1,1,2) [2025-01-04 19:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175029', 'tblTempUsageDetail_20' ) start [2025-01-04 19:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175029', 'tblTempUsageDetail_20' ) end [2025-01-04 19:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:30:22] Production.INFO: ==18786== Releasing lock... [2025-01-04 19:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:30:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:31:05 [end_date_ymd] => 2025-01-04 19:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:31:05' and `end` < '2025-01-04 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-04 19:31:20] Production.INFO: count ==1426 [2025-01-04 19:31:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:31:05 - End Time 2025-01-04 19:31:05 [2025-01-04 19:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175035', 'tblTempUsageDetail_20' ) start [2025-01-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175035', 'tblTempUsageDetail_20' ) end [2025-01-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175035', 'tblTempVendorCDR_20' ) start [2025-01-04 19:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175035', 'tblTempVendorCDR_20' ) end [2025-01-04 19:31:20] Production.INFO: ProcessCDR(1,14175035,1,1,2) [2025-01-04 19:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175035', 'tblTempUsageDetail_20' ) start [2025-01-04 19:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175035', 'tblTempUsageDetail_20' ) end [2025-01-04 19:31:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:31:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:31:23] Production.INFO: ==18867== Releasing lock... [2025-01-04 19:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:31:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:32:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:32:04 [end_date_ymd] => 2025-01-04 19:32:04 [RateCDR] => 1 ) [2025-01-04 19:32: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-04 16:32:04' and `end` < '2025-01-04 19:32: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-04 19:32:17] Production.INFO: count ==1426 [2025-01-04 19:32:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:32:04 - End Time 2025-01-04 19:32:04 [2025-01-04 19:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175040', 'tblTempUsageDetail_20' ) start [2025-01-04 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175040', 'tblTempUsageDetail_20' ) end [2025-01-04 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175040', 'tblTempVendorCDR_20' ) start [2025-01-04 19:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175040', 'tblTempVendorCDR_20' ) end [2025-01-04 19:32:17] Production.INFO: ProcessCDR(1,14175040,1,1,2) [2025-01-04 19:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175040', 'tblTempUsageDetail_20' ) start [2025-01-04 19:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175040', 'tblTempUsageDetail_20' ) end [2025-01-04 19:32:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:32:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:32:21] Production.INFO: ==18942== Releasing lock... [2025-01-04 19:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:32:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:33:05 [end_date_ymd] => 2025-01-04 19:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:33:05' and `end` < '2025-01-04 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-04 19:33:18] Production.INFO: count ==1428 [2025-01-04 19:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:33:05 - End Time 2025-01-04 19:33:05 [2025-01-04 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175045', 'tblTempUsageDetail_20' ) start [2025-01-04 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175045', 'tblTempUsageDetail_20' ) end [2025-01-04 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175045', 'tblTempVendorCDR_20' ) start [2025-01-04 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175045', 'tblTempVendorCDR_20' ) end [2025-01-04 19:33:18] Production.INFO: ProcessCDR(1,14175045,1,1,2) [2025-01-04 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175045', 'tblTempUsageDetail_20' ) start [2025-01-04 19:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175045', 'tblTempUsageDetail_20' ) end [2025-01-04 19:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:33:21] Production.INFO: ==19021== Releasing lock... [2025-01-04 19:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:33:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:34:04 [end_date_ymd] => 2025-01-04 19:34:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:34:04' and `end` < '2025-01-04 19: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-04 19:34:17] Production.INFO: count ==1425 [2025-01-04 19:34:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:34:04 - End Time 2025-01-04 19:34:04 [2025-01-04 19:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175050', 'tblTempUsageDetail_20' ) start [2025-01-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175050', 'tblTempUsageDetail_20' ) end [2025-01-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175050', 'tblTempVendorCDR_20' ) start [2025-01-04 19:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175050', 'tblTempVendorCDR_20' ) end [2025-01-04 19:34:18] Production.INFO: ProcessCDR(1,14175050,1,1,2) [2025-01-04 19:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175050', 'tblTempUsageDetail_20' ) start [2025-01-04 19:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175050', 'tblTempUsageDetail_20' ) end [2025-01-04 19:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:34:21] Production.INFO: ==19101== Releasing lock... [2025-01-04 19:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:34:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:35:05 [end_date_ymd] => 2025-01-04 19:35:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:35:05' and `end` < '2025-01-04 19: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-04 19:35:18] Production.INFO: count ==1425 [2025-01-04 19:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:35:05 - End Time 2025-01-04 19:35:05 [2025-01-04 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175055', 'tblTempUsageDetail_20' ) start [2025-01-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175055', 'tblTempUsageDetail_20' ) end [2025-01-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175055', 'tblTempVendorCDR_20' ) start [2025-01-04 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175055', 'tblTempVendorCDR_20' ) end [2025-01-04 19:35:18] Production.INFO: ProcessCDR(1,14175055,1,1,2) [2025-01-04 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175055', 'tblTempUsageDetail_20' ) start [2025-01-04 19:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175055', 'tblTempUsageDetail_20' ) end [2025-01-04 19:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:35:21] Production.INFO: ==19181== Releasing lock... [2025-01-04 19:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:35:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:36:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:36:04 [end_date_ymd] => 2025-01-04 19:36:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:36:04' and `end` < '2025-01-04 19: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-04 19:36:17] Production.INFO: count ==1425 [2025-01-04 19:36:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:36:04 - End Time 2025-01-04 19:36:04 [2025-01-04 19:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175060', 'tblTempUsageDetail_20' ) start [2025-01-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175060', 'tblTempUsageDetail_20' ) end [2025-01-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175060', 'tblTempVendorCDR_20' ) start [2025-01-04 19:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175060', 'tblTempVendorCDR_20' ) end [2025-01-04 19:36:18] Production.INFO: ProcessCDR(1,14175060,1,1,2) [2025-01-04 19:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175060', 'tblTempUsageDetail_20' ) start [2025-01-04 19:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175060', 'tblTempUsageDetail_20' ) end [2025-01-04 19:36:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:36:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:36:20] Production.INFO: ==19262== Releasing lock... [2025-01-04 19:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:36:20] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:37:05 [end_date_ymd] => 2025-01-04 19:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:37:05' and `end` < '2025-01-04 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-04 19:37:19] Production.INFO: count ==1425 [2025-01-04 19:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:37:05 - End Time 2025-01-04 19:37:05 [2025-01-04 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175065', 'tblTempUsageDetail_20' ) start [2025-01-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175065', 'tblTempUsageDetail_20' ) end [2025-01-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175065', 'tblTempVendorCDR_20' ) start [2025-01-04 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175065', 'tblTempVendorCDR_20' ) end [2025-01-04 19:37:19] Production.INFO: ProcessCDR(1,14175065,1,1,2) [2025-01-04 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175065', 'tblTempUsageDetail_20' ) start [2025-01-04 19:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175065', 'tblTempUsageDetail_20' ) end [2025-01-04 19:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:37:22] Production.INFO: ==19340== Releasing lock... [2025-01-04 19:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:37:22] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:38:05 [end_date_ymd] => 2025-01-04 19:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:38:05' and `end` < '2025-01-04 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-04 19:38:18] Production.INFO: count ==1425 [2025-01-04 19:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:38:05 - End Time 2025-01-04 19:38:05 [2025-01-04 19:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175070', 'tblTempUsageDetail_20' ) start [2025-01-04 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175070', 'tblTempUsageDetail_20' ) end [2025-01-04 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175070', 'tblTempVendorCDR_20' ) start [2025-01-04 19:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175070', 'tblTempVendorCDR_20' ) end [2025-01-04 19:38:18] Production.INFO: ProcessCDR(1,14175070,1,1,2) [2025-01-04 19:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175070', 'tblTempUsageDetail_20' ) start [2025-01-04 19:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175070', 'tblTempUsageDetail_20' ) end [2025-01-04 19:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:38:21] Production.INFO: ==19421== Releasing lock... [2025-01-04 19:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:38:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:39:05 [end_date_ymd] => 2025-01-04 19:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:39:05' and `end` < '2025-01-04 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-04 19:39:18] Production.INFO: count ==1419 [2025-01-04 19:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:39:05 - End Time 2025-01-04 19:39:05 [2025-01-04 19:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175075', 'tblTempUsageDetail_20' ) start [2025-01-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175075', 'tblTempUsageDetail_20' ) end [2025-01-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175075', 'tblTempVendorCDR_20' ) start [2025-01-04 19:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175075', 'tblTempVendorCDR_20' ) end [2025-01-04 19:39:18] Production.INFO: ProcessCDR(1,14175075,1,1,2) [2025-01-04 19:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175075', 'tblTempUsageDetail_20' ) start [2025-01-04 19:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175075', 'tblTempUsageDetail_20' ) end [2025-01-04 19:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:39:21] Production.INFO: ==19497== Releasing lock... [2025-01-04 19:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:39:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:40:05 [end_date_ymd] => 2025-01-04 19:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:40:05' and `end` < '2025-01-04 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-04 19:40:17] Production.INFO: count ==1418 [2025-01-04 19:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:40:05 - End Time 2025-01-04 19:40:05 [2025-01-04 19:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175080', 'tblTempUsageDetail_20' ) start [2025-01-04 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175080', 'tblTempUsageDetail_20' ) end [2025-01-04 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175080', 'tblTempVendorCDR_20' ) start [2025-01-04 19:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175080', 'tblTempVendorCDR_20' ) end [2025-01-04 19:40:18] Production.INFO: ProcessCDR(1,14175080,1,1,2) [2025-01-04 19:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175080', 'tblTempUsageDetail_20' ) start [2025-01-04 19:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175080', 'tblTempUsageDetail_20' ) end [2025-01-04 19:40:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:40:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:40:21] Production.INFO: ==19582== Releasing lock... [2025-01-04 19:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:40:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:41:05 [end_date_ymd] => 2025-01-04 19:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:41:05' and `end` < '2025-01-04 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-04 19:41:18] Production.INFO: count ==1427 [2025-01-04 19:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:41:05 - End Time 2025-01-04 19:41:05 [2025-01-04 19:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175086', 'tblTempUsageDetail_20' ) start [2025-01-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175086', 'tblTempUsageDetail_20' ) end [2025-01-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175086', 'tblTempVendorCDR_20' ) start [2025-01-04 19:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175086', 'tblTempVendorCDR_20' ) end [2025-01-04 19:41:18] Production.INFO: ProcessCDR(1,14175086,1,1,2) [2025-01-04 19:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175086', 'tblTempUsageDetail_20' ) start [2025-01-04 19:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175086', 'tblTempUsageDetail_20' ) end [2025-01-04 19:41:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:41:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:41:21] Production.INFO: ==19715== Releasing lock... [2025-01-04 19:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:41:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:42:05 [end_date_ymd] => 2025-01-04 19:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:42:05' and `end` < '2025-01-04 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-04 19:42:20] Production.INFO: count ==1416 [2025-01-04 19:42:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:42:05 - End Time 2025-01-04 19:42:05 [2025-01-04 19:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175091', 'tblTempUsageDetail_20' ) start [2025-01-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175091', 'tblTempUsageDetail_20' ) end [2025-01-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175091', 'tblTempVendorCDR_20' ) start [2025-01-04 19:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175091', 'tblTempVendorCDR_20' ) end [2025-01-04 19:42:20] Production.INFO: ProcessCDR(1,14175091,1,1,2) [2025-01-04 19:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175091', 'tblTempUsageDetail_20' ) start [2025-01-04 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175091', 'tblTempUsageDetail_20' ) end [2025-01-04 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:42:23] Production.INFO: ==19800== Releasing lock... [2025-01-04 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:42:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:43:06 [end_date_ymd] => 2025-01-04 19:43:06 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:43:06' and `end` < '2025-01-04 19: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-04 19:43:20] Production.INFO: count ==1419 [2025-01-04 19:43:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:43:06 - End Time 2025-01-04 19:43:06 [2025-01-04 19:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175096', 'tblTempUsageDetail_20' ) start [2025-01-04 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175096', 'tblTempUsageDetail_20' ) end [2025-01-04 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175096', 'tblTempVendorCDR_20' ) start [2025-01-04 19:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175096', 'tblTempVendorCDR_20' ) end [2025-01-04 19:43:20] Production.INFO: ProcessCDR(1,14175096,1,1,2) [2025-01-04 19:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175096', 'tblTempUsageDetail_20' ) start [2025-01-04 19:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175096', 'tblTempUsageDetail_20' ) end [2025-01-04 19:43:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:43:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:43:23] Production.INFO: ==19891== Releasing lock... [2025-01-04 19:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:43:23] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:44:05 [end_date_ymd] => 2025-01-04 19:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:44:05' and `end` < '2025-01-04 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-04 19:44:18] Production.INFO: count ==1415 [2025-01-04 19:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:44:05 - End Time 2025-01-04 19:44:05 [2025-01-04 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175101', 'tblTempUsageDetail_20' ) start [2025-01-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175101', 'tblTempUsageDetail_20' ) end [2025-01-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175101', 'tblTempVendorCDR_20' ) start [2025-01-04 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175101', 'tblTempVendorCDR_20' ) end [2025-01-04 19:44:18] Production.INFO: ProcessCDR(1,14175101,1,1,2) [2025-01-04 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175101', 'tblTempUsageDetail_20' ) start [2025-01-04 19:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175101', 'tblTempUsageDetail_20' ) end [2025-01-04 19:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:44:21] Production.INFO: ==19981== Releasing lock... [2025-01-04 19:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:44:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:45:05 [end_date_ymd] => 2025-01-04 19:45:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:45:05' and `end` < '2025-01-04 19: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-04 19:45:18] Production.INFO: count ==1410 [2025-01-04 19:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:45:05 - End Time 2025-01-04 19:45:05 [2025-01-04 19:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175106', 'tblTempUsageDetail_20' ) start [2025-01-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175106', 'tblTempUsageDetail_20' ) end [2025-01-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175106', 'tblTempVendorCDR_20' ) start [2025-01-04 19:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175106', 'tblTempVendorCDR_20' ) end [2025-01-04 19:45:18] Production.INFO: ProcessCDR(1,14175106,1,1,2) [2025-01-04 19:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175106', 'tblTempUsageDetail_20' ) start [2025-01-04 19:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175106', 'tblTempUsageDetail_20' ) end [2025-01-04 19:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:45:21] Production.INFO: ==20070== Releasing lock... [2025-01-04 19:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:45:21] Production.INFO: 38.25 MB #Memory Used# [2025-01-04 19:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:46:04 [end_date_ymd] => 2025-01-04 19:46:04 [RateCDR] => 1 ) [2025-01-04 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-04 16:46:04' and `end` < '2025-01-04 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-04 19:46:17] Production.INFO: count ==1407 [2025-01-04 19:46:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:46:04 - End Time 2025-01-04 19:46:04 [2025-01-04 19:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175111', 'tblTempUsageDetail_20' ) start [2025-01-04 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175111', 'tblTempUsageDetail_20' ) end [2025-01-04 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175111', 'tblTempVendorCDR_20' ) start [2025-01-04 19:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175111', 'tblTempVendorCDR_20' ) end [2025-01-04 19:46:17] Production.INFO: ProcessCDR(1,14175111,1,1,2) [2025-01-04 19:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175111', 'tblTempUsageDetail_20' ) start [2025-01-04 19:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175111', 'tblTempUsageDetail_20' ) end [2025-01-04 19:46:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:46:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:46:21] Production.INFO: ==20160== Releasing lock... [2025-01-04 19:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:46:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:47:05 [end_date_ymd] => 2025-01-04 19:47:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:47:05' and `end` < '2025-01-04 19: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-04 19:47:18] Production.INFO: count ==1407 [2025-01-04 19:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:47:05 - End Time 2025-01-04 19:47:05 [2025-01-04 19:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175116', 'tblTempUsageDetail_20' ) start [2025-01-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175116', 'tblTempUsageDetail_20' ) end [2025-01-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175116', 'tblTempVendorCDR_20' ) start [2025-01-04 19:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175116', 'tblTempVendorCDR_20' ) end [2025-01-04 19:47:18] Production.INFO: ProcessCDR(1,14175116,1,1,2) [2025-01-04 19:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175116', 'tblTempUsageDetail_20' ) start [2025-01-04 19:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175116', 'tblTempUsageDetail_20' ) end [2025-01-04 19:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:47:21] Production.INFO: ==20250== Releasing lock... [2025-01-04 19:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:47:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:48:04 [end_date_ymd] => 2025-01-04 19:48:04 [RateCDR] => 1 ) [2025-01-04 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-04 16:48:04' and `end` < '2025-01-04 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-04 19:48:17] Production.INFO: count ==1406 [2025-01-04 19:48:17] Production.ERROR: pbx CDR StartTime 2025-01-04 16:48:04 - End Time 2025-01-04 19:48:04 [2025-01-04 19:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175121', 'tblTempUsageDetail_20' ) start [2025-01-04 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175121', 'tblTempUsageDetail_20' ) end [2025-01-04 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175121', 'tblTempVendorCDR_20' ) start [2025-01-04 19:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175121', 'tblTempVendorCDR_20' ) end [2025-01-04 19:48:17] Production.INFO: ProcessCDR(1,14175121,1,1,2) [2025-01-04 19:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:48:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175121', 'tblTempUsageDetail_20' ) start [2025-01-04 19:48:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175121', 'tblTempUsageDetail_20' ) end [2025-01-04 19:48:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:48:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:48:20] Production.INFO: ==20337== Releasing lock... [2025-01-04 19:48:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:48:20] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:49:05 [end_date_ymd] => 2025-01-04 19:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:49:05' and `end` < '2025-01-04 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-04 19:49:18] Production.INFO: count ==1393 [2025-01-04 19:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:49:05 - End Time 2025-01-04 19:49:05 [2025-01-04 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175126', 'tblTempUsageDetail_20' ) start [2025-01-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175126', 'tblTempUsageDetail_20' ) end [2025-01-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175126', 'tblTempVendorCDR_20' ) start [2025-01-04 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175126', 'tblTempVendorCDR_20' ) end [2025-01-04 19:49:18] Production.INFO: ProcessCDR(1,14175126,1,1,2) [2025-01-04 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175126', 'tblTempUsageDetail_20' ) start [2025-01-04 19:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175126', 'tblTempUsageDetail_20' ) end [2025-01-04 19:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:49:21] Production.INFO: ==20426== Releasing lock... [2025-01-04 19:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:49:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:50:05 [end_date_ymd] => 2025-01-04 19:50:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:50:05' and `end` < '2025-01-04 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-04 19:50:18] Production.INFO: count ==1392 [2025-01-04 19:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:50:05 - End Time 2025-01-04 19:50:05 [2025-01-04 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175131', 'tblTempUsageDetail_20' ) start [2025-01-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175131', 'tblTempUsageDetail_20' ) end [2025-01-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175131', 'tblTempVendorCDR_20' ) start [2025-01-04 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175131', 'tblTempVendorCDR_20' ) end [2025-01-04 19:50:19] Production.INFO: ProcessCDR(1,14175131,1,1,2) [2025-01-04 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175131', 'tblTempUsageDetail_20' ) start [2025-01-04 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175131', 'tblTempUsageDetail_20' ) end [2025-01-04 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:50:22] Production.INFO: ==20515== Releasing lock... [2025-01-04 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:50:22] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:51:05 [end_date_ymd] => 2025-01-04 19:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:51:05' and `end` < '2025-01-04 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-04 19:51:20] Production.INFO: count ==1394 [2025-01-04 19:51:20] Production.ERROR: pbx CDR StartTime 2025-01-04 16:51:05 - End Time 2025-01-04 19:51:05 [2025-01-04 19:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175137', 'tblTempUsageDetail_20' ) start [2025-01-04 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175137', 'tblTempUsageDetail_20' ) end [2025-01-04 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175137', 'tblTempVendorCDR_20' ) start [2025-01-04 19:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175137', 'tblTempVendorCDR_20' ) end [2025-01-04 19:51:20] Production.INFO: ProcessCDR(1,14175137,1,1,2) [2025-01-04 19:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175137', 'tblTempUsageDetail_20' ) start [2025-01-04 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175137', 'tblTempUsageDetail_20' ) end [2025-01-04 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:51:23] Production.INFO: ==20598== Releasing lock... [2025-01-04 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:51:23] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:52:05 [end_date_ymd] => 2025-01-04 19:52:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:52:05' and `end` < '2025-01-04 19: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-04 19:52:18] Production.INFO: count ==1396 [2025-01-04 19:52:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:52:05 - End Time 2025-01-04 19:52:05 [2025-01-04 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175142', 'tblTempUsageDetail_20' ) start [2025-01-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175142', 'tblTempUsageDetail_20' ) end [2025-01-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175142', 'tblTempVendorCDR_20' ) start [2025-01-04 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175142', 'tblTempVendorCDR_20' ) end [2025-01-04 19:52:18] Production.INFO: ProcessCDR(1,14175142,1,1,2) [2025-01-04 19:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175142', 'tblTempUsageDetail_20' ) start [2025-01-04 19:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175142', 'tblTempUsageDetail_20' ) end [2025-01-04 19:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:52:21] Production.INFO: ==20682== Releasing lock... [2025-01-04 19:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:52:21] Production.INFO: 38 MB #Memory Used# [2025-01-04 19:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:53:05 [end_date_ymd] => 2025-01-04 19:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:53:05' and `end` < '2025-01-04 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-04 19:53:17] Production.INFO: count ==1365 [2025-01-04 19:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:53:05 - End Time 2025-01-04 19:53:05 [2025-01-04 19:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175147', 'tblTempUsageDetail_20' ) start [2025-01-04 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175147', 'tblTempUsageDetail_20' ) end [2025-01-04 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175147', 'tblTempVendorCDR_20' ) start [2025-01-04 19:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175147', 'tblTempVendorCDR_20' ) end [2025-01-04 19:53:18] Production.INFO: ProcessCDR(1,14175147,1,1,2) [2025-01-04 19:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175147', 'tblTempUsageDetail_20' ) start [2025-01-04 19:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175147', 'tblTempUsageDetail_20' ) end [2025-01-04 19:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:53:21] Production.INFO: ==20763== Releasing lock... [2025-01-04 19:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:53:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:54:05 [end_date_ymd] => 2025-01-04 19:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:54:05' and `end` < '2025-01-04 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-04 19:54:18] Production.INFO: count ==1364 [2025-01-04 19:54:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:54:05 - End Time 2025-01-04 19:54:05 [2025-01-04 19:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175152', 'tblTempUsageDetail_20' ) start [2025-01-04 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175152', 'tblTempUsageDetail_20' ) end [2025-01-04 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175152', 'tblTempVendorCDR_20' ) start [2025-01-04 19:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175152', 'tblTempVendorCDR_20' ) end [2025-01-04 19:54:18] Production.INFO: ProcessCDR(1,14175152,1,1,2) [2025-01-04 19:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175152', 'tblTempUsageDetail_20' ) start [2025-01-04 19:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175152', 'tblTempUsageDetail_20' ) end [2025-01-04 19:54:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:54:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:54:21] Production.INFO: ==20845== Releasing lock... [2025-01-04 19:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:54:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:55:05 [end_date_ymd] => 2025-01-04 19:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:55:05' and `end` < '2025-01-04 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-04 19:55:18] Production.INFO: count ==1363 [2025-01-04 19:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:55:05 - End Time 2025-01-04 19:55:05 [2025-01-04 19:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175157', 'tblTempUsageDetail_20' ) start [2025-01-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175157', 'tblTempUsageDetail_20' ) end [2025-01-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175157', 'tblTempVendorCDR_20' ) start [2025-01-04 19:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175157', 'tblTempVendorCDR_20' ) end [2025-01-04 19:55:18] Production.INFO: ProcessCDR(1,14175157,1,1,2) [2025-01-04 19:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175157', 'tblTempUsageDetail_20' ) start [2025-01-04 19:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175157', 'tblTempUsageDetail_20' ) end [2025-01-04 19:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:55:21] Production.INFO: ==20928== Releasing lock... [2025-01-04 19:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:55:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:56:05 [end_date_ymd] => 2025-01-04 19:56:05 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:56:05' and `end` < '2025-01-04 19: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-04 19:56:19] Production.INFO: count ==1360 [2025-01-04 19:56:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:56:05 - End Time 2025-01-04 19:56:05 [2025-01-04 19:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175162', 'tblTempUsageDetail_20' ) start [2025-01-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175162', 'tblTempUsageDetail_20' ) end [2025-01-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175162', 'tblTempVendorCDR_20' ) start [2025-01-04 19:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175162', 'tblTempVendorCDR_20' ) end [2025-01-04 19:56:19] Production.INFO: ProcessCDR(1,14175162,1,1,2) [2025-01-04 19:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175162', 'tblTempUsageDetail_20' ) start [2025-01-04 19:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175162', 'tblTempUsageDetail_20' ) end [2025-01-04 19:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:56:22] Production.INFO: ==21054== Releasing lock... [2025-01-04 19:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:56:22] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:57:04 [end_date_ymd] => 2025-01-04 19:57:04 [RateCDR] => 1 ) [2025-01-04 19: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-04 16:57:04' and `end` < '2025-01-04 19: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-04 19:57:19] Production.INFO: count ==1360 [2025-01-04 19:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 16:57:04 - End Time 2025-01-04 19:57:04 [2025-01-04 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175167', 'tblTempUsageDetail_20' ) start [2025-01-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175167', 'tblTempUsageDetail_20' ) end [2025-01-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175167', 'tblTempVendorCDR_20' ) start [2025-01-04 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175167', 'tblTempVendorCDR_20' ) end [2025-01-04 19:57:19] Production.INFO: ProcessCDR(1,14175167,1,1,2) [2025-01-04 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175167', 'tblTempUsageDetail_20' ) start [2025-01-04 19:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175167', 'tblTempUsageDetail_20' ) end [2025-01-04 19:57:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:57:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:57:23] Production.INFO: ==21136== Releasing lock... [2025-01-04 19:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:57:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:58:05 [end_date_ymd] => 2025-01-04 19:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:58:05' and `end` < '2025-01-04 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-04 19:58:18] Production.INFO: count ==1352 [2025-01-04 19:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:58:05 - End Time 2025-01-04 19:58:05 [2025-01-04 19:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175172', 'tblTempUsageDetail_20' ) start [2025-01-04 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175172', 'tblTempUsageDetail_20' ) end [2025-01-04 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175172', 'tblTempVendorCDR_20' ) start [2025-01-04 19:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175172', 'tblTempVendorCDR_20' ) end [2025-01-04 19:58:18] Production.INFO: ProcessCDR(1,14175172,1,1,2) [2025-01-04 19:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175172', 'tblTempUsageDetail_20' ) start [2025-01-04 19:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175172', 'tblTempUsageDetail_20' ) end [2025-01-04 19:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:58:21] Production.INFO: ==21223== Releasing lock... [2025-01-04 19:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:58:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 16:59:05 [end_date_ymd] => 2025-01-04 19:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 16:59:05' and `end` < '2025-01-04 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-04 19:59:18] Production.INFO: count ==1352 [2025-01-04 19:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 16:59:05 - End Time 2025-01-04 19:59:05 [2025-01-04 19:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175177', 'tblTempUsageDetail_20' ) start [2025-01-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175177', 'tblTempUsageDetail_20' ) end [2025-01-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175177', 'tblTempVendorCDR_20' ) start [2025-01-04 19:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175177', 'tblTempVendorCDR_20' ) end [2025-01-04 19:59:18] Production.INFO: ProcessCDR(1,14175177,1,1,2) [2025-01-04 19:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 19:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175177', 'tblTempUsageDetail_20' ) start [2025-01-04 19:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175177', 'tblTempUsageDetail_20' ) end [2025-01-04 19:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 19:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 19:59:21] Production.INFO: ==21302== Releasing lock... [2025-01-04 19:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 19:59:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 20:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:00:05 [end_date_ymd] => 2025-01-04 20:00:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:00:05' and `end` < '2025-01-04 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-04 20:00:18] Production.INFO: count ==1354 [2025-01-04 20:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:00:05 - End Time 2025-01-04 20:00:05 [2025-01-04 20:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175183', 'tblTempUsageDetail_20' ) start [2025-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175183', 'tblTempUsageDetail_20' ) end [2025-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175183', 'tblTempVendorCDR_20' ) start [2025-01-04 20:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175183', 'tblTempVendorCDR_20' ) end [2025-01-04 20:00:19] Production.INFO: ProcessCDR(1,14175183,1,1,2) [2025-01-04 20:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175183', 'tblTempUsageDetail_20' ) start [2025-01-04 20:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175183', 'tblTempUsageDetail_20' ) end [2025-01-04 20:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:00:23] Production.INFO: ==21385== Releasing lock... [2025-01-04 20:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:00:23] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:01:06 [end_date_ymd] => 2025-01-04 20:01:06 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:01:06' and `end` < '2025-01-04 20: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-04 20:01:19] Production.INFO: count ==1343 [2025-01-04 20:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:01:06 - End Time 2025-01-04 20:01:06 [2025-01-04 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175188', 'tblTempUsageDetail_20' ) start [2025-01-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175188', 'tblTempUsageDetail_20' ) end [2025-01-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175188', 'tblTempVendorCDR_20' ) start [2025-01-04 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175188', 'tblTempVendorCDR_20' ) end [2025-01-04 20:01:19] Production.INFO: ProcessCDR(1,14175188,1,1,2) [2025-01-04 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175188', 'tblTempUsageDetail_20' ) start [2025-01-04 20:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175188', 'tblTempUsageDetail_20' ) end [2025-01-04 20:01:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:01:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:01:24] Production.INFO: ==21523== Releasing lock... [2025-01-04 20:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:01:24] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:02:05 [end_date_ymd] => 2025-01-04 20:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:02:05' and `end` < '2025-01-04 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-04 20:02:18] Production.INFO: count ==1342 [2025-01-04 20:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:02:05 - End Time 2025-01-04 20:02:05 [2025-01-04 20:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175193', 'tblTempUsageDetail_20' ) start [2025-01-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175193', 'tblTempUsageDetail_20' ) end [2025-01-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175193', 'tblTempVendorCDR_20' ) start [2025-01-04 20:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175193', 'tblTempVendorCDR_20' ) end [2025-01-04 20:02:18] Production.INFO: ProcessCDR(1,14175193,1,1,2) [2025-01-04 20:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175193', 'tblTempUsageDetail_20' ) start [2025-01-04 20:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175193', 'tblTempUsageDetail_20' ) end [2025-01-04 20:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:02:21] Production.INFO: ==21606== Releasing lock... [2025-01-04 20:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:02:21] Production.INFO: 37.75 MB #Memory Used# [2025-01-04 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:03:05 [end_date_ymd] => 2025-01-04 20:03:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:03:05' and `end` < '2025-01-04 20: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-04 20:03:18] Production.INFO: count ==1341 [2025-01-04 20:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:03:05 - End Time 2025-01-04 20:03:05 [2025-01-04 20:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175198', 'tblTempUsageDetail_20' ) start [2025-01-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175198', 'tblTempUsageDetail_20' ) end [2025-01-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175198', 'tblTempVendorCDR_20' ) start [2025-01-04 20:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175198', 'tblTempVendorCDR_20' ) end [2025-01-04 20:03:18] Production.INFO: ProcessCDR(1,14175198,1,1,2) [2025-01-04 20:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175198', 'tblTempUsageDetail_20' ) start [2025-01-04 20:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175198', 'tblTempUsageDetail_20' ) end [2025-01-04 20:03:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:03:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:03:21] Production.INFO: ==21687== Releasing lock... [2025-01-04 20:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:03:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:04:05 [end_date_ymd] => 2025-01-04 20:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:04:05' and `end` < '2025-01-04 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-04 20:04:18] Production.INFO: count ==1334 [2025-01-04 20:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:04:05 - End Time 2025-01-04 20:04:05 [2025-01-04 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175203', 'tblTempUsageDetail_20' ) start [2025-01-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175203', 'tblTempUsageDetail_20' ) end [2025-01-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175203', 'tblTempVendorCDR_20' ) start [2025-01-04 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175203', 'tblTempVendorCDR_20' ) end [2025-01-04 20:04:18] Production.INFO: ProcessCDR(1,14175203,1,1,2) [2025-01-04 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175203', 'tblTempUsageDetail_20' ) start [2025-01-04 20:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175203', 'tblTempUsageDetail_20' ) end [2025-01-04 20:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:04:21] Production.INFO: ==21772== Releasing lock... [2025-01-04 20:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:04:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:05:05 [end_date_ymd] => 2025-01-04 20:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:05:05' and `end` < '2025-01-04 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-04 20:05:18] Production.INFO: count ==1332 [2025-01-04 20:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:05:05 - End Time 2025-01-04 20:05:05 [2025-01-04 20:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175207', 'tblTempUsageDetail_20' ) start [2025-01-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175207', 'tblTempUsageDetail_20' ) end [2025-01-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175207', 'tblTempVendorCDR_20' ) start [2025-01-04 20:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175207', 'tblTempVendorCDR_20' ) end [2025-01-04 20:05:18] Production.INFO: ProcessCDR(1,14175207,1,1,2) [2025-01-04 20:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175207', 'tblTempUsageDetail_20' ) start [2025-01-04 20:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175207', 'tblTempUsageDetail_20' ) end [2025-01-04 20:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:05:21] Production.INFO: ==21858== Releasing lock... [2025-01-04 20:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:05:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:06:05 [end_date_ymd] => 2025-01-04 20:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:06:05' and `end` < '2025-01-04 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-04 20:06:18] Production.INFO: count ==1332 [2025-01-04 20:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:06:05 - End Time 2025-01-04 20:06:05 [2025-01-04 20:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175213', 'tblTempUsageDetail_20' ) start [2025-01-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175213', 'tblTempUsageDetail_20' ) end [2025-01-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175213', 'tblTempVendorCDR_20' ) start [2025-01-04 20:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175213', 'tblTempVendorCDR_20' ) end [2025-01-04 20:06:18] Production.INFO: ProcessCDR(1,14175213,1,1,2) [2025-01-04 20:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175213', 'tblTempUsageDetail_20' ) start [2025-01-04 20:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175213', 'tblTempUsageDetail_20' ) end [2025-01-04 20:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:06:21] Production.INFO: ==21936== Releasing lock... [2025-01-04 20:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:06:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:07:05 [end_date_ymd] => 2025-01-04 20:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:07:05' and `end` < '2025-01-04 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-04 20:07:18] Production.INFO: count ==1325 [2025-01-04 20:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:07:05 - End Time 2025-01-04 20:07:05 [2025-01-04 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175218', 'tblTempUsageDetail_20' ) start [2025-01-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175218', 'tblTempUsageDetail_20' ) end [2025-01-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175218', 'tblTempVendorCDR_20' ) start [2025-01-04 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175218', 'tblTempVendorCDR_20' ) end [2025-01-04 20:07:19] Production.INFO: ProcessCDR(1,14175218,1,1,2) [2025-01-04 20:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175218', 'tblTempUsageDetail_20' ) start [2025-01-04 20:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175218', 'tblTempUsageDetail_20' ) end [2025-01-04 20:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:07:22] Production.INFO: ==22015== Releasing lock... [2025-01-04 20:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:07:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:08:04 [end_date_ymd] => 2025-01-04 20:08:04 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:08:04' and `end` < '2025-01-04 20: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-04 20:08:17] Production.INFO: count ==1318 [2025-01-04 20:08:17] Production.ERROR: pbx CDR StartTime 2025-01-04 17:08:04 - End Time 2025-01-04 20:08:04 [2025-01-04 20:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175223', 'tblTempUsageDetail_20' ) start [2025-01-04 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175223', 'tblTempUsageDetail_20' ) end [2025-01-04 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175223', 'tblTempVendorCDR_20' ) start [2025-01-04 20:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175223', 'tblTempVendorCDR_20' ) end [2025-01-04 20:08:17] Production.INFO: ProcessCDR(1,14175223,1,1,2) [2025-01-04 20:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175223', 'tblTempUsageDetail_20' ) start [2025-01-04 20:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175223', 'tblTempUsageDetail_20' ) end [2025-01-04 20:08:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:08:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:08:20] Production.INFO: ==22095== Releasing lock... [2025-01-04 20:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:08:20] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:09:05 [end_date_ymd] => 2025-01-04 20:09:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:09:05' and `end` < '2025-01-04 20: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-04 20:09:18] Production.INFO: count ==1315 [2025-01-04 20:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:09:05 - End Time 2025-01-04 20:09:05 [2025-01-04 20:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175228', 'tblTempUsageDetail_20' ) start [2025-01-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175228', 'tblTempUsageDetail_20' ) end [2025-01-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175228', 'tblTempVendorCDR_20' ) start [2025-01-04 20:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175228', 'tblTempVendorCDR_20' ) end [2025-01-04 20:09:18] Production.INFO: ProcessCDR(1,14175228,1,1,2) [2025-01-04 20:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175228', 'tblTempUsageDetail_20' ) start [2025-01-04 20:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175228', 'tblTempUsageDetail_20' ) end [2025-01-04 20:09:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:09:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:09:21] Production.INFO: ==22171== Releasing lock... [2025-01-04 20:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:09:21] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:10:06 [end_date_ymd] => 2025-01-04 20:10:06 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:10:06' and `end` < '2025-01-04 20: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-04 20:10:19] Production.INFO: count ==1313 [2025-01-04 20:10:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:10:06 - End Time 2025-01-04 20:10:06 [2025-01-04 20:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175234', 'tblTempUsageDetail_20' ) start [2025-01-04 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175234', 'tblTempUsageDetail_20' ) end [2025-01-04 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175234', 'tblTempVendorCDR_20' ) start [2025-01-04 20:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175234', 'tblTempVendorCDR_20' ) end [2025-01-04 20:10:19] Production.INFO: ProcessCDR(1,14175234,1,1,2) [2025-01-04 20:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175234', 'tblTempUsageDetail_20' ) start [2025-01-04 20:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175234', 'tblTempUsageDetail_20' ) end [2025-01-04 20:10:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:10:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:10:22] Production.INFO: ==22250== Releasing lock... [2025-01-04 20:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:10:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:11:05 [end_date_ymd] => 2025-01-04 20:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:11:05' and `end` < '2025-01-04 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-04 20:11:18] Production.INFO: count ==1276 [2025-01-04 20:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:11:05 - End Time 2025-01-04 20:11:05 [2025-01-04 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175239', 'tblTempUsageDetail_20' ) start [2025-01-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175239', 'tblTempUsageDetail_20' ) end [2025-01-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175239', 'tblTempVendorCDR_20' ) start [2025-01-04 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175239', 'tblTempVendorCDR_20' ) end [2025-01-04 20:11:18] Production.INFO: ProcessCDR(1,14175239,1,1,2) [2025-01-04 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175239', 'tblTempUsageDetail_20' ) start [2025-01-04 20:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175239', 'tblTempUsageDetail_20' ) end [2025-01-04 20:11:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:11:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:11:21] Production.INFO: ==22332== Releasing lock... [2025-01-04 20:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:11:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:12:05 [end_date_ymd] => 2025-01-04 20:12:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:12:05' and `end` < '2025-01-04 20: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-04 20:12:19] Production.INFO: count ==1278 [2025-01-04 20:12:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:12:05 - End Time 2025-01-04 20:12:05 [2025-01-04 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175244', 'tblTempUsageDetail_20' ) start [2025-01-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175244', 'tblTempUsageDetail_20' ) end [2025-01-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175244', 'tblTempVendorCDR_20' ) start [2025-01-04 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175244', 'tblTempVendorCDR_20' ) end [2025-01-04 20:12:19] Production.INFO: ProcessCDR(1,14175244,1,1,2) [2025-01-04 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175244', 'tblTempUsageDetail_20' ) start [2025-01-04 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175244', 'tblTempUsageDetail_20' ) end [2025-01-04 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:12:23] Production.INFO: ==22448== Releasing lock... [2025-01-04 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:12:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:13:05 [end_date_ymd] => 2025-01-04 20:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:13:05' and `end` < '2025-01-04 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-04 20:13:18] Production.INFO: count ==1275 [2025-01-04 20:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:13:05 - End Time 2025-01-04 20:13:05 [2025-01-04 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175249', 'tblTempUsageDetail_20' ) start [2025-01-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175249', 'tblTempUsageDetail_20' ) end [2025-01-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175249', 'tblTempVendorCDR_20' ) start [2025-01-04 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175249', 'tblTempVendorCDR_20' ) end [2025-01-04 20:13:18] Production.INFO: ProcessCDR(1,14175249,1,1,2) [2025-01-04 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175249', 'tblTempUsageDetail_20' ) start [2025-01-04 20:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175249', 'tblTempUsageDetail_20' ) end [2025-01-04 20:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:13:21] Production.INFO: ==22537== Releasing lock... [2025-01-04 20:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:13:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:14:05 [end_date_ymd] => 2025-01-04 20:14:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:14:05' and `end` < '2025-01-04 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-04 20:14:19] Production.INFO: count ==1273 [2025-01-04 20:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:14:05 - End Time 2025-01-04 20:14:05 [2025-01-04 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175254', 'tblTempUsageDetail_20' ) start [2025-01-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175254', 'tblTempUsageDetail_20' ) end [2025-01-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175254', 'tblTempVendorCDR_20' ) start [2025-01-04 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175254', 'tblTempVendorCDR_20' ) end [2025-01-04 20:14:19] Production.INFO: ProcessCDR(1,14175254,1,1,2) [2025-01-04 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175254', 'tblTempUsageDetail_20' ) start [2025-01-04 20:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175254', 'tblTempUsageDetail_20' ) end [2025-01-04 20:14:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:14:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:14:22] Production.INFO: ==22621== Releasing lock... [2025-01-04 20:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:14:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:15:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:15:04 [end_date_ymd] => 2025-01-04 20:15:04 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:15:04' and `end` < '2025-01-04 20: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-04 20:15:17] Production.INFO: count ==1272 [2025-01-04 20:15:17] Production.ERROR: pbx CDR StartTime 2025-01-04 17:15:04 - End Time 2025-01-04 20:15:04 [2025-01-04 20:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175259', 'tblTempUsageDetail_20' ) start [2025-01-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175259', 'tblTempUsageDetail_20' ) end [2025-01-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175259', 'tblTempVendorCDR_20' ) start [2025-01-04 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175259', 'tblTempVendorCDR_20' ) end [2025-01-04 20:15:18] Production.INFO: ProcessCDR(1,14175259,1,1,2) [2025-01-04 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175259', 'tblTempUsageDetail_20' ) start [2025-01-04 20:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175259', 'tblTempUsageDetail_20' ) end [2025-01-04 20:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:15:21] Production.INFO: ==22707== Releasing lock... [2025-01-04 20:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:15:21] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:16:05 [end_date_ymd] => 2025-01-04 20:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:16:05' and `end` < '2025-01-04 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-04 20:16:20] Production.INFO: count ==1269 [2025-01-04 20:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 17:16:05 - End Time 2025-01-04 20:16:05 [2025-01-04 20:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175264', 'tblTempUsageDetail_20' ) start [2025-01-04 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175264', 'tblTempUsageDetail_20' ) end [2025-01-04 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175264', 'tblTempVendorCDR_20' ) start [2025-01-04 20:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175264', 'tblTempVendorCDR_20' ) end [2025-01-04 20:16:20] Production.INFO: ProcessCDR(1,14175264,1,1,2) [2025-01-04 20:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175264', 'tblTempUsageDetail_20' ) start [2025-01-04 20:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175264', 'tblTempUsageDetail_20' ) end [2025-01-04 20:16:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:16:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:16:23] Production.INFO: ==22792== Releasing lock... [2025-01-04 20:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:16:23] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:17:05 [end_date_ymd] => 2025-01-04 20:17:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:17:05' and `end` < '2025-01-04 20: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-04 20:17:18] Production.INFO: count ==1269 [2025-01-04 20:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:17:05 - End Time 2025-01-04 20:17:05 [2025-01-04 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175269', 'tblTempUsageDetail_20' ) start [2025-01-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175269', 'tblTempUsageDetail_20' ) end [2025-01-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175269', 'tblTempVendorCDR_20' ) start [2025-01-04 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175269', 'tblTempVendorCDR_20' ) end [2025-01-04 20:17:18] Production.INFO: ProcessCDR(1,14175269,1,1,2) [2025-01-04 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175269', 'tblTempUsageDetail_20' ) start [2025-01-04 20:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175269', 'tblTempUsageDetail_20' ) end [2025-01-04 20:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:17:22] Production.INFO: ==22878== Releasing lock... [2025-01-04 20:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:17:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:18:05 [end_date_ymd] => 2025-01-04 20:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:18:05' and `end` < '2025-01-04 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-04 20:18:18] Production.INFO: count ==1264 [2025-01-04 20:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:18:05 - End Time 2025-01-04 20:18:05 [2025-01-04 20:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175274', 'tblTempUsageDetail_20' ) start [2025-01-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175274', 'tblTempUsageDetail_20' ) end [2025-01-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175274', 'tblTempVendorCDR_20' ) start [2025-01-04 20:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175274', 'tblTempVendorCDR_20' ) end [2025-01-04 20:18:18] Production.INFO: ProcessCDR(1,14175274,1,1,2) [2025-01-04 20:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175274', 'tblTempUsageDetail_20' ) start [2025-01-04 20:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175274', 'tblTempUsageDetail_20' ) end [2025-01-04 20:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:18:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:18:21] Production.INFO: ==22977== Releasing lock... [2025-01-04 20:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:18:21] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:19:05 [end_date_ymd] => 2025-01-04 20:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:19:05' and `end` < '2025-01-04 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-04 20:19:19] Production.INFO: count ==1264 [2025-01-04 20:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:19:05 - End Time 2025-01-04 20:19:05 [2025-01-04 20:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175279', 'tblTempUsageDetail_20' ) start [2025-01-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175279', 'tblTempUsageDetail_20' ) end [2025-01-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175279', 'tblTempVendorCDR_20' ) start [2025-01-04 20:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175279', 'tblTempVendorCDR_20' ) end [2025-01-04 20:19:19] Production.INFO: ProcessCDR(1,14175279,1,1,2) [2025-01-04 20:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175279', 'tblTempUsageDetail_20' ) start [2025-01-04 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175279', 'tblTempUsageDetail_20' ) end [2025-01-04 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:19:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:19:23] Production.INFO: ==23076== Releasing lock... [2025-01-04 20:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:19:23] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:20:06 [end_date_ymd] => 2025-01-04 20:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 17:20:06' and `end` < '2025-01-04 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-04 20:20:19] Production.INFO: count ==1266 [2025-01-04 20:20:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:20:06 - End Time 2025-01-04 20:20:06 [2025-01-04 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175285', 'tblTempUsageDetail_20' ) start [2025-01-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175285', 'tblTempUsageDetail_20' ) end [2025-01-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175285', 'tblTempVendorCDR_20' ) start [2025-01-04 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175285', 'tblTempVendorCDR_20' ) end [2025-01-04 20:20:19] Production.INFO: ProcessCDR(1,14175285,1,1,2) [2025-01-04 20:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175285', 'tblTempUsageDetail_20' ) start [2025-01-04 20:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175285', 'tblTempUsageDetail_20' ) end [2025-01-04 20:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:20:22] Production.INFO: ==23170== Releasing lock... [2025-01-04 20:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:20:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:21:05 [end_date_ymd] => 2025-01-04 20:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:21:05' and `end` < '2025-01-04 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-04 20:21:19] Production.INFO: count ==1284 [2025-01-04 20:21:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:21:05 - End Time 2025-01-04 20:21:05 [2025-01-04 20:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175290', 'tblTempUsageDetail_20' ) start [2025-01-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175290', 'tblTempUsageDetail_20' ) end [2025-01-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175290', 'tblTempVendorCDR_20' ) start [2025-01-04 20:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175290', 'tblTempVendorCDR_20' ) end [2025-01-04 20:21:19] Production.INFO: ProcessCDR(1,14175290,1,1,2) [2025-01-04 20:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175290', 'tblTempUsageDetail_20' ) start [2025-01-04 20:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175290', 'tblTempUsageDetail_20' ) end [2025-01-04 20:21:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:21:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:21:24] Production.INFO: ==23264== Releasing lock... [2025-01-04 20:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:21:24] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:22:05 [end_date_ymd] => 2025-01-04 20:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:22:05' and `end` < '2025-01-04 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-04 20:22:18] Production.INFO: count ==1284 [2025-01-04 20:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:22:05 - End Time 2025-01-04 20:22:05 [2025-01-04 20:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175295', 'tblTempUsageDetail_20' ) start [2025-01-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175295', 'tblTempUsageDetail_20' ) end [2025-01-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175295', 'tblTempVendorCDR_20' ) start [2025-01-04 20:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175295', 'tblTempVendorCDR_20' ) end [2025-01-04 20:22:18] Production.INFO: ProcessCDR(1,14175295,1,1,2) [2025-01-04 20:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175295', 'tblTempUsageDetail_20' ) start [2025-01-04 20:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175295', 'tblTempUsageDetail_20' ) end [2025-01-04 20:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:22:21] Production.INFO: ==23355== Releasing lock... [2025-01-04 20:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:22:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:23:05 [end_date_ymd] => 2025-01-04 20:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:23:05' and `end` < '2025-01-04 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-04 20:23:18] Production.INFO: count ==1287 [2025-01-04 20:23:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:23:05 - End Time 2025-01-04 20:23:05 [2025-01-04 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175300', 'tblTempUsageDetail_20' ) start [2025-01-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175300', 'tblTempUsageDetail_20' ) end [2025-01-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175300', 'tblTempVendorCDR_20' ) start [2025-01-04 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175300', 'tblTempVendorCDR_20' ) end [2025-01-04 20:23:18] Production.INFO: ProcessCDR(1,14175300,1,1,2) [2025-01-04 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175300', 'tblTempUsageDetail_20' ) start [2025-01-04 20:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175300', 'tblTempUsageDetail_20' ) end [2025-01-04 20:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:23:22] Production.INFO: ==23461== Releasing lock... [2025-01-04 20:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:23:22] Production.INFO: 37.5 MB #Memory Used# [2025-01-04 20:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:24:05 [end_date_ymd] => 2025-01-04 20:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:24:05' and `end` < '2025-01-04 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-04 20:24:18] Production.INFO: count ==1287 [2025-01-04 20:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:24:05 - End Time 2025-01-04 20:24:05 [2025-01-04 20:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175305', 'tblTempUsageDetail_20' ) start [2025-01-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175305', 'tblTempUsageDetail_20' ) end [2025-01-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175305', 'tblTempVendorCDR_20' ) start [2025-01-04 20:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175305', 'tblTempVendorCDR_20' ) end [2025-01-04 20:24:18] Production.INFO: ProcessCDR(1,14175305,1,1,2) [2025-01-04 20:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175305', 'tblTempUsageDetail_20' ) start [2025-01-04 20:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175305', 'tblTempUsageDetail_20' ) end [2025-01-04 20:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:24:21] Production.INFO: ==23552== Releasing lock... [2025-01-04 20:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:25:05 [end_date_ymd] => 2025-01-04 20:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:25:05' and `end` < '2025-01-04 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-04 20:25:18] Production.INFO: count ==1287 [2025-01-04 20:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:25:05 - End Time 2025-01-04 20:25:05 [2025-01-04 20:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175310', 'tblTempUsageDetail_20' ) start [2025-01-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175310', 'tblTempUsageDetail_20' ) end [2025-01-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175310', 'tblTempVendorCDR_20' ) start [2025-01-04 20:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175310', 'tblTempVendorCDR_20' ) end [2025-01-04 20:25:18] Production.INFO: ProcessCDR(1,14175310,1,1,2) [2025-01-04 20:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175310', 'tblTempUsageDetail_20' ) start [2025-01-04 20:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175310', 'tblTempUsageDetail_20' ) end [2025-01-04 20:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:25:21] Production.INFO: ==23649== Releasing lock... [2025-01-04 20:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:26:04 [end_date_ymd] => 2025-01-04 20:26:04 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:26:04' and `end` < '2025-01-04 20: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-04 20:26:18] Production.INFO: count ==1288 [2025-01-04 20:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:26:04 - End Time 2025-01-04 20:26:04 [2025-01-04 20:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175315', 'tblTempUsageDetail_20' ) start [2025-01-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175315', 'tblTempUsageDetail_20' ) end [2025-01-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175315', 'tblTempVendorCDR_20' ) start [2025-01-04 20:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175315', 'tblTempVendorCDR_20' ) end [2025-01-04 20:26:18] Production.INFO: ProcessCDR(1,14175315,1,1,2) [2025-01-04 20:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175315', 'tblTempUsageDetail_20' ) start [2025-01-04 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175315', 'tblTempUsageDetail_20' ) end [2025-01-04 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:26:23] Production.INFO: ==23760== Releasing lock... [2025-01-04 20:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:26:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:27:05 [end_date_ymd] => 2025-01-04 20:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:27:05' and `end` < '2025-01-04 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-04 20:27:18] Production.INFO: count ==1287 [2025-01-04 20:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:27:05 - End Time 2025-01-04 20:27:05 [2025-01-04 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175320', 'tblTempUsageDetail_20' ) start [2025-01-04 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175320', 'tblTempUsageDetail_20' ) end [2025-01-04 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175320', 'tblTempVendorCDR_20' ) start [2025-01-04 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175320', 'tblTempVendorCDR_20' ) end [2025-01-04 20:27:18] Production.INFO: ProcessCDR(1,14175320,1,1,2) [2025-01-04 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175320', 'tblTempUsageDetail_20' ) start [2025-01-04 20:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175320', 'tblTempUsageDetail_20' ) end [2025-01-04 20:27:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:27:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:27:21] Production.INFO: ==23890== Releasing lock... [2025-01-04 20:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:27:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:28:05 [end_date_ymd] => 2025-01-04 20:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:28:05' and `end` < '2025-01-04 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-04 20:28:20] Production.INFO: count ==1284 [2025-01-04 20:28:20] Production.ERROR: pbx CDR StartTime 2025-01-04 17:28:05 - End Time 2025-01-04 20:28:05 [2025-01-04 20:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175325', 'tblTempUsageDetail_20' ) start [2025-01-04 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175325', 'tblTempUsageDetail_20' ) end [2025-01-04 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175325', 'tblTempVendorCDR_20' ) start [2025-01-04 20:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175325', 'tblTempVendorCDR_20' ) end [2025-01-04 20:28:20] Production.INFO: ProcessCDR(1,14175325,1,1,2) [2025-01-04 20:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175325', 'tblTempUsageDetail_20' ) start [2025-01-04 20:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175325', 'tblTempUsageDetail_20' ) end [2025-01-04 20:28:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:28:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:28:23] Production.INFO: ==23982== Releasing lock... [2025-01-04 20:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:28:23] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:29:05 [end_date_ymd] => 2025-01-04 20:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:29:05' and `end` < '2025-01-04 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-04 20:29:18] Production.INFO: count ==1284 [2025-01-04 20:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:29:05 - End Time 2025-01-04 20:29:05 [2025-01-04 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175330', 'tblTempUsageDetail_20' ) start [2025-01-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175330', 'tblTempUsageDetail_20' ) end [2025-01-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175330', 'tblTempVendorCDR_20' ) start [2025-01-04 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175330', 'tblTempVendorCDR_20' ) end [2025-01-04 20:29:18] Production.INFO: ProcessCDR(1,14175330,1,1,2) [2025-01-04 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175330', 'tblTempUsageDetail_20' ) start [2025-01-04 20:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175330', 'tblTempUsageDetail_20' ) end [2025-01-04 20:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:29:21] Production.INFO: ==24075== Releasing lock... [2025-01-04 20:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:29:21] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:30:06 [end_date_ymd] => 2025-01-04 20:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 17:30:06' and `end` < '2025-01-04 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-04 20:30:19] Production.INFO: count ==1283 [2025-01-04 20:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:30:06 - End Time 2025-01-04 20:30:06 [2025-01-04 20:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175336', 'tblTempUsageDetail_20' ) start [2025-01-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175336', 'tblTempUsageDetail_20' ) end [2025-01-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175336', 'tblTempVendorCDR_20' ) start [2025-01-04 20:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175336', 'tblTempVendorCDR_20' ) end [2025-01-04 20:30:19] Production.INFO: ProcessCDR(1,14175336,1,1,2) [2025-01-04 20:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175336', 'tblTempUsageDetail_20' ) start [2025-01-04 20:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175336', 'tblTempUsageDetail_20' ) end [2025-01-04 20:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:30:22] Production.INFO: ==24161== Releasing lock... [2025-01-04 20:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:30:22] Production.INFO: 37.25 MB #Memory Used# [2025-01-04 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:31:05 [end_date_ymd] => 2025-01-04 20:31:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:31:05' and `end` < '2025-01-04 20: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-04 20:31:18] Production.INFO: count ==1240 [2025-01-04 20:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:31:05 - End Time 2025-01-04 20:31:05 [2025-01-04 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175341', 'tblTempUsageDetail_20' ) start [2025-01-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175341', 'tblTempUsageDetail_20' ) end [2025-01-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175341', 'tblTempVendorCDR_20' ) start [2025-01-04 20:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175341', 'tblTempVendorCDR_20' ) end [2025-01-04 20:31:19] Production.INFO: ProcessCDR(1,14175341,1,1,2) [2025-01-04 20:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175341', 'tblTempUsageDetail_20' ) start [2025-01-04 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175341', 'tblTempUsageDetail_20' ) end [2025-01-04 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:31:22] Production.INFO: ==24243== Releasing lock... [2025-01-04 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:31:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:32:05 [end_date_ymd] => 2025-01-04 20:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:32:05' and `end` < '2025-01-04 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-04 20:32:18] Production.INFO: count ==1238 [2025-01-04 20:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:32:05 - End Time 2025-01-04 20:32:05 [2025-01-04 20:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175346', 'tblTempUsageDetail_20' ) start [2025-01-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175346', 'tblTempUsageDetail_20' ) end [2025-01-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175346', 'tblTempVendorCDR_20' ) start [2025-01-04 20:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175346', 'tblTempVendorCDR_20' ) end [2025-01-04 20:32:18] Production.INFO: ProcessCDR(1,14175346,1,1,2) [2025-01-04 20:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175346', 'tblTempUsageDetail_20' ) start [2025-01-04 20:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175346', 'tblTempUsageDetail_20' ) end [2025-01-04 20:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:32:22] Production.INFO: ==24329== Releasing lock... [2025-01-04 20:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:32:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:33:05 [end_date_ymd] => 2025-01-04 20:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:33:05' and `end` < '2025-01-04 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-04 20:33:18] Production.INFO: count ==1244 [2025-01-04 20:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:33:05 - End Time 2025-01-04 20:33:05 [2025-01-04 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175351', 'tblTempUsageDetail_20' ) start [2025-01-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175351', 'tblTempUsageDetail_20' ) end [2025-01-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175351', 'tblTempVendorCDR_20' ) start [2025-01-04 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175351', 'tblTempVendorCDR_20' ) end [2025-01-04 20:33:18] Production.INFO: ProcessCDR(1,14175351,1,1,2) [2025-01-04 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175351', 'tblTempUsageDetail_20' ) start [2025-01-04 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175351', 'tblTempUsageDetail_20' ) end [2025-01-04 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:33:22] Production.INFO: ==24413== Releasing lock... [2025-01-04 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:33:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:34:05 [end_date_ymd] => 2025-01-04 20:34:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:34:05' and `end` < '2025-01-04 20: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-04 20:34:18] Production.INFO: count ==1243 [2025-01-04 20:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:34:05 - End Time 2025-01-04 20:34:05 [2025-01-04 20:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175356', 'tblTempUsageDetail_20' ) start [2025-01-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175356', 'tblTempUsageDetail_20' ) end [2025-01-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175356', 'tblTempVendorCDR_20' ) start [2025-01-04 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175356', 'tblTempVendorCDR_20' ) end [2025-01-04 20:34:19] Production.INFO: ProcessCDR(1,14175356,1,1,2) [2025-01-04 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175356', 'tblTempUsageDetail_20' ) start [2025-01-04 20:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175356', 'tblTempUsageDetail_20' ) end [2025-01-04 20:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:34:22] Production.INFO: ==24494== Releasing lock... [2025-01-04 20:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:34:22] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:35:06 [end_date_ymd] => 2025-01-04 20:35:06 [RateCDR] => 1 ) [2025-01-04 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-04 17:35:06' and `end` < '2025-01-04 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-04 20:35:18] Production.INFO: count ==1241 [2025-01-04 20:35:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:35:06 - End Time 2025-01-04 20:35:06 [2025-01-04 20:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175361', 'tblTempUsageDetail_20' ) start [2025-01-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175361', 'tblTempUsageDetail_20' ) end [2025-01-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175361', 'tblTempVendorCDR_20' ) start [2025-01-04 20:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175361', 'tblTempVendorCDR_20' ) end [2025-01-04 20:35:19] Production.INFO: ProcessCDR(1,14175361,1,1,2) [2025-01-04 20:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175361', 'tblTempUsageDetail_20' ) start [2025-01-04 20:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175361', 'tblTempUsageDetail_20' ) end [2025-01-04 20:35:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:35:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:35:22] Production.INFO: ==24576== Releasing lock... [2025-01-04 20:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:35:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:36:05 [end_date_ymd] => 2025-01-04 20:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:36:05' and `end` < '2025-01-04 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-04 20:36:18] Production.INFO: count ==1243 [2025-01-04 20:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:36:05 - End Time 2025-01-04 20:36:05 [2025-01-04 20:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175366', 'tblTempUsageDetail_20' ) start [2025-01-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175366', 'tblTempUsageDetail_20' ) end [2025-01-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175366', 'tblTempVendorCDR_20' ) start [2025-01-04 20:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175366', 'tblTempVendorCDR_20' ) end [2025-01-04 20:36:18] Production.INFO: ProcessCDR(1,14175366,1,1,2) [2025-01-04 20:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175366', 'tblTempUsageDetail_20' ) start [2025-01-04 20:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175366', 'tblTempUsageDetail_20' ) end [2025-01-04 20:36:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:36:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:36:21] Production.INFO: ==24663== Releasing lock... [2025-01-04 20:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:36:21] Production.INFO: 37 MB #Memory Used# [2025-01-04 20:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:37:05 [end_date_ymd] => 2025-01-04 20:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:37:05' and `end` < '2025-01-04 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-04 20:37:19] Production.INFO: count ==1240 [2025-01-04 20:37:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:37:05 - End Time 2025-01-04 20:37:05 [2025-01-04 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175371', 'tblTempUsageDetail_20' ) start [2025-01-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175371', 'tblTempUsageDetail_20' ) end [2025-01-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175371', 'tblTempVendorCDR_20' ) start [2025-01-04 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175371', 'tblTempVendorCDR_20' ) end [2025-01-04 20:37:19] Production.INFO: ProcessCDR(1,14175371,1,1,2) [2025-01-04 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175371', 'tblTempUsageDetail_20' ) start [2025-01-04 20:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175371', 'tblTempUsageDetail_20' ) end [2025-01-04 20:37:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:37:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:37:22] Production.INFO: ==24753== Releasing lock... [2025-01-04 20:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:38:05 [end_date_ymd] => 2025-01-04 20:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:38:05' and `end` < '2025-01-04 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-04 20:38:17] Production.INFO: count ==1240 [2025-01-04 20:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:38:05 - End Time 2025-01-04 20:38:05 [2025-01-04 20:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175376', 'tblTempUsageDetail_20' ) start [2025-01-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175376', 'tblTempUsageDetail_20' ) end [2025-01-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175376', 'tblTempVendorCDR_20' ) start [2025-01-04 20:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175376', 'tblTempVendorCDR_20' ) end [2025-01-04 20:38:18] Production.INFO: ProcessCDR(1,14175376,1,1,2) [2025-01-04 20:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175376', 'tblTempUsageDetail_20' ) start [2025-01-04 20:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175376', 'tblTempUsageDetail_20' ) end [2025-01-04 20:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:38:21] Production.INFO: ==24836== Releasing lock... [2025-01-04 20:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:38:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:39:05 [end_date_ymd] => 2025-01-04 20:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:39:05' and `end` < '2025-01-04 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-04 20:39:18] Production.INFO: count ==1239 [2025-01-04 20:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:39:05 - End Time 2025-01-04 20:39:05 [2025-01-04 20:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175381', 'tblTempUsageDetail_20' ) start [2025-01-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175381', 'tblTempUsageDetail_20' ) end [2025-01-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175381', 'tblTempVendorCDR_20' ) start [2025-01-04 20:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175381', 'tblTempVendorCDR_20' ) end [2025-01-04 20:39:18] Production.INFO: ProcessCDR(1,14175381,1,1,2) [2025-01-04 20:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175381', 'tblTempUsageDetail_20' ) start [2025-01-04 20:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175381', 'tblTempUsageDetail_20' ) end [2025-01-04 20:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:39:21] Production.INFO: ==24921== Releasing lock... [2025-01-04 20:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:39:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:40:05 [end_date_ymd] => 2025-01-04 20:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:40:05' and `end` < '2025-01-04 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-04 20:40:18] Production.INFO: count ==1239 [2025-01-04 20:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:40:05 - End Time 2025-01-04 20:40:05 [2025-01-04 20:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175387', 'tblTempUsageDetail_20' ) start [2025-01-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175387', 'tblTempUsageDetail_20' ) end [2025-01-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175387', 'tblTempVendorCDR_20' ) start [2025-01-04 20:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175387', 'tblTempVendorCDR_20' ) end [2025-01-04 20:40:18] Production.INFO: ProcessCDR(1,14175387,1,1,2) [2025-01-04 20:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175387', 'tblTempUsageDetail_20' ) start [2025-01-04 20:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175387', 'tblTempUsageDetail_20' ) end [2025-01-04 20:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:40:22] Production.INFO: ==25003== Releasing lock... [2025-01-04 20:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:40:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:41:05 [end_date_ymd] => 2025-01-04 20:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:41:05' and `end` < '2025-01-04 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-04 20:41:18] Production.INFO: count ==1233 [2025-01-04 20:41:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:41:05 - End Time 2025-01-04 20:41:05 [2025-01-04 20:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175392', 'tblTempUsageDetail_20' ) start [2025-01-04 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175392', 'tblTempUsageDetail_20' ) end [2025-01-04 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175392', 'tblTempVendorCDR_20' ) start [2025-01-04 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175392', 'tblTempVendorCDR_20' ) end [2025-01-04 20:41:19] Production.INFO: ProcessCDR(1,14175392,1,1,2) [2025-01-04 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175392', 'tblTempUsageDetail_20' ) start [2025-01-04 20:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175392', 'tblTempUsageDetail_20' ) end [2025-01-04 20:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:41:22] Production.INFO: ==25087== Releasing lock... [2025-01-04 20:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:41:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:42:05 [end_date_ymd] => 2025-01-04 20:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:42:05' and `end` < '2025-01-04 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-04 20:42:20] Production.INFO: count ==1232 [2025-01-04 20:42:21] Production.ERROR: pbx CDR StartTime 2025-01-04 17:42:05 - End Time 2025-01-04 20:42:05 [2025-01-04 20:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175397', 'tblTempUsageDetail_20' ) start [2025-01-04 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175397', 'tblTempUsageDetail_20' ) end [2025-01-04 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175397', 'tblTempVendorCDR_20' ) start [2025-01-04 20:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175397', 'tblTempVendorCDR_20' ) end [2025-01-04 20:42:21] Production.INFO: ProcessCDR(1,14175397,1,1,2) [2025-01-04 20:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175397', 'tblTempUsageDetail_20' ) start [2025-01-04 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175397', 'tblTempUsageDetail_20' ) end [2025-01-04 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:42:24] Production.INFO: ==25169== Releasing lock... [2025-01-04 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:42:24] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:43:05 [end_date_ymd] => 2025-01-04 20:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:43:05' and `end` < '2025-01-04 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-04 20:43:19] Production.INFO: count ==1232 [2025-01-04 20:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:43:05 - End Time 2025-01-04 20:43:05 [2025-01-04 20:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175402', 'tblTempUsageDetail_20' ) start [2025-01-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175402', 'tblTempUsageDetail_20' ) end [2025-01-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175402', 'tblTempVendorCDR_20' ) start [2025-01-04 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175402', 'tblTempVendorCDR_20' ) end [2025-01-04 20:43:19] Production.INFO: ProcessCDR(1,14175402,1,1,2) [2025-01-04 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175402', 'tblTempUsageDetail_20' ) start [2025-01-04 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175402', 'tblTempUsageDetail_20' ) end [2025-01-04 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:43:22] Production.INFO: ==25288== Releasing lock... [2025-01-04 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:43:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:44:05 [end_date_ymd] => 2025-01-04 20:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:44:05' and `end` < '2025-01-04 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-04 20:44:18] Production.INFO: count ==1233 [2025-01-04 20:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:44:05 - End Time 2025-01-04 20:44:05 [2025-01-04 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175407', 'tblTempUsageDetail_20' ) start [2025-01-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175407', 'tblTempUsageDetail_20' ) end [2025-01-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175407', 'tblTempVendorCDR_20' ) start [2025-01-04 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175407', 'tblTempVendorCDR_20' ) end [2025-01-04 20:44:18] Production.INFO: ProcessCDR(1,14175407,1,1,2) [2025-01-04 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175407', 'tblTempUsageDetail_20' ) start [2025-01-04 20:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175407', 'tblTempUsageDetail_20' ) end [2025-01-04 20:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:44:21] Production.INFO: ==25373== Releasing lock... [2025-01-04 20:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:44:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:45:04 [end_date_ymd] => 2025-01-04 20:45:04 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:45:04' and `end` < '2025-01-04 20: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-04 20:45:17] Production.INFO: count ==1232 [2025-01-04 20:45:17] Production.ERROR: pbx CDR StartTime 2025-01-04 17:45:04 - End Time 2025-01-04 20:45:04 [2025-01-04 20:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175412', 'tblTempUsageDetail_20' ) start [2025-01-04 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175412', 'tblTempUsageDetail_20' ) end [2025-01-04 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175412', 'tblTempVendorCDR_20' ) start [2025-01-04 20:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175412', 'tblTempVendorCDR_20' ) end [2025-01-04 20:45:17] Production.INFO: ProcessCDR(1,14175412,1,1,2) [2025-01-04 20:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175412', 'tblTempUsageDetail_20' ) start [2025-01-04 20:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175412', 'tblTempUsageDetail_20' ) end [2025-01-04 20:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:45:21] Production.INFO: ==25456== Releasing lock... [2025-01-04 20:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:46:05 [end_date_ymd] => 2025-01-04 20:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:46:05' and `end` < '2025-01-04 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-04 20:46:19] Production.INFO: count ==1230 [2025-01-04 20:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:46:05 - End Time 2025-01-04 20:46:05 [2025-01-04 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175417', 'tblTempUsageDetail_20' ) start [2025-01-04 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175417', 'tblTempUsageDetail_20' ) end [2025-01-04 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175417', 'tblTempVendorCDR_20' ) start [2025-01-04 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175417', 'tblTempVendorCDR_20' ) end [2025-01-04 20:46:19] Production.INFO: ProcessCDR(1,14175417,1,1,2) [2025-01-04 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175417', 'tblTempUsageDetail_20' ) start [2025-01-04 20:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175417', 'tblTempUsageDetail_20' ) end [2025-01-04 20:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:46:22] Production.INFO: ==25538== Releasing lock... [2025-01-04 20:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:46:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:47:05 [end_date_ymd] => 2025-01-04 20:47:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:47:05' and `end` < '2025-01-04 20: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-04 20:47:18] Production.INFO: count ==1229 [2025-01-04 20:47:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:47:05 - End Time 2025-01-04 20:47:05 [2025-01-04 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175422', 'tblTempUsageDetail_20' ) start [2025-01-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175422', 'tblTempUsageDetail_20' ) end [2025-01-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175422', 'tblTempVendorCDR_20' ) start [2025-01-04 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175422', 'tblTempVendorCDR_20' ) end [2025-01-04 20:47:18] Production.INFO: ProcessCDR(1,14175422,1,1,2) [2025-01-04 20:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175422', 'tblTempUsageDetail_20' ) start [2025-01-04 20:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175422', 'tblTempUsageDetail_20' ) end [2025-01-04 20:47:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:47:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:47:21] Production.INFO: ==25624== Releasing lock... [2025-01-04 20:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:48:06 [end_date_ymd] => 2025-01-04 20:48:06 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:48:06' and `end` < '2025-01-04 20: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-04 20:48:19] Production.INFO: count ==1220 [2025-01-04 20:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:48:06 - End Time 2025-01-04 20:48:06 [2025-01-04 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175427', 'tblTempUsageDetail_20' ) start [2025-01-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175427', 'tblTempUsageDetail_20' ) end [2025-01-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175427', 'tblTempVendorCDR_20' ) start [2025-01-04 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175427', 'tblTempVendorCDR_20' ) end [2025-01-04 20:48:19] Production.INFO: ProcessCDR(1,14175427,1,1,2) [2025-01-04 20:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175427', 'tblTempUsageDetail_20' ) start [2025-01-04 20:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175427', 'tblTempUsageDetail_20' ) end [2025-01-04 20:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:48:22] Production.INFO: ==25708== Releasing lock... [2025-01-04 20:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:49:05 [end_date_ymd] => 2025-01-04 20:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:49:05' and `end` < '2025-01-04 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-04 20:49:18] Production.INFO: count ==1221 [2025-01-04 20:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:49:05 - End Time 2025-01-04 20:49:05 [2025-01-04 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175432', 'tblTempUsageDetail_20' ) start [2025-01-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175432', 'tblTempUsageDetail_20' ) end [2025-01-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175432', 'tblTempVendorCDR_20' ) start [2025-01-04 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175432', 'tblTempVendorCDR_20' ) end [2025-01-04 20:49:18] Production.INFO: ProcessCDR(1,14175432,1,1,2) [2025-01-04 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175432', 'tblTempUsageDetail_20' ) start [2025-01-04 20:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175432', 'tblTempUsageDetail_20' ) end [2025-01-04 20:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:49:21] Production.INFO: ==25792== Releasing lock... [2025-01-04 20:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:49:21] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:50:06 [end_date_ymd] => 2025-01-04 20:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 17:50:06' and `end` < '2025-01-04 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-04 20:50:19] Production.INFO: count ==1218 [2025-01-04 20:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:50:06 - End Time 2025-01-04 20:50:06 [2025-01-04 20:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175437', 'tblTempUsageDetail_20' ) start [2025-01-04 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175437', 'tblTempUsageDetail_20' ) end [2025-01-04 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175437', 'tblTempVendorCDR_20' ) start [2025-01-04 20:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175437', 'tblTempVendorCDR_20' ) end [2025-01-04 20:50:19] Production.INFO: ProcessCDR(1,14175437,1,1,2) [2025-01-04 20:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175437', 'tblTempUsageDetail_20' ) start [2025-01-04 20:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175437', 'tblTempUsageDetail_20' ) end [2025-01-04 20:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:50:22] Production.INFO: ==25880== Releasing lock... [2025-01-04 20:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-01-04 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:51:05 [end_date_ymd] => 2025-01-04 20:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:51:05' and `end` < '2025-01-04 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-04 20:51:18] Production.INFO: count ==1173 [2025-01-04 20:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:51:05 - End Time 2025-01-04 20:51:05 [2025-01-04 20:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175443', 'tblTempUsageDetail_20' ) start [2025-01-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175443', 'tblTempUsageDetail_20' ) end [2025-01-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175443', 'tblTempVendorCDR_20' ) start [2025-01-04 20:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175443', 'tblTempVendorCDR_20' ) end [2025-01-04 20:51:18] Production.INFO: ProcessCDR(1,14175443,1,1,2) [2025-01-04 20:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175443', 'tblTempUsageDetail_20' ) start [2025-01-04 20:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175443', 'tblTempUsageDetail_20' ) end [2025-01-04 20:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:51:21] Production.INFO: ==25962== Releasing lock... [2025-01-04 20:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:51:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:52:06 [end_date_ymd] => 2025-01-04 20:52:06 [RateCDR] => 1 ) [2025-01-04 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-04 17:52:06' and `end` < '2025-01-04 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-04 20:52:20] Production.INFO: count ==1173 [2025-01-04 20:52:20] Production.ERROR: pbx CDR StartTime 2025-01-04 17:52:06 - End Time 2025-01-04 20:52:06 [2025-01-04 20:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175448', 'tblTempUsageDetail_20' ) start [2025-01-04 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175448', 'tblTempUsageDetail_20' ) end [2025-01-04 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175448', 'tblTempVendorCDR_20' ) start [2025-01-04 20:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175448', 'tblTempVendorCDR_20' ) end [2025-01-04 20:52:20] Production.INFO: ProcessCDR(1,14175448,1,1,2) [2025-01-04 20:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:52:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175448', 'tblTempUsageDetail_20' ) start [2025-01-04 20:52:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175448', 'tblTempUsageDetail_20' ) end [2025-01-04 20:52:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:52:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:52:23] Production.INFO: ==26043== Releasing lock... [2025-01-04 20:52:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:52:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:53:05 [end_date_ymd] => 2025-01-04 20:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:53:05' and `end` < '2025-01-04 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-04 20:53:18] Production.INFO: count ==1172 [2025-01-04 20:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:53:05 - End Time 2025-01-04 20:53:05 [2025-01-04 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175453', 'tblTempUsageDetail_20' ) start [2025-01-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175453', 'tblTempUsageDetail_20' ) end [2025-01-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175453', 'tblTempVendorCDR_20' ) start [2025-01-04 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175453', 'tblTempVendorCDR_20' ) end [2025-01-04 20:53:18] Production.INFO: ProcessCDR(1,14175453,1,1,2) [2025-01-04 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175453', 'tblTempUsageDetail_20' ) start [2025-01-04 20:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175453', 'tblTempUsageDetail_20' ) end [2025-01-04 20:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:53:22] Production.INFO: ==26129== Releasing lock... [2025-01-04 20:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:53:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:54:05 [end_date_ymd] => 2025-01-04 20:54:05 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:54:05' and `end` < '2025-01-04 20: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-04 20:54:19] Production.INFO: count ==1177 [2025-01-04 20:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:54:05 - End Time 2025-01-04 20:54:05 [2025-01-04 20:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175458', 'tblTempUsageDetail_20' ) start [2025-01-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175458', 'tblTempUsageDetail_20' ) end [2025-01-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175458', 'tblTempVendorCDR_20' ) start [2025-01-04 20:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175458', 'tblTempVendorCDR_20' ) end [2025-01-04 20:54:19] Production.INFO: ProcessCDR(1,14175458,1,1,2) [2025-01-04 20:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175458', 'tblTempUsageDetail_20' ) start [2025-01-04 20:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175458', 'tblTempUsageDetail_20' ) end [2025-01-04 20:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:54:23] Production.INFO: ==26214== Releasing lock... [2025-01-04 20:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:54:23] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:55:05 [end_date_ymd] => 2025-01-04 20:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:55:05' and `end` < '2025-01-04 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-04 20:55:18] Production.INFO: count ==1177 [2025-01-04 20:55:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:55:05 - End Time 2025-01-04 20:55:05 [2025-01-04 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175463', 'tblTempUsageDetail_20' ) start [2025-01-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175463', 'tblTempUsageDetail_20' ) end [2025-01-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175463', 'tblTempVendorCDR_20' ) start [2025-01-04 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175463', 'tblTempVendorCDR_20' ) end [2025-01-04 20:55:18] Production.INFO: ProcessCDR(1,14175463,1,1,2) [2025-01-04 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175463', 'tblTempUsageDetail_20' ) start [2025-01-04 20:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175463', 'tblTempUsageDetail_20' ) end [2025-01-04 20:55:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:55:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:55:21] Production.INFO: ==26299== Releasing lock... [2025-01-04 20:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:55:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 20:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:56:05 [end_date_ymd] => 2025-01-04 20:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:56:05' and `end` < '2025-01-04 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-04 20:56:18] Production.INFO: count ==1177 [2025-01-04 20:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 17:56:05 - End Time 2025-01-04 20:56:05 [2025-01-04 20:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175468', 'tblTempUsageDetail_20' ) start [2025-01-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175468', 'tblTempUsageDetail_20' ) end [2025-01-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175468', 'tblTempVendorCDR_20' ) start [2025-01-04 20:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175468', 'tblTempVendorCDR_20' ) end [2025-01-04 20:56:18] Production.INFO: ProcessCDR(1,14175468,1,1,2) [2025-01-04 20:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175468', 'tblTempUsageDetail_20' ) start [2025-01-04 20:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175468', 'tblTempUsageDetail_20' ) end [2025-01-04 20:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:56:21] Production.INFO: ==26388== Releasing lock... [2025-01-04 20:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:56:21] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 20:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:57:04 [end_date_ymd] => 2025-01-04 20:57:04 [RateCDR] => 1 ) [2025-01-04 20: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-04 17:57:04' and `end` < '2025-01-04 20: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-04 20:57:19] Production.INFO: count ==1177 [2025-01-04 20:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:57:04 - End Time 2025-01-04 20:57:04 [2025-01-04 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175473', 'tblTempUsageDetail_20' ) start [2025-01-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175473', 'tblTempUsageDetail_20' ) end [2025-01-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175473', 'tblTempVendorCDR_20' ) start [2025-01-04 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175473', 'tblTempVendorCDR_20' ) end [2025-01-04 20:57:19] Production.INFO: ProcessCDR(1,14175473,1,1,2) [2025-01-04 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175473', 'tblTempUsageDetail_20' ) start [2025-01-04 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175473', 'tblTempUsageDetail_20' ) end [2025-01-04 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:57:22] Production.INFO: ==26479== Releasing lock... [2025-01-04 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:57:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:58:05 [end_date_ymd] => 2025-01-04 20:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 17:58:05' and `end` < '2025-01-04 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-04 20:58:19] Production.INFO: count ==1177 [2025-01-04 20:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 17:58:05 - End Time 2025-01-04 20:58:05 [2025-01-04 20:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175478', 'tblTempUsageDetail_20' ) start [2025-01-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175478', 'tblTempUsageDetail_20' ) end [2025-01-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175478', 'tblTempVendorCDR_20' ) start [2025-01-04 20:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175478', 'tblTempVendorCDR_20' ) end [2025-01-04 20:58:19] Production.INFO: ProcessCDR(1,14175478,1,1,2) [2025-01-04 20:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175478', 'tblTempUsageDetail_20' ) start [2025-01-04 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175478', 'tblTempUsageDetail_20' ) end [2025-01-04 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:58:22] Production.INFO: ==26566== Releasing lock... [2025-01-04 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:58:22] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 20:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 17:59:04 [end_date_ymd] => 2025-01-04 20:59:04 [RateCDR] => 1 ) [2025-01-04 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-04 17:59:04' and `end` < '2025-01-04 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-04 20:59:17] Production.INFO: count ==1177 [2025-01-04 20:59:17] Production.ERROR: pbx CDR StartTime 2025-01-04 17:59:04 - End Time 2025-01-04 20:59:04 [2025-01-04 20:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175483', 'tblTempUsageDetail_20' ) start [2025-01-04 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175483', 'tblTempUsageDetail_20' ) end [2025-01-04 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175483', 'tblTempVendorCDR_20' ) start [2025-01-04 20:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175483', 'tblTempVendorCDR_20' ) end [2025-01-04 20:59:17] Production.INFO: ProcessCDR(1,14175483,1,1,2) [2025-01-04 20:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 20:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175483', 'tblTempUsageDetail_20' ) start [2025-01-04 20:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175483', 'tblTempUsageDetail_20' ) end [2025-01-04 20:59:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 20:59:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 20:59:20] Production.INFO: ==26694== Releasing lock... [2025-01-04 20:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 20:59:20] Production.INFO: 36.5 MB #Memory Used# [2025-01-04 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:00:06 [end_date_ymd] => 2025-01-04 21:00:06 [RateCDR] => 1 ) [2025-01-04 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-04 18:00:06' and `end` < '2025-01-04 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-04 21:00:19] Production.INFO: count ==1173 [2025-01-04 21:00:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:00:06 - End Time 2025-01-04 21:00:06 [2025-01-04 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175489', 'tblTempUsageDetail_20' ) start [2025-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175489', 'tblTempUsageDetail_20' ) end [2025-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175489', 'tblTempVendorCDR_20' ) start [2025-01-04 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175489', 'tblTempVendorCDR_20' ) end [2025-01-04 21:00:19] Production.INFO: ProcessCDR(1,14175489,1,1,2) [2025-01-04 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175489', 'tblTempUsageDetail_20' ) start [2025-01-04 21:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175489', 'tblTempUsageDetail_20' ) end [2025-01-04 21:00:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:00:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:00:22] Production.INFO: ==26785== Releasing lock... [2025-01-04 21:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:00:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:01:06 [end_date_ymd] => 2025-01-04 21:01:06 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:01:06' and `end` < '2025-01-04 21: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-04 21:01:19] Production.INFO: count ==1151 [2025-01-04 21:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:01:06 - End Time 2025-01-04 21:01:06 [2025-01-04 21:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175494', 'tblTempUsageDetail_20' ) start [2025-01-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175494', 'tblTempUsageDetail_20' ) end [2025-01-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175494', 'tblTempVendorCDR_20' ) start [2025-01-04 21:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175494', 'tblTempVendorCDR_20' ) end [2025-01-04 21:01:19] Production.INFO: ProcessCDR(1,14175494,1,1,2) [2025-01-04 21:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175494', 'tblTempUsageDetail_20' ) start [2025-01-04 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175494', 'tblTempUsageDetail_20' ) end [2025-01-04 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:01:22] Production.INFO: ==26886== Releasing lock... [2025-01-04 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:01:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:02:05 [end_date_ymd] => 2025-01-04 21:02:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:02:05' and `end` < '2025-01-04 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-04 21:02:18] Production.INFO: count ==1149 [2025-01-04 21:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:02:05 - End Time 2025-01-04 21:02:05 [2025-01-04 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175499', 'tblTempUsageDetail_20' ) start [2025-01-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175499', 'tblTempUsageDetail_20' ) end [2025-01-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175499', 'tblTempVendorCDR_20' ) start [2025-01-04 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175499', 'tblTempVendorCDR_20' ) end [2025-01-04 21:02:18] Production.INFO: ProcessCDR(1,14175499,1,1,2) [2025-01-04 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175499', 'tblTempUsageDetail_20' ) start [2025-01-04 21:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175499', 'tblTempUsageDetail_20' ) end [2025-01-04 21:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:02:21] Production.INFO: ==26977== Releasing lock... [2025-01-04 21:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:02:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:03:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:03:04 [end_date_ymd] => 2025-01-04 21:03:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:03:04' and `end` < '2025-01-04 21: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-04 21:03:18] Production.INFO: count ==1148 [2025-01-04 21:03:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:03:04 - End Time 2025-01-04 21:03:04 [2025-01-04 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175504', 'tblTempUsageDetail_20' ) start [2025-01-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175504', 'tblTempUsageDetail_20' ) end [2025-01-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175504', 'tblTempVendorCDR_20' ) start [2025-01-04 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175504', 'tblTempVendorCDR_20' ) end [2025-01-04 21:03:18] Production.INFO: ProcessCDR(1,14175504,1,1,2) [2025-01-04 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175504', 'tblTempUsageDetail_20' ) start [2025-01-04 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175504', 'tblTempUsageDetail_20' ) end [2025-01-04 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:03:23] Production.INFO: ==27067== Releasing lock... [2025-01-04 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:03:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:04:05 [end_date_ymd] => 2025-01-04 21:04:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:04:05' and `end` < '2025-01-04 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-04 21:04:19] Production.INFO: count ==1145 [2025-01-04 21:04:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:04:05 - End Time 2025-01-04 21:04:05 [2025-01-04 21:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175509', 'tblTempUsageDetail_20' ) start [2025-01-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175509', 'tblTempUsageDetail_20' ) end [2025-01-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175509', 'tblTempVendorCDR_20' ) start [2025-01-04 21:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175509', 'tblTempVendorCDR_20' ) end [2025-01-04 21:04:19] Production.INFO: ProcessCDR(1,14175509,1,1,2) [2025-01-04 21:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175509', 'tblTempUsageDetail_20' ) start [2025-01-04 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175509', 'tblTempUsageDetail_20' ) end [2025-01-04 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:04:22] Production.INFO: ==27161== Releasing lock... [2025-01-04 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:04:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:05:05 [end_date_ymd] => 2025-01-04 21:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:05:05' and `end` < '2025-01-04 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-04 21:05:18] Production.INFO: count ==1148 [2025-01-04 21:05:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:05:05 - End Time 2025-01-04 21:05:05 [2025-01-04 21:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175514', 'tblTempUsageDetail_20' ) start [2025-01-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175514', 'tblTempUsageDetail_20' ) end [2025-01-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175514', 'tblTempVendorCDR_20' ) start [2025-01-04 21:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175514', 'tblTempVendorCDR_20' ) end [2025-01-04 21:05:18] Production.INFO: ProcessCDR(1,14175514,1,1,2) [2025-01-04 21:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175514', 'tblTempUsageDetail_20' ) start [2025-01-04 21:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175514', 'tblTempUsageDetail_20' ) end [2025-01-04 21:05:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:05:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:05:21] Production.INFO: ==27249== Releasing lock... [2025-01-04 21:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:05:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:06:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:06:04 [end_date_ymd] => 2025-01-04 21:06:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:06:04' and `end` < '2025-01-04 21: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-04 21:06:20] Production.INFO: count ==1146 [2025-01-04 21:06:20] Production.ERROR: pbx CDR StartTime 2025-01-04 18:06:04 - End Time 2025-01-04 21:06:04 [2025-01-04 21:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175519', 'tblTempUsageDetail_20' ) start [2025-01-04 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175519', 'tblTempUsageDetail_20' ) end [2025-01-04 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175519', 'tblTempVendorCDR_20' ) start [2025-01-04 21:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175519', 'tblTempVendorCDR_20' ) end [2025-01-04 21:06:20] Production.INFO: ProcessCDR(1,14175519,1,1,2) [2025-01-04 21:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175519', 'tblTempUsageDetail_20' ) start [2025-01-04 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175519', 'tblTempUsageDetail_20' ) end [2025-01-04 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:06:23] Production.INFO: ==27334== Releasing lock... [2025-01-04 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:06:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:07:05 [end_date_ymd] => 2025-01-04 21:07:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:07:05' and `end` < '2025-01-04 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-04 21:07:18] Production.INFO: count ==1149 [2025-01-04 21:07:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:07:05 - End Time 2025-01-04 21:07:05 [2025-01-04 21:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175524', 'tblTempUsageDetail_20' ) start [2025-01-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175524', 'tblTempUsageDetail_20' ) end [2025-01-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175524', 'tblTempVendorCDR_20' ) start [2025-01-04 21:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175524', 'tblTempVendorCDR_20' ) end [2025-01-04 21:07:18] Production.INFO: ProcessCDR(1,14175524,1,1,2) [2025-01-04 21:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175524', 'tblTempUsageDetail_20' ) start [2025-01-04 21:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175524', 'tblTempUsageDetail_20' ) end [2025-01-04 21:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:07:21] Production.INFO: ==27430== Releasing lock... [2025-01-04 21:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:07:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:08:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:08:04 [end_date_ymd] => 2025-01-04 21:08:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:08:04' and `end` < '2025-01-04 21: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-04 21:08:19] Production.INFO: count ==1148 [2025-01-04 21:08:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:08:04 - End Time 2025-01-04 21:08:04 [2025-01-04 21:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175529', 'tblTempUsageDetail_20' ) start [2025-01-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175529', 'tblTempUsageDetail_20' ) end [2025-01-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175529', 'tblTempVendorCDR_20' ) start [2025-01-04 21:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175529', 'tblTempVendorCDR_20' ) end [2025-01-04 21:08:19] Production.INFO: ProcessCDR(1,14175529,1,1,2) [2025-01-04 21:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175529', 'tblTempUsageDetail_20' ) start [2025-01-04 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175529', 'tblTempUsageDetail_20' ) end [2025-01-04 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:08:22] Production.INFO: ==27517== Releasing lock... [2025-01-04 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:08:22] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:09:05 [end_date_ymd] => 2025-01-04 21:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:09:05' and `end` < '2025-01-04 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-04 21:09:18] Production.INFO: count ==1148 [2025-01-04 21:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:09:05 - End Time 2025-01-04 21:09:05 [2025-01-04 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175534', 'tblTempUsageDetail_20' ) start [2025-01-04 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175534', 'tblTempUsageDetail_20' ) end [2025-01-04 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175534', 'tblTempVendorCDR_20' ) start [2025-01-04 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175534', 'tblTempVendorCDR_20' ) end [2025-01-04 21:09:18] Production.INFO: ProcessCDR(1,14175534,1,1,2) [2025-01-04 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:09:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:09:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175534', 'tblTempUsageDetail_20' ) start [2025-01-04 21:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175534', 'tblTempUsageDetail_20' ) end [2025-01-04 21:09:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:09:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:09:23] Production.INFO: ==27610== Releasing lock... [2025-01-04 21:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:09:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:10:05 [end_date_ymd] => 2025-01-04 21:10:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:10:05' and `end` < '2025-01-04 21: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-04 21:10:18] Production.INFO: count ==1145 [2025-01-04 21:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:10:05 - End Time 2025-01-04 21:10:05 [2025-01-04 21:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175539', 'tblTempUsageDetail_20' ) start [2025-01-04 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175539', 'tblTempUsageDetail_20' ) end [2025-01-04 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175539', 'tblTempVendorCDR_20' ) start [2025-01-04 21:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175539', 'tblTempVendorCDR_20' ) end [2025-01-04 21:10:18] Production.INFO: ProcessCDR(1,14175539,1,1,2) [2025-01-04 21:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175539', 'tblTempUsageDetail_20' ) start [2025-01-04 21:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175539', 'tblTempUsageDetail_20' ) end [2025-01-04 21:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:10:21] Production.INFO: ==27704== Releasing lock... [2025-01-04 21:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:10:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:11:05 [end_date_ymd] => 2025-01-04 21:11:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:11:05' and `end` < '2025-01-04 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-04 21:11:19] Production.INFO: count ==1142 [2025-01-04 21:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:11:05 - End Time 2025-01-04 21:11:05 [2025-01-04 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175545', 'tblTempUsageDetail_20' ) start [2025-01-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175545', 'tblTempUsageDetail_20' ) end [2025-01-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175545', 'tblTempVendorCDR_20' ) start [2025-01-04 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175545', 'tblTempVendorCDR_20' ) end [2025-01-04 21:11:19] Production.INFO: ProcessCDR(1,14175545,1,1,2) [2025-01-04 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175545', 'tblTempUsageDetail_20' ) start [2025-01-04 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175545', 'tblTempUsageDetail_20' ) end [2025-01-04 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:11:23] Production.INFO: ==27799== Releasing lock... [2025-01-04 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:11:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:12:05 [end_date_ymd] => 2025-01-04 21:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:12:05' and `end` < '2025-01-04 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-04 21:12:18] Production.INFO: count ==1140 [2025-01-04 21:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:12:05 - End Time 2025-01-04 21:12:05 [2025-01-04 21:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175550', 'tblTempUsageDetail_20' ) start [2025-01-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175550', 'tblTempUsageDetail_20' ) end [2025-01-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175550', 'tblTempVendorCDR_20' ) start [2025-01-04 21:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175550', 'tblTempVendorCDR_20' ) end [2025-01-04 21:12:18] Production.INFO: ProcessCDR(1,14175550,1,1,2) [2025-01-04 21:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175550', 'tblTempUsageDetail_20' ) start [2025-01-04 21:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175550', 'tblTempUsageDetail_20' ) end [2025-01-04 21:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:12:21] Production.INFO: ==27893== Releasing lock... [2025-01-04 21:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:12:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:13:05 [end_date_ymd] => 2025-01-04 21:13:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:13:05' and `end` < '2025-01-04 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-04 21:13:18] Production.INFO: count ==1139 [2025-01-04 21:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:13:05 - End Time 2025-01-04 21:13:05 [2025-01-04 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175555', 'tblTempUsageDetail_20' ) start [2025-01-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175555', 'tblTempUsageDetail_20' ) end [2025-01-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175555', 'tblTempVendorCDR_20' ) start [2025-01-04 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175555', 'tblTempVendorCDR_20' ) end [2025-01-04 21:13:19] Production.INFO: ProcessCDR(1,14175555,1,1,2) [2025-01-04 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175555', 'tblTempUsageDetail_20' ) start [2025-01-04 21:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175555', 'tblTempUsageDetail_20' ) end [2025-01-04 21:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:13:22] Production.INFO: ==27982== Releasing lock... [2025-01-04 21:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:13:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:14:06 [end_date_ymd] => 2025-01-04 21:14:06 [RateCDR] => 1 ) [2025-01-04 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-04 18:14:06' and `end` < '2025-01-04 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-04 21:14:18] Production.INFO: count ==1143 [2025-01-04 21:14:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:14:06 - End Time 2025-01-04 21:14:06 [2025-01-04 21:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175560', 'tblTempUsageDetail_20' ) start [2025-01-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175560', 'tblTempUsageDetail_20' ) end [2025-01-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175560', 'tblTempVendorCDR_20' ) start [2025-01-04 21:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175560', 'tblTempVendorCDR_20' ) end [2025-01-04 21:14:19] Production.INFO: ProcessCDR(1,14175560,1,1,2) [2025-01-04 21:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175560', 'tblTempUsageDetail_20' ) start [2025-01-04 21:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175560', 'tblTempUsageDetail_20' ) end [2025-01-04 21:14:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:14:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:14:23] Production.INFO: ==28114== Releasing lock... [2025-01-04 21:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:14:23] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:15:05 [end_date_ymd] => 2025-01-04 21:15:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:15:05' and `end` < '2025-01-04 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-04 21:15:19] Production.INFO: count ==1140 [2025-01-04 21:15:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:15:05 - End Time 2025-01-04 21:15:05 [2025-01-04 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175565', 'tblTempUsageDetail_20' ) start [2025-01-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175565', 'tblTempUsageDetail_20' ) end [2025-01-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175565', 'tblTempVendorCDR_20' ) start [2025-01-04 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175565', 'tblTempVendorCDR_20' ) end [2025-01-04 21:15:19] Production.INFO: ProcessCDR(1,14175565,1,1,2) [2025-01-04 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175565', 'tblTempUsageDetail_20' ) start [2025-01-04 21:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175565', 'tblTempUsageDetail_20' ) end [2025-01-04 21:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:15:22] Production.INFO: ==28204== Releasing lock... [2025-01-04 21:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:15:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:16:05 [end_date_ymd] => 2025-01-04 21:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:16:05' and `end` < '2025-01-04 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-04 21:16:18] Production.INFO: count ==1139 [2025-01-04 21:16:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:16:05 - End Time 2025-01-04 21:16:05 [2025-01-04 21:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175570', 'tblTempUsageDetail_20' ) start [2025-01-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175570', 'tblTempUsageDetail_20' ) end [2025-01-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175570', 'tblTempVendorCDR_20' ) start [2025-01-04 21:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175570', 'tblTempVendorCDR_20' ) end [2025-01-04 21:16:18] Production.INFO: ProcessCDR(1,14175570,1,1,2) [2025-01-04 21:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175570', 'tblTempUsageDetail_20' ) start [2025-01-04 21:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175570', 'tblTempUsageDetail_20' ) end [2025-01-04 21:16:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:16:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:16:21] Production.INFO: ==28317== Releasing lock... [2025-01-04 21:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:16:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:17:04 [end_date_ymd] => 2025-01-04 21:17:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:17:04' and `end` < '2025-01-04 21: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-04 21:17:18] Production.INFO: count ==1139 [2025-01-04 21:17:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:17:04 - End Time 2025-01-04 21:17:04 [2025-01-04 21:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175575', 'tblTempUsageDetail_20' ) start [2025-01-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175575', 'tblTempUsageDetail_20' ) end [2025-01-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175575', 'tblTempVendorCDR_20' ) start [2025-01-04 21:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175575', 'tblTempVendorCDR_20' ) end [2025-01-04 21:17:18] Production.INFO: ProcessCDR(1,14175575,1,1,2) [2025-01-04 21:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175575', 'tblTempUsageDetail_20' ) start [2025-01-04 21:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175575', 'tblTempUsageDetail_20' ) end [2025-01-04 21:17:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:17:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:17:21] Production.INFO: ==28472== Releasing lock... [2025-01-04 21:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:17:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:18:05 [end_date_ymd] => 2025-01-04 21:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:18:05' and `end` < '2025-01-04 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-04 21:18:18] Production.INFO: count ==1137 [2025-01-04 21:18:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:18:05 - End Time 2025-01-04 21:18:05 [2025-01-04 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175580', 'tblTempUsageDetail_20' ) start [2025-01-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175580', 'tblTempUsageDetail_20' ) end [2025-01-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175580', 'tblTempVendorCDR_20' ) start [2025-01-04 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175580', 'tblTempVendorCDR_20' ) end [2025-01-04 21:18:18] Production.INFO: ProcessCDR(1,14175580,1,1,2) [2025-01-04 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175580', 'tblTempUsageDetail_20' ) start [2025-01-04 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175580', 'tblTempUsageDetail_20' ) end [2025-01-04 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:18:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:18:22] Production.INFO: ==28569== Releasing lock... [2025-01-04 21:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:18:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:19:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:19:04 [end_date_ymd] => 2025-01-04 21:19:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:19:04' and `end` < '2025-01-04 21: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-04 21:19:17] Production.INFO: count ==1136 [2025-01-04 21:19:17] Production.ERROR: pbx CDR StartTime 2025-01-04 18:19:04 - End Time 2025-01-04 21:19:04 [2025-01-04 21:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175585', 'tblTempUsageDetail_20' ) start [2025-01-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175585', 'tblTempUsageDetail_20' ) end [2025-01-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175585', 'tblTempVendorCDR_20' ) start [2025-01-04 21:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175585', 'tblTempVendorCDR_20' ) end [2025-01-04 21:19:17] Production.INFO: ProcessCDR(1,14175585,1,1,2) [2025-01-04 21:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175585', 'tblTempUsageDetail_20' ) start [2025-01-04 21:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175585', 'tblTempUsageDetail_20' ) end [2025-01-04 21:19:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:19:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:19:20] Production.INFO: ==28672== Releasing lock... [2025-01-04 21:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:19:20] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:20:06 [end_date_ymd] => 2025-01-04 21:20:06 [RateCDR] => 1 ) [2025-01-04 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-04 18:20:06' and `end` < '2025-01-04 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-04 21:20:18] Production.INFO: count ==1138 [2025-01-04 21:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:20:06 - End Time 2025-01-04 21:20:06 [2025-01-04 21:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175591', 'tblTempUsageDetail_20' ) start [2025-01-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175591', 'tblTempUsageDetail_20' ) end [2025-01-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175591', 'tblTempVendorCDR_20' ) start [2025-01-04 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175591', 'tblTempVendorCDR_20' ) end [2025-01-04 21:20:19] Production.INFO: ProcessCDR(1,14175591,1,1,2) [2025-01-04 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175591', 'tblTempUsageDetail_20' ) start [2025-01-04 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175591', 'tblTempUsageDetail_20' ) end [2025-01-04 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:20:23] Production.INFO: ==28771== Releasing lock... [2025-01-04 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:20:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:21:05 [end_date_ymd] => 2025-01-04 21:21:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:21:05' and `end` < '2025-01-04 21: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-04 21:21:18] Production.INFO: count ==1112 [2025-01-04 21:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:21:05 - End Time 2025-01-04 21:21:05 [2025-01-04 21:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175595', 'tblTempUsageDetail_20' ) start [2025-01-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175595', 'tblTempUsageDetail_20' ) end [2025-01-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175595', 'tblTempVendorCDR_20' ) start [2025-01-04 21:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175595', 'tblTempVendorCDR_20' ) end [2025-01-04 21:21:18] Production.INFO: ProcessCDR(1,14175595,1,1,2) [2025-01-04 21:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175595', 'tblTempUsageDetail_20' ) start [2025-01-04 21:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175595', 'tblTempUsageDetail_20' ) end [2025-01-04 21:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:21:21] Production.INFO: ==28870== Releasing lock... [2025-01-04 21:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:21:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:22:05 [end_date_ymd] => 2025-01-04 21:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:22:05' and `end` < '2025-01-04 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-04 21:22:18] Production.INFO: count ==1112 [2025-01-04 21:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:22:05 - End Time 2025-01-04 21:22:05 [2025-01-04 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175601', 'tblTempUsageDetail_20' ) start [2025-01-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175601', 'tblTempUsageDetail_20' ) end [2025-01-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175601', 'tblTempVendorCDR_20' ) start [2025-01-04 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175601', 'tblTempVendorCDR_20' ) end [2025-01-04 21:22:18] Production.INFO: ProcessCDR(1,14175601,1,1,2) [2025-01-04 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175601', 'tblTempUsageDetail_20' ) start [2025-01-04 21:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175601', 'tblTempUsageDetail_20' ) end [2025-01-04 21:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:22:21] Production.INFO: ==28980== Releasing lock... [2025-01-04 21:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:22:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:23:05 [end_date_ymd] => 2025-01-04 21:23:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:23:05' and `end` < '2025-01-04 21: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-04 21:23:19] Production.INFO: count ==1114 [2025-01-04 21:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:23:05 - End Time 2025-01-04 21:23:05 [2025-01-04 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175606', 'tblTempUsageDetail_20' ) start [2025-01-04 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175606', 'tblTempUsageDetail_20' ) end [2025-01-04 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175606', 'tblTempVendorCDR_20' ) start [2025-01-04 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175606', 'tblTempVendorCDR_20' ) end [2025-01-04 21:23:19] Production.INFO: ProcessCDR(1,14175606,1,1,2) [2025-01-04 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175606', 'tblTempUsageDetail_20' ) start [2025-01-04 21:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175606', 'tblTempUsageDetail_20' ) end [2025-01-04 21:23:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:23:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:23:24] Production.INFO: ==29087== Releasing lock... [2025-01-04 21:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:23:24] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:24:05 [end_date_ymd] => 2025-01-04 21:24:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:24:05' and `end` < '2025-01-04 21: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-04 21:24:18] Production.INFO: count ==1117 [2025-01-04 21:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:24:05 - End Time 2025-01-04 21:24:05 [2025-01-04 21:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175611', 'tblTempUsageDetail_20' ) start [2025-01-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175611', 'tblTempUsageDetail_20' ) end [2025-01-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175611', 'tblTempVendorCDR_20' ) start [2025-01-04 21:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175611', 'tblTempVendorCDR_20' ) end [2025-01-04 21:24:19] Production.INFO: ProcessCDR(1,14175611,1,1,2) [2025-01-04 21:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175611', 'tblTempUsageDetail_20' ) start [2025-01-04 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175611', 'tblTempUsageDetail_20' ) end [2025-01-04 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:24:23] Production.INFO: ==29193== Releasing lock... [2025-01-04 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:24:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:25:06 [end_date_ymd] => 2025-01-04 21:25:06 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:25:06' and `end` < '2025-01-04 21: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-04 21:25:19] Production.INFO: count ==1121 [2025-01-04 21:25:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:25:06 - End Time 2025-01-04 21:25:06 [2025-01-04 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175616', 'tblTempUsageDetail_20' ) start [2025-01-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175616', 'tblTempUsageDetail_20' ) end [2025-01-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175616', 'tblTempVendorCDR_20' ) start [2025-01-04 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175616', 'tblTempVendorCDR_20' ) end [2025-01-04 21:25:19] Production.INFO: ProcessCDR(1,14175616,1,1,2) [2025-01-04 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175616', 'tblTempUsageDetail_20' ) start [2025-01-04 21:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175616', 'tblTempUsageDetail_20' ) end [2025-01-04 21:25:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:25:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:25:24] Production.INFO: ==29295== Releasing lock... [2025-01-04 21:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:25:24] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:26:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:26:04 [end_date_ymd] => 2025-01-04 21:26:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:26:04' and `end` < '2025-01-04 21: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-04 21:26:18] Production.INFO: count ==1121 [2025-01-04 21:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:26:04 - End Time 2025-01-04 21:26:04 [2025-01-04 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175621', 'tblTempUsageDetail_20' ) start [2025-01-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175621', 'tblTempUsageDetail_20' ) end [2025-01-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175621', 'tblTempVendorCDR_20' ) start [2025-01-04 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175621', 'tblTempVendorCDR_20' ) end [2025-01-04 21:26:18] Production.INFO: ProcessCDR(1,14175621,1,1,2) [2025-01-04 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175621', 'tblTempUsageDetail_20' ) start [2025-01-04 21:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175621', 'tblTempUsageDetail_20' ) end [2025-01-04 21:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:26:21] Production.INFO: ==29394== Releasing lock... [2025-01-04 21:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:26:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:27:05 [end_date_ymd] => 2025-01-04 21:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:27:05' and `end` < '2025-01-04 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-04 21:27:18] Production.INFO: count ==1123 [2025-01-04 21:27:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:27:05 - End Time 2025-01-04 21:27:05 [2025-01-04 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175626', 'tblTempUsageDetail_20' ) start [2025-01-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175626', 'tblTempUsageDetail_20' ) end [2025-01-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175626', 'tblTempVendorCDR_20' ) start [2025-01-04 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175626', 'tblTempVendorCDR_20' ) end [2025-01-04 21:27:18] Production.INFO: ProcessCDR(1,14175626,1,1,2) [2025-01-04 21:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175626', 'tblTempUsageDetail_20' ) start [2025-01-04 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175626', 'tblTempUsageDetail_20' ) end [2025-01-04 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:27:22] Production.INFO: ==29485== Releasing lock... [2025-01-04 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:27:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:28:05 [end_date_ymd] => 2025-01-04 21:28:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:28:05' and `end` < '2025-01-04 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-04 21:28:18] Production.INFO: count ==1119 [2025-01-04 21:28:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:28:05 - End Time 2025-01-04 21:28:05 [2025-01-04 21:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175631', 'tblTempUsageDetail_20' ) start [2025-01-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175631', 'tblTempUsageDetail_20' ) end [2025-01-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175631', 'tblTempVendorCDR_20' ) start [2025-01-04 21:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175631', 'tblTempVendorCDR_20' ) end [2025-01-04 21:28:18] Production.INFO: ProcessCDR(1,14175631,1,1,2) [2025-01-04 21:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175631', 'tblTempUsageDetail_20' ) start [2025-01-04 21:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175631', 'tblTempUsageDetail_20' ) end [2025-01-04 21:28:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:28:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:28:21] Production.INFO: ==29576== Releasing lock... [2025-01-04 21:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:28:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:29:05 [end_date_ymd] => 2025-01-04 21:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:29:05' and `end` < '2025-01-04 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-04 21:29:19] Production.INFO: count ==1120 [2025-01-04 21:29:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:29:05 - End Time 2025-01-04 21:29:05 [2025-01-04 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175636', 'tblTempUsageDetail_20' ) start [2025-01-04 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175636', 'tblTempUsageDetail_20' ) end [2025-01-04 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175636', 'tblTempVendorCDR_20' ) start [2025-01-04 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175636', 'tblTempVendorCDR_20' ) end [2025-01-04 21:29:19] Production.INFO: ProcessCDR(1,14175636,1,1,2) [2025-01-04 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175636', 'tblTempUsageDetail_20' ) start [2025-01-04 21:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175636', 'tblTempUsageDetail_20' ) end [2025-01-04 21:29:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:29:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:29:24] Production.INFO: ==29660== Releasing lock... [2025-01-04 21:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:29:24] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:30:06 [end_date_ymd] => 2025-01-04 21:30:06 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:30:06' and `end` < '2025-01-04 21: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-04 21:30:19] Production.INFO: count ==1117 [2025-01-04 21:30:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:30:06 - End Time 2025-01-04 21:30:06 [2025-01-04 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175641', 'tblTempUsageDetail_20' ) start [2025-01-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175641', 'tblTempUsageDetail_20' ) end [2025-01-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175641', 'tblTempVendorCDR_20' ) start [2025-01-04 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175641', 'tblTempVendorCDR_20' ) end [2025-01-04 21:30:19] Production.INFO: ProcessCDR(1,14175641,1,1,2) [2025-01-04 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175641', 'tblTempUsageDetail_20' ) start [2025-01-04 21:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175641', 'tblTempUsageDetail_20' ) end [2025-01-04 21:30:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:30:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:30:22] Production.INFO: ==29793== Releasing lock... [2025-01-04 21:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:30:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:31:05 [end_date_ymd] => 2025-01-04 21:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:31:05' and `end` < '2025-01-04 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-04 21:31:18] Production.INFO: count ==1108 [2025-01-04 21:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:31:05 - End Time 2025-01-04 21:31:05 [2025-01-04 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175647', 'tblTempUsageDetail_20' ) start [2025-01-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175647', 'tblTempUsageDetail_20' ) end [2025-01-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175647', 'tblTempVendorCDR_20' ) start [2025-01-04 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175647', 'tblTempVendorCDR_20' ) end [2025-01-04 21:31:18] Production.INFO: ProcessCDR(1,14175647,1,1,2) [2025-01-04 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175647', 'tblTempUsageDetail_20' ) start [2025-01-04 21:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175647', 'tblTempUsageDetail_20' ) end [2025-01-04 21:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:31:21] Production.INFO: ==29881== Releasing lock... [2025-01-04 21:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:31:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:32:05 [end_date_ymd] => 2025-01-04 21:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:32:05' and `end` < '2025-01-04 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-04 21:32:18] Production.INFO: count ==1109 [2025-01-04 21:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:32:05 - End Time 2025-01-04 21:32:05 [2025-01-04 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175652', 'tblTempUsageDetail_20' ) start [2025-01-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175652', 'tblTempUsageDetail_20' ) end [2025-01-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175652', 'tblTempVendorCDR_20' ) start [2025-01-04 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175652', 'tblTempVendorCDR_20' ) end [2025-01-04 21:32:18] Production.INFO: ProcessCDR(1,14175652,1,1,2) [2025-01-04 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175652', 'tblTempUsageDetail_20' ) start [2025-01-04 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175652', 'tblTempUsageDetail_20' ) end [2025-01-04 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:32:22] Production.INFO: ==29968== Releasing lock... [2025-01-04 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:32:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:33:05 [end_date_ymd] => 2025-01-04 21:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:33:05' and `end` < '2025-01-04 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-04 21:33:18] Production.INFO: count ==1110 [2025-01-04 21:33:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:33:05 - End Time 2025-01-04 21:33:05 [2025-01-04 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175657', 'tblTempUsageDetail_20' ) start [2025-01-04 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175657', 'tblTempUsageDetail_20' ) end [2025-01-04 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175657', 'tblTempVendorCDR_20' ) start [2025-01-04 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175657', 'tblTempVendorCDR_20' ) end [2025-01-04 21:33:18] Production.INFO: ProcessCDR(1,14175657,1,1,2) [2025-01-04 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175657', 'tblTempUsageDetail_20' ) start [2025-01-04 21:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175657', 'tblTempUsageDetail_20' ) end [2025-01-04 21:33:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:33:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:33:21] Production.INFO: ==30054== Releasing lock... [2025-01-04 21:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:33:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:34:05 [end_date_ymd] => 2025-01-04 21:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:34:05' and `end` < '2025-01-04 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-04 21:34:18] Production.INFO: count ==1114 [2025-01-04 21:34:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:34:05 - End Time 2025-01-04 21:34:05 [2025-01-04 21:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175662', 'tblTempUsageDetail_20' ) start [2025-01-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175662', 'tblTempUsageDetail_20' ) end [2025-01-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175662', 'tblTempVendorCDR_20' ) start [2025-01-04 21:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175662', 'tblTempVendorCDR_20' ) end [2025-01-04 21:34:18] Production.INFO: ProcessCDR(1,14175662,1,1,2) [2025-01-04 21:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175662', 'tblTempUsageDetail_20' ) start [2025-01-04 21:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175662', 'tblTempUsageDetail_20' ) end [2025-01-04 21:34:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:34:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:34:21] Production.INFO: ==30140== Releasing lock... [2025-01-04 21:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:34:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:35:05 [end_date_ymd] => 2025-01-04 21:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:35:05' and `end` < '2025-01-04 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-04 21:35:18] Production.INFO: count ==1116 [2025-01-04 21:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:35:05 - End Time 2025-01-04 21:35:05 [2025-01-04 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175667', 'tblTempUsageDetail_20' ) start [2025-01-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175667', 'tblTempUsageDetail_20' ) end [2025-01-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175667', 'tblTempVendorCDR_20' ) start [2025-01-04 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175667', 'tblTempVendorCDR_20' ) end [2025-01-04 21:35:18] Production.INFO: ProcessCDR(1,14175667,1,1,2) [2025-01-04 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175667', 'tblTempUsageDetail_20' ) start [2025-01-04 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175667', 'tblTempUsageDetail_20' ) end [2025-01-04 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:35:21] Production.INFO: ==30231== Releasing lock... [2025-01-04 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:35:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:36:05 [end_date_ymd] => 2025-01-04 21:36:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:36:05' and `end` < '2025-01-04 21: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-04 21:36:19] Production.INFO: count ==1111 [2025-01-04 21:36:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:36:05 - End Time 2025-01-04 21:36:05 [2025-01-04 21:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175672', 'tblTempUsageDetail_20' ) start [2025-01-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175672', 'tblTempUsageDetail_20' ) end [2025-01-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175672', 'tblTempVendorCDR_20' ) start [2025-01-04 21:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175672', 'tblTempVendorCDR_20' ) end [2025-01-04 21:36:19] Production.INFO: ProcessCDR(1,14175672,1,1,2) [2025-01-04 21:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175672', 'tblTempUsageDetail_20' ) start [2025-01-04 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175672', 'tblTempUsageDetail_20' ) end [2025-01-04 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:36:22] Production.INFO: ==30316== Releasing lock... [2025-01-04 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:36:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:37:05 [end_date_ymd] => 2025-01-04 21:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:37:05' and `end` < '2025-01-04 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-04 21:37:17] Production.INFO: count ==1111 [2025-01-04 21:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:37:05 - End Time 2025-01-04 21:37:05 [2025-01-04 21:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175677', 'tblTempUsageDetail_20' ) start [2025-01-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175677', 'tblTempUsageDetail_20' ) end [2025-01-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175677', 'tblTempVendorCDR_20' ) start [2025-01-04 21:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175677', 'tblTempVendorCDR_20' ) end [2025-01-04 21:37:18] Production.INFO: ProcessCDR(1,14175677,1,1,2) [2025-01-04 21:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175677', 'tblTempUsageDetail_20' ) start [2025-01-04 21:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175677', 'tblTempUsageDetail_20' ) end [2025-01-04 21:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:37:21] Production.INFO: ==30405== Releasing lock... [2025-01-04 21:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:37:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:38:05 [end_date_ymd] => 2025-01-04 21:38:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:38:05' and `end` < '2025-01-04 21: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-04 21:38:18] Production.INFO: count ==1118 [2025-01-04 21:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:38:05 - End Time 2025-01-04 21:38:05 [2025-01-04 21:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175682', 'tblTempUsageDetail_20' ) start [2025-01-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175682', 'tblTempUsageDetail_20' ) end [2025-01-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175682', 'tblTempVendorCDR_20' ) start [2025-01-04 21:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175682', 'tblTempVendorCDR_20' ) end [2025-01-04 21:38:18] Production.INFO: ProcessCDR(1,14175682,1,1,2) [2025-01-04 21:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175682', 'tblTempUsageDetail_20' ) start [2025-01-04 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175682', 'tblTempUsageDetail_20' ) end [2025-01-04 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:38:22] Production.INFO: ==30489== Releasing lock... [2025-01-04 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:38:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:39:05 [end_date_ymd] => 2025-01-04 21:39:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:39:05' and `end` < '2025-01-04 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-04 21:39:18] Production.INFO: count ==1129 [2025-01-04 21:39:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:39:05 - End Time 2025-01-04 21:39:05 [2025-01-04 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175687', 'tblTempUsageDetail_20' ) start [2025-01-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175687', 'tblTempUsageDetail_20' ) end [2025-01-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175687', 'tblTempVendorCDR_20' ) start [2025-01-04 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175687', 'tblTempVendorCDR_20' ) end [2025-01-04 21:39:18] Production.INFO: ProcessCDR(1,14175687,1,1,2) [2025-01-04 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175687', 'tblTempUsageDetail_20' ) start [2025-01-04 21:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175687', 'tblTempUsageDetail_20' ) end [2025-01-04 21:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:39:21] Production.INFO: ==30570== Releasing lock... [2025-01-04 21:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:39:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:40:05 [end_date_ymd] => 2025-01-04 21:40:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:40:05' and `end` < '2025-01-04 21: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-04 21:40:18] Production.INFO: count ==1138 [2025-01-04 21:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:40:05 - End Time 2025-01-04 21:40:05 [2025-01-04 21:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175692', 'tblTempUsageDetail_20' ) start [2025-01-04 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175692', 'tblTempUsageDetail_20' ) end [2025-01-04 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175692', 'tblTempVendorCDR_20' ) start [2025-01-04 21:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175692', 'tblTempVendorCDR_20' ) end [2025-01-04 21:40:18] Production.INFO: ProcessCDR(1,14175692,1,1,2) [2025-01-04 21:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175692', 'tblTempUsageDetail_20' ) start [2025-01-04 21:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175692', 'tblTempUsageDetail_20' ) end [2025-01-04 21:40:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:40:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:40:22] Production.INFO: ==30658== Releasing lock... [2025-01-04 21:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:40:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:41:05 [end_date_ymd] => 2025-01-04 21:41:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:41:05' and `end` < '2025-01-04 21: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-04 21:41:19] Production.INFO: count ==1123 [2025-01-04 21:41:20] Production.ERROR: pbx CDR StartTime 2025-01-04 18:41:05 - End Time 2025-01-04 21:41:05 [2025-01-04 21:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175698', 'tblTempUsageDetail_20' ) start [2025-01-04 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175698', 'tblTempUsageDetail_20' ) end [2025-01-04 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175698', 'tblTempVendorCDR_20' ) start [2025-01-04 21:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175698', 'tblTempVendorCDR_20' ) end [2025-01-04 21:41:20] Production.INFO: ProcessCDR(1,14175698,1,1,2) [2025-01-04 21:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175698', 'tblTempUsageDetail_20' ) start [2025-01-04 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175698', 'tblTempUsageDetail_20' ) end [2025-01-04 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:41:23] Production.INFO: ==30744== Releasing lock... [2025-01-04 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:41:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:42:05 [end_date_ymd] => 2025-01-04 21:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:42:05' and `end` < '2025-01-04 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-04 21:42:19] Production.INFO: count ==1125 [2025-01-04 21:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:42:05 - End Time 2025-01-04 21:42:05 [2025-01-04 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175703', 'tblTempUsageDetail_20' ) start [2025-01-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175703', 'tblTempUsageDetail_20' ) end [2025-01-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175703', 'tblTempVendorCDR_20' ) start [2025-01-04 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175703', 'tblTempVendorCDR_20' ) end [2025-01-04 21:42:19] Production.INFO: ProcessCDR(1,14175703,1,1,2) [2025-01-04 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175703', 'tblTempUsageDetail_20' ) start [2025-01-04 21:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175703', 'tblTempUsageDetail_20' ) end [2025-01-04 21:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:42:22] Production.INFO: ==30826== Releasing lock... [2025-01-04 21:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:42:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:43:05 [end_date_ymd] => 2025-01-04 21:43:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:43:05' and `end` < '2025-01-04 21: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-04 21:43:19] Production.INFO: count ==1115 [2025-01-04 21:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:43:05 - End Time 2025-01-04 21:43:05 [2025-01-04 21:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175708', 'tblTempUsageDetail_20' ) start [2025-01-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175708', 'tblTempUsageDetail_20' ) end [2025-01-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175708', 'tblTempVendorCDR_20' ) start [2025-01-04 21:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175708', 'tblTempVendorCDR_20' ) end [2025-01-04 21:43:19] Production.INFO: ProcessCDR(1,14175708,1,1,2) [2025-01-04 21:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175708', 'tblTempUsageDetail_20' ) start [2025-01-04 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175708', 'tblTempUsageDetail_20' ) end [2025-01-04 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:43:22] Production.INFO: ==30912== Releasing lock... [2025-01-04 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:43:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:44:05 [end_date_ymd] => 2025-01-04 21:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:44:05' and `end` < '2025-01-04 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-04 21:44:18] Production.INFO: count ==1121 [2025-01-04 21:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:44:05 - End Time 2025-01-04 21:44:05 [2025-01-04 21:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175713', 'tblTempUsageDetail_20' ) start [2025-01-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175713', 'tblTempUsageDetail_20' ) end [2025-01-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175713', 'tblTempVendorCDR_20' ) start [2025-01-04 21:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175713', 'tblTempVendorCDR_20' ) end [2025-01-04 21:44:18] Production.INFO: ProcessCDR(1,14175713,1,1,2) [2025-01-04 21:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175713', 'tblTempUsageDetail_20' ) start [2025-01-04 21:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175713', 'tblTempUsageDetail_20' ) end [2025-01-04 21:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:44:21] Production.INFO: ==30993== Releasing lock... [2025-01-04 21:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:44:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:45:05 [end_date_ymd] => 2025-01-04 21:45:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:45:05' and `end` < '2025-01-04 21: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-04 21:45:18] Production.INFO: count ==1115 [2025-01-04 21:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:45:05 - End Time 2025-01-04 21:45:05 [2025-01-04 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175718', 'tblTempUsageDetail_20' ) start [2025-01-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175718', 'tblTempUsageDetail_20' ) end [2025-01-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175718', 'tblTempVendorCDR_20' ) start [2025-01-04 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175718', 'tblTempVendorCDR_20' ) end [2025-01-04 21:45:18] Production.INFO: ProcessCDR(1,14175718,1,1,2) [2025-01-04 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175718', 'tblTempUsageDetail_20' ) start [2025-01-04 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175718', 'tblTempUsageDetail_20' ) end [2025-01-04 21:45:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:45:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:45:21] Production.INFO: ==31114== Releasing lock... [2025-01-04 21:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:45:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:46:05 [end_date_ymd] => 2025-01-04 21:46:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:46:05' and `end` < '2025-01-04 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-04 21:46:20] Production.INFO: count ==1112 [2025-01-04 21:46:20] Production.ERROR: pbx CDR StartTime 2025-01-04 18:46:05 - End Time 2025-01-04 21:46:05 [2025-01-04 21:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175723', 'tblTempUsageDetail_20' ) start [2025-01-04 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175723', 'tblTempUsageDetail_20' ) end [2025-01-04 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175723', 'tblTempVendorCDR_20' ) start [2025-01-04 21:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175723', 'tblTempVendorCDR_20' ) end [2025-01-04 21:46:20] Production.INFO: ProcessCDR(1,14175723,1,1,2) [2025-01-04 21:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175723', 'tblTempUsageDetail_20' ) start [2025-01-04 21:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175723', 'tblTempUsageDetail_20' ) end [2025-01-04 21:46:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:46:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:46:23] Production.INFO: ==31202== Releasing lock... [2025-01-04 21:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:46:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:47:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:47:04 [end_date_ymd] => 2025-01-04 21:47:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:47:04' and `end` < '2025-01-04 21: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-04 21:47:17] Production.INFO: count ==1146 [2025-01-04 21:47:17] Production.ERROR: pbx CDR StartTime 2025-01-04 18:47:04 - End Time 2025-01-04 21:47:04 [2025-01-04 21:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175728', 'tblTempUsageDetail_20' ) start [2025-01-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175728', 'tblTempUsageDetail_20' ) end [2025-01-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175728', 'tblTempVendorCDR_20' ) start [2025-01-04 21:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175728', 'tblTempVendorCDR_20' ) end [2025-01-04 21:47:17] Production.INFO: ProcessCDR(1,14175728,1,1,2) [2025-01-04 21:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175728', 'tblTempUsageDetail_20' ) start [2025-01-04 21:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175728', 'tblTempUsageDetail_20' ) end [2025-01-04 21:47:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:47:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:47:20] Production.INFO: ==31284== Releasing lock... [2025-01-04 21:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:47:20] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:48:05 [end_date_ymd] => 2025-01-04 21:48:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:48:05' and `end` < '2025-01-04 21: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-04 21:48:18] Production.INFO: count ==1142 [2025-01-04 21:48:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:48:05 - End Time 2025-01-04 21:48:05 [2025-01-04 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175733', 'tblTempUsageDetail_20' ) start [2025-01-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175733', 'tblTempUsageDetail_20' ) end [2025-01-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175733', 'tblTempVendorCDR_20' ) start [2025-01-04 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175733', 'tblTempVendorCDR_20' ) end [2025-01-04 21:48:18] Production.INFO: ProcessCDR(1,14175733,1,1,2) [2025-01-04 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175733', 'tblTempUsageDetail_20' ) start [2025-01-04 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175733', 'tblTempUsageDetail_20' ) end [2025-01-04 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:48:21] Production.INFO: ==31368== Releasing lock... [2025-01-04 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:48:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:49:05 [end_date_ymd] => 2025-01-04 21:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:49:05' and `end` < '2025-01-04 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-04 21:49:18] Production.INFO: count ==1147 [2025-01-04 21:49:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:49:05 - End Time 2025-01-04 21:49:05 [2025-01-04 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175738', 'tblTempUsageDetail_20' ) start [2025-01-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175738', 'tblTempUsageDetail_20' ) end [2025-01-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175738', 'tblTempVendorCDR_20' ) start [2025-01-04 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175738', 'tblTempVendorCDR_20' ) end [2025-01-04 21:49:18] Production.INFO: ProcessCDR(1,14175738,1,1,2) [2025-01-04 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175738', 'tblTempUsageDetail_20' ) start [2025-01-04 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175738', 'tblTempUsageDetail_20' ) end [2025-01-04 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:49:21] Production.INFO: ==31448== Releasing lock... [2025-01-04 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:49:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:50:06 [end_date_ymd] => 2025-01-04 21:50:06 [RateCDR] => 1 ) [2025-01-04 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-04 18:50:06' and `end` < '2025-01-04 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-04 21:50:18] Production.INFO: count ==1147 [2025-01-04 21:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:50:06 - End Time 2025-01-04 21:50:06 [2025-01-04 21:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175744', 'tblTempUsageDetail_20' ) start [2025-01-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175744', 'tblTempUsageDetail_20' ) end [2025-01-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175744', 'tblTempVendorCDR_20' ) start [2025-01-04 21:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175744', 'tblTempVendorCDR_20' ) end [2025-01-04 21:50:18] Production.INFO: ProcessCDR(1,14175744,1,1,2) [2025-01-04 21:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175744', 'tblTempUsageDetail_20' ) start [2025-01-04 21:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175744', 'tblTempUsageDetail_20' ) end [2025-01-04 21:50:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:50:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:50:21] Production.INFO: ==31525== Releasing lock... [2025-01-04 21:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:50:21] Production.INFO: 36.25 MB #Memory Used# [2025-01-04 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:51:05 [end_date_ymd] => 2025-01-04 21:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:51:05' and `end` < '2025-01-04 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-04 21:51:19] Production.INFO: count ==1129 [2025-01-04 21:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:51:05 - End Time 2025-01-04 21:51:05 [2025-01-04 21:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175749', 'tblTempUsageDetail_20' ) start [2025-01-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175749', 'tblTempUsageDetail_20' ) end [2025-01-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175749', 'tblTempVendorCDR_20' ) start [2025-01-04 21:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175749', 'tblTempVendorCDR_20' ) end [2025-01-04 21:51:19] Production.INFO: ProcessCDR(1,14175749,1,1,2) [2025-01-04 21:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175749', 'tblTempUsageDetail_20' ) start [2025-01-04 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175749', 'tblTempUsageDetail_20' ) end [2025-01-04 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:51:22] Production.INFO: ==31596== Releasing lock... [2025-01-04 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:51:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:52:05 [end_date_ymd] => 2025-01-04 21:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:52:05' and `end` < '2025-01-04 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-04 21:52:17] Production.INFO: count ==1129 [2025-01-04 21:52:17] Production.ERROR: pbx CDR StartTime 2025-01-04 18:52:05 - End Time 2025-01-04 21:52:05 [2025-01-04 21:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175754', 'tblTempUsageDetail_20' ) start [2025-01-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175754', 'tblTempUsageDetail_20' ) end [2025-01-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175754', 'tblTempVendorCDR_20' ) start [2025-01-04 21:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175754', 'tblTempVendorCDR_20' ) end [2025-01-04 21:52:17] Production.INFO: ProcessCDR(1,14175754,1,1,2) [2025-01-04 21:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175754', 'tblTempUsageDetail_20' ) start [2025-01-04 21:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175754', 'tblTempUsageDetail_20' ) end [2025-01-04 21:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:52:21] Production.INFO: ==31672== Releasing lock... [2025-01-04 21:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:52:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:53:05 [end_date_ymd] => 2025-01-04 21:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:53:05' and `end` < '2025-01-04 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-04 21:53:20] Production.INFO: count ==1128 [2025-01-04 21:53:20] Production.ERROR: pbx CDR StartTime 2025-01-04 18:53:05 - End Time 2025-01-04 21:53:05 [2025-01-04 21:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175759', 'tblTempUsageDetail_20' ) start [2025-01-04 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175759', 'tblTempUsageDetail_20' ) end [2025-01-04 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175759', 'tblTempVendorCDR_20' ) start [2025-01-04 21:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175759', 'tblTempVendorCDR_20' ) end [2025-01-04 21:53:20] Production.INFO: ProcessCDR(1,14175759,1,1,2) [2025-01-04 21:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175759', 'tblTempUsageDetail_20' ) start [2025-01-04 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175759', 'tblTempUsageDetail_20' ) end [2025-01-04 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:53:23] Production.INFO: ==31745== Releasing lock... [2025-01-04 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:53:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:54:05 [end_date_ymd] => 2025-01-04 21:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:54:05' and `end` < '2025-01-04 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-04 21:54:20] Production.INFO: count ==1128 [2025-01-04 21:54:20] Production.ERROR: pbx CDR StartTime 2025-01-04 18:54:05 - End Time 2025-01-04 21:54:05 [2025-01-04 21:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175764', 'tblTempUsageDetail_20' ) start [2025-01-04 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175764', 'tblTempUsageDetail_20' ) end [2025-01-04 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175764', 'tblTempVendorCDR_20' ) start [2025-01-04 21:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175764', 'tblTempVendorCDR_20' ) end [2025-01-04 21:54:20] Production.INFO: ProcessCDR(1,14175764,1,1,2) [2025-01-04 21:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175764', 'tblTempUsageDetail_20' ) start [2025-01-04 21:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175764', 'tblTempUsageDetail_20' ) end [2025-01-04 21:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:54:23] Production.INFO: ==31817== Releasing lock... [2025-01-04 21:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:54:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:55:06 [end_date_ymd] => 2025-01-04 21:55:06 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:55:06' and `end` < '2025-01-04 21: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-04 21:55:19] Production.INFO: count ==1128 [2025-01-04 21:55:19] Production.ERROR: pbx CDR StartTime 2025-01-04 18:55:06 - End Time 2025-01-04 21:55:06 [2025-01-04 21:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175769', 'tblTempUsageDetail_20' ) start [2025-01-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175769', 'tblTempUsageDetail_20' ) end [2025-01-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175769', 'tblTempVendorCDR_20' ) start [2025-01-04 21:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175769', 'tblTempVendorCDR_20' ) end [2025-01-04 21:55:19] Production.INFO: ProcessCDR(1,14175769,1,1,2) [2025-01-04 21:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175769', 'tblTempUsageDetail_20' ) start [2025-01-04 21:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175769', 'tblTempUsageDetail_20' ) end [2025-01-04 21:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:55:22] Production.INFO: ==31891== Releasing lock... [2025-01-04 21:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:55:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:56:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:56:04 [end_date_ymd] => 2025-01-04 21:56:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:56:04' and `end` < '2025-01-04 21: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-04 21:56:18] Production.INFO: count ==1123 [2025-01-04 21:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:56:04 - End Time 2025-01-04 21:56:04 [2025-01-04 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175774', 'tblTempUsageDetail_20' ) start [2025-01-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175774', 'tblTempUsageDetail_20' ) end [2025-01-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175774', 'tblTempVendorCDR_20' ) start [2025-01-04 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175774', 'tblTempVendorCDR_20' ) end [2025-01-04 21:56:18] Production.INFO: ProcessCDR(1,14175774,1,1,2) [2025-01-04 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175774', 'tblTempUsageDetail_20' ) start [2025-01-04 21:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175774', 'tblTempUsageDetail_20' ) end [2025-01-04 21:56:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:56:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:56:22] Production.INFO: ==31965== Releasing lock... [2025-01-04 21:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:56:22] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:57:05 [end_date_ymd] => 2025-01-04 21:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 18:57:05' and `end` < '2025-01-04 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-04 21:57:17] Production.INFO: count ==1118 [2025-01-04 21:57:17] Production.ERROR: pbx CDR StartTime 2025-01-04 18:57:05 - End Time 2025-01-04 21:57:05 [2025-01-04 21:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175779', 'tblTempUsageDetail_20' ) start [2025-01-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175779', 'tblTempUsageDetail_20' ) end [2025-01-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175779', 'tblTempVendorCDR_20' ) start [2025-01-04 21:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175779', 'tblTempVendorCDR_20' ) end [2025-01-04 21:57:18] Production.INFO: ProcessCDR(1,14175779,1,1,2) [2025-01-04 21:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:57:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175779', 'tblTempUsageDetail_20' ) start [2025-01-04 21:57:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175779', 'tblTempUsageDetail_20' ) end [2025-01-04 21:57:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:57:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:57:21] Production.INFO: ==32038== Releasing lock... [2025-01-04 21:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:57:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:58:04 [end_date_ymd] => 2025-01-04 21:58:04 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:58:04' and `end` < '2025-01-04 21: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-04 21:58:18] Production.INFO: count ==1110 [2025-01-04 21:58:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:58:04 - End Time 2025-01-04 21:58:04 [2025-01-04 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175784', 'tblTempUsageDetail_20' ) start [2025-01-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175784', 'tblTempUsageDetail_20' ) end [2025-01-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175784', 'tblTempVendorCDR_20' ) start [2025-01-04 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175784', 'tblTempVendorCDR_20' ) end [2025-01-04 21:58:18] Production.INFO: ProcessCDR(1,14175784,1,1,2) [2025-01-04 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175784', 'tblTempUsageDetail_20' ) start [2025-01-04 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175784', 'tblTempUsageDetail_20' ) end [2025-01-04 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:58:21] Production.INFO: ==32108== Releasing lock... [2025-01-04 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:58:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 18:59:05 [end_date_ymd] => 2025-01-04 21:59:05 [RateCDR] => 1 ) [2025-01-04 21: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-04 18:59:05' and `end` < '2025-01-04 21: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-04 21:59:18] Production.INFO: count ==1112 [2025-01-04 21:59:18] Production.ERROR: pbx CDR StartTime 2025-01-04 18:59:05 - End Time 2025-01-04 21:59:05 [2025-01-04 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175789', 'tblTempUsageDetail_20' ) start [2025-01-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175789', 'tblTempUsageDetail_20' ) end [2025-01-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175789', 'tblTempVendorCDR_20' ) start [2025-01-04 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175789', 'tblTempVendorCDR_20' ) end [2025-01-04 21:59:18] Production.INFO: ProcessCDR(1,14175789,1,1,2) [2025-01-04 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175789', 'tblTempUsageDetail_20' ) start [2025-01-04 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175789', 'tblTempUsageDetail_20' ) end [2025-01-04 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 21:59:21] Production.INFO: ==32180== Releasing lock... [2025-01-04 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 21:59:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 22:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:00:07 [end_date_ymd] => 2025-01-04 22:00:07 [RateCDR] => 1 ) [2025-01-04 22:00:07] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 19:00:07' and `end` < '2025-01-04 22:00:07' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 22:00:20] Production.INFO: count ==1112 [2025-01-04 22:00:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:00:07 - End Time 2025-01-04 22:00:07 [2025-01-04 22:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175795', 'tblTempUsageDetail_20' ) start [2025-01-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175795', 'tblTempUsageDetail_20' ) end [2025-01-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175795', 'tblTempVendorCDR_20' ) start [2025-01-04 22:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175795', 'tblTempVendorCDR_20' ) end [2025-01-04 22:00:20] Production.INFO: ProcessCDR(1,14175795,1,1,2) [2025-01-04 22:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175795', 'tblTempUsageDetail_20' ) start [2025-01-04 22:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175795', 'tblTempUsageDetail_20' ) end [2025-01-04 22:00:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:00:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:00:23] Production.INFO: ==32258== Releasing lock... [2025-01-04 22:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:00:23] Production.INFO: 36 MB #Memory Used# [2025-01-04 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:01:05 [end_date_ymd] => 2025-01-04 22:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:01:05' and `end` < '2025-01-04 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-04 22:01:18] Production.INFO: count ==1085 [2025-01-04 22:01:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:01:05 - End Time 2025-01-04 22:01:05 [2025-01-04 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175800', 'tblTempUsageDetail_20' ) start [2025-01-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175800', 'tblTempUsageDetail_20' ) end [2025-01-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175800', 'tblTempVendorCDR_20' ) start [2025-01-04 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175800', 'tblTempVendorCDR_20' ) end [2025-01-04 22:01:18] Production.INFO: ProcessCDR(1,14175800,1,1,2) [2025-01-04 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175800', 'tblTempUsageDetail_20' ) start [2025-01-04 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175800', 'tblTempUsageDetail_20' ) end [2025-01-04 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:01:21] Production.INFO: ==32381== Releasing lock... [2025-01-04 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:01:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:02:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:02:04 [end_date_ymd] => 2025-01-04 22:02:04 [RateCDR] => 1 ) [2025-01-04 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-04 19:02:04' and `end` < '2025-01-04 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-04 22:02:18] Production.INFO: count ==1085 [2025-01-04 22:02:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:02:04 - End Time 2025-01-04 22:02:04 [2025-01-04 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175805', 'tblTempUsageDetail_20' ) start [2025-01-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175805', 'tblTempUsageDetail_20' ) end [2025-01-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175805', 'tblTempVendorCDR_20' ) start [2025-01-04 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175805', 'tblTempVendorCDR_20' ) end [2025-01-04 22:02:18] Production.INFO: ProcessCDR(1,14175805,1,1,2) [2025-01-04 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175805', 'tblTempUsageDetail_20' ) start [2025-01-04 22:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175805', 'tblTempUsageDetail_20' ) end [2025-01-04 22:02:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:02:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:02:21] Production.INFO: ==32451== Releasing lock... [2025-01-04 22:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:02:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:03:05 [end_date_ymd] => 2025-01-04 22:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:03:05' and `end` < '2025-01-04 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-04 22:03:19] Production.INFO: count ==1085 [2025-01-04 22:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:03:05 - End Time 2025-01-04 22:03:05 [2025-01-04 22:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175810', 'tblTempUsageDetail_20' ) start [2025-01-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175810', 'tblTempUsageDetail_20' ) end [2025-01-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175810', 'tblTempVendorCDR_20' ) start [2025-01-04 22:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175810', 'tblTempVendorCDR_20' ) end [2025-01-04 22:03:19] Production.INFO: ProcessCDR(1,14175810,1,1,2) [2025-01-04 22:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175810', 'tblTempUsageDetail_20' ) start [2025-01-04 22:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175810', 'tblTempUsageDetail_20' ) end [2025-01-04 22:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:03:22] Production.INFO: ==32526== Releasing lock... [2025-01-04 22:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:03:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:04:05 [end_date_ymd] => 2025-01-04 22:04:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:04:05' and `end` < '2025-01-04 22: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-04 22:04:18] Production.INFO: count ==1094 [2025-01-04 22:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:04:05 - End Time 2025-01-04 22:04:05 [2025-01-04 22:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175815', 'tblTempUsageDetail_20' ) start [2025-01-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175815', 'tblTempUsageDetail_20' ) end [2025-01-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175815', 'tblTempVendorCDR_20' ) start [2025-01-04 22:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175815', 'tblTempVendorCDR_20' ) end [2025-01-04 22:04:18] Production.INFO: ProcessCDR(1,14175815,1,1,2) [2025-01-04 22:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175815', 'tblTempUsageDetail_20' ) start [2025-01-04 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175815', 'tblTempUsageDetail_20' ) end [2025-01-04 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:04:21] Production.INFO: ==32600== Releasing lock... [2025-01-04 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:04:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:05:04 [end_date_ymd] => 2025-01-04 22:05:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:05:04' and `end` < '2025-01-04 22: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-04 22:05:17] Production.INFO: count ==1094 [2025-01-04 22:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:05:04 - End Time 2025-01-04 22:05:04 [2025-01-04 22:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175820', 'tblTempUsageDetail_20' ) start [2025-01-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175820', 'tblTempUsageDetail_20' ) end [2025-01-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175820', 'tblTempVendorCDR_20' ) start [2025-01-04 22:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175820', 'tblTempVendorCDR_20' ) end [2025-01-04 22:05:17] Production.INFO: ProcessCDR(1,14175820,1,1,2) [2025-01-04 22:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175820', 'tblTempUsageDetail_20' ) start [2025-01-04 22:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175820', 'tblTempUsageDetail_20' ) end [2025-01-04 22:05:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:05:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:05:20] Production.INFO: ==32678== Releasing lock... [2025-01-04 22:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:05:20] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:06:05 [end_date_ymd] => 2025-01-04 22:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:06:05' and `end` < '2025-01-04 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-04 22:06:18] Production.INFO: count ==1094 [2025-01-04 22:06:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:06:05 - End Time 2025-01-04 22:06:05 [2025-01-04 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175825', 'tblTempUsageDetail_20' ) start [2025-01-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175825', 'tblTempUsageDetail_20' ) end [2025-01-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175825', 'tblTempVendorCDR_20' ) start [2025-01-04 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175825', 'tblTempVendorCDR_20' ) end [2025-01-04 22:06:18] Production.INFO: ProcessCDR(1,14175825,1,1,2) [2025-01-04 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175825', 'tblTempUsageDetail_20' ) start [2025-01-04 22:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175825', 'tblTempUsageDetail_20' ) end [2025-01-04 22:06:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:06:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:06:21] Production.INFO: ==32751== Releasing lock... [2025-01-04 22:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:06:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:07:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:07:04 [end_date_ymd] => 2025-01-04 22:07:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:07:04' and `end` < '2025-01-04 22: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-04 22:07:17] Production.INFO: count ==1093 [2025-01-04 22:07:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:07:04 - End Time 2025-01-04 22:07:04 [2025-01-04 22:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175830', 'tblTempUsageDetail_20' ) start [2025-01-04 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175830', 'tblTempUsageDetail_20' ) end [2025-01-04 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175830', 'tblTempVendorCDR_20' ) start [2025-01-04 22:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175830', 'tblTempVendorCDR_20' ) end [2025-01-04 22:07:17] Production.INFO: ProcessCDR(1,14175830,1,1,2) [2025-01-04 22:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175830', 'tblTempUsageDetail_20' ) start [2025-01-04 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175830', 'tblTempUsageDetail_20' ) end [2025-01-04 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:07:21] Production.INFO: ==376== Releasing lock... [2025-01-04 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:07:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:08:05 [end_date_ymd] => 2025-01-04 22:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:08:05' and `end` < '2025-01-04 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-04 22:08:18] Production.INFO: count ==1092 [2025-01-04 22:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:08:05 - End Time 2025-01-04 22:08:05 [2025-01-04 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175835', 'tblTempUsageDetail_20' ) start [2025-01-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175835', 'tblTempUsageDetail_20' ) end [2025-01-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175835', 'tblTempVendorCDR_20' ) start [2025-01-04 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175835', 'tblTempVendorCDR_20' ) end [2025-01-04 22:08:18] Production.INFO: ProcessCDR(1,14175835,1,1,2) [2025-01-04 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175835', 'tblTempUsageDetail_20' ) start [2025-01-04 22:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175835', 'tblTempUsageDetail_20' ) end [2025-01-04 22:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:08:21] Production.INFO: ==449== Releasing lock... [2025-01-04 22:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:08:21] Production.INFO: 36 MB #Memory Used# [2025-01-04 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:09:05 [end_date_ymd] => 2025-01-04 22:09:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:09:05' and `end` < '2025-01-04 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-04 22:09:18] Production.INFO: count ==1093 [2025-01-04 22:09:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:09:05 - End Time 2025-01-04 22:09:05 [2025-01-04 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175840', 'tblTempUsageDetail_20' ) start [2025-01-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175840', 'tblTempUsageDetail_20' ) end [2025-01-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175840', 'tblTempVendorCDR_20' ) start [2025-01-04 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175840', 'tblTempVendorCDR_20' ) end [2025-01-04 22:09:18] Production.INFO: ProcessCDR(1,14175840,1,1,2) [2025-01-04 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175840', 'tblTempUsageDetail_20' ) start [2025-01-04 22:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175840', 'tblTempUsageDetail_20' ) end [2025-01-04 22:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:09:22] Production.INFO: ==522== Releasing lock... [2025-01-04 22:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:09:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:10:05 [end_date_ymd] => 2025-01-04 22:10:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:10:05' and `end` < '2025-01-04 22: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-04 22:10:18] Production.INFO: count ==1092 [2025-01-04 22:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:10:05 - End Time 2025-01-04 22:10:05 [2025-01-04 22:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175846', 'tblTempUsageDetail_20' ) start [2025-01-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175846', 'tblTempUsageDetail_20' ) end [2025-01-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175846', 'tblTempVendorCDR_20' ) start [2025-01-04 22:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175846', 'tblTempVendorCDR_20' ) end [2025-01-04 22:10:18] Production.INFO: ProcessCDR(1,14175846,1,1,2) [2025-01-04 22:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175846', 'tblTempUsageDetail_20' ) start [2025-01-04 22:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175846', 'tblTempUsageDetail_20' ) end [2025-01-04 22:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:10:21] Production.INFO: ==597== Releasing lock... [2025-01-04 22:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:10:21] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:11:05 [end_date_ymd] => 2025-01-04 22:11:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:11:05' and `end` < '2025-01-04 22: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-04 22:11:19] Production.INFO: count ==1075 [2025-01-04 22:11:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:11:05 - End Time 2025-01-04 22:11:05 [2025-01-04 22:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175851', 'tblTempUsageDetail_20' ) start [2025-01-04 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175851', 'tblTempUsageDetail_20' ) end [2025-01-04 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175851', 'tblTempVendorCDR_20' ) start [2025-01-04 22:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175851', 'tblTempVendorCDR_20' ) end [2025-01-04 22:11:19] Production.INFO: ProcessCDR(1,14175851,1,1,2) [2025-01-04 22:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175851', 'tblTempUsageDetail_20' ) start [2025-01-04 22:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175851', 'tblTempUsageDetail_20' ) end [2025-01-04 22:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:11:22] Production.INFO: ==700== Releasing lock... [2025-01-04 22:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:11:22] Production.INFO: 35.75 MB #Memory Used# [2025-01-04 22:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:12:05 [end_date_ymd] => 2025-01-04 22:12:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:12:05' and `end` < '2025-01-04 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-04 22:12:18] Production.INFO: count ==1074 [2025-01-04 22:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:12:05 - End Time 2025-01-04 22:12:05 [2025-01-04 22:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175856', 'tblTempUsageDetail_20' ) start [2025-01-04 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175856', 'tblTempUsageDetail_20' ) end [2025-01-04 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175856', 'tblTempVendorCDR_20' ) start [2025-01-04 22:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175856', 'tblTempVendorCDR_20' ) end [2025-01-04 22:12:18] Production.INFO: ProcessCDR(1,14175856,1,1,2) [2025-01-04 22:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175856', 'tblTempUsageDetail_20' ) start [2025-01-04 22:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175856', 'tblTempUsageDetail_20' ) end [2025-01-04 22:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:12:21] Production.INFO: ==776== Releasing lock... [2025-01-04 22:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:12:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:13:05 [end_date_ymd] => 2025-01-04 22:13:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:13:05' and `end` < '2025-01-04 22: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-04 22:13:19] Production.INFO: count ==1071 [2025-01-04 22:13:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:13:05 - End Time 2025-01-04 22:13:05 [2025-01-04 22:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175861', 'tblTempUsageDetail_20' ) start [2025-01-04 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175861', 'tblTempUsageDetail_20' ) end [2025-01-04 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175861', 'tblTempVendorCDR_20' ) start [2025-01-04 22:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175861', 'tblTempVendorCDR_20' ) end [2025-01-04 22:13:19] Production.INFO: ProcessCDR(1,14175861,1,1,2) [2025-01-04 22:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175861', 'tblTempUsageDetail_20' ) start [2025-01-04 22:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175861', 'tblTempUsageDetail_20' ) end [2025-01-04 22:13:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:13:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:13:22] Production.INFO: ==848== Releasing lock... [2025-01-04 22:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:13:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:14:05 [end_date_ymd] => 2025-01-04 22:14:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:14:05' and `end` < '2025-01-04 22: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-04 22:14:17] Production.INFO: count ==1071 [2025-01-04 22:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:14:05 - End Time 2025-01-04 22:14:05 [2025-01-04 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175866', 'tblTempUsageDetail_20' ) start [2025-01-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175866', 'tblTempUsageDetail_20' ) end [2025-01-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175866', 'tblTempVendorCDR_20' ) start [2025-01-04 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175866', 'tblTempVendorCDR_20' ) end [2025-01-04 22:14:18] Production.INFO: ProcessCDR(1,14175866,1,1,2) [2025-01-04 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175866', 'tblTempUsageDetail_20' ) start [2025-01-04 22:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175866', 'tblTempUsageDetail_20' ) end [2025-01-04 22:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:14:21] Production.INFO: ==921== Releasing lock... [2025-01-04 22:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:14:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:15:05 [end_date_ymd] => 2025-01-04 22:15:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:15:05' and `end` < '2025-01-04 22: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-04 22:15:18] Production.INFO: count ==1071 [2025-01-04 22:15:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:15:05 - End Time 2025-01-04 22:15:05 [2025-01-04 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175871', 'tblTempUsageDetail_20' ) start [2025-01-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175871', 'tblTempUsageDetail_20' ) end [2025-01-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175871', 'tblTempVendorCDR_20' ) start [2025-01-04 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175871', 'tblTempVendorCDR_20' ) end [2025-01-04 22:15:18] Production.INFO: ProcessCDR(1,14175871,1,1,2) [2025-01-04 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175871', 'tblTempUsageDetail_20' ) start [2025-01-04 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175871', 'tblTempUsageDetail_20' ) end [2025-01-04 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:15:21] Production.INFO: ==994== Releasing lock... [2025-01-04 22:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:15:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:16:05 [end_date_ymd] => 2025-01-04 22:16:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:16:05' and `end` < '2025-01-04 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-04 22:16:20] Production.INFO: count ==1070 [2025-01-04 22:16:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:16:05 - End Time 2025-01-04 22:16:05 [2025-01-04 22:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175876', 'tblTempUsageDetail_20' ) start [2025-01-04 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175876', 'tblTempUsageDetail_20' ) end [2025-01-04 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175876', 'tblTempVendorCDR_20' ) start [2025-01-04 22:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175876', 'tblTempVendorCDR_20' ) end [2025-01-04 22:16:20] Production.INFO: ProcessCDR(1,14175876,1,1,2) [2025-01-04 22:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175876', 'tblTempUsageDetail_20' ) start [2025-01-04 22:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175876', 'tblTempUsageDetail_20' ) end [2025-01-04 22:16:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:16:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:16:25] Production.INFO: ==1066== Releasing lock... [2025-01-04 22:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:16:25] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:17:06 [end_date_ymd] => 2025-01-04 22:17:06 [RateCDR] => 1 ) [2025-01-04 22:17: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-04 19:17:06' and `end` < '2025-01-04 22:17: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-04 22:17:20] Production.INFO: count ==1070 [2025-01-04 22:17:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:17:06 - End Time 2025-01-04 22:17:06 [2025-01-04 22:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175881', 'tblTempUsageDetail_20' ) start [2025-01-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175881', 'tblTempUsageDetail_20' ) end [2025-01-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175881', 'tblTempVendorCDR_20' ) start [2025-01-04 22:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175881', 'tblTempVendorCDR_20' ) end [2025-01-04 22:17:20] Production.INFO: ProcessCDR(1,14175881,1,1,2) [2025-01-04 22:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175881', 'tblTempUsageDetail_20' ) start [2025-01-04 22:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175881', 'tblTempUsageDetail_20' ) end [2025-01-04 22:17:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:17:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:17:24] Production.INFO: ==1187== Releasing lock... [2025-01-04 22:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:17:24] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:18:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:18:04 [end_date_ymd] => 2025-01-04 22:18:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:18:04' and `end` < '2025-01-04 22: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-04 22:18:17] Production.INFO: count ==1072 [2025-01-04 22:18:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:18:04 - End Time 2025-01-04 22:18:04 [2025-01-04 22:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175886', 'tblTempUsageDetail_20' ) start [2025-01-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175886', 'tblTempUsageDetail_20' ) end [2025-01-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175886', 'tblTempVendorCDR_20' ) start [2025-01-04 22:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175886', 'tblTempVendorCDR_20' ) end [2025-01-04 22:18:17] Production.INFO: ProcessCDR(1,14175886,1,1,2) [2025-01-04 22:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:18:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175886', 'tblTempUsageDetail_20' ) start [2025-01-04 22:18:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175886', 'tblTempUsageDetail_20' ) end [2025-01-04 22:18:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:18:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:18:20] Production.INFO: ==1268== Releasing lock... [2025-01-04 22:18:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:18:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:19:05 [end_date_ymd] => 2025-01-04 22:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:19:05' and `end` < '2025-01-04 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-04 22:19:19] Production.INFO: count ==1070 [2025-01-04 22:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:19:05 - End Time 2025-01-04 22:19:05 [2025-01-04 22:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175891', 'tblTempUsageDetail_20' ) start [2025-01-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175891', 'tblTempUsageDetail_20' ) end [2025-01-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175891', 'tblTempVendorCDR_20' ) start [2025-01-04 22:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175891', 'tblTempVendorCDR_20' ) end [2025-01-04 22:19:19] Production.INFO: ProcessCDR(1,14175891,1,1,2) [2025-01-04 22:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175891', 'tblTempUsageDetail_20' ) start [2025-01-04 22:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175891', 'tblTempUsageDetail_20' ) end [2025-01-04 22:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:19:22] Production.INFO: ==1340== Releasing lock... [2025-01-04 22:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:19:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:20:06 [end_date_ymd] => 2025-01-04 22:20:06 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:20:06' and `end` < '2025-01-04 22: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-04 22:20:18] Production.INFO: count ==1070 [2025-01-04 22:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:20:06 - End Time 2025-01-04 22:20:06 [2025-01-04 22:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175897', 'tblTempUsageDetail_20' ) start [2025-01-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175897', 'tblTempUsageDetail_20' ) end [2025-01-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175897', 'tblTempVendorCDR_20' ) start [2025-01-04 22:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175897', 'tblTempVendorCDR_20' ) end [2025-01-04 22:20:18] Production.INFO: ProcessCDR(1,14175897,1,1,2) [2025-01-04 22:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175897', 'tblTempUsageDetail_20' ) start [2025-01-04 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175897', 'tblTempUsageDetail_20' ) end [2025-01-04 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:20:22] Production.INFO: ==1423== Releasing lock... [2025-01-04 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:20:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:21:04 [end_date_ymd] => 2025-01-04 22:21:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:21:04' and `end` < '2025-01-04 22: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-04 22:21:17] Production.INFO: count ==1052 [2025-01-04 22:21:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:21:04 - End Time 2025-01-04 22:21:04 [2025-01-04 22:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175902', 'tblTempUsageDetail_20' ) start [2025-01-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175902', 'tblTempUsageDetail_20' ) end [2025-01-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175902', 'tblTempVendorCDR_20' ) start [2025-01-04 22:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175902', 'tblTempVendorCDR_20' ) end [2025-01-04 22:21:17] Production.INFO: ProcessCDR(1,14175902,1,1,2) [2025-01-04 22:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175902', 'tblTempUsageDetail_20' ) start [2025-01-04 22:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175902', 'tblTempUsageDetail_20' ) end [2025-01-04 22:21:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:21:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:21:20] Production.INFO: ==1495== Releasing lock... [2025-01-04 22:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:21:20] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:22:05 [end_date_ymd] => 2025-01-04 22:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:22:05' and `end` < '2025-01-04 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-04 22:22:22] Production.INFO: count ==1052 [2025-01-04 22:22:22] Production.ERROR: pbx CDR StartTime 2025-01-04 19:22:05 - End Time 2025-01-04 22:22:05 [2025-01-04 22:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175907', 'tblTempUsageDetail_20' ) start [2025-01-04 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175907', 'tblTempUsageDetail_20' ) end [2025-01-04 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175907', 'tblTempVendorCDR_20' ) start [2025-01-04 22:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175907', 'tblTempVendorCDR_20' ) end [2025-01-04 22:22:22] Production.INFO: ProcessCDR(1,14175907,1,1,2) [2025-01-04 22:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175907', 'tblTempUsageDetail_20' ) start [2025-01-04 22:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175907', 'tblTempUsageDetail_20' ) end [2025-01-04 22:22:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:22:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:22:25] Production.INFO: ==1605== Releasing lock... [2025-01-04 22:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:22:25] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:23:04 [end_date_ymd] => 2025-01-04 22:23:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:23:04' and `end` < '2025-01-04 22: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-04 22:23:19] Production.INFO: count ==1054 [2025-01-04 22:23:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:23:04 - End Time 2025-01-04 22:23:04 [2025-01-04 22:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175912', 'tblTempUsageDetail_20' ) start [2025-01-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175912', 'tblTempUsageDetail_20' ) end [2025-01-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175912', 'tblTempVendorCDR_20' ) start [2025-01-04 22:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175912', 'tblTempVendorCDR_20' ) end [2025-01-04 22:23:19] Production.INFO: ProcessCDR(1,14175912,1,1,2) [2025-01-04 22:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175912', 'tblTempUsageDetail_20' ) start [2025-01-04 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175912', 'tblTempUsageDetail_20' ) end [2025-01-04 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:23:22] Production.INFO: ==1690== Releasing lock... [2025-01-04 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:23:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:24:05 [end_date_ymd] => 2025-01-04 22:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:24:05' and `end` < '2025-01-04 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-04 22:24:18] Production.INFO: count ==1054 [2025-01-04 22:24:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:24:05 - End Time 2025-01-04 22:24:05 [2025-01-04 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175917', 'tblTempUsageDetail_20' ) start [2025-01-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175917', 'tblTempUsageDetail_20' ) end [2025-01-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175917', 'tblTempVendorCDR_20' ) start [2025-01-04 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175917', 'tblTempVendorCDR_20' ) end [2025-01-04 22:24:18] Production.INFO: ProcessCDR(1,14175917,1,1,2) [2025-01-04 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175917', 'tblTempUsageDetail_20' ) start [2025-01-04 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175917', 'tblTempUsageDetail_20' ) end [2025-01-04 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:24:21] Production.INFO: ==1787== Releasing lock... [2025-01-04 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:24:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:25:05 [end_date_ymd] => 2025-01-04 22:25:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:25:05' and `end` < '2025-01-04 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-04 22:25:18] Production.INFO: count ==1056 [2025-01-04 22:25:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:25:05 - End Time 2025-01-04 22:25:05 [2025-01-04 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175922', 'tblTempUsageDetail_20' ) start [2025-01-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175922', 'tblTempUsageDetail_20' ) end [2025-01-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175922', 'tblTempVendorCDR_20' ) start [2025-01-04 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175922', 'tblTempVendorCDR_20' ) end [2025-01-04 22:25:18] Production.INFO: ProcessCDR(1,14175922,1,1,2) [2025-01-04 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175922', 'tblTempUsageDetail_20' ) start [2025-01-04 22:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175922', 'tblTempUsageDetail_20' ) end [2025-01-04 22:25:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:25:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:25:21] Production.INFO: ==1896== Releasing lock... [2025-01-04 22:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:25:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:26:05 [end_date_ymd] => 2025-01-04 22:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:26:05' and `end` < '2025-01-04 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-04 22:26:19] Production.INFO: count ==1056 [2025-01-04 22:26:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:26:05 - End Time 2025-01-04 22:26:05 [2025-01-04 22:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175927', 'tblTempUsageDetail_20' ) start [2025-01-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175927', 'tblTempUsageDetail_20' ) end [2025-01-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175927', 'tblTempVendorCDR_20' ) start [2025-01-04 22:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175927', 'tblTempVendorCDR_20' ) end [2025-01-04 22:26:19] Production.INFO: ProcessCDR(1,14175927,1,1,2) [2025-01-04 22:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175927', 'tblTempUsageDetail_20' ) start [2025-01-04 22:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175927', 'tblTempUsageDetail_20' ) end [2025-01-04 22:26:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:26:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:26:22] Production.INFO: ==1999== Releasing lock... [2025-01-04 22:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:26:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:27:05 [end_date_ymd] => 2025-01-04 22:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:27:05' and `end` < '2025-01-04 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-04 22:27:20] Production.INFO: count ==1055 [2025-01-04 22:27:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:27:05 - End Time 2025-01-04 22:27:05 [2025-01-04 22:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175932', 'tblTempUsageDetail_20' ) start [2025-01-04 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175932', 'tblTempUsageDetail_20' ) end [2025-01-04 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175932', 'tblTempVendorCDR_20' ) start [2025-01-04 22:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175932', 'tblTempVendorCDR_20' ) end [2025-01-04 22:27:20] Production.INFO: ProcessCDR(1,14175932,1,1,2) [2025-01-04 22:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175932', 'tblTempUsageDetail_20' ) start [2025-01-04 22:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175932', 'tblTempUsageDetail_20' ) end [2025-01-04 22:27:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:27:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:27:23] Production.INFO: ==2105== Releasing lock... [2025-01-04 22:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:27:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:28:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:28:04 [end_date_ymd] => 2025-01-04 22:28:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:28:04' and `end` < '2025-01-04 22: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-04 22:28:19] Production.INFO: count ==1051 [2025-01-04 22:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:28:04 - End Time 2025-01-04 22:28:04 [2025-01-04 22:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175937', 'tblTempUsageDetail_20' ) start [2025-01-04 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175937', 'tblTempUsageDetail_20' ) end [2025-01-04 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175937', 'tblTempVendorCDR_20' ) start [2025-01-04 22:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175937', 'tblTempVendorCDR_20' ) end [2025-01-04 22:28:19] Production.INFO: ProcessCDR(1,14175937,1,1,2) [2025-01-04 22:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175937', 'tblTempUsageDetail_20' ) start [2025-01-04 22:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175937', 'tblTempUsageDetail_20' ) end [2025-01-04 22:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:28:22] Production.INFO: ==2211== Releasing lock... [2025-01-04 22:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:28:22] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:29:05 [end_date_ymd] => 2025-01-04 22:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:29:05' and `end` < '2025-01-04 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-04 22:29:18] Production.INFO: count ==1053 [2025-01-04 22:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:29:05 - End Time 2025-01-04 22:29:05 [2025-01-04 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175942', 'tblTempUsageDetail_20' ) start [2025-01-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175942', 'tblTempUsageDetail_20' ) end [2025-01-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175942', 'tblTempVendorCDR_20' ) start [2025-01-04 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175942', 'tblTempVendorCDR_20' ) end [2025-01-04 22:29:18] Production.INFO: ProcessCDR(1,14175942,1,1,2) [2025-01-04 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175942', 'tblTempUsageDetail_20' ) start [2025-01-04 22:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175942', 'tblTempUsageDetail_20' ) end [2025-01-04 22:29:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:29:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:29:21] Production.INFO: ==2324== Releasing lock... [2025-01-04 22:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:29:21] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:30:06 [end_date_ymd] => 2025-01-04 22:30:06 [RateCDR] => 1 ) [2025-01-04 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-04 19:30:06' and `end` < '2025-01-04 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-04 22:30:20] Production.INFO: count ==1053 [2025-01-04 22:30:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:30:06 - End Time 2025-01-04 22:30:06 [2025-01-04 22:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175948', 'tblTempUsageDetail_20' ) start [2025-01-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175948', 'tblTempUsageDetail_20' ) end [2025-01-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175948', 'tblTempVendorCDR_20' ) start [2025-01-04 22:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175948', 'tblTempVendorCDR_20' ) end [2025-01-04 22:30:20] Production.INFO: ProcessCDR(1,14175948,1,1,2) [2025-01-04 22:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175948', 'tblTempUsageDetail_20' ) start [2025-01-04 22:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175948', 'tblTempUsageDetail_20' ) end [2025-01-04 22:30:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:30:23] Production.INFO: ==2449== Releasing lock... [2025-01-04 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:30:23] Production.INFO: 35.5 MB #Memory Used# [2025-01-04 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:31:05 [end_date_ymd] => 2025-01-04 22:31:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:31:05' and `end` < '2025-01-04 22: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-04 22:31:18] Production.INFO: count ==1027 [2025-01-04 22:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:31:05 - End Time 2025-01-04 22:31:05 [2025-01-04 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175953', 'tblTempUsageDetail_20' ) start [2025-01-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175953', 'tblTempUsageDetail_20' ) end [2025-01-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175953', 'tblTempVendorCDR_20' ) start [2025-01-04 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175953', 'tblTempVendorCDR_20' ) end [2025-01-04 22:31:18] Production.INFO: ProcessCDR(1,14175953,1,1,2) [2025-01-04 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175953', 'tblTempUsageDetail_20' ) start [2025-01-04 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175953', 'tblTempUsageDetail_20' ) end [2025-01-04 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:31:21] Production.INFO: ==2538== Releasing lock... [2025-01-04 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:31:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:32:05 [end_date_ymd] => 2025-01-04 22:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:32:05' and `end` < '2025-01-04 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-04 22:32:19] Production.INFO: count ==1024 [2025-01-04 22:32:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:32:05 - End Time 2025-01-04 22:32:05 [2025-01-04 22:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175958', 'tblTempUsageDetail_20' ) start [2025-01-04 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175958', 'tblTempUsageDetail_20' ) end [2025-01-04 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175958', 'tblTempVendorCDR_20' ) start [2025-01-04 22:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175958', 'tblTempVendorCDR_20' ) end [2025-01-04 22:32:20] Production.INFO: ProcessCDR(1,14175958,1,1,2) [2025-01-04 22:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175958', 'tblTempUsageDetail_20' ) start [2025-01-04 22:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175958', 'tblTempUsageDetail_20' ) end [2025-01-04 22:32:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:32:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:32:23] Production.INFO: ==2658== Releasing lock... [2025-01-04 22:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:32:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:33:05 [end_date_ymd] => 2025-01-04 22:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:33:05' and `end` < '2025-01-04 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-04 22:33:20] Production.INFO: count ==1022 [2025-01-04 22:33:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:33:05 - End Time 2025-01-04 22:33:05 [2025-01-04 22:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175963', 'tblTempUsageDetail_20' ) start [2025-01-04 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175963', 'tblTempUsageDetail_20' ) end [2025-01-04 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175963', 'tblTempVendorCDR_20' ) start [2025-01-04 22:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175963', 'tblTempVendorCDR_20' ) end [2025-01-04 22:33:20] Production.INFO: ProcessCDR(1,14175963,1,1,2) [2025-01-04 22:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175963', 'tblTempUsageDetail_20' ) start [2025-01-04 22:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175963', 'tblTempUsageDetail_20' ) end [2025-01-04 22:33:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:33:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:33:23] Production.INFO: ==2739== Releasing lock... [2025-01-04 22:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:33:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:34:05 [end_date_ymd] => 2025-01-04 22:34:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:34:05' and `end` < '2025-01-04 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-04 22:34:19] Production.INFO: count ==1021 [2025-01-04 22:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:34:05 - End Time 2025-01-04 22:34:05 [2025-01-04 22:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175968', 'tblTempUsageDetail_20' ) start [2025-01-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175968', 'tblTempUsageDetail_20' ) end [2025-01-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175968', 'tblTempVendorCDR_20' ) start [2025-01-04 22:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175968', 'tblTempVendorCDR_20' ) end [2025-01-04 22:34:19] Production.INFO: ProcessCDR(1,14175968,1,1,2) [2025-01-04 22:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175968', 'tblTempUsageDetail_20' ) start [2025-01-04 22:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175968', 'tblTempUsageDetail_20' ) end [2025-01-04 22:34:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:34:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:34:22] Production.INFO: ==2819== Releasing lock... [2025-01-04 22:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:34:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:35:05 [end_date_ymd] => 2025-01-04 22:35:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:35:05' and `end` < '2025-01-04 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-04 22:35:18] Production.INFO: count ==1024 [2025-01-04 22:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:35:05 - End Time 2025-01-04 22:35:05 [2025-01-04 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175973', 'tblTempUsageDetail_20' ) start [2025-01-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175973', 'tblTempUsageDetail_20' ) end [2025-01-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175973', 'tblTempVendorCDR_20' ) start [2025-01-04 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175973', 'tblTempVendorCDR_20' ) end [2025-01-04 22:35:18] Production.INFO: ProcessCDR(1,14175973,1,1,2) [2025-01-04 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175973', 'tblTempUsageDetail_20' ) start [2025-01-04 22:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175973', 'tblTempUsageDetail_20' ) end [2025-01-04 22:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:35:21] Production.INFO: ==2916== Releasing lock... [2025-01-04 22:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:35:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:36:05 [end_date_ymd] => 2025-01-04 22:36:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:36:05' and `end` < '2025-01-04 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-04 22:36:18] Production.INFO: count ==1025 [2025-01-04 22:36:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:36:05 - End Time 2025-01-04 22:36:05 [2025-01-04 22:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175978', 'tblTempUsageDetail_20' ) start [2025-01-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175978', 'tblTempUsageDetail_20' ) end [2025-01-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175978', 'tblTempVendorCDR_20' ) start [2025-01-04 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175978', 'tblTempVendorCDR_20' ) end [2025-01-04 22:36:18] Production.INFO: ProcessCDR(1,14175978,1,1,2) [2025-01-04 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175978', 'tblTempUsageDetail_20' ) start [2025-01-04 22:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175978', 'tblTempUsageDetail_20' ) end [2025-01-04 22:36:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:36:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:36:23] Production.INFO: ==3011== Releasing lock... [2025-01-04 22:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:36:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:37:05 [end_date_ymd] => 2025-01-04 22:37:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:37:05' and `end` < '2025-01-04 22: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-04 22:37:17] Production.INFO: count ==1025 [2025-01-04 22:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:37:05 - End Time 2025-01-04 22:37:05 [2025-01-04 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175983', 'tblTempUsageDetail_20' ) start [2025-01-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175983', 'tblTempUsageDetail_20' ) end [2025-01-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175983', 'tblTempVendorCDR_20' ) start [2025-01-04 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175983', 'tblTempVendorCDR_20' ) end [2025-01-04 22:37:18] Production.INFO: ProcessCDR(1,14175983,1,1,2) [2025-01-04 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175983', 'tblTempUsageDetail_20' ) start [2025-01-04 22:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175983', 'tblTempUsageDetail_20' ) end [2025-01-04 22:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:37:21] Production.INFO: ==3108== Releasing lock... [2025-01-04 22:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:37:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:38:05 [end_date_ymd] => 2025-01-04 22:38:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:38:05' and `end` < '2025-01-04 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-04 22:38:18] Production.INFO: count ==1025 [2025-01-04 22:38:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:38:05 - End Time 2025-01-04 22:38:05 [2025-01-04 22:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175988', 'tblTempUsageDetail_20' ) start [2025-01-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175988', 'tblTempUsageDetail_20' ) end [2025-01-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175988', 'tblTempVendorCDR_20' ) start [2025-01-04 22:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175988', 'tblTempVendorCDR_20' ) end [2025-01-04 22:38:18] Production.INFO: ProcessCDR(1,14175988,1,1,2) [2025-01-04 22:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175988', 'tblTempUsageDetail_20' ) start [2025-01-04 22:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175988', 'tblTempUsageDetail_20' ) end [2025-01-04 22:38:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:38:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:38:21] Production.INFO: ==3197== Releasing lock... [2025-01-04 22:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:38:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:39:04 [end_date_ymd] => 2025-01-04 22:39:04 [RateCDR] => 1 ) [2025-01-04 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-04 19:39:04' and `end` < '2025-01-04 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-04 22:39:17] Production.INFO: count ==1025 [2025-01-04 22:39:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:39:04 - End Time 2025-01-04 22:39:04 [2025-01-04 22:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175993', 'tblTempUsageDetail_20' ) start [2025-01-04 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175993', 'tblTempUsageDetail_20' ) end [2025-01-04 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175993', 'tblTempVendorCDR_20' ) start [2025-01-04 22:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175993', 'tblTempVendorCDR_20' ) end [2025-01-04 22:39:17] Production.INFO: ProcessCDR(1,14175993,1,1,2) [2025-01-04 22:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175993', 'tblTempUsageDetail_20' ) start [2025-01-04 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175993', 'tblTempUsageDetail_20' ) end [2025-01-04 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:39:21] Production.INFO: ==3291== Releasing lock... [2025-01-04 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:39:21] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:40:05 [end_date_ymd] => 2025-01-04 22:40:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:40:05' and `end` < '2025-01-04 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-04 22:40:18] Production.INFO: count ==1026 [2025-01-04 22:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:40:05 - End Time 2025-01-04 22:40:05 [2025-01-04 22:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175999', 'tblTempUsageDetail_20' ) start [2025-01-04 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14175999', 'tblTempUsageDetail_20' ) end [2025-01-04 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175999', 'tblTempVendorCDR_20' ) start [2025-01-04 22:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14175999', 'tblTempVendorCDR_20' ) end [2025-01-04 22:40:18] Production.INFO: ProcessCDR(1,14175999,1,1,2) [2025-01-04 22:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14175999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14175999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14175999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14175999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175999', 'tblTempUsageDetail_20' ) start [2025-01-04 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14175999', 'tblTempUsageDetail_20' ) end [2025-01-04 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:40:23] Production.INFO: ==3380== Releasing lock... [2025-01-04 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:40:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:41:05 [end_date_ymd] => 2025-01-04 22:41:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:41:05' and `end` < '2025-01-04 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-04 22:41:19] Production.INFO: count ==1005 [2025-01-04 22:41:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:41:05 - End Time 2025-01-04 22:41:05 [2025-01-04 22:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176004', 'tblTempUsageDetail_20' ) start [2025-01-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176004', 'tblTempUsageDetail_20' ) end [2025-01-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176004', 'tblTempVendorCDR_20' ) start [2025-01-04 22:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176004', 'tblTempVendorCDR_20' ) end [2025-01-04 22:41:19] Production.INFO: ProcessCDR(1,14176004,1,1,2) [2025-01-04 22:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176004', 'tblTempUsageDetail_20' ) start [2025-01-04 22:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176004', 'tblTempUsageDetail_20' ) end [2025-01-04 22:41:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:41:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:41:23] Production.INFO: ==3474== Releasing lock... [2025-01-04 22:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:41:23] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:42:05 [end_date_ymd] => 2025-01-04 22:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:42:05' and `end` < '2025-01-04 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-04 22:42:19] Production.INFO: count ==1008 [2025-01-04 22:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:42:05 - End Time 2025-01-04 22:42:05 [2025-01-04 22:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176009', 'tblTempUsageDetail_20' ) start [2025-01-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176009', 'tblTempUsageDetail_20' ) end [2025-01-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176009', 'tblTempVendorCDR_20' ) start [2025-01-04 22:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176009', 'tblTempVendorCDR_20' ) end [2025-01-04 22:42:19] Production.INFO: ProcessCDR(1,14176009,1,1,2) [2025-01-04 22:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176009', 'tblTempUsageDetail_20' ) start [2025-01-04 22:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176009', 'tblTempUsageDetail_20' ) end [2025-01-04 22:42:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:42:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:42:23] Production.INFO: ==3569== Releasing lock... [2025-01-04 22:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:42:23] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:43:05 [end_date_ymd] => 2025-01-04 22:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:43:05' and `end` < '2025-01-04 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-04 22:43:18] Production.INFO: count ==1008 [2025-01-04 22:43:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:43:05 - End Time 2025-01-04 22:43:05 [2025-01-04 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176014', 'tblTempUsageDetail_20' ) start [2025-01-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176014', 'tblTempUsageDetail_20' ) end [2025-01-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176014', 'tblTempVendorCDR_20' ) start [2025-01-04 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176014', 'tblTempVendorCDR_20' ) end [2025-01-04 22:43:18] Production.INFO: ProcessCDR(1,14176014,1,1,2) [2025-01-04 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176014', 'tblTempUsageDetail_20' ) start [2025-01-04 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176014', 'tblTempUsageDetail_20' ) end [2025-01-04 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:43:21] Production.INFO: ==3664== Releasing lock... [2025-01-04 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:43:21] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:44:05 [end_date_ymd] => 2025-01-04 22:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:44:05' and `end` < '2025-01-04 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-04 22:44:19] Production.INFO: count ==1008 [2025-01-04 22:44:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:44:05 - End Time 2025-01-04 22:44:05 [2025-01-04 22:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176019', 'tblTempUsageDetail_20' ) start [2025-01-04 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176019', 'tblTempUsageDetail_20' ) end [2025-01-04 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176019', 'tblTempVendorCDR_20' ) start [2025-01-04 22:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176019', 'tblTempVendorCDR_20' ) end [2025-01-04 22:44:19] Production.INFO: ProcessCDR(1,14176019,1,1,2) [2025-01-04 22:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176019', 'tblTempUsageDetail_20' ) start [2025-01-04 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176019', 'tblTempUsageDetail_20' ) end [2025-01-04 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:44:22] Production.INFO: ==3761== Releasing lock... [2025-01-04 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:44:22] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:45:05 [end_date_ymd] => 2025-01-04 22:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:45:05' and `end` < '2025-01-04 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-04 22:45:18] Production.INFO: count ==1009 [2025-01-04 22:45:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:45:05 - End Time 2025-01-04 22:45:05 [2025-01-04 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176024', 'tblTempUsageDetail_20' ) start [2025-01-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176024', 'tblTempUsageDetail_20' ) end [2025-01-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176024', 'tblTempVendorCDR_20' ) start [2025-01-04 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176024', 'tblTempVendorCDR_20' ) end [2025-01-04 22:45:18] Production.INFO: ProcessCDR(1,14176024,1,1,2) [2025-01-04 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176024', 'tblTempUsageDetail_20' ) start [2025-01-04 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176024', 'tblTempUsageDetail_20' ) end [2025-01-04 22:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:45:22] Production.INFO: ==3857== Releasing lock... [2025-01-04 22:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:45:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:46:04 [end_date_ymd] => 2025-01-04 22:46:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:46:04' and `end` < '2025-01-04 22: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-04 22:46:19] Production.INFO: count ==1009 [2025-01-04 22:46:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:46:04 - End Time 2025-01-04 22:46:04 [2025-01-04 22:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176029', 'tblTempUsageDetail_20' ) start [2025-01-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176029', 'tblTempUsageDetail_20' ) end [2025-01-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176029', 'tblTempVendorCDR_20' ) start [2025-01-04 22:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176029', 'tblTempVendorCDR_20' ) end [2025-01-04 22:46:19] Production.INFO: ProcessCDR(1,14176029,1,1,2) [2025-01-04 22:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176029', 'tblTempUsageDetail_20' ) start [2025-01-04 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176029', 'tblTempUsageDetail_20' ) end [2025-01-04 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:46:22] Production.INFO: ==3950== Releasing lock... [2025-01-04 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:46:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:47:05 [end_date_ymd] => 2025-01-04 22:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:47:05' and `end` < '2025-01-04 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-04 22:47:19] Production.INFO: count ==1010 [2025-01-04 22:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:47:05 - End Time 2025-01-04 22:47:05 [2025-01-04 22:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176034', 'tblTempUsageDetail_20' ) start [2025-01-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176034', 'tblTempUsageDetail_20' ) end [2025-01-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176034', 'tblTempVendorCDR_20' ) start [2025-01-04 22:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176034', 'tblTempVendorCDR_20' ) end [2025-01-04 22:47:19] Production.INFO: ProcessCDR(1,14176034,1,1,2) [2025-01-04 22:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176034', 'tblTempUsageDetail_20' ) start [2025-01-04 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176034', 'tblTempUsageDetail_20' ) end [2025-01-04 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:47:23] Production.INFO: ==4043== Releasing lock... [2025-01-04 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:47:23] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:48:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:48:04 [end_date_ymd] => 2025-01-04 22:48:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:48:04' and `end` < '2025-01-04 22: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-04 22:48:19] Production.INFO: count ==1010 [2025-01-04 22:48:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:48:04 - End Time 2025-01-04 22:48:04 [2025-01-04 22:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176039', 'tblTempUsageDetail_20' ) start [2025-01-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176039', 'tblTempUsageDetail_20' ) end [2025-01-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176039', 'tblTempVendorCDR_20' ) start [2025-01-04 22:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176039', 'tblTempVendorCDR_20' ) end [2025-01-04 22:48:19] Production.INFO: ProcessCDR(1,14176039,1,1,2) [2025-01-04 22:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176039', 'tblTempUsageDetail_20' ) start [2025-01-04 22:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176039', 'tblTempUsageDetail_20' ) end [2025-01-04 22:48:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:48:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:48:22] Production.INFO: ==4177== Releasing lock... [2025-01-04 22:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:48:22] Production.INFO: 35.25 MB #Memory Used# [2025-01-04 22:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:49:04 [end_date_ymd] => 2025-01-04 22:49:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:49:04' and `end` < '2025-01-04 22: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-04 22:49:17] Production.INFO: count ==1007 [2025-01-04 22:49:17] Production.ERROR: pbx CDR StartTime 2025-01-04 19:49:04 - End Time 2025-01-04 22:49:04 [2025-01-04 22:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176044', 'tblTempUsageDetail_20' ) start [2025-01-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176044', 'tblTempUsageDetail_20' ) end [2025-01-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176044', 'tblTempVendorCDR_20' ) start [2025-01-04 22:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176044', 'tblTempVendorCDR_20' ) end [2025-01-04 22:49:17] Production.INFO: ProcessCDR(1,14176044,1,1,2) [2025-01-04 22:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176044', 'tblTempUsageDetail_20' ) start [2025-01-04 22:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176044', 'tblTempUsageDetail_20' ) end [2025-01-04 22:49:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:49:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:49:20] Production.INFO: ==4270== Releasing lock... [2025-01-04 22:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:49:20] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:50:06 [end_date_ymd] => 2025-01-04 22:50:06 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:50:06' and `end` < '2025-01-04 22: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-04 22:50:18] Production.INFO: count ==1005 [2025-01-04 22:50:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:50:06 - End Time 2025-01-04 22:50:06 [2025-01-04 22:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176049', 'tblTempUsageDetail_20' ) start [2025-01-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176049', 'tblTempUsageDetail_20' ) end [2025-01-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176049', 'tblTempVendorCDR_20' ) start [2025-01-04 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176049', 'tblTempVendorCDR_20' ) end [2025-01-04 22:50:19] Production.INFO: ProcessCDR(1,14176049,1,1,2) [2025-01-04 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176049', 'tblTempUsageDetail_20' ) start [2025-01-04 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176049', 'tblTempUsageDetail_20' ) end [2025-01-04 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:50:22] Production.INFO: ==4368== Releasing lock... [2025-01-04 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:50:22] Production.INFO: 35 MB #Memory Used# [2025-01-04 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:51:05 [end_date_ymd] => 2025-01-04 22:51:05 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:51:05' and `end` < '2025-01-04 22: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-04 22:51:18] Production.INFO: count ==959 [2025-01-04 22:51:18] Production.ERROR: pbx CDR StartTime 2025-01-04 19:51:05 - End Time 2025-01-04 22:51:05 [2025-01-04 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176055', 'tblTempUsageDetail_20' ) start [2025-01-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176055', 'tblTempUsageDetail_20' ) end [2025-01-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176055', 'tblTempVendorCDR_20' ) start [2025-01-04 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176055', 'tblTempVendorCDR_20' ) end [2025-01-04 22:51:18] Production.INFO: ProcessCDR(1,14176055,1,1,2) [2025-01-04 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176055', 'tblTempUsageDetail_20' ) start [2025-01-04 22:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176055', 'tblTempUsageDetail_20' ) end [2025-01-04 22:51:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:51:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:51:21] Production.INFO: ==4454== Releasing lock... [2025-01-04 22:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:51:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:52:05 [end_date_ymd] => 2025-01-04 22:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:52:05' and `end` < '2025-01-04 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-04 22:52:19] Production.INFO: count ==958 [2025-01-04 22:52:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:52:05 - End Time 2025-01-04 22:52:05 [2025-01-04 22:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176060', 'tblTempUsageDetail_20' ) start [2025-01-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176060', 'tblTempUsageDetail_20' ) end [2025-01-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176060', 'tblTempVendorCDR_20' ) start [2025-01-04 22:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176060', 'tblTempVendorCDR_20' ) end [2025-01-04 22:52:19] Production.INFO: ProcessCDR(1,14176060,1,1,2) [2025-01-04 22:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176060', 'tblTempUsageDetail_20' ) start [2025-01-04 22:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176060', 'tblTempUsageDetail_20' ) end [2025-01-04 22:52:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:52:22] Production.INFO: ==4539== Releasing lock... [2025-01-04 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:52:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:53:05 [end_date_ymd] => 2025-01-04 22:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:53:05' and `end` < '2025-01-04 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-04 22:53:19] Production.INFO: count ==958 [2025-01-04 22:53:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:53:05 - End Time 2025-01-04 22:53:05 [2025-01-04 22:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176065', 'tblTempUsageDetail_20' ) start [2025-01-04 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176065', 'tblTempUsageDetail_20' ) end [2025-01-04 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176065', 'tblTempVendorCDR_20' ) start [2025-01-04 22:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176065', 'tblTempVendorCDR_20' ) end [2025-01-04 22:53:19] Production.INFO: ProcessCDR(1,14176065,1,1,2) [2025-01-04 22:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:53:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176065', 'tblTempUsageDetail_20' ) start [2025-01-04 22:53:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176065', 'tblTempUsageDetail_20' ) end [2025-01-04 22:53:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:53:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:53:22] Production.INFO: ==4629== Releasing lock... [2025-01-04 22:53:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:53:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:54:05 [end_date_ymd] => 2025-01-04 22:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:54:05' and `end` < '2025-01-04 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-04 22:54:20] Production.INFO: count ==958 [2025-01-04 22:54:20] Production.ERROR: pbx CDR StartTime 2025-01-04 19:54:05 - End Time 2025-01-04 22:54:05 [2025-01-04 22:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176070', 'tblTempUsageDetail_20' ) start [2025-01-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176070', 'tblTempUsageDetail_20' ) end [2025-01-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176070', 'tblTempVendorCDR_20' ) start [2025-01-04 22:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176070', 'tblTempVendorCDR_20' ) end [2025-01-04 22:54:20] Production.INFO: ProcessCDR(1,14176070,1,1,2) [2025-01-04 22:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176070', 'tblTempUsageDetail_20' ) start [2025-01-04 22:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176070', 'tblTempUsageDetail_20' ) end [2025-01-04 22:54:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:54:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:54:24] Production.INFO: ==4716== Releasing lock... [2025-01-04 22:54:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:54:24] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:55:04 [end_date_ymd] => 2025-01-04 22:55:04 [RateCDR] => 1 ) [2025-01-04 22: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-04 19:55:04' and `end` < '2025-01-04 22: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-04 22:55:23] Production.INFO: count ==959 [2025-01-04 22:55:23] Production.ERROR: pbx CDR StartTime 2025-01-04 19:55:04 - End Time 2025-01-04 22:55:04 [2025-01-04 22:55:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176075', 'tblTempUsageDetail_20' ) start [2025-01-04 22:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176075', 'tblTempUsageDetail_20' ) end [2025-01-04 22:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176075', 'tblTempVendorCDR_20' ) start [2025-01-04 22:55:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176075', 'tblTempVendorCDR_20' ) end [2025-01-04 22:55:23] Production.INFO: ProcessCDR(1,14176075,1,1,2) [2025-01-04 22:55:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:55:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:55:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:55:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:55:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176075', 'tblTempUsageDetail_20' ) start [2025-01-04 22:55:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176075', 'tblTempUsageDetail_20' ) end [2025-01-04 22:55:28] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:55:28] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:55:28] Production.INFO: ==4797== Releasing lock... [2025-01-04 22:55:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:55:28] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:56:05 [end_date_ymd] => 2025-01-04 22:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:56:05' and `end` < '2025-01-04 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-04 22:56:21] Production.INFO: count ==959 [2025-01-04 22:56:21] Production.ERROR: pbx CDR StartTime 2025-01-04 19:56:05 - End Time 2025-01-04 22:56:05 [2025-01-04 22:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176080', 'tblTempUsageDetail_20' ) start [2025-01-04 22:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176080', 'tblTempUsageDetail_20' ) end [2025-01-04 22:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176080', 'tblTempVendorCDR_20' ) start [2025-01-04 22:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176080', 'tblTempVendorCDR_20' ) end [2025-01-04 22:56:21] Production.INFO: ProcessCDR(1,14176080,1,1,2) [2025-01-04 22:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176080', 'tblTempUsageDetail_20' ) start [2025-01-04 22:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176080', 'tblTempUsageDetail_20' ) end [2025-01-04 22:56:26] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:56:26] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:56:26] Production.INFO: ==4883== Releasing lock... [2025-01-04 22:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:56:26] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:57:05 [end_date_ymd] => 2025-01-04 22:57:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:57:05' and `end` < '2025-01-04 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-04 22:57:19] Production.INFO: count ==958 [2025-01-04 22:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:57:05 - End Time 2025-01-04 22:57:05 [2025-01-04 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176085', 'tblTempUsageDetail_20' ) start [2025-01-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176085', 'tblTempUsageDetail_20' ) end [2025-01-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176085', 'tblTempVendorCDR_20' ) start [2025-01-04 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176085', 'tblTempVendorCDR_20' ) end [2025-01-04 22:57:19] Production.INFO: ProcessCDR(1,14176085,1,1,2) [2025-01-04 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176085', 'tblTempUsageDetail_20' ) start [2025-01-04 22:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176085', 'tblTempUsageDetail_20' ) end [2025-01-04 22:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:57:22] Production.INFO: ==4969== Releasing lock... [2025-01-04 22:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:57:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:58:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:58:04 [end_date_ymd] => 2025-01-04 22:58:04 [RateCDR] => 1 ) [2025-01-04 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-04 19:58:04' and `end` < '2025-01-04 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-04 22:58:19] Production.INFO: count ==958 [2025-01-04 22:58:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:58:04 - End Time 2025-01-04 22:58:04 [2025-01-04 22:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176090', 'tblTempUsageDetail_20' ) start [2025-01-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176090', 'tblTempUsageDetail_20' ) end [2025-01-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176090', 'tblTempVendorCDR_20' ) start [2025-01-04 22:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176090', 'tblTempVendorCDR_20' ) end [2025-01-04 22:58:19] Production.INFO: ProcessCDR(1,14176090,1,1,2) [2025-01-04 22:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176090', 'tblTempUsageDetail_20' ) start [2025-01-04 22:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176090', 'tblTempUsageDetail_20' ) end [2025-01-04 22:58:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:58:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:58:22] Production.INFO: ==5050== Releasing lock... [2025-01-04 22:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:58:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 19:59:05 [end_date_ymd] => 2025-01-04 22:59:05 [RateCDR] => 1 ) [2025-01-04 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-04 19:59:05' and `end` < '2025-01-04 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-04 22:59:19] Production.INFO: count ==958 [2025-01-04 22:59:19] Production.ERROR: pbx CDR StartTime 2025-01-04 19:59:05 - End Time 2025-01-04 22:59:05 [2025-01-04 22:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176095', 'tblTempUsageDetail_20' ) start [2025-01-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176095', 'tblTempUsageDetail_20' ) end [2025-01-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176095', 'tblTempVendorCDR_20' ) start [2025-01-04 22:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176095', 'tblTempVendorCDR_20' ) end [2025-01-04 22:59:19] Production.INFO: ProcessCDR(1,14176095,1,1,2) [2025-01-04 22:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176095', 'tblTempUsageDetail_20' ) start [2025-01-04 22:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176095', 'tblTempUsageDetail_20' ) end [2025-01-04 22:59:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 22:59:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 22:59:22] Production.INFO: ==5129== Releasing lock... [2025-01-04 22:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 22:59:22] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 23:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:00:05 [end_date_ymd] => 2025-01-04 23:00:05 [RateCDR] => 1 ) [2025-01-04 23:00:05] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-01-04 20:00:05' and `end` < '2025-01-04 23:00:05' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-01-04 23:00:18] Production.INFO: count ==950 [2025-01-04 23:00:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:00:05 - End Time 2025-01-04 23:00:05 [2025-01-04 23:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176100', 'tblTempUsageDetail_20' ) start [2025-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176100', 'tblTempUsageDetail_20' ) end [2025-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176100', 'tblTempVendorCDR_20' ) start [2025-01-04 23:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176100', 'tblTempVendorCDR_20' ) end [2025-01-04 23:00:18] Production.INFO: ProcessCDR(1,14176100,1,1,2) [2025-01-04 23:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176100', 'tblTempUsageDetail_20' ) start [2025-01-04 23:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176100', 'tblTempUsageDetail_20' ) end [2025-01-04 23:00:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:00:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:00:21] Production.INFO: ==5210== Releasing lock... [2025-01-04 23:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:00:21] Production.INFO: 34.75 MB #Memory Used# [2025-01-04 23:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:01:05 [end_date_ymd] => 2025-01-04 23:01:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:01:05' and `end` < '2025-01-04 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-04 23:01:19] Production.INFO: count ==916 [2025-01-04 23:01:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:01:05 - End Time 2025-01-04 23:01:05 [2025-01-04 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176106', 'tblTempUsageDetail_20' ) start [2025-01-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176106', 'tblTempUsageDetail_20' ) end [2025-01-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176106', 'tblTempVendorCDR_20' ) start [2025-01-04 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176106', 'tblTempVendorCDR_20' ) end [2025-01-04 23:01:19] Production.INFO: ProcessCDR(1,14176106,1,1,2) [2025-01-04 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176106', 'tblTempUsageDetail_20' ) start [2025-01-04 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176106', 'tblTempUsageDetail_20' ) end [2025-01-04 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:01:22] Production.INFO: ==5306== Releasing lock... [2025-01-04 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:01:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:02:06 [end_date_ymd] => 2025-01-04 23:02:06 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:02:06' and `end` < '2025-01-04 23: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-04 23:02:20] Production.INFO: count ==916 [2025-01-04 23:02:20] Production.ERROR: pbx CDR StartTime 2025-01-04 20:02:06 - End Time 2025-01-04 23:02:06 [2025-01-04 23:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176111', 'tblTempUsageDetail_20' ) start [2025-01-04 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176111', 'tblTempUsageDetail_20' ) end [2025-01-04 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176111', 'tblTempVendorCDR_20' ) start [2025-01-04 23:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176111', 'tblTempVendorCDR_20' ) end [2025-01-04 23:02:20] Production.INFO: ProcessCDR(1,14176111,1,1,2) [2025-01-04 23:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:02:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:02:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176111', 'tblTempUsageDetail_20' ) start [2025-01-04 23:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176111', 'tblTempUsageDetail_20' ) end [2025-01-04 23:02:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:02:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:02:23] Production.INFO: ==5463== Releasing lock... [2025-01-04 23:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:03:05 [end_date_ymd] => 2025-01-04 23:03:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:03:05' and `end` < '2025-01-04 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-04 23:03:19] Production.INFO: count ==916 [2025-01-04 23:03:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:03:05 - End Time 2025-01-04 23:03:05 [2025-01-04 23:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176116', 'tblTempUsageDetail_20' ) start [2025-01-04 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176116', 'tblTempUsageDetail_20' ) end [2025-01-04 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176116', 'tblTempVendorCDR_20' ) start [2025-01-04 23:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176116', 'tblTempVendorCDR_20' ) end [2025-01-04 23:03:19] Production.INFO: ProcessCDR(1,14176116,1,1,2) [2025-01-04 23:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176116', 'tblTempUsageDetail_20' ) start [2025-01-04 23:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176116', 'tblTempUsageDetail_20' ) end [2025-01-04 23:03:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:03:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:03:22] Production.INFO: ==5578== Releasing lock... [2025-01-04 23:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:03:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:04:04 [end_date_ymd] => 2025-01-04 23:04:04 [RateCDR] => 1 ) [2025-01-04 23:04: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-04 20:04:04' and `end` < '2025-01-04 23:04: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-04 23:04:18] Production.INFO: count ==916 [2025-01-04 23:04:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:04:04 - End Time 2025-01-04 23:04:04 [2025-01-04 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176121', 'tblTempUsageDetail_20' ) start [2025-01-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176121', 'tblTempUsageDetail_20' ) end [2025-01-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176121', 'tblTempVendorCDR_20' ) start [2025-01-04 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176121', 'tblTempVendorCDR_20' ) end [2025-01-04 23:04:18] Production.INFO: ProcessCDR(1,14176121,1,1,2) [2025-01-04 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176121', 'tblTempUsageDetail_20' ) start [2025-01-04 23:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176121', 'tblTempUsageDetail_20' ) end [2025-01-04 23:04:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:04:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:04:21] Production.INFO: ==5653== Releasing lock... [2025-01-04 23:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:04:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:05:05 [end_date_ymd] => 2025-01-04 23:05:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:05:05' and `end` < '2025-01-04 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-04 23:05:17] Production.INFO: count ==920 [2025-01-04 23:05:17] Production.ERROR: pbx CDR StartTime 2025-01-04 20:05:05 - End Time 2025-01-04 23:05:05 [2025-01-04 23:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176126', 'tblTempUsageDetail_20' ) start [2025-01-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176126', 'tblTempUsageDetail_20' ) end [2025-01-04 23:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176126', 'tblTempVendorCDR_20' ) start [2025-01-04 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176126', 'tblTempVendorCDR_20' ) end [2025-01-04 23:05:18] Production.INFO: ProcessCDR(1,14176126,1,1,2) [2025-01-04 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176126', 'tblTempUsageDetail_20' ) start [2025-01-04 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176126', 'tblTempUsageDetail_20' ) end [2025-01-04 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:05:22] Production.INFO: ==5813== Releasing lock... [2025-01-04 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:05:22] Production.INFO: 34 MB #Memory Used# [2025-01-04 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:06:05 [end_date_ymd] => 2025-01-04 23:06:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:06:05' and `end` < '2025-01-04 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-04 23:06:17] Production.INFO: count ==920 [2025-01-04 23:06:17] Production.ERROR: pbx CDR StartTime 2025-01-04 20:06:05 - End Time 2025-01-04 23:06:05 [2025-01-04 23:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176131', 'tblTempUsageDetail_20' ) start [2025-01-04 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176131', 'tblTempUsageDetail_20' ) end [2025-01-04 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176131', 'tblTempVendorCDR_20' ) start [2025-01-04 23:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176131', 'tblTempVendorCDR_20' ) end [2025-01-04 23:06:17] Production.INFO: ProcessCDR(1,14176131,1,1,2) [2025-01-04 23:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176131', 'tblTempUsageDetail_20' ) start [2025-01-04 23:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176131', 'tblTempUsageDetail_20' ) end [2025-01-04 23:06:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:06:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:06:20] Production.INFO: ==5882== Releasing lock... [2025-01-04 23:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:06:20] Production.INFO: 34 MB #Memory Used# [2025-01-04 23:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:07:05 [end_date_ymd] => 2025-01-04 23:07:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:07:05' and `end` < '2025-01-04 23: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-04 23:07:19] Production.INFO: count ==920 [2025-01-04 23:07:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:07:05 - End Time 2025-01-04 23:07:05 [2025-01-04 23:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176136', 'tblTempUsageDetail_20' ) start [2025-01-04 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176136', 'tblTempUsageDetail_20' ) end [2025-01-04 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176136', 'tblTempVendorCDR_20' ) start [2025-01-04 23:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176136', 'tblTempVendorCDR_20' ) end [2025-01-04 23:07:19] Production.INFO: ProcessCDR(1,14176136,1,1,2) [2025-01-04 23:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:07:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:07:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176136', 'tblTempUsageDetail_20' ) start [2025-01-04 23:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176136', 'tblTempUsageDetail_20' ) end [2025-01-04 23:07:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:07:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:07:22] Production.INFO: ==5956== Releasing lock... [2025-01-04 23:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:07:22] Production.INFO: 34 MB #Memory Used# [2025-01-04 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:08:05 [end_date_ymd] => 2025-01-04 23:08:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:08:05' and `end` < '2025-01-04 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-04 23:08:18] Production.INFO: count ==923 [2025-01-04 23:08:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:08:05 - End Time 2025-01-04 23:08:05 [2025-01-04 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176141', 'tblTempUsageDetail_20' ) start [2025-01-04 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176141', 'tblTempUsageDetail_20' ) end [2025-01-04 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176141', 'tblTempVendorCDR_20' ) start [2025-01-04 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176141', 'tblTempVendorCDR_20' ) end [2025-01-04 23:08:18] Production.INFO: ProcessCDR(1,14176141,1,1,2) [2025-01-04 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176141', 'tblTempUsageDetail_20' ) start [2025-01-04 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176141', 'tblTempUsageDetail_20' ) end [2025-01-04 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:08:21] Production.INFO: ==6103== Releasing lock... [2025-01-04 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:08:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:09:05 [end_date_ymd] => 2025-01-04 23:09:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:09:05' and `end` < '2025-01-04 23: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-04 23:09:19] Production.INFO: count ==926 [2025-01-04 23:09:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:09:05 - End Time 2025-01-04 23:09:05 [2025-01-04 23:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176146', 'tblTempUsageDetail_20' ) start [2025-01-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176146', 'tblTempUsageDetail_20' ) end [2025-01-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176146', 'tblTempVendorCDR_20' ) start [2025-01-04 23:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176146', 'tblTempVendorCDR_20' ) end [2025-01-04 23:09:19] Production.INFO: ProcessCDR(1,14176146,1,1,2) [2025-01-04 23:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176146', 'tblTempUsageDetail_20' ) start [2025-01-04 23:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176146', 'tblTempUsageDetail_20' ) end [2025-01-04 23:09:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:09:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:09:22] Production.INFO: ==6175== Releasing lock... [2025-01-04 23:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:09:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:10:05 [end_date_ymd] => 2025-01-04 23:10:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:10:05' and `end` < '2025-01-04 23: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-04 23:10:18] Production.INFO: count ==928 [2025-01-04 23:10:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:10:05 - End Time 2025-01-04 23:10:05 [2025-01-04 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176152', 'tblTempUsageDetail_20' ) start [2025-01-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176152', 'tblTempUsageDetail_20' ) end [2025-01-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176152', 'tblTempVendorCDR_20' ) start [2025-01-04 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176152', 'tblTempVendorCDR_20' ) end [2025-01-04 23:10:18] Production.INFO: ProcessCDR(1,14176152,1,1,2) [2025-01-04 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176152', 'tblTempUsageDetail_20' ) start [2025-01-04 23:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176152', 'tblTempUsageDetail_20' ) end [2025-01-04 23:10:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:10:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:10:21] Production.INFO: ==6248== Releasing lock... [2025-01-04 23:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:10:21] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:11:04 [end_date_ymd] => 2025-01-04 23:11:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:11:04' and `end` < '2025-01-04 23: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-04 23:11:18] Production.INFO: count ==939 [2025-01-04 23:11:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:11:04 - End Time 2025-01-04 23:11:04 [2025-01-04 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176157', 'tblTempUsageDetail_20' ) start [2025-01-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176157', 'tblTempUsageDetail_20' ) end [2025-01-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176157', 'tblTempVendorCDR_20' ) start [2025-01-04 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176157', 'tblTempVendorCDR_20' ) end [2025-01-04 23:11:18] Production.INFO: ProcessCDR(1,14176157,1,1,2) [2025-01-04 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176157', 'tblTempUsageDetail_20' ) start [2025-01-04 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176157', 'tblTempUsageDetail_20' ) end [2025-01-04 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:11:22] Production.INFO: ==6325== Releasing lock... [2025-01-04 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:11:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:12:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:12:04 [end_date_ymd] => 2025-01-04 23:12:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:12:04' and `end` < '2025-01-04 23: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-04 23:12:18] Production.INFO: count ==938 [2025-01-04 23:12:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:12:04 - End Time 2025-01-04 23:12:04 [2025-01-04 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176162', 'tblTempUsageDetail_20' ) start [2025-01-04 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176162', 'tblTempUsageDetail_20' ) end [2025-01-04 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176162', 'tblTempVendorCDR_20' ) start [2025-01-04 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176162', 'tblTempVendorCDR_20' ) end [2025-01-04 23:12:18] Production.INFO: ProcessCDR(1,14176162,1,1,2) [2025-01-04 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176162', 'tblTempUsageDetail_20' ) start [2025-01-04 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176162', 'tblTempUsageDetail_20' ) end [2025-01-04 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:12:21] Production.INFO: ==6473== Releasing lock... [2025-01-04 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:12:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:13:05 [end_date_ymd] => 2025-01-04 23:13:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:13:05' and `end` < '2025-01-04 23: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-04 23:13:18] Production.INFO: count ==938 [2025-01-04 23:13:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:13:05 - End Time 2025-01-04 23:13:05 [2025-01-04 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176167', 'tblTempUsageDetail_20' ) start [2025-01-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176167', 'tblTempUsageDetail_20' ) end [2025-01-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176167', 'tblTempVendorCDR_20' ) start [2025-01-04 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176167', 'tblTempVendorCDR_20' ) end [2025-01-04 23:13:18] Production.INFO: ProcessCDR(1,14176167,1,1,2) [2025-01-04 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176167', 'tblTempUsageDetail_20' ) start [2025-01-04 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176167', 'tblTempUsageDetail_20' ) end [2025-01-04 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:13:21] Production.INFO: ==6545== Releasing lock... [2025-01-04 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:13:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:14:05 [end_date_ymd] => 2025-01-04 23:14:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:14:05' and `end` < '2025-01-04 23: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-04 23:14:18] Production.INFO: count ==934 [2025-01-04 23:14:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:14:05 - End Time 2025-01-04 23:14:05 [2025-01-04 23:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176172', 'tblTempUsageDetail_20' ) start [2025-01-04 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176172', 'tblTempUsageDetail_20' ) end [2025-01-04 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176172', 'tblTempVendorCDR_20' ) start [2025-01-04 23:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176172', 'tblTempVendorCDR_20' ) end [2025-01-04 23:14:18] Production.INFO: ProcessCDR(1,14176172,1,1,2) [2025-01-04 23:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176172', 'tblTempUsageDetail_20' ) start [2025-01-04 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176172', 'tblTempUsageDetail_20' ) end [2025-01-04 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:14:21] Production.INFO: ==6615== Releasing lock... [2025-01-04 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:14:21] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:15:06 [end_date_ymd] => 2025-01-04 23:15:06 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:15:06' and `end` < '2025-01-04 23: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-04 23:15:18] Production.INFO: count ==934 [2025-01-04 23:15:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:15:06 - End Time 2025-01-04 23:15:06 [2025-01-04 23:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176177', 'tblTempUsageDetail_20' ) start [2025-01-04 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176177', 'tblTempUsageDetail_20' ) end [2025-01-04 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176177', 'tblTempVendorCDR_20' ) start [2025-01-04 23:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176177', 'tblTempVendorCDR_20' ) end [2025-01-04 23:15:19] Production.INFO: ProcessCDR(1,14176177,1,1,2) [2025-01-04 23:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176177', 'tblTempUsageDetail_20' ) start [2025-01-04 23:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176177', 'tblTempUsageDetail_20' ) end [2025-01-04 23:15:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:15:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:15:22] Production.INFO: ==6763== Releasing lock... [2025-01-04 23:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:15:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:16:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:16:04 [end_date_ymd] => 2025-01-04 23:16:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:16:04' and `end` < '2025-01-04 23: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-04 23:16:17] Production.INFO: count ==930 [2025-01-04 23:16:17] Production.ERROR: pbx CDR StartTime 2025-01-04 20:16:04 - End Time 2025-01-04 23:16:04 [2025-01-04 23:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176182', 'tblTempUsageDetail_20' ) start [2025-01-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176182', 'tblTempUsageDetail_20' ) end [2025-01-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176182', 'tblTempVendorCDR_20' ) start [2025-01-04 23:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176182', 'tblTempVendorCDR_20' ) end [2025-01-04 23:16:17] Production.INFO: ProcessCDR(1,14176182,1,1,2) [2025-01-04 23:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176182', 'tblTempUsageDetail_20' ) start [2025-01-04 23:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176182', 'tblTempUsageDetail_20' ) end [2025-01-04 23:16:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:16:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:16:20] Production.INFO: ==6835== Releasing lock... [2025-01-04 23:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:16:20] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:17:05 [end_date_ymd] => 2025-01-04 23:17:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:17:05' and `end` < '2025-01-04 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-04 23:17:19] Production.INFO: count ==932 [2025-01-04 23:17:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:17:05 - End Time 2025-01-04 23:17:05 [2025-01-04 23:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176187', 'tblTempUsageDetail_20' ) start [2025-01-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176187', 'tblTempUsageDetail_20' ) end [2025-01-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176187', 'tblTempVendorCDR_20' ) start [2025-01-04 23:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176187', 'tblTempVendorCDR_20' ) end [2025-01-04 23:17:19] Production.INFO: ProcessCDR(1,14176187,1,1,2) [2025-01-04 23:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176187', 'tblTempUsageDetail_20' ) start [2025-01-04 23:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176187', 'tblTempUsageDetail_20' ) end [2025-01-04 23:17:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:17:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:17:22] Production.INFO: ==6906== Releasing lock... [2025-01-04 23:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:17:22] Production.INFO: 34.5 MB #Memory Used# [2025-01-04 23:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:18:05 [end_date_ymd] => 2025-01-04 23:18:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:18:05' and `end` < '2025-01-04 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-04 23:18:19] Production.INFO: count ==930 [2025-01-04 23:18:20] Production.ERROR: pbx CDR StartTime 2025-01-04 20:18:05 - End Time 2025-01-04 23:18:05 [2025-01-04 23:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176192', 'tblTempUsageDetail_20' ) start [2025-01-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176192', 'tblTempUsageDetail_20' ) end [2025-01-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176192', 'tblTempVendorCDR_20' ) start [2025-01-04 23:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176192', 'tblTempVendorCDR_20' ) end [2025-01-04 23:18:20] Production.INFO: ProcessCDR(1,14176192,1,1,2) [2025-01-04 23:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176192', 'tblTempUsageDetail_20' ) start [2025-01-04 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176192', 'tblTempUsageDetail_20' ) end [2025-01-04 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:18:23] Production.INFO: ==6979== Releasing lock... [2025-01-04 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:18:23] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:19:05 [end_date_ymd] => 2025-01-04 23:19:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:19:05' and `end` < '2025-01-04 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-04 23:19:19] Production.INFO: count ==929 [2025-01-04 23:19:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:19:05 - End Time 2025-01-04 23:19:05 [2025-01-04 23:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176197', 'tblTempUsageDetail_20' ) start [2025-01-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176197', 'tblTempUsageDetail_20' ) end [2025-01-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176197', 'tblTempVendorCDR_20' ) start [2025-01-04 23:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176197', 'tblTempVendorCDR_20' ) end [2025-01-04 23:19:19] Production.INFO: ProcessCDR(1,14176197,1,1,2) [2025-01-04 23:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176197', 'tblTempUsageDetail_20' ) start [2025-01-04 23:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176197', 'tblTempUsageDetail_20' ) end [2025-01-04 23:19:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:19:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:19:22] Production.INFO: ==7090== Releasing lock... [2025-01-04 23:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:19:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:20:06 [end_date_ymd] => 2025-01-04 23:20:06 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:20:06' and `end` < '2025-01-04 23: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-04 23:20:18] Production.INFO: count ==927 [2025-01-04 23:20:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:20:06 - End Time 2025-01-04 23:20:06 [2025-01-04 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176203', 'tblTempUsageDetail_20' ) start [2025-01-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176203', 'tblTempUsageDetail_20' ) end [2025-01-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176203', 'tblTempVendorCDR_20' ) start [2025-01-04 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176203', 'tblTempVendorCDR_20' ) end [2025-01-04 23:20:18] Production.INFO: ProcessCDR(1,14176203,1,1,2) [2025-01-04 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176203', 'tblTempUsageDetail_20' ) start [2025-01-04 23:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176203', 'tblTempUsageDetail_20' ) end [2025-01-04 23:20:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:20:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:20:22] Production.INFO: ==7170== Releasing lock... [2025-01-04 23:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:20:22] Production.INFO: 34.25 MB #Memory Used# [2025-01-04 23:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:21:05 [end_date_ymd] => 2025-01-04 23:21:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:21:05' and `end` < '2025-01-04 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-04 23:21:18] Production.INFO: count ==888 [2025-01-04 23:21:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:21:05 - End Time 2025-01-04 23:21:05 [2025-01-04 23:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176208', 'tblTempUsageDetail_20' ) start [2025-01-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176208', 'tblTempUsageDetail_20' ) end [2025-01-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176208', 'tblTempVendorCDR_20' ) start [2025-01-04 23:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176208', 'tblTempVendorCDR_20' ) end [2025-01-04 23:21:18] Production.INFO: ProcessCDR(1,14176208,1,1,2) [2025-01-04 23:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176208', 'tblTempUsageDetail_20' ) start [2025-01-04 23:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176208', 'tblTempUsageDetail_20' ) end [2025-01-04 23:21:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:21:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:21:22] Production.INFO: ==7244== Releasing lock... [2025-01-04 23:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:21:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:22:05 [end_date_ymd] => 2025-01-04 23:22:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:22:05' and `end` < '2025-01-04 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-04 23:22:17] Production.INFO: count ==888 [2025-01-04 23:22:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:22:05 - End Time 2025-01-04 23:22:05 [2025-01-04 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176213', 'tblTempUsageDetail_20' ) start [2025-01-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176213', 'tblTempUsageDetail_20' ) end [2025-01-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176213', 'tblTempVendorCDR_20' ) start [2025-01-04 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176213', 'tblTempVendorCDR_20' ) end [2025-01-04 23:22:18] Production.INFO: ProcessCDR(1,14176213,1,1,2) [2025-01-04 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176213', 'tblTempUsageDetail_20' ) start [2025-01-04 23:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176213', 'tblTempUsageDetail_20' ) end [2025-01-04 23:22:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:22:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:22:21] Production.INFO: ==7314== Releasing lock... [2025-01-04 23:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:22:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:23:05 [end_date_ymd] => 2025-01-04 23:23:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:23:05' and `end` < '2025-01-04 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-04 23:23:21] Production.INFO: count ==885 [2025-01-04 23:23:21] Production.ERROR: pbx CDR StartTime 2025-01-04 20:23:05 - End Time 2025-01-04 23:23:05 [2025-01-04 23:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176218', 'tblTempUsageDetail_20' ) start [2025-01-04 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176218', 'tblTempUsageDetail_20' ) end [2025-01-04 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176218', 'tblTempVendorCDR_20' ) start [2025-01-04 23:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176218', 'tblTempVendorCDR_20' ) end [2025-01-04 23:23:21] Production.INFO: ProcessCDR(1,14176218,1,1,2) [2025-01-04 23:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176218', 'tblTempUsageDetail_20' ) start [2025-01-04 23:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176218', 'tblTempUsageDetail_20' ) end [2025-01-04 23:23:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:23:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:23:25] Production.INFO: ==7384== Releasing lock... [2025-01-04 23:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:23:25] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:24:05 [end_date_ymd] => 2025-01-04 23:24:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:24:05' and `end` < '2025-01-04 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-04 23:24:19] Production.INFO: count ==886 [2025-01-04 23:24:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:24:05 - End Time 2025-01-04 23:24:05 [2025-01-04 23:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176223', 'tblTempUsageDetail_20' ) start [2025-01-04 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176223', 'tblTempUsageDetail_20' ) end [2025-01-04 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176223', 'tblTempVendorCDR_20' ) start [2025-01-04 23:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176223', 'tblTempVendorCDR_20' ) end [2025-01-04 23:24:19] Production.INFO: ProcessCDR(1,14176223,1,1,2) [2025-01-04 23:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176223', 'tblTempUsageDetail_20' ) start [2025-01-04 23:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176223', 'tblTempUsageDetail_20' ) end [2025-01-04 23:24:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:24:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:24:24] Production.INFO: ==7456== Releasing lock... [2025-01-04 23:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:24:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:25:06 [end_date_ymd] => 2025-01-04 23:25:06 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:25:06' and `end` < '2025-01-04 23: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-04 23:25:18] Production.INFO: count ==885 [2025-01-04 23:25:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:25:06 - End Time 2025-01-04 23:25:06 [2025-01-04 23:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176228', 'tblTempUsageDetail_20' ) start [2025-01-04 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176228', 'tblTempUsageDetail_20' ) end [2025-01-04 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176228', 'tblTempVendorCDR_20' ) start [2025-01-04 23:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176228', 'tblTempVendorCDR_20' ) end [2025-01-04 23:25:19] Production.INFO: ProcessCDR(1,14176228,1,1,2) [2025-01-04 23:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176228', 'tblTempUsageDetail_20' ) start [2025-01-04 23:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176228', 'tblTempUsageDetail_20' ) end [2025-01-04 23:25:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:25:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:25:22] Production.INFO: ==7527== Releasing lock... [2025-01-04 23:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:25:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:26:05 [end_date_ymd] => 2025-01-04 23:26:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:26:05' and `end` < '2025-01-04 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-04 23:26:18] Production.INFO: count ==884 [2025-01-04 23:26:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:26:05 - End Time 2025-01-04 23:26:05 [2025-01-04 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176233', 'tblTempUsageDetail_20' ) start [2025-01-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176233', 'tblTempUsageDetail_20' ) end [2025-01-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176233', 'tblTempVendorCDR_20' ) start [2025-01-04 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176233', 'tblTempVendorCDR_20' ) end [2025-01-04 23:26:18] Production.INFO: ProcessCDR(1,14176233,1,1,2) [2025-01-04 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176233', 'tblTempUsageDetail_20' ) start [2025-01-04 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176233', 'tblTempUsageDetail_20' ) end [2025-01-04 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:26:21] Production.INFO: ==7599== Releasing lock... [2025-01-04 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:26:21] Production.INFO: 34 MB #Memory Used# [2025-01-04 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:27:05 [end_date_ymd] => 2025-01-04 23:27:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:27:05' and `end` < '2025-01-04 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-04 23:27:20] Production.INFO: count ==882 [2025-01-04 23:27:21] Production.ERROR: pbx CDR StartTime 2025-01-04 20:27:05 - End Time 2025-01-04 23:27:05 [2025-01-04 23:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176238', 'tblTempUsageDetail_20' ) start [2025-01-04 23:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176238', 'tblTempUsageDetail_20' ) end [2025-01-04 23:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176238', 'tblTempVendorCDR_20' ) start [2025-01-04 23:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176238', 'tblTempVendorCDR_20' ) end [2025-01-04 23:27:21] Production.INFO: ProcessCDR(1,14176238,1,1,2) [2025-01-04 23:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:27:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:27:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176238', 'tblTempUsageDetail_20' ) start [2025-01-04 23:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176238', 'tblTempUsageDetail_20' ) end [2025-01-04 23:27:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:27:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:27:24] Production.INFO: ==7671== Releasing lock... [2025-01-04 23:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:27:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:28:05 [end_date_ymd] => 2025-01-04 23:28:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:28:05' and `end` < '2025-01-04 23: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-04 23:28:19] Production.INFO: count ==882 [2025-01-04 23:28:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:28:05 - End Time 2025-01-04 23:28:05 [2025-01-04 23:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176243', 'tblTempUsageDetail_20' ) start [2025-01-04 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176243', 'tblTempUsageDetail_20' ) end [2025-01-04 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176243', 'tblTempVendorCDR_20' ) start [2025-01-04 23:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176243', 'tblTempVendorCDR_20' ) end [2025-01-04 23:28:19] Production.INFO: ProcessCDR(1,14176243,1,1,2) [2025-01-04 23:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:28:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176243', 'tblTempUsageDetail_20' ) start [2025-01-04 23:28:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176243', 'tblTempUsageDetail_20' ) end [2025-01-04 23:28:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:28:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:28:22] Production.INFO: ==7742== Releasing lock... [2025-01-04 23:28:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:28:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:29:05 [end_date_ymd] => 2025-01-04 23:29:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:29:05' and `end` < '2025-01-04 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-04 23:29:18] Production.INFO: count ==883 [2025-01-04 23:29:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:29:05 - End Time 2025-01-04 23:29:05 [2025-01-04 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176248', 'tblTempUsageDetail_20' ) start [2025-01-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176248', 'tblTempUsageDetail_20' ) end [2025-01-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176248', 'tblTempVendorCDR_20' ) start [2025-01-04 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176248', 'tblTempVendorCDR_20' ) end [2025-01-04 23:29:18] Production.INFO: ProcessCDR(1,14176248,1,1,2) [2025-01-04 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:29:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176248', 'tblTempUsageDetail_20' ) start [2025-01-04 23:29:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176248', 'tblTempUsageDetail_20' ) end [2025-01-04 23:29:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:29:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:29:23] Production.INFO: ==7813== Releasing lock... [2025-01-04 23:29:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:29:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:30:05 [end_date_ymd] => 2025-01-04 23:30:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:30:05' and `end` < '2025-01-04 23: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-04 23:30:18] Production.INFO: count ==884 [2025-01-04 23:30:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:30:05 - End Time 2025-01-04 23:30:05 [2025-01-04 23:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176254', 'tblTempUsageDetail_20' ) start [2025-01-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176254', 'tblTempUsageDetail_20' ) end [2025-01-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176254', 'tblTempVendorCDR_20' ) start [2025-01-04 23:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176254', 'tblTempVendorCDR_20' ) end [2025-01-04 23:30:18] Production.INFO: ProcessCDR(1,14176254,1,1,2) [2025-01-04 23:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176254', 'tblTempUsageDetail_20' ) start [2025-01-04 23:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176254', 'tblTempUsageDetail_20' ) end [2025-01-04 23:30:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:30:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:30:21] Production.INFO: ==7885== Releasing lock... [2025-01-04 23:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:30:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:31:05 [end_date_ymd] => 2025-01-04 23:31:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:31:05' and `end` < '2025-01-04 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-04 23:31:18] Production.INFO: count ==863 [2025-01-04 23:31:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:31:05 - End Time 2025-01-04 23:31:05 [2025-01-04 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176259', 'tblTempUsageDetail_20' ) start [2025-01-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176259', 'tblTempUsageDetail_20' ) end [2025-01-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176259', 'tblTempVendorCDR_20' ) start [2025-01-04 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176259', 'tblTempVendorCDR_20' ) end [2025-01-04 23:31:18] Production.INFO: ProcessCDR(1,14176259,1,1,2) [2025-01-04 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176259', 'tblTempUsageDetail_20' ) start [2025-01-04 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176259', 'tblTempUsageDetail_20' ) end [2025-01-04 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:31:21] Production.INFO: ==7962== Releasing lock... [2025-01-04 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:31:21] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:32:05 [end_date_ymd] => 2025-01-04 23:32:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:32:05' and `end` < '2025-01-04 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-04 23:32:18] Production.INFO: count ==860 [2025-01-04 23:32:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:32:05 - End Time 2025-01-04 23:32:05 [2025-01-04 23:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176264', 'tblTempUsageDetail_20' ) start [2025-01-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176264', 'tblTempUsageDetail_20' ) end [2025-01-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176264', 'tblTempVendorCDR_20' ) start [2025-01-04 23:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176264', 'tblTempVendorCDR_20' ) end [2025-01-04 23:32:18] Production.INFO: ProcessCDR(1,14176264,1,1,2) [2025-01-04 23:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176264', 'tblTempUsageDetail_20' ) start [2025-01-04 23:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176264', 'tblTempUsageDetail_20' ) end [2025-01-04 23:32:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:32:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:32:22] Production.INFO: ==8034== Releasing lock... [2025-01-04 23:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:32:22] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:33:05 [end_date_ymd] => 2025-01-04 23:33:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:33:05' and `end` < '2025-01-04 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-04 23:33:20] Production.INFO: count ==858 [2025-01-04 23:33:20] Production.ERROR: pbx CDR StartTime 2025-01-04 20:33:05 - End Time 2025-01-04 23:33:05 [2025-01-04 23:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176269', 'tblTempUsageDetail_20' ) start [2025-01-04 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176269', 'tblTempUsageDetail_20' ) end [2025-01-04 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176269', 'tblTempVendorCDR_20' ) start [2025-01-04 23:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176269', 'tblTempVendorCDR_20' ) end [2025-01-04 23:33:20] Production.INFO: ProcessCDR(1,14176269,1,1,2) [2025-01-04 23:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176269', 'tblTempUsageDetail_20' ) start [2025-01-04 23:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176269', 'tblTempUsageDetail_20' ) end [2025-01-04 23:33:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:33:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:33:24] Production.INFO: ==8104== Releasing lock... [2025-01-04 23:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:33:24] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:34:05 [end_date_ymd] => 2025-01-04 23:34:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:34:05' and `end` < '2025-01-04 23: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-04 23:34:19] Production.INFO: count ==858 [2025-01-04 23:34:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:34:05 - End Time 2025-01-04 23:34:05 [2025-01-04 23:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176274', 'tblTempUsageDetail_20' ) start [2025-01-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176274', 'tblTempUsageDetail_20' ) end [2025-01-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176274', 'tblTempVendorCDR_20' ) start [2025-01-04 23:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176274', 'tblTempVendorCDR_20' ) end [2025-01-04 23:34:19] Production.INFO: ProcessCDR(1,14176274,1,1,2) [2025-01-04 23:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176274', 'tblTempUsageDetail_20' ) start [2025-01-04 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176274', 'tblTempUsageDetail_20' ) end [2025-01-04 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:34:23] Production.INFO: ==8175== Releasing lock... [2025-01-04 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:34:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:35:05 [end_date_ymd] => 2025-01-04 23:35:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:35:05' and `end` < '2025-01-04 23: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-04 23:35:18] Production.INFO: count ==855 [2025-01-04 23:35:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:35:05 - End Time 2025-01-04 23:35:05 [2025-01-04 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176279', 'tblTempUsageDetail_20' ) start [2025-01-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176279', 'tblTempUsageDetail_20' ) end [2025-01-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176279', 'tblTempVendorCDR_20' ) start [2025-01-04 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176279', 'tblTempVendorCDR_20' ) end [2025-01-04 23:35:18] Production.INFO: ProcessCDR(1,14176279,1,1,2) [2025-01-04 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176279', 'tblTempUsageDetail_20' ) start [2025-01-04 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176279', 'tblTempUsageDetail_20' ) end [2025-01-04 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:35:21] Production.INFO: ==8288== Releasing lock... [2025-01-04 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:35:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:36:06 [end_date_ymd] => 2025-01-04 23:36:06 [RateCDR] => 1 ) [2025-01-04 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-04 20:36:06' and `end` < '2025-01-04 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-04 23:36:19] Production.INFO: count ==854 [2025-01-04 23:36:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:36:06 - End Time 2025-01-04 23:36:06 [2025-01-04 23:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176284', 'tblTempUsageDetail_20' ) start [2025-01-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176284', 'tblTempUsageDetail_20' ) end [2025-01-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176284', 'tblTempVendorCDR_20' ) start [2025-01-04 23:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176284', 'tblTempVendorCDR_20' ) end [2025-01-04 23:36:19] Production.INFO: ProcessCDR(1,14176284,1,1,2) [2025-01-04 23:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:36:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:36:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:36:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176284', 'tblTempUsageDetail_20' ) start [2025-01-04 23:36:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176284', 'tblTempUsageDetail_20' ) end [2025-01-04 23:36:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:36:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:36:24] Production.INFO: ==8358== Releasing lock... [2025-01-04 23:36:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:36:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:37:05 [end_date_ymd] => 2025-01-04 23:37:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:37:05' and `end` < '2025-01-04 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-04 23:37:18] Production.INFO: count ==854 [2025-01-04 23:37:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:37:05 - End Time 2025-01-04 23:37:05 [2025-01-04 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176289', 'tblTempUsageDetail_20' ) start [2025-01-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176289', 'tblTempUsageDetail_20' ) end [2025-01-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176289', 'tblTempVendorCDR_20' ) start [2025-01-04 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176289', 'tblTempVendorCDR_20' ) end [2025-01-04 23:37:18] Production.INFO: ProcessCDR(1,14176289,1,1,2) [2025-01-04 23:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176289', 'tblTempUsageDetail_20' ) start [2025-01-04 23:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176289', 'tblTempUsageDetail_20' ) end [2025-01-04 23:37:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:37:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:37:21] Production.INFO: ==8433== Releasing lock... [2025-01-04 23:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:37:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:38:06 [end_date_ymd] => 2025-01-04 23:38:06 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:38:06' and `end` < '2025-01-04 23: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-04 23:38:20] Production.INFO: count ==857 [2025-01-04 23:38:20] Production.ERROR: pbx CDR StartTime 2025-01-04 20:38:06 - End Time 2025-01-04 23:38:06 [2025-01-04 23:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176294', 'tblTempUsageDetail_20' ) start [2025-01-04 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176294', 'tblTempUsageDetail_20' ) end [2025-01-04 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176294', 'tblTempVendorCDR_20' ) start [2025-01-04 23:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176294', 'tblTempVendorCDR_20' ) end [2025-01-04 23:38:20] Production.INFO: ProcessCDR(1,14176294,1,1,2) [2025-01-04 23:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:38:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176294', 'tblTempUsageDetail_20' ) start [2025-01-04 23:38:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176294', 'tblTempUsageDetail_20' ) end [2025-01-04 23:38:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:38:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:38:23] Production.INFO: ==8505== Releasing lock... [2025-01-04 23:38:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:38:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:39:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:39:04 [end_date_ymd] => 2025-01-04 23:39:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:39:04' and `end` < '2025-01-04 23: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-04 23:39:19] Production.INFO: count ==858 [2025-01-04 23:39:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:39:04 - End Time 2025-01-04 23:39:04 [2025-01-04 23:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176299', 'tblTempUsageDetail_20' ) start [2025-01-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176299', 'tblTempUsageDetail_20' ) end [2025-01-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176299', 'tblTempVendorCDR_20' ) start [2025-01-04 23:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176299', 'tblTempVendorCDR_20' ) end [2025-01-04 23:39:19] Production.INFO: ProcessCDR(1,14176299,1,1,2) [2025-01-04 23:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176299', 'tblTempUsageDetail_20' ) start [2025-01-04 23:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176299', 'tblTempUsageDetail_20' ) end [2025-01-04 23:39:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:39:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:39:23] Production.INFO: ==8577== Releasing lock... [2025-01-04 23:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:39:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:40:05 [end_date_ymd] => 2025-01-04 23:40:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:40:05' and `end` < '2025-01-04 23: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-04 23:40:18] Production.INFO: count ==861 [2025-01-04 23:40:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:40:05 - End Time 2025-01-04 23:40:05 [2025-01-04 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176305', 'tblTempUsageDetail_20' ) start [2025-01-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176305', 'tblTempUsageDetail_20' ) end [2025-01-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176305', 'tblTempVendorCDR_20' ) start [2025-01-04 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176305', 'tblTempVendorCDR_20' ) end [2025-01-04 23:40:18] Production.INFO: ProcessCDR(1,14176305,1,1,2) [2025-01-04 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176305', 'tblTempUsageDetail_20' ) start [2025-01-04 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176305', 'tblTempUsageDetail_20' ) end [2025-01-04 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:40:23] Production.INFO: ==8652== Releasing lock... [2025-01-04 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:40:23] Production.INFO: 33.75 MB #Memory Used# [2025-01-04 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:41:05 [end_date_ymd] => 2025-01-04 23:41:05 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:41:05' and `end` < '2025-01-04 23: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-04 23:41:19] Production.INFO: count ==831 [2025-01-04 23:41:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:41:05 - End Time 2025-01-04 23:41:05 [2025-01-04 23:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176310', 'tblTempUsageDetail_20' ) start [2025-01-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176310', 'tblTempUsageDetail_20' ) end [2025-01-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176310', 'tblTempVendorCDR_20' ) start [2025-01-04 23:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176310', 'tblTempVendorCDR_20' ) end [2025-01-04 23:41:19] Production.INFO: ProcessCDR(1,14176310,1,1,2) [2025-01-04 23:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176310', 'tblTempUsageDetail_20' ) start [2025-01-04 23:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176310', 'tblTempUsageDetail_20' ) end [2025-01-04 23:41:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:41:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:41:22] Production.INFO: ==8723== Releasing lock... [2025-01-04 23:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:41:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:42:05 [end_date_ymd] => 2025-01-04 23:42:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:42:05' and `end` < '2025-01-04 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-04 23:42:19] Production.INFO: count ==831 [2025-01-04 23:42:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:42:05 - End Time 2025-01-04 23:42:05 [2025-01-04 23:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176315', 'tblTempUsageDetail_20' ) start [2025-01-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176315', 'tblTempUsageDetail_20' ) end [2025-01-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176315', 'tblTempVendorCDR_20' ) start [2025-01-04 23:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176315', 'tblTempVendorCDR_20' ) end [2025-01-04 23:42:19] Production.INFO: ProcessCDR(1,14176315,1,1,2) [2025-01-04 23:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176315', 'tblTempUsageDetail_20' ) start [2025-01-04 23:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176315', 'tblTempUsageDetail_20' ) end [2025-01-04 23:42:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:42:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:42:22] Production.INFO: ==8796== Releasing lock... [2025-01-04 23:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:42:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:43:05 [end_date_ymd] => 2025-01-04 23:43:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:43:05' and `end` < '2025-01-04 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-04 23:43:19] Production.INFO: count ==831 [2025-01-04 23:43:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:43:05 - End Time 2025-01-04 23:43:05 [2025-01-04 23:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176320', 'tblTempUsageDetail_20' ) start [2025-01-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176320', 'tblTempUsageDetail_20' ) end [2025-01-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176320', 'tblTempVendorCDR_20' ) start [2025-01-04 23:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176320', 'tblTempVendorCDR_20' ) end [2025-01-04 23:43:19] Production.INFO: ProcessCDR(1,14176320,1,1,2) [2025-01-04 23:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176320', 'tblTempUsageDetail_20' ) start [2025-01-04 23:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176320', 'tblTempUsageDetail_20' ) end [2025-01-04 23:43:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:43:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:43:22] Production.INFO: ==8865== Releasing lock... [2025-01-04 23:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:43:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:44:05 [end_date_ymd] => 2025-01-04 23:44:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:44:05' and `end` < '2025-01-04 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-04 23:44:18] Production.INFO: count ==828 [2025-01-04 23:44:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:44:05 - End Time 2025-01-04 23:44:05 [2025-01-04 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176325', 'tblTempUsageDetail_20' ) start [2025-01-04 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176325', 'tblTempUsageDetail_20' ) end [2025-01-04 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176325', 'tblTempVendorCDR_20' ) start [2025-01-04 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176325', 'tblTempVendorCDR_20' ) end [2025-01-04 23:44:18] Production.INFO: ProcessCDR(1,14176325,1,1,2) [2025-01-04 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176325', 'tblTempUsageDetail_20' ) start [2025-01-04 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176325', 'tblTempUsageDetail_20' ) end [2025-01-04 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:44:21] Production.INFO: ==8940== Releasing lock... [2025-01-04 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:44:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:45:05 [end_date_ymd] => 2025-01-04 23:45:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:45:05' and `end` < '2025-01-04 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-04 23:45:19] Production.INFO: count ==828 [2025-01-04 23:45:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:45:05 - End Time 2025-01-04 23:45:05 [2025-01-04 23:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176330', 'tblTempUsageDetail_20' ) start [2025-01-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176330', 'tblTempUsageDetail_20' ) end [2025-01-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176330', 'tblTempVendorCDR_20' ) start [2025-01-04 23:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176330', 'tblTempVendorCDR_20' ) end [2025-01-04 23:45:19] Production.INFO: ProcessCDR(1,14176330,1,1,2) [2025-01-04 23:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176330', 'tblTempUsageDetail_20' ) start [2025-01-04 23:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176330', 'tblTempUsageDetail_20' ) end [2025-01-04 23:45:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:45:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:45:22] Production.INFO: ==9010== Releasing lock... [2025-01-04 23:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:45:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:46:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:46:04 [end_date_ymd] => 2025-01-04 23:46:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:46:04' and `end` < '2025-01-04 23: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-04 23:46:17] Production.INFO: count ==828 [2025-01-04 23:46:17] Production.ERROR: pbx CDR StartTime 2025-01-04 20:46:04 - End Time 2025-01-04 23:46:04 [2025-01-04 23:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176335', 'tblTempUsageDetail_20' ) start [2025-01-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176335', 'tblTempUsageDetail_20' ) end [2025-01-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176335', 'tblTempVendorCDR_20' ) start [2025-01-04 23:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176335', 'tblTempVendorCDR_20' ) end [2025-01-04 23:46:17] Production.INFO: ProcessCDR(1,14176335,1,1,2) [2025-01-04 23:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176335', 'tblTempUsageDetail_20' ) start [2025-01-04 23:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176335', 'tblTempUsageDetail_20' ) end [2025-01-04 23:46:20] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:46:20] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:46:20] Production.INFO: ==9080== Releasing lock... [2025-01-04 23:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:46:20] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:47:05 [end_date_ymd] => 2025-01-04 23:47:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:47:05' and `end` < '2025-01-04 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-04 23:47:19] Production.INFO: count ==828 [2025-01-04 23:47:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:47:05 - End Time 2025-01-04 23:47:05 [2025-01-04 23:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176340', 'tblTempUsageDetail_20' ) start [2025-01-04 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176340', 'tblTempUsageDetail_20' ) end [2025-01-04 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176340', 'tblTempVendorCDR_20' ) start [2025-01-04 23:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176340', 'tblTempVendorCDR_20' ) end [2025-01-04 23:47:19] Production.INFO: ProcessCDR(1,14176340,1,1,2) [2025-01-04 23:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176340', 'tblTempUsageDetail_20' ) start [2025-01-04 23:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176340', 'tblTempUsageDetail_20' ) end [2025-01-04 23:47:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:47:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:47:22] Production.INFO: ==9151== Releasing lock... [2025-01-04 23:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:47:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:48:05 [end_date_ymd] => 2025-01-04 23:48:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:48:05' and `end` < '2025-01-04 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-04 23:48:21] Production.INFO: count ==826 [2025-01-04 23:48:22] Production.ERROR: pbx CDR StartTime 2025-01-04 20:48:05 - End Time 2025-01-04 23:48:05 [2025-01-04 23:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176345', 'tblTempUsageDetail_20' ) start [2025-01-04 23:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176345', 'tblTempUsageDetail_20' ) end [2025-01-04 23:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176345', 'tblTempVendorCDR_20' ) start [2025-01-04 23:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176345', 'tblTempVendorCDR_20' ) end [2025-01-04 23:48:22] Production.INFO: ProcessCDR(1,14176345,1,1,2) [2025-01-04 23:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176345', 'tblTempUsageDetail_20' ) start [2025-01-04 23:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176345', 'tblTempUsageDetail_20' ) end [2025-01-04 23:48:25] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:48:25] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:48:25] Production.INFO: ==9222== Releasing lock... [2025-01-04 23:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:48:25] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:49:05 [end_date_ymd] => 2025-01-04 23:49:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:49:05' and `end` < '2025-01-04 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-04 23:49:20] Production.INFO: count ==825 [2025-01-04 23:49:20] Production.ERROR: pbx CDR StartTime 2025-01-04 20:49:05 - End Time 2025-01-04 23:49:05 [2025-01-04 23:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176350', 'tblTempUsageDetail_20' ) start [2025-01-04 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176350', 'tblTempUsageDetail_20' ) end [2025-01-04 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176350', 'tblTempVendorCDR_20' ) start [2025-01-04 23:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176350', 'tblTempVendorCDR_20' ) end [2025-01-04 23:49:20] Production.INFO: ProcessCDR(1,14176350,1,1,2) [2025-01-04 23:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176350', 'tblTempUsageDetail_20' ) start [2025-01-04 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176350', 'tblTempUsageDetail_20' ) end [2025-01-04 23:49:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:49:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:49:23] Production.INFO: ==9292== Releasing lock... [2025-01-04 23:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:49:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:50:05 [end_date_ymd] => 2025-01-04 23:50:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:50:05' and `end` < '2025-01-04 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-04 23:50:18] Production.INFO: count ==826 [2025-01-04 23:50:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:50:05 - End Time 2025-01-04 23:50:05 [2025-01-04 23:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176356', 'tblTempUsageDetail_20' ) start [2025-01-04 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176356', 'tblTempUsageDetail_20' ) end [2025-01-04 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176356', 'tblTempVendorCDR_20' ) start [2025-01-04 23:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176356', 'tblTempVendorCDR_20' ) end [2025-01-04 23:50:18] Production.INFO: ProcessCDR(1,14176356,1,1,2) [2025-01-04 23:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176356', 'tblTempUsageDetail_20' ) start [2025-01-04 23:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176356', 'tblTempUsageDetail_20' ) end [2025-01-04 23:50:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:50:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:50:23] Production.INFO: ==9409== Releasing lock... [2025-01-04 23:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:50:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:51:05 [end_date_ymd] => 2025-01-04 23:51:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:51:05' and `end` < '2025-01-04 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-04 23:51:19] Production.INFO: count ==845 [2025-01-04 23:51:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:51:05 - End Time 2025-01-04 23:51:05 [2025-01-04 23:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176361', 'tblTempUsageDetail_20' ) start [2025-01-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176361', 'tblTempUsageDetail_20' ) end [2025-01-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176361', 'tblTempVendorCDR_20' ) start [2025-01-04 23:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176361', 'tblTempVendorCDR_20' ) end [2025-01-04 23:51:19] Production.INFO: ProcessCDR(1,14176361,1,1,2) [2025-01-04 23:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176361', 'tblTempUsageDetail_20' ) start [2025-01-04 23:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176361', 'tblTempUsageDetail_20' ) end [2025-01-04 23:51:23] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:51:23] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:51:23] Production.INFO: ==9482== Releasing lock... [2025-01-04 23:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:52:05 [end_date_ymd] => 2025-01-04 23:52:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:52:05' and `end` < '2025-01-04 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-04 23:52:18] Production.INFO: count ==842 [2025-01-04 23:52:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:52:05 - End Time 2025-01-04 23:52:05 [2025-01-04 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176366', 'tblTempUsageDetail_20' ) start [2025-01-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176366', 'tblTempUsageDetail_20' ) end [2025-01-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176366', 'tblTempVendorCDR_20' ) start [2025-01-04 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176366', 'tblTempVendorCDR_20' ) end [2025-01-04 23:52:18] Production.INFO: ProcessCDR(1,14176366,1,1,2) [2025-01-04 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176366', 'tblTempUsageDetail_20' ) start [2025-01-04 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176366', 'tblTempUsageDetail_20' ) end [2025-01-04 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:52:21] Production.INFO: ==9554== Releasing lock... [2025-01-04 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:53:05 [end_date_ymd] => 2025-01-04 23:53:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:53:05' and `end` < '2025-01-04 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-04 23:53:18] Production.INFO: count ==844 [2025-01-04 23:53:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:53:05 - End Time 2025-01-04 23:53:05 [2025-01-04 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176371', 'tblTempUsageDetail_20' ) start [2025-01-04 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176371', 'tblTempUsageDetail_20' ) end [2025-01-04 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176371', 'tblTempVendorCDR_20' ) start [2025-01-04 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176371', 'tblTempVendorCDR_20' ) end [2025-01-04 23:53:18] Production.INFO: ProcessCDR(1,14176371,1,1,2) [2025-01-04 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176371', 'tblTempUsageDetail_20' ) start [2025-01-04 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176371', 'tblTempUsageDetail_20' ) end [2025-01-04 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:53:21] Production.INFO: ==9628== Releasing lock... [2025-01-04 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:54:05 [end_date_ymd] => 2025-01-04 23:54:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:54:05' and `end` < '2025-01-04 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-04 23:54:19] Production.INFO: count ==845 [2025-01-04 23:54:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:54:05 - End Time 2025-01-04 23:54:05 [2025-01-04 23:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176376', 'tblTempUsageDetail_20' ) start [2025-01-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176376', 'tblTempUsageDetail_20' ) end [2025-01-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176376', 'tblTempVendorCDR_20' ) start [2025-01-04 23:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176376', 'tblTempVendorCDR_20' ) end [2025-01-04 23:54:19] Production.INFO: ProcessCDR(1,14176376,1,1,2) [2025-01-04 23:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176376', 'tblTempUsageDetail_20' ) start [2025-01-04 23:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176376', 'tblTempUsageDetail_20' ) end [2025-01-04 23:54:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:54:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:54:22] Production.INFO: ==9701== Releasing lock... [2025-01-04 23:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:54:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:55:05 [end_date_ymd] => 2025-01-04 23:55:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:55:05' and `end` < '2025-01-04 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-04 23:55:19] Production.INFO: count ==845 [2025-01-04 23:55:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:55:05 - End Time 2025-01-04 23:55:05 [2025-01-04 23:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176381', 'tblTempUsageDetail_20' ) start [2025-01-04 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176381', 'tblTempUsageDetail_20' ) end [2025-01-04 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176381', 'tblTempVendorCDR_20' ) start [2025-01-04 23:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176381', 'tblTempVendorCDR_20' ) end [2025-01-04 23:55:19] Production.INFO: ProcessCDR(1,14176381,1,1,2) [2025-01-04 23:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176381', 'tblTempUsageDetail_20' ) start [2025-01-04 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176381', 'tblTempUsageDetail_20' ) end [2025-01-04 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:55:22] Production.INFO: ==9773== Releasing lock... [2025-01-04 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:55:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:56:05 [end_date_ymd] => 2025-01-04 23:56:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:56:05' and `end` < '2025-01-04 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-04 23:56:18] Production.INFO: count ==845 [2025-01-04 23:56:18] Production.ERROR: pbx CDR StartTime 2025-01-04 20:56:05 - End Time 2025-01-04 23:56:05 [2025-01-04 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176386', 'tblTempUsageDetail_20' ) start [2025-01-04 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176386', 'tblTempUsageDetail_20' ) end [2025-01-04 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176386', 'tblTempVendorCDR_20' ) start [2025-01-04 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176386', 'tblTempVendorCDR_20' ) end [2025-01-04 23:56:18] Production.INFO: ProcessCDR(1,14176386,1,1,2) [2025-01-04 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176386', 'tblTempUsageDetail_20' ) start [2025-01-04 23:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176386', 'tblTempUsageDetail_20' ) end [2025-01-04 23:56:21] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:56:21] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:56:21] Production.INFO: ==9846== Releasing lock... [2025-01-04 23:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:56:21] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:57:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:57:04 [end_date_ymd] => 2025-01-04 23:57:04 [RateCDR] => 1 ) [2025-01-04 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-04 20:57:04' and `end` < '2025-01-04 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-04 23:57:19] Production.INFO: count ==842 [2025-01-04 23:57:19] Production.ERROR: pbx CDR StartTime 2025-01-04 20:57:04 - End Time 2025-01-04 23:57:04 [2025-01-04 23:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176391', 'tblTempUsageDetail_20' ) start [2025-01-04 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176391', 'tblTempUsageDetail_20' ) end [2025-01-04 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176391', 'tblTempVendorCDR_20' ) start [2025-01-04 23:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176391', 'tblTempVendorCDR_20' ) end [2025-01-04 23:57:19] Production.INFO: ProcessCDR(1,14176391,1,1,2) [2025-01-04 23:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176391', 'tblTempUsageDetail_20' ) start [2025-01-04 23:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176391', 'tblTempUsageDetail_20' ) end [2025-01-04 23:57:22] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:57:22] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:57:22] Production.INFO: ==9916== Releasing lock... [2025-01-04 23:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:57:22] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:58:05 [end_date_ymd] => 2025-01-04 23:58:05 [RateCDR] => 1 ) [2025-01-04 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-04 20:58:05' and `end` < '2025-01-04 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-04 23:58:21] Production.INFO: count ==842 [2025-01-04 23:58:21] Production.ERROR: pbx CDR StartTime 2025-01-04 20:58:05 - End Time 2025-01-04 23:58:05 [2025-01-04 23:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176396', 'tblTempUsageDetail_20' ) start [2025-01-04 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176396', 'tblTempUsageDetail_20' ) end [2025-01-04 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176396', 'tblTempVendorCDR_20' ) start [2025-01-04 23:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176396', 'tblTempVendorCDR_20' ) end [2025-01-04 23:58:21] Production.INFO: ProcessCDR(1,14176396,1,1,2) [2025-01-04 23:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176396', 'tblTempUsageDetail_20' ) start [2025-01-04 23:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176396', 'tblTempUsageDetail_20' ) end [2025-01-04 23:58:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:58:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:58:24] Production.INFO: ==10016== Releasing lock... [2025-01-04 23:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:58:24] Production.INFO: 33.5 MB #Memory Used# [2025-01-04 23:59:04] Production.ERROR: Array ( [start_date_ymd] => 2025-01-04 20:59:04 [end_date_ymd] => 2025-01-04 23:59:04 [RateCDR] => 1 ) [2025-01-04 23: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-04 20:59:04' and `end` < '2025-01-04 23: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-04 23:59:20] Production.INFO: count ==845 [2025-01-04 23:59:21] Production.ERROR: pbx CDR StartTime 2025-01-04 20:59:04 - End Time 2025-01-04 23:59:04 [2025-01-04 23:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-01-04 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176401', 'tblTempUsageDetail_20' ) start [2025-01-04 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14176401', 'tblTempUsageDetail_20' ) end [2025-01-04 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176401', 'tblTempVendorCDR_20' ) start [2025-01-04 23:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14176401', 'tblTempVendorCDR_20' ) end [2025-01-04 23:59:21] Production.INFO: ProcessCDR(1,14176401,1,1,2) [2025-01-04 23:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14176401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14176401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-01-04 23:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14176401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14176401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-01-04 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176401', 'tblTempUsageDetail_20' ) start [2025-01-04 23:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14176401', 'tblTempUsageDetail_20' ) end [2025-01-04 23:59:24] Production.ERROR: pbx prc_insertCDR start [2025-01-04 23:59:24] Production.ERROR: pbx prc_insertCDR end [2025-01-04 23:59:24] Production.INFO: ==10115== Releasing lock... [2025-01-04 23:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-01-04 23:59:24] Production.INFO: 33.5 MB #Memory Used#